fabiolb / fabio

Consul Load-Balancing made simple
https://fabiolb.net
MIT License
7.27k stars 616 forks source link

Does Fabio support connection shutdown when a backend fails #465

Open nmaludy opened 6 years ago

nmaludy commented 6 years ago

We're looking at using our existing Fabio deployment to load balance a Patroni. Patroni's health checks return HTTP success when the node is the master and return HTTP errors when a node is a standby.

When a fail over occurs we need to terminate the existing TCP connections so they connect to the new master. In HAproxy this can be accomplished by the on-marked-down shutdown-sessions config setting.

Does Fabio support something like this?

nmaludy commented 6 years ago

Here is the reference HAproxy configuration https://github.com/zalando/patroni/blob/master/haproxy.cfg