Haproxy backend dependency

Hi all,

Thanks for looking at my problem. Currently I have a setup within haproxy to handle some URIs and they end up in the right backend. What I want to be able to accomplish is a dependency between backends. In other words, if backend 1 becomes unavailable, I would like backend 2 to go into a similar state, or an unavailable state as well. When backend 1 becomes available again then backend 2 becomes available. The rule would not need to apply in reverse, meaning that if backend 2 if unavailable, then backend 1 should still operate normally. Is this possible in haproxy?

Thanks,
jamdev12