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

admission: incorporate higher compaction rate during WAL failover #138708

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

sumeerbhola
Copy link
Collaborator

WAL failover can happen even when the throughput sustainable by the primary
is high (since we tune WAL failover to happen at a 100ms latency threshold).
So if the workload increase is resulting in more compactions, we should
incorporate that into the tokens given out by the ioLoadListener.

Informs #138655

Epic: none

Release note: None

@sumeerbhola sumeerbhola requested a review from a team as a code owner January 9, 2025 03:15
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator Author

@sumeerbhola sumeerbhola left a comment

Choose a reason for hiding this comment

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

First commit is from #138699

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @aadityasondhi)

Copy link
Collaborator

@aadityasondhi aadityasondhi left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@sumeerbhola
Copy link
Collaborator Author

TFTR!

@sumeerbhola
Copy link
Collaborator Author

TestLogicalReplicationCreationChecks timeout is unrelated

@sumeerbhola
Copy link
Collaborator Author

bors r=aadityasondhi

craig bot pushed a commit that referenced this pull request Jan 10, 2025
138708: admission: incorporate higher compaction rate during WAL failover r=aadityasondhi a=sumeerbhola

WAL failover can happen even when the throughput sustainable by the primary
is high (since we tune WAL failover to happen at a 100ms latency threshold).
So if the workload increase is resulting in more compactions, we should
incorporate that into the tokens given out by the ioLoadListener.

Informs #138655

Epic: none

Release note: None


Co-authored-by: sumeerbhola <[email protected]>
@craig
Copy link
Contributor

craig bot commented Jan 10, 2025

Build failed:

WAL failover can happen even when the throughput sustainable by the primary
is high (since we tune WAL failover to happen at a 100ms latency threshold).
So if the workload increase is resulting in more compactions, we should
incorporate that into the tokens given out by the ioLoadListener.

Informs cockroachdb#138655

Epic: none

Release note: None
@sumeerbhola
Copy link
Collaborator Author

bors r=aadityasondhi

@craig craig bot merged commit 88a839a into cockroachdb:master Jan 10, 2025
22 checks passed
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.

3 participants