Skip to main content

ask about load balancing and fail over

14 replies [Last post]
the_curious
Offline
Joined: 2007-12-17

i have tried the tutorial drom SJAS 9.1 Documebtation. but there is some problem with load balancing and fail over. i using windows machine and solaris.

Can you help me.. or give the great url for configuration load balancing and fail over

For Notes : i using SJAS 9.1, aslb plugin, and SJWS 6.1 in Solaris
SJAS 9.1 EE5 Update1 (Include load balancing), and SJWS 7.0

is it compatible?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
will_mad
Offline
Joined: 2007-08-31

Is it possible to use the load balancer plugin with an apache server? Is there a documentation somewhere on how to do it?

Pankaj Jairath

Hello,

Apache 2.0.x is supported. You can refer to doc at
http://docs.sun.com/app/docs/doc/819-3679 - High Availability
Administration Guide for setting up and configuring the load balancer.
Specially refer to chapters 4 and 5.

regards
Pankaj

glassfish@javadesktop.org wrote:
> Is it possible to use the load balancer plugin with an apache server? Is there a documentation somewhere on how to do it?
> [Message sent by forum member 'will_mad' (will_mad)]
>
> http://forums.java.net/jive/thread.jspa?messageID=254156
>
> ---------------------------------------------------------------------
> 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

the_curious
Offline
Joined: 2007-12-17

thank you very much. i'll try. hopefully i get the best..

thank you very much.

the_curious
Offline
Joined: 2007-12-17

thank you very much. i'll try. hhopefully i get the best..

thank you very much

the_curious
Offline
Joined: 2007-12-17

Thank's very much for the reply Pankaj.

It's the Specification :

I want to make a cluster with 2 computer.
1. Computer with Windows XP Prof SP2, installed, SJAS 9.1 (standard), SJWS 6.1, ASLB plugin load balancer
2. Computer with LInux, Installed SJAS 9.1 or Glassfish

DAS Machine / host in Windows XP, node agent=node1 in Linux, Server Instance= instance1 from linux, server instance from Windows XP.

can it works??

or it is wrong??

how to built the cluster? i have tried the steps that given by janey. But it's in one machine cluster. How to built in two machine cluster?? Thank's very much for the reply.

sm157516
Offline
Joined: 2005-03-28

Please see if this helps :
http://blogs.sun.com/technical/entry/2_machine_cluster_setup_cli

Though this blog talks about setting up cluster on 2 linux machines, you can try out in similar way the case you have mentioned. You might have to change the values of host appropriately.
ex: while creating node-agent on Linux machine that should point to DAS on winXP, you might have to mention host as winXP.

Pankaj Jairath

Hello,

Could you provide more details; as to specifically what issues are being
faced. From which location have you downloaded 9.1 / 9,1 Update Release
1 bits.
Based from your this description, it appears you are using SJSAS 9.1
installer to install and configure your LoadBalancer and WebServer -
correct?

regards
Pankaj

glassfish@javadesktop.org wrote:
> i have tried the tutorial drom SJAS 9.1 Documebtation. but there is some problem with load balancing and fail over. i using windows machine and solaris.
>
> Can you help me.. or give the great url for configuration load balancing and fail over
>
> For Notes : i using SJAS 9.1, aslb plugin, and SJWS 6.1 in Solaris
> SJAS 9.1 EE5 Update1 (Include load balancing), and SJWS 7.0
>
> is it compatible?
> [Message sent by forum member 'the_curious' (the_curious)]
>
> http://forums.java.net/jive/thread.jspa?messageID=252388
>
> ---------------------------------------------------------------------
> 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

the_curious
Offline
Joined: 2007-12-17

Thank's a lot janey.. i'll try now.. thanks

janey
Offline
Joined: 2005-05-30
wil2008

Hello

I've read the 2 links referred to in this thread.
Yet I still have problems getting failover to work when I load-balanced a
Glassfish cluster with an Apache front-end. :(
Glassfish v2 UR2
Apache 2.2
mod_jk 1.2.26
AJPv13

It seemed to me that when an instance went down, glassfish somehow did not
have the data for the session with that instance, and thus in another
instance it created a new session.
I've double checked that the jvmRoute name in glassfish jvm option (for use
with AJP) matched those in apache's workers.properties file, as done in this
link
http://blogs.sun.com/jluehe/entry/supporting_apache_loadbalancer_with_gl...

Did anyone try a similar setup and succeed?

Thank you very much!

Wilfred

glassfish-2 wrote:
>
> Hope this helps:
>
> https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html
> http://developers.sun.com/appserver/reference/techart/glassfishcluster/i...
> [Message sent by forum member 'janey' (janey)]
>
> http://forums.java.net/jive/thread.jspa?messageID=252393
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

--
View this message in context: http://www.nabble.com/ask-about-load-balancing-and-fail-over-tp14644779p...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

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

Gopal Jorapur

Hi Wilfred,

Are you using in-memory as the session persistence mechanism?

Please follow the links in this blog
http://blogs.sun.com/quality/entry/glassfish_for_enterprise

You need to do little bit of configuration (make your application highly
available and deploy with --availability enabled flag)

They are explained in the above blog

Also, here is one blog (follow the later part which is common for apache
and other web servers)

https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html

Thanks,
Gopal

wil2008 wrote:
> Hello
>
> I've read the 2 links referred to in this thread.
> Yet I still have problems getting failover to work when I load-balanced a
> Glassfish cluster with an Apache front-end. :(
> Glassfish v2 UR2
> Apache 2.2
> mod_jk 1.2.26
> AJPv13
>
> It seemed to me that when an instance went down, glassfish somehow did not
> have the data for the session with that instance, and thus in another
> instance it created a new session.
> I've double checked that the jvmRoute name in glassfish jvm option (for use
> with AJP) matched those in apache's workers.properties file, as done in this
> link
> http://blogs.sun.com/jluehe/entry/supporting_apache_loadbalancer_with_gl...
>
> Did anyone try a similar setup and succeed?
>
> Thank you very much!
>
> Wilfred
>
>
> glassfish-2 wrote:
>
>> Hope this helps:
>>
>> https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html
>> http://developers.sun.com/appserver/reference/techart/glassfishcluster/i...
>> [Message sent by forum member 'janey' (janey)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=252393
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>>
>>
>>
>
>

[att1.html]

wil2008

Hi Gopal

Thank you for your suggestions!

Yes I used the in-memory replication as the session persistence mechanism.

I've also tried the "file" option. However the directory I named remains
empty all the time.:-(
(I named the directory through the Admin Console:
Configurations -> (mycluster-config) -> Web Container -> Store Properties ->
Directory)

The "availability" at the levels of "Web Applications", "Availability
Services" , "Web Container Availability" and "Heartbeat" for my cluster have
all be set. There is in web.xml
Anything else did I miss ?

Is that I still have not activated any replication at all?:confused:

I'm eager to learn if anyone did succeed in getting session failover with a
similar setup?

Thank you very much for any clue!

Wilfred

Gopal Jorapur wrote:
>
> Hi Wilfred,
>
> Are you using in-memory as the session persistence mechanism?
>
> Please follow the links in this blog
> http://blogs.sun.com/quality/entry/glassfish_for_enterprise
>
> You need to do little bit of configuration (make your application highly
> available and deploy with --availability enabled flag)
>
> They are explained in the above blog
>
> Also, here is one blog (follow the later part which is common for apache
> and other web servers)
>
> https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html
>
> Thanks,
> Gopal
>
> wil2008 wrote:
>> Hello
>>
>> I've read the 2 links referred to in this thread.
>> Yet I still have problems getting failover to work when I load-balanced a
>> Glassfish cluster with an Apache front-end. :(
>> Glassfish v2 UR2
>> Apache 2.2
>> mod_jk 1.2.26
>> AJPv13
>>
>> It seemed to me that when an instance went down, glassfish somehow did
>> not
>> have the data for the session with that instance, and thus in another
>> instance it created a new session.
>> I've double checked that the jvmRoute name in glassfish jvm option (for
>> use
>> with AJP) matched those in apache's workers.properties file, as done in
>> this
>> link
>> http://blogs.sun.com/jluehe/entry/supporting_apache_loadbalancer_with_gl...
>>
>> Did anyone try a similar setup and succeed?
>>
>> Thank you very much!
>>
>> Wilfred
>>
>>
>> glassfish-2 wrote:
>>
>>> Hope this helps:
>>>
>>> https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html
>>> http://developers.sun.com/appserver/reference/techart/glassfishcluster/i...
>>> [Message sent by forum member 'janey' (janey)]
>>>
>>> http://forums.java.net/jive/thread.jspa?messageID=252393
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>>
>>>
>>>
>>>
>>
>>
>
>
>

--
View this message in context: http://www.nabble.com/ask-about-load-balancing-and-fail-over-tp14644779p...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

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

Kshitiz Saxena

Hi Wilfred,

I hope you have set persistence-type to "replicated" under
"web-containter-availability". This will enable in-memory replication
and session failover will work.

Thanks,
Kshitiz

wil2008 wrote:
> Hi Gopal
>
> Thank you for your suggestions!
>
> Yes I used the in-memory replication as the session persistence mechanism.
>
> I've also tried the "file" option. However the directory I named remains
> empty all the time.:-(
> (I named the directory through the Admin Console:
> Configurations -> (mycluster-config) -> Web Container -> Store Properties ->
> Directory)
>
> The "availability" at the levels of "Web Applications", "Availability
> Services" , "Web Container Availability" and "Heartbeat" for my cluster have
> all be set. There is in web.xml
> Anything else did I miss ?
>
> Is that I still have not activated any replication at all?:confused:
>
> I'm eager to learn if anyone did succeed in getting session failover with a
> similar setup?
>
> Thank you very much for any clue!
>
> Wilfred
>
>
> Gopal Jorapur wrote:
>
>> Hi Wilfred,
>>
>> Are you using in-memory as the session persistence mechanism?
>>
>> Please follow the links in this blog
>> http://blogs.sun.com/quality/entry/glassfish_for_enterprise
>>
>> You need to do little bit of configuration (make your application highly
>> available and deploy with --availability enabled flag)
>>
>> They are explained in the above blog
>>
>> Also, here is one blog (follow the later part which is common for apache
>> and other web servers)
>>
>> https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html
>>
>> Thanks,
>> Gopal
>>
>> wil2008 wrote:
>>
>>> Hello
>>>
>>> I've read the 2 links referred to in this thread.
>>> Yet I still have problems getting failover to work when I load-balanced a
>>> Glassfish cluster with an Apache front-end. :(
>>> Glassfish v2 UR2
>>> Apache 2.2
>>> mod_jk 1.2.26
>>> AJPv13
>>>
>>> It seemed to me that when an instance went down, glassfish somehow did
>>> not
>>> have the data for the session with that instance, and thus in another
>>> instance it created a new session.
>>> I've double checked that the jvmRoute name in glassfish jvm option (for
>>> use
>>> with AJP) matched those in apache's workers.properties file, as done in
>>> this
>>> link
>>> http://blogs.sun.com/jluehe/entry/supporting_apache_loadbalancer_with_gl...
>>>
>>> Did anyone try a similar setup and succeed?
>>>
>>> Thank you very much!
>>>
>>> Wilfred
>>>
>>>
>>> glassfish-2 wrote:
>>>
>>>
>>>> Hope this helps:
>>>>
>>>> https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html
>>>> http://developers.sun.com/appserver/reference/techart/glassfishcluster/i...
>>>> [Message sent by forum member 'janey' (janey)]
>>>>
>>>> http://forums.java.net/jive/thread.jspa?messageID=252393
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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

wil2008

Hi

Thank you Kshitiz !
Yes I did set the "Persistence Type" to "replicated" under
"Configurations"-> (mycluster-config)->"Availability Service" -> "Web
Container Availability".
Did you get session failover to work right away with a similar setup , i.e.
Glassfish + Apache?

I wonder if we could verify that replication is indeed working by examining
the log files?

In another test I set the "Persistence Type" to "file" but found that there
was no file in the location I set.
So I suspect what else have I omitted?

Thank you very much in advance!

Wilfred

Kshitiz Saxena wrote:
>
> Hi Wilfred,
>
> I hope you have set persistence-type to "replicated" under
> "web-containter-availability". This will enable in-memory replication
> and session failover will work.
>
> Thanks,
> Kshitiz
>
> wil2008 wrote:
>> Hi Gopal
>>
>> Thank you for your suggestions!
>>
>> Yes I used the in-memory replication as the session persistence
>> mechanism.
>>
>> I've also tried the "file" option. However the directory I named remains
>> empty all the time.:-(
>> (I named the directory through the Admin Console:
>> Configurations -> (mycluster-config) -> Web Container -> Store Properties
>> ->
>> Directory)
>>
>> The "availability" at the levels of "Web Applications", "Availability
>> Services" , "Web Container Availability" and "Heartbeat" for my cluster
>> have
>> all be set. There is in web.xml
>> Anything else did I miss ?
>>
>> Is that I still have not activated any replication at all?:confused:
>>
>> I'm eager to learn if anyone did succeed in getting session failover with
>> a
>> similar setup?
>>
>> Thank you very much for any clue!
>>
>> Wilfred
>>
>>
>> Gopal Jorapur wrote:
>>
>>> Hi Wilfred,
>>>
>>> Are you using in-memory as the session persistence mechanism?
>>>
>>> Please follow the links in this blog
>>> http://blogs.sun.com/quality/entry/glassfish_for_enterprise
>>>
>>> You need to do little bit of configuration (make your application highly
>>> available and deploy with --availability enabled flag)
>>>
>>> They are explained in the above blog
>>>
>>> Also, here is one blog (follow the later part which is common for apache
>>> and other web servers)
>>>
>>> https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html
>>>
>>> Thanks,
>>> Gopal
>>>
>>> wil2008 wrote:
>>>
>>>> Hello
>>>>
>>>> I've read the 2 links referred to in this thread.
>>>> Yet I still have problems getting failover to work when I load-balanced
>>>> a
>>>> Glassfish cluster with an Apache front-end. :(
>>>> Glassfish v2 UR2
>>>> Apache 2.2
>>>> mod_jk 1.2.26
>>>> AJPv13
>>>>
>>>> It seemed to me that when an instance went down, glassfish somehow did
>>>> not
>>>> have the data for the session with that instance, and thus in another
>>>> instance it created a new session.
>>>> I've double checked that the jvmRoute name in glassfish jvm option (for
>>>> use
>>>> with AJP) matched those in apache's workers.properties file, as done in
>>>> this
>>>> link
>>>> http://blogs.sun.com/jluehe/entry/supporting_apache_loadbalancer_with_gl...
>>>>
>>>> Did anyone try a similar setup and succeed?
>>>>
>>>> Thank you very much!
>>>>
>>>> Wilfred
>>>>
>>>>
>>>> glassfish-2 wrote:
>>>>
>>>>
>>>>> Hope this helps:
>>>>>
>>>>> https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html
>>>>> http://developers.sun.com/appserver/reference/techart/glassfishcluster/i...
>>>>> [Message sent by forum member 'janey' (janey)]
>>>>>
>>>>> http://forums.java.net/jive/thread.jspa?messageID=252393
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>
>
>

--
View this message in context: http://www.nabble.com/ask-about-load-balancing-and-fail-over-tp14644779p...
Sent from the java.net - glassfish users mailing list archive at Nabble.com.

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