dev@glassfish.java.net

Re: Need you help on CLB

From: Kshitiz Saxena <Kshitiz.Saxena_at_Sun.COM>
Date: Mon, 08 Mar 2010 13:19:44 +0530

Hi Jin,

Yes, you are correct about requests belonging to pure web applications
being distributed using sticky round robin algorithm. All new requests
will be distributed in round robin manner across active(healthy +
enabled) instances. All subsequent requests belonging to a session(i.e.
first request created session) will be send to instance which serviced
first request. This behavior will be followed until and unless that
instance goes down and subsequent requests need to be failed over.

DCR is applied for pure sip and converged application. To convert pure
web application to converged application, you can include empty sip.xml.

 From stats you provided, it looks like all four requests(stats
*TotalIncomingHttpRequests**BE*) were serviced by same backend. Even
though both FE got 2 requests each(stats
*TotalIncomingHttpRequests**F**E*), they were eventually serviced by PL-2_4.

Thanks,
Kshitiz

On Monday 08 March 2010 10:27 AM, Jin Yao wrote:
> Hi ,
> We 're developing web application on SGCS, we encounter problems on
> data centric, it seems the data-centric not works
> This is our dcr file
> We installed dcr using the following commands
> SC_2_1# asadmin set-dcr-file --clbname traffic_lb
> /home/wuigm/data-centric-rules.xml
> SC_2_1# asadmin set
> traffic-config.availability-service.converged-load-balancer.auto-commit=true
>
> We can see the file in console page
> But the CLB seems not work.
> If try to login WUIGM 4 times, In PL monitor log,
> *On PL-2_4 **TotalIncomingHttpRequests**BE *count value is 4
> *TotalIncomingHttpRequests**F**E** *value is 2
> On *PL-2_3 **TotalIncomingHttpRequests**B**E** *count value is 0
> *TotalIncomingHttpRequests**F**E** *value is 2
> Do you know, What the problem is?
> BTW: It's a pure web application! I have find some thing about CLB.
> it's said "HTTP and HTTPS messages belonging to pure web applications,
> the converged load balancer uses a *sticky round robin* algorithm"
> ,then what's the *sticky round robin*
> what should web application do to enable this
> Does the DCR file not work for pure web application?
> Thanks in advance!
> Br,Jin