“The expire time, which is the time since a record in the table was last matched, created or refreshed, informs HAProxy when to remove data.”
As I read this, finding a record in a look up resets the expire time.
Is this really the case (as opposed to create/update it)?
Plan to use it to set a retry-after header, but resetting on matching would make it inviable.
Testing this, but woul like a clarification/confirmation.
Thanks,
Gerardo
The full sentence in the documentation is:
- expire
Defines the maximum duration of an entry in the table since it was
last created, refreshed using ‘track-sc’ or matched using 'stick
match’ or ‘stick on’ rule. The expiration delay is defined
using the standard time format, similarly as the various timeouts,
defaulting to milliseconds. The maximum duration is slightly above
24 days. See section 2.5 for more information. If this delay is
not specified, sessions won’t automatically expire, but oldest
entries will be removed upon creation once full. Be sure not to
use the “nopurge” parameter if not expiration delay is specified.
Note: ‘table_*’ converters performs lookups but won’t update touch
expire since they don’t require ‘track-sc’.
I’m assuming when you say you want to set retry-after header you mean that you want to enforce that the client does not retry sooner, so in this case you would not use stick match or stick on rules anyway.