mod_proxy_ajp and mod_proxy_balancer - load balancing problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi to all.

I'm running benchmark on my infrastructure, 2 nodes with:
- o.s. RHEL 5.7 64 bit
- Apache 2.2.3 (prefork)
- JBoss EAP 5.1.2

For each nodes there are 4 JBoss instances:
- myapp-01
- myapp-02
- myapp-03
- myapp-04
and apache ajp connections is full-meshed with jboss instances (each apache forward requests to 8 jboss instances).

In attach there is my VH configuration.

About benchmarks: there are 400 users that performs a login, some user actions and logout three times, more or less for 4 hours.

For the first user loop there aren't problem with the load balancing, but after the first logout, it seems that the balancer loads (almost exclusively) the last jboss instance with less load in the firs one. And so on for the last time.

_There is no connection timeout on jboss_

Look at user-sessions attached:
- user-sessions-01.png using lbmethod=byrequest
- user-sessions-03.png using lbmethod=bytraffic

User sessions have to be balanced over all jboss istances.
Do you have any advice?

Thanks.
Regards.
Francesco.

<VirtualHost _default_:80>

        ServerName www.example.com
        DocumentRoot /var/www/htdocs/

        ErrorLog "/var/log/httpd/www.example.com/www.example.com-error_log"
        CustomLog "/var/log/httpd/www.example.com/www.example.com-access_log" combined

        ProxyTimeout 180
        ProxyStatus On

	ProxyPass /myapp/ balancer://www.example.com/myapp/ stickysession=JSESSIONID|jsessionid nofailover=On timeout=10

	<Proxy balancer://www.example.com>
		 BalancerMember ajp://node01.private.example.com:10015 route=myapp-01_node01 ttl=600 loadfactor=1 ping=10
		 BalancerMember ajp://node02.private.example.com:10015 route=myapp-01_node02 ttl=600 loadfactor=1 ping=10

		 BalancerMember ajp://node01.private.example.com:10016 route=myapp-02_node01 ttl=600 loadfactor=1 ping=10
		 BalancerMember ajp://node02.private.example.com:10016 route=myapp-02_node02 ttl=600 loadfactor=1 ping=10

		 BalancerMember ajp://node01.private.example.com:10017 route=myapp-03_node01 ttl=600 loadfactor=1 ping=10
		 BalancerMember ajp://node02.private.example.com:10017 route=myapp-03_node02 ttl=600 loadfactor=1 ping=10

		 BalancerMember ajp://node01.private.example.com:10018 route=myapp-04_node01 ttl=600 loadfactor=1 ping=10
		 BalancerMember ajp://node02.private.example.com:10018 route=myapp-04_node02 ttl=600 loadfactor=1 ping=10
		 ProxySet lbmethod=bytraffic timeout=180
	</Proxy>

</VirtualHost>

Attachment: user-sessions-01.png
Description: PNG image

Attachment: user-sessions-03.png
Description: PNG image

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux