Is it possible to enable load balancing between two servers with a third server as a backup?
Something like lb_policy round_robin
but with N
number of upstream.
For example, it would be great to specify the first two upstreams, then use the last one when the first two upstreams are unavailable: lb_policy round_robin 2
.
Why?
In our case, we have a third server as a backup, but the processing power of this server is worse than the first two production-grade servers. We want to load balance between the first two servers to ensure the best performance.
Example config
reverse_proxy node1 node2 node3 {
lb_policy round_robin
}