This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Load Balancing not load balancing

So I setup Server Load Balancing and well its not working.

Balancing Rule
Service: HTTP
Virtual Server: External WAN Address

Real Servers
web1 - 10.1.1.1
web2 - 10.1.1.2

Check type: HTTP Host
Check URL: index.html
Check interval: 15
Checked Automatic packet filter rules 

If I navigate to the website it works.

But... if I kill httpd on web1, it shows web1 as down.
If I navigate to the website now, it doesn't load and a tcpdump on web2 doesn't show the HTTP request. 

However the tcpdump shows the HTTP check from Astaro is working as desired.  The log files show the server going up and down as I stop and start httpd on web1.

2011:04:02-19:08:56 gate service_monitor[9039]: id="4000" severity="info" sys="System" sub="loadbalancing" name="REF_xKWwKekOVe 1 TCP 10.1.1.2:80 changed state to ONLINE"
2011:04:02-19:08:56 gate service_monitor[9039]: id="4000" severity="info" sys="System" sub="loadbalancing" name="REF_xKWwKekOVe 0 TCP 10.1.1.1:80 changed state to ONLINE"
2011:04:02-19:09:26 gate service_monitor[9039]: id="4000" severity="info" sys="System" sub="loadbalancing" name="REF_xKWwKekOVe 0 TCP 10.1.1.1:80 changed state to OFFLINE"
2011:04:02-19:09:57 gate service_monitor[9039]: id="4000" severity="info" sys="System" sub="loadbalancing" name="REF_xKWwKekOVe 0 TCP 10.1.1.1:80 changed state to ONLINE"
2011:04:02-21:35:56 gate service_monitor[9039]: id="4000" severity="info" sys="System" sub="loadbalancing" name="REF_xKWwKekOVe 0 TCP 10.1.1.1:80 changed state to OFFLINE"
2011:04:02-21:36:41 gate service_monitor[9039]: id="4000" severity="info" sys="System" sub="loadbalancing" name="REF_xKWwKekOVe 0 TCP 10.1.1.1:80 changed state to ONLINE"
2011:04:02-21:37:56 gate service_monitor[9039]: id="4000" severity="info" sys="System" sub="loadbalancing" name="REF_xKWwKekOVe 0 TCP 10.1.1.1:80 changed state to OFFLINE"
2011:04:02-21:38:26 gate service_monitor[9039]: id="4000" severity="info" sys="System" sub="loadbalancing" name="REF_xKWwKekOVe 0 TCP 10.1.1.1:80 changed state to ONLINE"
2011:04:02-21:41:26 gate service_monitor[9039]: id="4000" severity="info" sys="System" sub="loadbalancing" name="REF_xKWwKekOVe 0 TCP 10.1.1.1:80 changed state to OFFLINE"
2011:04:02-21:42:11 gate service_monitor[9039]: id="4000" severity="info" sys="System" sub="loadbalancing" name="REF_xKWwKekOVe 0 TCP 10.1.1.1:80 changed state to ONLINE"

Any tips or tricks to make this work correctly.

TIA


This thread was automatically locked due to age.
Parents
  • Also just out of curiosity, I eliminated the load balancing rule and created a NAT to point 80 traffic to web2 and it works fine. So its definitely something with Astaro redirecting traffic once web1 isn't available. I also tried the ping check and it resulted in the same thing. I enabled an ICMP block rule in iptables on web1, Astaro showed it as down but never redirected the traffic to web2. Argh..
Reply
  • Also just out of curiosity, I eliminated the load balancing rule and created a NAT to point 80 traffic to web2 and it works fine. So its definitely something with Astaro redirecting traffic once web1 isn't available. I also tried the ping check and it resulted in the same thing. I enabled an ICMP block rule in iptables on web1, Astaro showed it as down but never redirected the traffic to web2. Argh..
Children
No Data