Is it possible to use lua scripting to customize how the HAProxy balancing is performed?


#1

Hi guys,

I have a monitoring solution that gather the health of my different nodes and what I would like to do is to use this health data in the HAProxy balancing process. But I did not see any easy way to do it in the HAProxy configuration.

Do any of you tried to do something similar ? Any ideas/advice where to start?

I started looking into lua scripting and stick tables, but I’m not totally sure that would allow me to impact the balancing process. Do any of you know if that could work? Any advice?

Any help would be welcomed.
Thanks in advance,
Celso