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
  • So, I turned on SSL on my webservers and had to load balancing HTTPS too. So I created a group to include HTTP and HTTPS for the service in the load balancing rule. Well now it load balances between web1 and web2 for both services. Not sure why it only works this way but I won't complain since its working.
Reply
  • So, I turned on SSL on my webservers and had to load balancing HTTPS too. So I created a group to include HTTP and HTTPS for the service in the load balancing rule. Well now it load balances between web1 and web2 for both services. Not sure why it only works this way but I won't complain since its working.
Children
No Data