Set a variable in haproxy configuration and use it in Lua script


#1

Hi,
As we can give any name for the backends in haproxy configuration,I would like to know if there is any way to send a variable with a value (suppose a backend name),so that I’ll get this value in the lua script,and I would like to query for the status of servers in the lua script.Based on that I will set the health check response.

So,I would like to know how to set a variable in haproxy configuration and then use it in lua script.
Thankyou.