We use http-request set-mark directive to add a mark to inform routing decisions.
But now we’re trying to check backend connections with the following:
defaults option tcp-check backend b tcp-check connect server ...
But that tcp-check isn’t getting
marked at all (obvious since we mark it using
http-request set-mark) but we can’t seem to find a way to have those checks have the same mark as the requests.
Since without those mark the routing decision is wrong, the backend is always declared as DOWN…which wouldn’t happen if we could properly either mark the connection or have our source IP address set like we asked here:
Is there any way to achieve the Netfilter
mark for TCP checks?