Score:0

Howto enable backup server in HAProxy

in flag
frotnend fe_web
    ...
    acl no_srv_available nbsrv(http_in) eq 0
    use_backend backupsrv if no_srv_available

backend http_in
    balance roundrobin
    server-template refrontend 6 refrontend:80 check resolvers docker init-addr libc,none

backend backupsrv
    option allbackups
    server backupsrv:80 check resolvers docker init-addr libc,none backup

http-errors myerrors
    errorfile 503 /usr/local/etc/haproxy/errors/503.http

I am trying to divert traffic to a backup server if the servers (docker conatainers) does not respond or not available. I removed the refrontend containers that are running but I only get 503. The backup server is not chosen for some reason. Can some please point to me what is going wrong here ?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.