Introduction to HAProxy Stick Tables
haproxy.com
haproxy.com
Seriously, great article OP. Def. gave me a much better understanding of stick tables!
> tcp-request inspect-delay 10s
line, under "http_req_rate" section. In the article you wrote: "The second line is what inserts or updates a key in the table and updates its counters.". I think with that you were talking about the third line and that you skipped the second line in the explanation.
Basically if an ACL requires an http request (such as updating the http_req_rate counter) but the action is tcp-request it tells HAProxy to wait until it has a http request before it continues. If using an http-request track-* action its not required as HAProxy won't process http-request until it has an HTTP request to add to the counters.
Since HAProxy won't send a request to a backend in HTTP mode until it has a full request inspect-delay doesn't actually delay the request at all; just the processing phase for a bit (in TCP mode where it doesn't it gets a bit more complicated).
Just started happening in our containers earlier this week.