-
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.
carbonserver: introduce file list cache v2
This commit introduces flc v2, the main purpose to have better quota support during restart. Mainly for saving physical and logical size info in the flc. Users can transparently switch from v1 to v2 and vice versa. More context on quota friendly: with flc v1, when go-carbon is restarted, it would create a trie index tree using the logical size as physical size for metrics and this would potentially temporary high physical size accounting and leads to unnecessary throttling if physical size quota is enabled. With flc v2, go-carbon would physical, logical, data points, and first_seen_at timestamp in the cache and use that for rebuilding the trie index after restart. This would avoids temporary incorrect physical size accounting issues with flcv1.
- Loading branch information
Showing
11 changed files
with
717 additions
and
176 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
Oops, something went wrong.