-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By default, neither webrick or rack will timeout http requests. This means that if a request to `/metrics` or `/queue/metrics` takes longer than the `scrape_timeout`, we risk backing up requests for metrics and eventually overloading the worker. This adds rack-timeout to force the request to exit after the default timeout of 30 seconds (but it can be changed either by setting `RACK_TIMEOUT_SERVICE_TIMEOUT` to a different value or by the `--metrics-request-timeout` options flag when starting the worker).
- Loading branch information
1 parent
b7a0484
commit 28e4971
Showing
2 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters