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

feat: metrics engine cache #1624

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

zealchen
Copy link
Contributor

Rationale

#1623

Detailed Changes

  1. Sequence diagram
image
  1. Implement three caches: MetricsCache, SeriesCache, and TagIndexCache, each with an asynchronous serialization function.
  2. Implement async write to storage in batch mode.

TODO:

  1. Some parameters need to be made configurable.

Test Plan

UT

running 1 test
test index::cache::tests::test_cache_manager_updates ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.05s

     Running unittests src/lib.rs (target/debug/deps/pb_types-2fb383c00286addd)

@zealchen zealchen changed the title Feat metrics engine cache feat: metrics engine cache Jan 25, 2025
@github-actions github-actions bot added the feature New feature or request label Jan 25, 2025
@zealchen zealchen requested a review from jiacai2050 January 25, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant