-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
carbonserver: introducing request-timeout, heavy-glob-query-rate-limi…
…ters and api-per-path-rate-limiters for read traffic regulation Three new types of read path/traffic control configs are introduced in this commit: * request-timeout: it is designed to control how long each api call in carbonserver can run. The existing timeouts like read, write and idle are for http.Server, but this new timeout is for each API call in carbonserver. * heavy-glob-query-rate-limiters are relatively narrow controls against queries that might causes high cpu and memory consumption due to matching over too many metrics or nodes at the same time, queries like: "*.*.*.*.*.*.*.*.*keyword*". For these types of queries, trigram might be able to handle it better, but for trie and filesystem glob, it's might be too expensive when the index tree is large. * api-per-path-rate-limiters are used for strict api call rate limiting. All registered API paths (see carbonserver.Listen for a full list) can be controlled separately with it.
- Loading branch information
Showing
6 changed files
with
289 additions
and
8 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
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
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
Oops, something went wrong.