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

Active/Passive Configuration for Multiple Backends

$
0
0

@void_in wrote:

First of all congratulations for having a great open source community. So by using the backup keyword, we can configure the HAProxy to shift to the backup server (or servers) in case all the primary servers are down. But I couldn’t find a config example where I have 2 backends with 2 backups:

server1 1.1.1.1:8080 check
server1 2.2.2.2:8080 check backup
server1 3.3.3.3:8080 check
server1 4.4.4.4:8080 check backup

I want to shift to 2.2.2.2 in case 1.1.1.1 is down. Also I want to shift to 4.4.4.4 in case 3.3.3.3 is down. Configuration manual says (and in my testing) the HAProxy only shifts to the backup servers once both 1.1.1.1 and 3.3.3.3 are down. Is there anyway I can configure the backup servers separately for each server? I my description is clear.

Thank you very much.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4720

Trending Articles



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