Skip to main content

Glassfish Clustering Setup

10 replies [Last post]
dansiviter
Offline
Joined: 2005-09-26

I'm a complete novice to clustering so would like some tips in its architecture and how to configure a simple setup with Glassfish (preferably using the nice admin interface).

From what I've read, the bit that really baffles me is why the Sun Java Web Server is required when Glassfish can service HTTP requests on its own. Why is, what is effectively a third party bit of software, required? Why can't you just create, for example, three instances of glassfish then link them together to as one logical cluster.

Any infomation you could give would really help a confused individual!

Dan

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
John Clingan

Dagnabit! Wrong URL. Here goes for step-by-step instructions:
http://blogs.sun.com/jclingan/entry/glassfish_clustering_in_under_10

On Dec 22, 2008, at 8:06 AM, Alexis Moussine-Pouchkine wrote:

> have you tried with the sample projects shipping with GlassFish and
> located in samples/quickstart/clusterjsp/ and associated docs/
> index.html file?
> you should probably first setup the cluster (here's a recent
> screencast btw: http://tinyurl.com/573spj) and later look into the
> load-balancing part.
>
> -Alexis
>
> On Dec 22, 2008, at 16:49, glassfish@javadesktop.org wrote:
>
>> Well, same to me. A new session was created. No replication was
>> done (using one machine cluster). Has anybody know where can be the
>> problem?Any hints will be appreciated.
>> [Message sent by forum member 'pjurak' (pjurak)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=322956
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Satyajit.Tripathi@Sun.COM

Hi PJurak,

Assumption : You are attempting to setup In-Memory Replication

A quick checklist to reverify your setup, using Admin Console, check the
Configuration cluster config.

0). Doubly check if the tag is present in the web.xml
of the Application
1). In the Application tab the Availability checkbox should be in
checked state
2). Heartbeat checkbox for your cluster should be in checked state

NOTE : You should be able to verify the cluster setup and replication
functionality independent of the LB setup.

As I can see through the alias, you have already received lots of
material and references to study.
If you may need, look at the Presentation :
*GlassFish-V2-Clustering-Simplified.pdf*
.
Hope you find this useful. Please let me know.

Thanks & regards
--Satya

On 12/22/08 21:19, glassfish@javadesktop.org wrote:
> Well, same to me. A new session was created. No replication was done (using one machine cluster). Has anybody know where can be the problem?Any hints will be appreciated.
> [Message sent by forum member 'pjurak' (pjurak)]
>
> http://forums.java.net/jive/thread.jspa?messageID=322956
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SATYAJIT TRIPATHI
ISV Engineering APAC

Sun Microsystems India Private Limited
Bangalore 560025
DID : +91 80 66937865
Mobile: +91 9886019892
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[att1.html]

dansiviter
Offline
Joined: 2005-09-26

Hmmm??

Maybe I need to understand clustering/load balancing more before I start playing with Glassfish's support for such features.

Thanks for your help!

ai109478
Offline
Joined: 2005-03-29

This blog also has simple instructions to follow with the screencast -
http://blogs.sun.com/anilam/entry/glassfish_v2_admin_console_series

Dick Davies

On 07/06/07, glassfish@javadesktop.org wrote:

> From what I've read, the bit that really baffles me is why the Sun Java Web Server is required when Glassfish can service HTTP requests on its own. Why is, what is effectively a third party bit of software, required? Why can't you just create, for example, three instances of glassfish then link them together to as one logical cluster.

The SJWS bits just spread requests across the backend glassfish
servers. There's an apache plugin to do the same, or you can just use
a standard application switch like a netscaler or BigIP. See:

http://blogs.sun.com/Prashanth/entry/load_balancing_glassfish_v2_with
--
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

km
Offline
Joined: 2005-10-28

> I'm a complete novice to clustering so would like
> some tips in its architecture and how to configure a
> simple setup with Glassfish (preferably using the
> nice admin interface).
>
> From what I've read, the bit that really baffles me
> is why the Sun Java Web Server is required when
> Glassfish can service HTTP requests on its own. Why
> is, what is effectively a third party bit of
> software, required? Why can't you just create, for
> example, three instances of glassfish then link them
> together to as one logical cluster.
>
> Any infomation you could give would really help a
> confused individual!
>
> Dan

Dan,

You need a web-server front-end, when you want to load-balance your http requests.
Frankly, it is not the web-server that the clustered instances need, but the plugin that
sits in a given web-server, namely apache or Sun's Web Server.

As far as cluster management is concerned, this is completely isolated from need
for a load-balancer. If you have a DNS round-robin system going on, you can independently have your clusters without the aforementioned load-balancer plugin.

To get you started, here are some links:

- http://blogs.sun.com/dpatil/entry/glassfish_v2_workspace_with_clustering
- http://blogs.sun.com/bloggerkedar/entry/a_recipe_to_create_clusters
- a screen-cast for the novice -- http://weblogs.java.net/blog/km/archive/2007/06/glassfish_v2_on.html

Hope this helps.

Regards,
Kedar

wc2006
Offline
Joined: 2007-02-20

Hello

I'm also trying to front a Glassfish cluster with Apache and mod_jk, as described in this link

http://blogs.sun.com/jluehe/entry/supporting_apache_loadbalancer_with_gl...

However I cannot get failover to work, namely, instead of using the old session, a new session is created (unexpectedly) when one instance goes down :(

Did anyone succeed with a similar setup?

Thank you!

Wilfred

pjurak
Offline
Joined: 2008-11-29

Well, same to me. A new session was created. No replication was done (using one machine cluster). Has anybody know where can be the problem?Any hints will be appreciated.

Alexis Moussine-Pouchkine

have you tried with the sample projects shipping with GlassFish and
located in samples/quickstart/clusterjsp/ and associated docs/
index.html file?
you should probably first setup the cluster (here's a recent
screencast btw: http://tinyurl.com/573spj) and later look into the
load-balancing part.

-Alexis

On Dec 22, 2008, at 16:49, glassfish@javadesktop.org wrote:

> Well, same to me. A new session was created. No replication was done
> (using one machine cluster). Has anybody know where can be the
> problem?Any hints will be appreciated.
> [Message sent by forum member 'pjurak' (pjurak)]
>
> http://forums.java.net/jive/thread.jspa?messageID=322956
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

John Clingan

Step-by-step instructions:
http://blogs.sun.com/jclingan/entry/when_they_smile_you_know

On Dec 22, 2008, at 8:06 AM, Alexis Moussine-Pouchkine wrote:

> have you tried with the sample projects shipping with GlassFish and
> located in samples/quickstart/clusterjsp/ and associated docs/
> index.html file?
> you should probably first setup the cluster (here's a recent
> screencast btw: http://tinyurl.com/573spj) and later look into the
> load-balancing part.
>
> -Alexis
>
> On Dec 22, 2008, at 16:49, glassfish@javadesktop.org wrote:
>
>> Well, same to me. A new session was created. No replication was
>> done (using one machine cluster). Has anybody know where can be the
>> problem?Any hints will be appreciated.
>> [Message sent by forum member 'pjurak' (pjurak)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=322956
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net