Hello, I have been playing a little bit with Lua and HAProxy lately and I would like to know what can be achieved, and what is never going to work before I go too far down the rabbit hole.
Specifically, I am attempting to dynamically select a backend based on the details of the connection and some configuration stored in Redis. E.g. I would like to be able to send clients to a different backend depending on whether their IP is part of a set, or perhaps even tarpitting such a connection. That’s only an example, as my plans are to add dynamicism to HAProxy so that changing configuration can be done without restarting, as much as possible. Are these things possible? I have been able to do things like returning a different URL in a redirect from a fetch (as explained in the documentation) or do more complex request handling in an applet, but I am not sure the configuration syntax currently allow what I want considering that fetches cannot yield, and applets are probably not the way to go to achieve something like: use_backend dynamic if lua.is_dynamic or use_backend lua.dispatcher Any hints or pointer to the one true way from anyone? Regards, -- Louis Munro lmu...@inverse.ca :: www.inverse.ca +1.514.447.4918 x125 :: +1 (866) 353-6153 x125 Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (www.packetfence.org)