Skip to main content

Re: Glassfish 3.1.2 and loadbalancer iPlanet webserver

4 replies [Last post]
shreedhar_ganapathy
Offline
Joined: 2007-01-17
Points: 0

Hi Thomas
Thanks for reaching out.
I have put in some responses below. Hope these are helpful.

On 11/8/12 2:47 AM, Thomas CATTY wrote:
> Glassfish 3.1.2 and loadbalancer iPlanet webserver Hi Shreedhar,
> Thanks for your brilliant topics about Glassfish, cluster and other
> things !
>
> I've been using Webserver iPlanet 7 as a loadbalancing with Glassfish
> 3.1.2. It works fine. thanks again for all the clear docs or videos I
> found on the topic.
> I've 3 questions :
>
> 1. It is said to be used as a loadbalancer but what I notice is that
> all the shown examples deal with sessions failover, ie when e instance
> in a cluster fails, another one is automatically the relay. Great.
> But what about the real load balance ? what happens when there is a
> real load, is it taken into account without any more configurations ?

The default algorithm used by the LB Plugin is round robin. One can
write one's own algorithm by modifying the loadbalancer.h file.

>
> 2. In production, I'll have 2 servers with 128Go RAM exach, 2To
> storage...They will be virtualized.
> For example, on the first, I'll have a VM with iPlanet server 7
> acting as a loadbalancer, on a second VM, my application server
> Glassfish, on a third my sql Cluster...
> And what I would like to do is : on the second server where there
> will also be a glassfish (for a cluster with the first one), some sql
> nodes...I would like a second iPlanet server LB doing the same
> like the first one but as a slave if the first one fails
> ? is is possible to do that with a sort of "hearbeat" link between
> them ? it would be great !
I believe it is possible to do so - but am not sure of the steps
involved. I have cc'd our GlassFish users list so someone from LB team
can comment. Moreover, this discussion will be useful for other
community members .

>
> 3. when everything is OK in my Glassfish and iPlanet webserver
> configuration, i even cope with this little problem : when I deploy or
> redeploy a high available application in my cluster linked to the
> loadbalancer, I've noticed (by chance! 'cause it didn't work) that I
> had to "manually" apply the changes in the loadbalancer.xml file on
> iPlanet : "manually" means that the "apply-http-lb-changes" seems to
> work from my asadmin console but on the iPlanet I have a message
> telling me that the configuration has changed and if I want to apply
> or not... without that manual confirmation it wouldn't work.
> Hope it was clear ;-) So how can I avoid that ? any parameter to turn on ?
> (I've yet a well configured SSL connection between them )

Could you look into the HA Admin Guide - it should have all the details
on configuring the GF Domain Server and IPlanet Web Server to auto apply
LB config changes.
http://docs.oracle.com/cd/E18930_01/html/821-2426/geobp.html#gktmr

hth
Shreedhar

>
> Thanks in advance for all !
>
> --
> Thomas CATTY
> 06.75.67.24.71
>
> "/There are three ways to get something done; do it yourself, hire
> someone,
> or forbid your kids to do it./" (/Mona Crane)
> /

Reply viewing options

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

Hi Dream Team,

Hope you¹re doing well ?
I just need a little explanation about this famous ³validate-multicast² that
make people write a lot ... ;-)

for example, I have 2 network adapters on each on my 2 different servers

eth0 : 46.X.X.18 (server1) and 46.X.X.19 (server2) plugged to a firewall
to get outside (reachable from outside on some specific ports)
eth1 : 192.X.X.18 (server1) and 192.X.X.19 (server2) plugged to an
internal subnet

I have 1 DAS , 2 SSH nodes and cluster with these nodes.

What I can¹ t explain today (Œcause I can¹t make it work) is that :

a validate-multicast only works if I precise the ‹bindaddress 46.X.X.18
(resp. 46.X.X.19) on both machines.
else it doesn¹t.
It doesnt work with any parameter : asadmin validate-muticast
nor when specifying the other NIC : asadmin validate-multicast --bindaddress
192.X.X.18 (resp. 192.X.X.19)

I¹m sure that the internal net allows the multicast. That is driving me
insane...

my cluster seems to work but I want it to work correctly with those NICs.

thx in advance,

--
Thomas CATTY
06.75.67.24.71

³There are three ways to get something done; do it yourself, hire someone,
or forbid your kids to do it.² (Mona Crane)

shreedhar_ganapathy
Offline
Joined: 2007-01-17
Points: 0

Hi Thomas
Thank you for your patience.
I do not have knowledge of whether iPlanet webservers can be redundantly
clustered to front GF cluster.

I do hope someone from our LB team on the users list will be able to
comment on it.

Thanks
Shreedhar

On 1/16/13 3:42 AM, Thomas CATTY wrote:
> Re: Glassfish 3.1.2 and loadbalancer iPlanet webserver Hi Shreedhar,
> Hope you're doing well
> I wish the best for 2013.
> I am taking the liberty of asking you if you had (or your team) an
> idea for the second issue (below) I was coping (about 2 LB)
> It would be gorgeous.
>
> take care
> cheers
>
>
>
> Le 08/11/12 20:00, « Shreedhar Ganapathy »
> a écrit :
>
> Hi Thomas
> Thanks for reaching out.
> I have put in some responses below. Hope these are helpful.
>
>
> On 11/8/12 2:47 AM, Thomas CATTY wrote:
>
>
> Glassfish 3.1.2 and loadbalancer iPlanet webserver Hi Shreedhar,
> Thanks for your brilliant topics about Glassfish, cluster and
> other things !
>
> I've been using Webserver iPlanet 7 as a loadbalancing with
> Glassfish 3.1.2. It works fine. thanks again for all the clear
> docs or videos I found on the topic.
> I've 3 questions :
>
> 1. It is said to be used as a loadbalancer but what I notice
> is that all the shown examples deal with sessions failover, ie
> when e instance in a cluster fails, another one is
> automatically the relay. Great.
> But what about the real load balance ? what happens when
> there is a real load, is it taken into account without any
> more configurations ?
>
>
> The default algorithm used by the LB Plugin is round robin. One
> can write one's own algorithm by modifying the loadbalancer.h file.
>
>
> *
> _2_. In production, I'll have 2 servers with 128Go RAM exach,
> 2To storage...They will be virtualized.
> For example, on the first, I'll have a VM with iPlanet
> server 7 acting as a loadbalancer, on a second VM, my
> application server Glassfish, on a third my sql Cluster...
> And what I would like to do is : on the second server
> where there will also be a glassfish (for a cluster with the
> first one), some sql nodes...I would like a second
> iPlanet server LB doing the same like the first one
> but as a slave if the first one fails ? is is
> possible to do that with a sort of "hearbeat" link between
> them ? it would be great !
>
> *
>
> I believe it is possible to do so - but am not sure of the steps
> involved. I have cc'd our GlassFish users list so someone from LB
> team can comment. Moreover, this discussion will be useful for
> other community members .
>
>
>
> 3. when everything is OK in my Glassfish and iPlanet
> webserver configuration, i even cope with this little problem
> : when I deploy or redeploy a high available application in my
> cluster linked to the loadbalancer, I've noticed (by chance!
> 'cause it didn't work) that I had to "manually" apply the
> changes in the loadbalancer.xml file on iPlanet : "manually"
> means that the "apply-http-lb-changes" seems to work from my
> asadmin console but on the iPlanet I have a message telling me
> that the configuration has changed and if I want to apply or
> not... without that manual confirmation it wouldn't work.
> Hope it was clear ;-) So how can I avoid that ? any parameter
> to turn on ?
> (I've yet a well configured SSL connection between them )
>
>
> Could you look into the HA Admin Guide - it should have all the
> details on configuring the GF Domain Server and IPlanet Web Server
> to auto apply LB config changes.
> http://docs.oracle.com/cd/E18930_01/html/821-2426/geobp.html#gktmr
>
> hth
> Shreedhar
>
>
>
> Thanks in advance for all !
>
> --
> Thomas CATTY
> 06.75.67.24.71
>
> "/There are three ways to get something done; do it yourself,
> hire someone,
> or forbid your kids to do it./" (/Mona Crane)
>
> /
>
>
>
>
> --
> Thomas CATTY
> 06.75.67.24.71
>
> "/There are three ways to get something done; do it yourself, hire
> someone,
> or forbid your kids to do it./" (/Mona Crane)
> /

Thomas CATTY

Hi Shreedhar,

Hope you¹re doing well ?

I)
About my last email (not this one below) I just inform you and the community
that I succeeded with the SSL certificate. It was not as trivial as with an
HTTP server (like Apache or Nginx)
to make the authentified certificate recognized.
In a word, one must first create a .p12 before merging with the keystore
Œcause the .key files created outside GF can¹t be sotred like that with the
java keytool
examples of commands you must use if you¹ve bought your certifcates to a CA
and want to import in GF (I assume you get the XXX.key (private key) XXX.crt
(generated one) et .XXX.pem (CA))

1. openssl pkcs12 -export -in XXX.crt -inkey XXX.key -out server.p12 -name
NameYouWant -CAfile XXX.pem -caname OtherNameYouWant
2. keytool -importkeystore -deststorepass YourPassword -destkeypass
YourPassword -destkeystore keystore.jks -srckeystore server.p12
-srcstoretype PKCS12 -srcstorepass YourPassword -alias NameYouWant

II)
Any ideas about the use of 2 Load balancers Iplanet Webserver ? balancing
from one to another if one fails !.... Would be so nice !

See you guys.
Cheers,

Le 08/11/12 20:00, « Shreedhar Ganapathy »
a écrit :

> Hi Thomas
> Thanks for reaching out.
> I have put in some responses below. Hope these are helpful.
>
>
> On 11/8/12 2:47 AM, Thomas CATTY wrote:
>
>
>> Glassfish 3.1.2 and loadbalancer iPlanet webserver Hi Shreedhar,
>> Thanks for your brilliant topics about Glassfish, cluster and other things !
>>
>> I've been using Webserver iPlanet 7 as a loadbalancing with Glassfish 3.1.2.
>> It works fine. thanks again for all the clear docs or videos I found on the
>> topic.
>> I've 3 questions :
>>
>> 1. It is said to be used as a loadbalancer but what I notice is that all the
>> shown examples deal with sessions failover, ie when e instance in a cluster
>> fails, another one is automatically the relay. Great.
>> But what about the real load balance ? what happens when there is a real
>> load, is it taken into account without any more configurations ?
>>
>
> The default algorithm used by the LB Plugin is round robin. One can write
> one's own algorithm by modifying the loadbalancer.h file.
>
>
>>
>> 2. In production, I'll have 2 servers with 128Go RAM exach, 2To
>> storage...They will be virtualized.
>> For example, on the first, I'll have a VM with iPlanet server 7 acting as
>> a loadbalancer, on a second VM, my application server Glassfish, on a third
>> my sql Cluster...
>> And what I would like to do is : on the second server where there will
>> also be a glassfish (for a cluster with the first one), some sql nodes...I
>> would like a second iPlanet server LB doing the same like the first one
>> but as a slave if the first one fails ? is is possible to do that with a
>> sort of "hearbeat" link between them ? it would be great !
>>
> I believe it is possible to do so - but am not sure of the steps involved. I
> have cc'd our GlassFish users list so someone from LB team can comment.
> Moreover, this discussion will be useful for other community members .
>
>
>>
>> 3. when everything is OK in my Glassfish and iPlanet webserver
>> configuration, i even cope with this little problem : when I deploy or
>> redeploy a high available application in my cluster linked to the
>> loadbalancer, I've noticed (by chance! 'cause it didn't work) that I had to
>> "manually" apply the changes in the loadbalancer.xml file on iPlanet :
>> "manually" means that the "apply-http-lb-changes" seems to work from my
>> asadmin console but on the iPlanet I have a message telling me that the
>> configuration has changed and if I want to apply or not... without that
>> manual confirmation it wouldn't work.
>> Hope it was clear ;-) So how can I avoid that ? any parameter to turn on ?
>> (I¹ve yet a well configured SSL connection between them )
>>
>
> Could you look into the HA Admin Guide - it should have all the details on
> configuring the GF Domain Server and IPlanet Web Server to auto apply LB
> config changes.
> http://docs.oracle.com/cd/E18930_01/html/821-2426/geobp.html#gktmr
>
> hth
> Shreedhar
>
>
>>
>> Thanks in advance for all !
>>
>> --
>> Thomas CATTY
>> 06.75.67.24.71
>>
>> ³There are three ways to get something done; do it yourself, hire someone,
>> or forbid your kids to do it.² (Mona Crane)
>>
>>
>
>

--
Thomas CATTY
06.75.67.24.71

³There are three ways to get something done; do it yourself, hire someone,
or forbid your kids to do it.² (Mona Crane)

Thomas CATTY

Thanks for answering Shreedhar quickly
That is very kind of you.

1. OK for the loadbalancer.h file. So by default there is a real loadbalancing, I would like to be sure.

2. Thanks for helping by cc ing the community ! I keep this address in mind ;-)

3. I am pretty sure to have followed all the steps that is the reason why I was asking but I am gonna double check again

Many thanks.

Thomas CATTY
06.75.67.24.71

On Nov 8, 2012, at 8:00 PM, Shreedhar Ganapathy wrote:

> Hi Thomas
> Thanks for reaching out.
> I have put in some responses below. Hope these are helpful.
>
> On 11/8/12 2:47 AM, Thomas CATTY wrote:
>> Hi Shreedhar,
>> Thanks for your brilliant topics about Glassfish, cluster and other things !
>>
>> I've been using Webserver iPlanet 7 as a loadbalancing with Glassfish 3.1.2. It works fine. thanks again for all the clear docs or videos I found on the topic.
>> I've 3 questions :
>>
>> 1. It is said to be used as a loadbalancer but what I notice is that all the shown examples deal with sessions failover, ie when e instance in a cluster fails, another one is automatically the relay. Great.
>> But what about the real load balance ? what happens when there is a real load, is it taken into account without any more configurations ?
>
> The default algorithm used by the LB Plugin is round robin. One can write one's own algorithm by modifying the loadbalancer.h file.
>
>>
>> 2. In production, I'll have 2 servers with 128Go RAM exach, 2To storage...They will be virtualized.
>> For example, on the first, I'll have a VM with iPlanet server 7 acting as a loadbalancer, on a second VM, my application server Glassfish, on a third my sql Cluster...
>> And what I would like to do is : on the second server where there will also be a glassfish (for a cluster with the first one), some sql nodes...I would like a second iPlanet server LB doing the same like the first one but as a slave if the first one fails ? is is possible to do that with a sort of "hearbeat" link between them ? it would be great !
> I believe it is possible to do so - but am not sure of the steps involved. I have cc'd our GlassFish users list so someone from LB team can comment. Moreover, this discussion will be useful for other community members .
>
>>
>> 3. when everything is OK in my Glassfish and iPlanet webserver configuration, i even cope with this little problem : when I deploy or redeploy a high available application in my cluster linked to the loadbalancer, I've noticed (by chance! 'cause it didn't work) that I had to "manually" apply the changes in the loadbalancer.xml file on iPlanet : "manually" means that the "apply-http-lb-changes" seems to work from my asadmin console but on the iPlanet I have a message telling me that the configuration has changed and if I want to apply or not... without that manual confirmation it wouldn't work.
>> Hope it was clear ;-) So how can I avoid that ? any parameter to turn on ?
>> (I’ve yet a well configured SSL connection between them )
>
> Could you look into the HA Admin Guide - it should have all the details on configuring the GF Domain Server and IPlanet Web Server to auto apply LB config changes.
> http://docs.oracle.com/cd/E18930_01/html/821-2426/geobp.html#gktmr
>
> hth
> Shreedhar
>
>>
>> Thanks in advance for all !
>>
>> --
>> Thomas CATTY
>> 06.75.67.24.71
>>
>> “There are three ways to get something done; do it yourself, hire someone,
>> or forbid your kids to do it.” (Mona Crane)
>