Spray to backend hosts when all are unhealthy (#171)

When all backend hosts are unhealthy, randomly select one and use
that as a target.

This is to preempt the health checking itself failing.
This commit is contained in:
Miek Gieben
2016-06-14 18:04:29 +01:00
committed by GitHub
parent 77a9bce740
commit 2fe42067fa
2 changed files with 24 additions and 2 deletions

View File

@@ -45,6 +45,9 @@ There are three load balancing policies available:
* *least_conn* - Select backend with the fewest active connections
* *round_robin* - Select backend in round-robin fashion
All polices implement randomly spraying packets to backend hosts when *no healthy* hosts are
available. This is to preeempt the case where the healthchecking (as a mechanism) fails.
## Examples
Proxy all requests within example.org. to a backend system: