I want to use Active Standby configration mulit backends servers.
HAProxy can handle weight for backend selections. But, when use weight 0, if other backends down, HAProxy don’t send any backends. Ipn normaly, HAProxy can not handle Act-Stb archtecture.
backend apps
server web1 web1:5000 check weight 100
server web2 web2:5000 check weight 1
backup option is mainly used for Active Standby configration.
backend apps
server web1 web1:5000 check
server web2 web2:5000 check backup
And, if you want multi backup server, you need to enable allbackups options.
backend apps
option allbackups
server web1 web1:5000 check
server web2 web1:5000 check
server web3 web2:5000 check backup
server web4 web2:5000 check backup