-
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: allow multiple concurrent snapshots #7307
Conversation
Review status: 0 of 7 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. storage/store.go, line 673 [r2] (raw file):
Per my earlier comment, let's default this to Comments from Reviewable |
Review status: 0 of 7 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. storage/store.go, line 673 [r2] (raw file):
|
I'd rather hold off on this change until we demonstrate stability with the current version, especially since I agree with Peter that it is unlikely that allowing more snapshots will make sense until we can move to streaming snapshots. |
Agreed. Let's let the dust settle from the recent Raft transport and On Fri, Jun 17, 2016 at 12:22 PM Ben Darnell [email protected]
|
Sure. I've rebased this, so it should be good to go whenever we're ready to start experimenting with it again. Review status: 0 of 5 files reviewed at latest revision, 1 unresolved discussion, some commit checks pending. Comments from Reviewable |
Review status: 0 of 5 files reviewed at latest revision, 1 unresolved discussion, some commit checks pending. storage/store.go, line 673 [r2] (raw file):
|
Rebased on top of streaming snapshots, much simpler now. |
Is there any way that we can test this change with more than 1 concurrent snapshot before merging? I see that the default is 1, but I'm nervous that we'll see problems with snapshots when we adjust that configuration. I think it would be nice to try to catch potential problems with concurrent snapshots with a test before we merge this. Reviewed 7 of 7 files at r3. Comments from Reviewable |
I like getting rid of the use of Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks pending. Comments from Reviewable |
@jordanlewis updated the default to 2 -- I guess it doesn't make much sense to merge this before the default is changed. The tests still pass (though maybe you had some specific tests in mind). @petermattis indeed -- hard to say if or when we will. Perhaps the chaos monkeys will tell. On the other hand, it may be good to expose concurrency bugs while the streaming snapshots change is fresh in everyone's minds. Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. Comments from Reviewable |
Can't we show via some local workload that a value larger than Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. Comments from Reviewable |
The code change LGTM, but I'd rather keep the default at 1 until we can show that this is both safe and beneficial. |
OK, updated the default to 1. |
Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. pkg/storage/store.go, line 778 at r4 (raw file):
Can you mind adding a small comment here: Comments from Reviewable |
Set the default to 1 for the moment.
Review status: 0 of 2 files reviewed at latest revision, 2 unresolved discussions. pkg/storage/store.go, line 778 at r4 (raw file): Previously, petermattis (Peter Mattis) wrote…
Done. Comments from Reviewable |
@cuongdo this is on top of #7299 - I bet the degradation we saw with this change originally was the result of that issue. Can you test it?
This change is