-
Notifications
You must be signed in to change notification settings - Fork 9.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
mvcc: Optimize compaction for short commit pauses #11034
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11034 +/- ##
==========================================
+ Coverage 63.67% 64.27% +0.59%
==========================================
Files 402 402
Lines 37719 37720 +1
==========================================
+ Hits 24018 24244 +226
+ Misses 12079 11841 -238
- Partials 1622 1635 +13
Continue to review full report at Codecov.
|
@jpbetz @jingyih Can we get this in by Friday, so we have at least 2 weeks to test this before the release :) Also, I still don't see the documentation about |
@gyuho Sorry for the delay. The tests around compaction are fidgety and I'm still working on getting them updated. I'll try to get that done today. I must have lost the |
679fcf0
to
2cb5286
Compare
Confirmed flag and ENV_VAR are working as expected. Tests are passing locally. |
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2cb5286
to
b5aa464
Compare
Hmm... 32-bit e2e tests are failing... Debugging at #11041. |
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Found the issue
|
Remove mentioning of using concurrent read in compaction. The original PR etcd-io/etcd#11021 was superseded by etcd-io/etcd#11034, which no long uses concurrent read in compaction.
Remove mentioning of using concurrent read in compaction. The original PR etcd-io/etcd#11021 was superseded by etcd-io/etcd#11034, which no long uses concurrent read in compaction.
Remove mentioning of using concurrent read in compaction. The original PR etcd-io/etcd#11021 was superseded by etcd-io/etcd#11034, which no long uses concurrent read in compaction.
Remove mentioning of using concurrent read in compaction. The original PR etcd-io/etcd#11021 was superseded by etcd-io/etcd#11034, which no long uses concurrent read in compaction.
Remove mentioning of using concurrent read in compaction. The original PR etcd-io/etcd#11021 was superseded by etcd-io/etcd#11034, which no long uses concurrent read in compaction.
for _, key := range keys { | ||
rev = bytesToRev(key) | ||
if _, ok := keep[rev]; !ok { | ||
tx.UnsafeDelete(keyBucketName, key) | ||
keyCompactions++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we deleting this
Reduce compaction intervals to 1k and duration between compactions to 10ms.
Also forces immediate commit of the write buffer after each compaction (thanks @jingyih for this).
I'll also make this configurable via a flag.
Supersedes #11021