On Feb 14, 2008, at 6:41 PM, Graham Leggett wrote:
Akins, Brian wrote:
Yeah that was my thought. I guess you pass around the array of
servers.
Just remove (or mark as N/A) from the list and/or reorder it. At
the end,
core proxy picks whatever is in index 0 (possibly walking the list
in case
of connection error or something).
Essentially that is what proxy does now (or did before the balancer
stuff arrived) - it loops through everything that came back from the
DNS round robin query, trying to connect in turn until it gets
something other than bad gateway.
Rather than just the simplistic round robin DNS query, it should
query a hook (in which is embedded as the sensible default, a
simplistic round robin DNS query).
Well, right now all it does is say "give me the best worker" and
leaves it up to the selected provider on "what that means", so it
queries a provider, not a hook. Of course, we could create an actual
hook which then queries providers, to allow people to extend
the selection even more...