rstudio / redx

dynamic nginx configuration
BSD 2-Clause "Simplified" License
117 stars 27 forks source link

Load balancing based on score. #4

Closed cbarraford closed 10 years ago

cbarraford commented 10 years ago

Added the ability to load balance based on least-score or most-score. This allows redx to load balance the backends based on a score you use (ie number of connections, load avg, memory free, number of threads opens, etc). See README changes for more information.

In order for this to work, you do need to update the score via the API on a per backend basis routinely (ie once a min).

Picking a backend randomly is of course still available and will continue to work with no changes (backwards compatible).