-
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
etcdctl: write snapshot using storage backend #4979
Conversation
@heyitsanthony lgtm. Defer to @xiang90 And do we have Readme on this command? Can't find. |
@gyuho no readme for snapshot yet |
Ok got it. |
What is the plan here for snapshot auth/leases? |
@xiang90 a few options: (a) is a non-starter if we want to preserve long lived leases out of the gate, but it lets us defer support for leases/auth until a later date |
@heyitsanthony I feel c) is better. |
@xiang90 excellent. I was planning on slipping an address space ID (regular kv space is asid 0, leases are asid 1, auth is asid 2, etc) into the KV RPCs to do it. Would that make sense? |
I am curious about:
|
|
@heyitsanthony So user will be able to get a lease key/value out of our KV API if they specify asid = 1? I feel we should just disable this. And only expose this to the internal snapshot usage. One more thing is that we want to do all these to make API simpler and enable incremental snapshot (I assume auth/lease are much smaller compared to KV space and returning them in one request is not a big deal). Or we could simply add a Snapshot API into Maintenance Service? |
@xiang90 I'm hesitant to add a binary blob snapshot API because the KV API seems descriptive enough to take snapshots. On the other hand, the KV approach could end up being super complicated and much more unreliable than sending boltdb copies around. I guess I'll try the snapshot api db blob thing... |
Yea... This is what I would expect it to work.
Then if user wants to do incremental snapshot, we probably need to feed them with raw wal files. But it is doable and simpler from implementation perspective. |
closing in favor of #5012 |
No description provided.