> On Jul 13, 2016, at 2:13 AM, Takada Shigeomi <bot.shige...@gmail.com> wrote:
> 
> Hi,
> 
> I'd like to change backend server by referring to the database. e.g. Redis
> I cannot use server directive with the return of core.register_fetches. A 
> parsing error occurs.
> Do I cannot %[lua.xxx] in server directive on the specification?
> Dose anyone have any idea?



This may be relevant.
https://www.mail-archive.com/haproxy@formilux.org/msg22859.html 
<https://www.mail-archive.com/haproxy@formilux.org/msg22859.html>

I was able to dynamically select the backend based on a redis query following 
those instructions.

Unfortunately I don’t have the (lua) code at hand right now, but it was 
relatively straightforward.

Regards,
--
Louis

Reply via email to