Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17825

Having an issue with apache load balancers

$
0
0

I will be using apache2 mod_proxy_balancer (two load balancers) with two workers to serve up about 20 PHP / ColdFusion sites.

Everything is mostly working fine, I am able to round robin balance my page views (I have a basic html page that shows which server is which), except I am seeing the same requests go to both of the workers behind the load balancers. This DOESN'T happen every time I try to view the page.

For example: I open mysite.com/index.html and see that it goes to webserver1, then refresh and it goes to webserver2, but I can see the request in both server's /var/log/apache2/access.log.

Is this normal? Why are my requests going to both servers? I think it may be related to using two load balancers, but I would like to have redundancy at this layer.

Extra info:

I am using TWO load balancers (mysite.com contains both load balancer's IPs)

Hosted on Amazon AWS

Ubuntu 12.04

Server version: Apache/2.2.22

submitted by Killebrew_69
[link][18 comments]

Viewing all articles
Browse latest Browse all 17825

Trending Articles