-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The quota subsystem is made to improve control, reliability and visibility of go-carbon. It is not a standard graphite component, but it is backward compatible and could be turned on optionally. Caveat: the current implementation only supports concurrent/realtime trie index. The quota subsystem allows user to control how many resources can be consumed on a patter-matching based basis. Implemented controls include: data points (based retention policy), disk size (logical and physical), throughput, metric count, and namespaces (i.e. immediate sub-directory count). More details could be found in doc/quotas.md in the PR. An example configuration: ```ini # This control all the namespaces under root [*] metrics = 1,000,000 logical_size = 250,000,000,000 physical_size = 50,000,000,000 # max means practically no limit data_points = max throughput = max [sys.app.*] metrics = 3,000,000 logical_size = 1,500,000,000,000 physical_size = 100,000,000,000 data_points = 130,000,000,000 # This controls the root/global limits [/] namespaces = 20 metrics = 10,000,000 logical_size = 2,500,000,000,000 physical_size = 2,500,000,000,000 data_points = 200,000,000,000 dropping_policy = new ``` Throttling control is implemented in `carbonserver`, while quota config is implemented in persister (mainly for convenience).
- Loading branch information
Showing
13 changed files
with
1,438 additions
and
46 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.