Allow passing a preferred server for laodbalancing
In select_server
, allow passing a preferred_server
keyword argument that seeds the selection. Also, allow passing preferred_fallback_threshold
. It takes a float, and determines below which ranking the preferred server must fall before the selection falls abck to a different server. It can be set to 0
to say "only fallback if preferred server is unavailable", and to loert than 0
to never fallback.
Depends on #9 (closed).