Load Balancing - ipvsadm with apache (mod_proxy) to another apache not working
Hi,
I have these kind of configuration : Code:
user -> firewall -> Server 0 (Apache with mod_proxy) -> loadbalancer But today, when I checked the page, it only showed "1" everytime I refresh the browser and realize that it actually bypass the loadbalancer and directly hit the Server 1 from the apache server 0 (in server 1 apache's log, the traffic come from the server 0 real IP). If I somehow turned the local loopback in server 1, it will display error 503 (service currently unavailable). So I wonder whats wrong with my configuration? Why it won't recognized the load balancer IP properly? Please advise. Thanks. |
Hmm after a few checking, I noticed that the problem occured because :
- the mac address from local loopback in server 1 override the mac address in arp tables in the Server 0. - that way, all request to the 10.10.10.200 is directly forwarded to Server 1 and not the loadbalancer. - I then delete the arp entry and create a static one in the arptables of Server 0 so that all the request will be forwarded to the load balancer again and the server now back to normal. Anyone know what might cause the overridden? The problem is already been solved, it just that I don't know why it could happen in the first place. Thanks |
All times are GMT -5. The time now is 07:02 PM. |