real server failure recovery

Unanswered Question
Jan 6th, 2009

I have 2 web servers that I am load balanncing. Is there a way to set up an automatic out of service so that if the real server goes down, the load balancer will automatically not balance to the downed server. What is happening is that apache is dying on one of the servers and I would like to set it up so if apache dies, the cms will know not to load balance to that server.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Collin Clark Tue, 01/06/2009 - 16:14

You can create TCP/ICMP/URL/COOKIE/ETC probes to your servers. If it fails, the server is automatically removed from the farm. When it comes back up, it's automatically added back to the farm. Check the config guide (look for probe or I can post my config if it will help.

jlhainy Tue, 01/06/2009 - 19:48

Thanks, I will look into that. If you still don't mind posting your config, it would be nice to see a real world example.

Collin Clark Wed, 01/07/2009 - 06:42

Sure, here you go.

I have two WWW servers; 192.168.1.1 & 192.168.1.2

<font size="2"> </p><p>probe tcp TCP_Connect_to_WWW-1</p><p>  description TCP_Connect_to_WWW-1</p><p>  ip address 192.168.1.1</p><p>  interval 3</p><p>  passdetect interval 3</p><p>  passdetect count 10</p><p>  open 2</p><p>probe tcp TCP_Connect_to_WWW-2</p><p>  description TCP_Connect_to_WWW-2</p><p>  ip address 192.168.1.2</p><p>  interval 3</p><p>  passdetect interval 3</p><p>  passdetect count 10</p><p>  open 2</p><p>  </p><p>rserver host WWW_1</p><p>  ip address 172.16.210.1</p><p>  conn-limit max 4000000 min 4000000</p><p>  probe TCP_Connect_to_WWW-1</p><p>  inservice</p><p>rserver host WWW_2</p><p>  ip address 172.16.210.2</p><p>  conn-limit max 4000000 min 4000000</p><p>  probe TCP_Connect_to_WWW-2</p><p>  inservice</p><p></font>

Actions

This Discussion