-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
storage: tune raft.Config.{MaxSizePerMsg,MaxInflightMsgs} #10929
storage: tune raft.Config.{MaxSizePerMsg,MaxInflightMsgs} #10929
Conversation
I'm not sure what the downsides there are to doing this. The upsides are pretty significant in testing. This completely eliminates long It might be worth exploring if there is another option. |
Ok, I looked into the alternate suggestion and it is
|
Tweaking the Reviewed 2 of 2 files at r1. pkg/storage/replica.go, line 2447 at r1 (raw file):
Also increment stats.processed here. pkg/storage/store.go, line 177 at r1 (raw file):
That's really going to hurt performance of hot ranges in geographically-distributed deployments. Maybe after this change we should figure out how to release the lock in between processing commands instead of limiting throughput so much. Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. pkg/storage/replica.go, line 2447 at r1 (raw file): Previously, bdarnell (Ben Darnell) wrote…> Also increment stats.processed here.pkg/storage/store.go, line 177 at r1 (raw file): Previously, bdarnell (Ben Darnell) wrote…> That's really going to hurt performance of hot ranges in geographically-distributed deployments. Maybe after this change we should figure out how to release the lock in between processing commands instead of limiting throughput so much.Comments from Reviewable |
The previous settings allowed up to 256 MB of Raft log entries to be inflight to a follower, resulting in a single Replica.handleRaftReady call processing thousands or 10s of thousands of commands. Log the number of commands processed when Replica.handleRaftReady takes too long. Fixes cockroachdb#10917
01b0fa6
to
89e8fe3
Compare
Ok, I removed the second commit and I've also add env vars to make Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions. Comments from Reviewable |
Reviewed 2 of 2 files at r2. pkg/storage/store.go, line 2977 at r2 (raw file):
Comments from Reviewable |
Review status: all files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. pkg/storage/store.go, line 2977 at r2 (raw file): Previously, tamird (Tamir Duberstein) wrote…> `stats` is discarded here because we believe it's always 1? or do we just not care?Comments from Reviewable |
The previous settings allowed up to 256 MB of Raft log entries to be
inflight to a follower, resulting in a single Replica.handleRaftReady
call processing thousands or 10s of thousands of commands.
Log the number of commands processed when Replica.handleRaftReady takes
too long.
Fixes #10917
This change is