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

[ENHANCEMENT] remote-write: increase interval for successful write before resharding #14054

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kushalShukla-web
Copy link
Contributor

No description provided.

Signed-off-by: kushagra Shukla <kushalshukla110@gmail.com>
@kushalShukla-web
Copy link
Contributor Author

fixes #14044

@bboreham bboreham changed the title added a new variable [ENHANCEMENT] remote-write: increase interval for successful write before resharding May 4, 2024
Copy link
Member

@bboreham bboreham left a comment

Choose a reason for hiding this comment

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

Code looks fine, thanks. I edited the title to be a bit more descriptive.

I'd like to wait for comment from some of the remote-write maintainers before merging.

@@ -1020,7 +1020,7 @@ func (t *QueueManager) shouldReshard(desiredShards int) bool {
}
// We shouldn't reshard if Prometheus hasn't been able to send to the
// remote endpoint successfully within some period of time.
minSendTimestamp := time.Now().Add(-2 * time.Duration(t.cfg.BatchSendDeadline)).Unix()
minSendTimestamp := time.Now().Add(-2*time.Duration(t.cfg.BatchSendDeadline) + shardUpdateDuration).Unix()
Copy link
Member

Choose a reason for hiding this comment

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

this could potentially even just be time.Now().Add(-1*shardUpdateDuration), if we haven't been able to successfully send since the last time we checked if we should reshard then just skip

@cstyan
Copy link
Member

cstyan commented May 6, 2024

left a comment on the issue @bboreham curious as to whether you decreased the max batch since in step with the decrease in batch send deadline

@kushalShukla-web
Copy link
Contributor Author

kushalShukla-web commented May 19, 2024

guys i will look at this issue/pr again and let you know my thoughts about , currently busy with my exams .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants