users@glassfish.java.net

Re: any plan to add active passive instances to glassfish load balancer plugin?

From: Pankaj Jairath <Pankaj.Jairath_at_Sun.COM>
Date: Fri, 30 Nov 2007 11:05:17 +0530

Hello Legolas,

You can still achieve this concept within GlassFish v2, by using the
Self Management feature.
   -
https://glassfish.dev.java.net/javaee5/selfmanagement/selfmanagementhome.html

Primarly what you can do is write your custom MBean which listens for
GMS events (lets say failure) and causes another instance to added and
started within the same cluster. For this you can use the AMX APIs to do
this programmatically OR even set up mail alert rule that can send
alerts to sys admin when it finds logs of certain type (in this case GMS
failure of another peer node of the cluster). This way administrator can
rely on the alert notification and take appropriate steps.

  - https://glassfish.dev.java.net/javaee5/amx/
  - https://glassfish.dev.java.net/javaee5/docs/DG/beapd.html

On a different note, a more intensive solution is Open High Availability
Clusters - Open HA Cluster.
 - http://opensolaris.org/os/community/ha-clusters
 - http://opensolaris.org/os/community/ha-clusters/ohac/Documentation/

This provides HA solution using a combination of hardware and software
entities. It provides for the notion of backup nodes as well.

regards
Pankaj

legolas wrote:
> Hi
> Thank you for you reply.
> Is there any way to have such feature?
> Any hardware that can do that or any other kind of software which can do
> this?
>
> Thanks
>
> Kshitiz Saxena wrote:
>
>> Hi Legolas,
>>
>> The load-balancer plugin available with glassfish does not provide any
>> such feature of active/passive instances. All instances listed in
>> load-balancer.xml are used for load-balancing purposes if they are
>> healthy and enabled.
>>
>> Thanks,
>> Kshitiz
>>
>> legolas wood wrote:
>>
>>> Hi
>>> Thank you for reading my post
>>> Is there any plan to add active/passive instances support in glassfish
>>> load balancer plugin?
>>> for example we could have 3 glassfish instance and load balancer
>>> plugin utilize two of them at any time, it means that if one of those
>>> two active instance goes down, lb plugin send the load to instance
>>> number 3, and send some alarm notification about the failed server....
>>>
>>>
>>> thanks
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>>
>>
>
>