I need a server / switch / something (which I'll refer to as a "failover switch") to do the following task.
- There are two
HTTP
servers behind the failover switch.- Normally, all requests are routed to
server 1
. - If server 1 dies (stops responding on
HTTP
requests in a timely fashion), all requests are routed toserver 2
. - When
server 1
is restored (starts responding onHTTP
requests in a timely fashion), all requests are routed back toserver 1
. - The failover switch has one external IP address (which the requests initially come to).
- Normally, all requests are routed to
This thing should be as dumb and simple as possible.
How is it properly called and what would be an example of such a thing?
Update:
Ideally, this should not have any moving parts (like HDD
or a fan). So a dedicated hardware solution would be preferred.
Update 2:
This thing should be a switch, not a balancer. It should switch based on HTTP
server availability, not ARP
or ICMP
.