Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4717

Haproxy failover single backup server for several nodes

$
0
0

I have several small server and one big server that contain mirror of that several small server. Let’s call it Server A, Server B, Server C and Server D for group of small server, and the big server will have Server X as name.

I’m drawing this diagram to explain the setup.

I want to redirect user to Server X if one of Server A to D is down/unreachable, once the server is gone up the user would have been redirected back to their corresponding server. Below is an example of desired scenario.

  • John search up www.example.com hosted on Server B.
  • Haproxy redirect John to Server B.
  • John is doing something on www.example.com on server B.
  • Server B is down ! John got redirected to Server X.
  • John is doing something on www.example.com on server X.
  • Server B is up ! John got redirected back to server B from Server X.

I want to do the same setup with all other server (Server A to D), hence I only needed a failover and not load balancer.

I’m pretty sure this is possible with haproxy, but I haven’t find a way to do this setup. Can anyone who knowledgeable give me a way to perform this setup.

I hope my point is clear, TIA

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>