FEAT: Add IDLE_TIMEOUT config param, and update doc. #91
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We have a setup where HAProxy fronts the loki/mimir servers that the cortex-tenant is connecting, and sending data to. Now the HAProxy servers have configured the client idle timeout param to 15s, so that any idle connection from anyone including cortex-tenant is purged in 15 seconds. Details https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#3.10-timeout%20client
This is clear from the cortex-tenant logs -
So the proposed change in this PR adds a new idle timeout parameter in the config which grants the operator ability to tweak the idle timeout settings in the server to match that of the upstream proxy.
The change has been tested locally.
Dear @blind-oracle (maintainers), this is my first commit to this PR. Please let me know if there are any questions/comments.