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

lease: initial lessor impl #3834

Merged
merged 1 commit into from
Nov 10, 2015
Merged

lease: initial lessor impl #3834

merged 1 commit into from
Nov 10, 2015

Conversation

xiang90
Copy link
Contributor

@xiang90 xiang90 commented Nov 8, 2015

I am working on the initial lease implementation for v3 API.

There is a lot of work needs to be done to make the API work. I do not want to submit a huge pull request. I would like to work on this iteratively for easy review.

The basic idea is to have a Lessor to handle leases including persisting them to disk and removing leased keys when the lease expires from storage. Then we will have a Server to accept client requests, propose requests into raft when consistency is necessary (For example, create a lease or modify a lease needs to be consistent) and apply requests that have gone through raft. Only the leader will handle renew request to reduce the load of raft. When leader changes, all the leases will get automatically renewed.

@yichengq @jonboulle Please give this pr a high level review. I want to iterate fast.

@yichengq
Copy link
Contributor

On high-level side, the lessor looks good and its member functions reach its description. I think they are good to be core functions of the lease idea.

@xiang90
Copy link
Contributor Author

xiang90 commented Nov 10, 2015

@yichengq OK. I am going to merge this on iterate on this implementation.

xiang90 added a commit that referenced this pull request Nov 10, 2015
@xiang90 xiang90 merged commit 3e74ff7 into etcd-io:master Nov 10, 2015
@xiang90 xiang90 deleted the lease_new branch November 10, 2015 18:29
@jonboulle
Copy link
Contributor

Seems fine at first glance, I think it'll make more sense as more starts to land.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants