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

Always snapshot stream when at compaction minimum #6289

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

Conversation

MauriceVanVeen
Copy link
Member

For some reason doing a stream snapshot at an interval of 10s (as designed) degrades performance. Removing the interval and always snapshotting when hitting compaction minimum improves performance.

Signed-off-by: Maurice van Veen [email protected]

@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner December 20, 2024 16:41
@MauriceVanVeen MauriceVanVeen force-pushed the maurice/stream-always-snapshot-at-min-size branch from ffe8f1c to eb35f8e Compare December 20, 2024 16:45

// Don't allow the upper layer to install snapshots until we have
// fully recovered from disk.
isRecovering := true

doSnapshot := func() {
if mset == nil || isRecovering || isRestore || time.Since(lastSnapTime) < minSnapDelta {
if mset == nil || isRecovering || isRestore {
Copy link
Member

Choose a reason for hiding this comment

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

This was here to not snaphot faster then every 10s, not to snapshot every 10s..

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.

2 participants