On 11/26/12 10:15 PM, James Peach wrote:
Implementing this however would probably require us to touch on everything in core, something that (w|c)ould destabilize ATS… We already do balancing when an origin has multiple DNS entries, so we should expose a way for plugins to populate the set of names or addresses for a single origin. I agree that health checking is probably also best left to plugins; you can do a reasonable job using TSFetchURL. The other task that ought to be extensible with a plugin is mapping a request to a specific origin address, which should be pretty straightforward to do in a remap plugin.
+1. Lets all brainstorm / hack at ApacheCon NA'13 :). Part of this, I really believe HostDB and the way that stuff works, has to be refactored / replaced. That should be the key to getting the core ready for a more modularized host resolution / load balancing.
I think that we have almost all the pieces to generalize this, but there's a fair bit of effort involved in bringing them all together and "productizing them". ... and I'd be happy to merge anybody's Lua patches :)
I need to start using this sucker... What's state is it in now? is it usable ? I'm thinking, as a "prototype", to convert my remap.config and all the plugins I'm using into one Lua script. Heck, maybe I can even create a "converter" :).
-- Leif
