[mod_cluster-dev] Requests not distributed equally across 2 nodes in a cluster

Bela Ban bela at jboss.com
Mon Dec 15 15:56:34 EST 2008



Paul Ferraro wrote:
>>
>> I haven't changed anything in the mod-cluster-jboss-beans.xml file. I
>> see that we have a DynamicLoadBalanceFactorProvider. Do I need to change
>> this to a static one ?
>>
>
> You shouldn't need to change the default mod-cluster-jboss-beans.xml.
> All configs now support dynamic load balancing. What does your
> <Listener> look like in your server.xml?

<Listener 
className="org.jboss.web.tomcat.service.deployers.MicrocontainerIntegrationLifecycleListener"
             delegateBeanName="HAModClusterService"/>




>
>> Proxy[0]: [/127.0.0.1:8000]:
>> Node: [1],Name: node1,Balancer: mycluster,Domain: ,Host:
>> 192.168.1.5,Port: 8009,Type: ajp,Flushpackets: Off,Flushwait:
>> 10000,Ping: 10000000,Smax: 1,Ttl: 60000000,Elected: 27747,Read:
>> 470713,Transfered: 0,Connected: 8,Load: 78
>> Node: [2],Name: node2,Balancer: mycluster,Domain: ,Host:
>> 192.168.1.9,Port: 8009,Type: ajp,Flushpackets: Off,Flushwait:
>> 10000,Ping: 10000000,Smax: 1,Ttl: 60000000,Elected: 68240,Read:
>> 2131998,Transfered: 0,Connected: 6,Load: 77
>> Vhost: [1:1:1], Alias: localhost
>> Vhost: [2:1:2], Alias: localhost
>> Context: [1:1:1], Context: /, Status: ENABLED
>> Context: [1:1:2], Context: /invoker, Status: ENABLED
>> Context: [1:1:3], Context: /web, Status: ENABLED
>> Context: [1:1:4], Context: /juddi, Status: ENABLED
>> Context: [1:1:5], Context: /jbossws, Status: ENABLED
>> Context: [1:1:6], Context: /load-demo, Status: ENABLED
>> Context: [1:1:7], Context: /jmx-console, Status: ENABLED
>> Context: [1:1:8], Context: /web-console, Status: ENABLED
>> Context: [1:1:9], Context: /sun, Status: ENABLED
>> Context: [2:1:10], Context: /web-console, Status: ENABLED
>> Context: [2:1:11], Context: /juddi, Status: ENABLED
>> Context: [2:1:12], Context: /invoker, Status: ENABLED
>> Context: [2:1:13], Context: /jbossws, Status: ENABLED
>> Context: [2:1:14], Context: /, Status: ENABLED
>> Context: [2:1:15], Context: /jmx-console, Status: ENABLED
>> Context: [2:1:16], Context: /load-demo, Status: ENABLED
>> Context: [2:1:17], Context: /sun, Status: ENABLED
>> Context: [2:1:18], Context: /web, Status: ENABLED
>>
> These load values (78 and 77) look fine and *should* result in
> relatively even balancing (load values scale from 0-100).

Yep. Yet the the 'Elected' and 'Read' values show a completely tilted 
picture... This is with the SimpleLoadBalanceElectionPolicy where the LB 
factor is always at 1 and doesn't change

-- 
Bela Ban
Lead JGroups / Clustering Team
JBoss - a division of Red Hat



More information about the mod_cluster-dev mailing list