Load balancing - HTTPD & Tomcat

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

 



Dear Community

 

I hope your all doing well today.  Thank you for assisting me the other day with setting up SSL properly.

 

Recently, I have been running into an issue where HTTPD load balancing falls over, thus preventing me from reaching the Tomcat sessions.

 

The error messages that I am getting are below:

 

[Sat Jul 16 14:33:00 2016] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (xxx.xxx.xxx.xxx)

[Sat Jul 16 14:33:13 2016] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header

[Sat Jul 16 14:33:13 2016] [error] ajp_read_header: ajp_ilink_receive failed

[Sat Jul 16 14:33:13 2016] [error] (70007)The timeout specified has expired: proxy: read response failed from (null) (xxx.xxx.xxx.xxx)

[Sat Jul 16 14:33:16 2016] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header

[Sat Jul 16 14:33:16 2016] [error] ajp_read_header: ajp_ilink_receive failed

 

OR

 

[Sat Jul 16 14:35:56 2016] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (xxx.xxx.xxx.xxx)

[Sat Jul 16 14:35:56 2016] [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header

[Sat Jul 16 14:35:56 2016] [error] ajp_read_header: ajp_ilink_receive failed

 

The current configuration for load balancing (not mine), copied straight from the file, looks like:

 

ProxyPass / balancer://mycluster/ stickysession=JSESSIONID

<Proxy balancer://mycluser>

  BalancerMember ajp://xxx.xxx.xxx.xxx:port1 route=Node1 loadfactor=50

  BalancerMember ajp://xxx.xxx.xxx.xxx:port2 route=Node2 loadfactor=50

</Proxy>

 

 

After spending some time Googling and reading, I have now re-written the configuration to look like the following:

 

ProxyPass / balancer://mycluster/ stickysession=JSESSIONID

<Proxy balancer://mycluster>

  BalancerMember ajp://xxx.xxx.xxx.xxx:port1 route=jvm-Node1 loadfactor=1 connectiontimeout=10 retry=600

  BalancerMember ajp://xxx.xxx.xxx.xxx:port2 route=jvm-Node2 loadfactor=1 connectiontimeout=10 retry=600

</Proxy>

 

<VirtualHost subdomain.domain.ac.za:80>

ProxyPass / balancer://mycluster/

ProxyPassReverse / balancer://mycluster/

</VirtualHost>

 

 

Will this address the issue at hand or is there another reason for the errors that I am getting?

 

 

Kind Regards

Leon


[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