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

[r314] kafka replay speed: dynamic ingestion concurrency #9797

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

grafanabot
Copy link
Contributor

Backport 77f5bf1 from #9739

* kafka replay speed: dynamic ingestion concurrency

#### Background

we've found that ingestion concurrency maybe adds overhead.

#### What this PR does
 This PR makes changes so that we choose concurrency dynamically based on the amount of data (# of timeseries) we will ingest.

 #### How it works

 We try to flush each shard a lot of times in order to gain the benefit of concurrency. If the estimation is that we won't flush it that often, then we choose not to run concurrently for the particular tenant|source combination.

 #### Estimations/Assumptions

 Currently, we target 80 flushes per shard as this number seems to work ok.
 The estimation of bytes per timeseries is almost mostly there for a lot of our dev and production cells.

Signed-off-by: Dimitar Dimitrov <[email protected]>

* address review comments
---------

Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: gotjosh <[email protected]>
Co-authored-by: gotjosh <[email protected]>
(cherry picked from commit 77f5bf1)
@grafanabot grafanabot requested review from tacole02 and a team as code owners November 1, 2024 14:38
@grafanabot grafanabot requested a review from gotjosh November 1, 2024 14:38
Copy link
Contributor

@gotjosh gotjosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gotjosh gotjosh merged commit de750f9 into r314 Nov 1, 2024
31 checks passed
@gotjosh gotjosh deleted the backport-9739-to-r314 branch November 1, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants