Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

carbonserver: introduce file list cache v2 #470

Merged
merged 1 commit into from
Jun 9, 2022

Commits on Jun 9, 2022

  1. carbonserver: introduce file list cache v2

    This commit introduces flc v2, the main purpose is 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 keep physical, logical, data points, and first_seen_at timestamp in the
    cache file and use that for rebuilding the trie index after restart. This would avoids temporary incorrect
    physical size accounting issues with flcv1.
    bom-d-van committed Jun 9, 2022
    Configuration menu
    Copy the full SHA
    093f6a9 View commit details
    Browse the repository at this point in the history