Hi curtoni -
I think you need to spell out your servers in the backend, and use a different keyword to choose which specific one. Maybe something like:
backend dynamic
use-server %[lua.choose_server]
server s1 <ip>
server s1 <ip>
I haven’t tested the config, so you may need to play around with it.
Here’s docs on the use-server keyword: https://cbonte.github.io/haproxy-dconv/configuration-1.6.html#4.2-use-server
Hope that helps!
- Andrew