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

feat: make lease renewal async #34

Merged
merged 1 commit into from
Apr 3, 2023
Merged

Conversation

spentakota
Copy link
Contributor

No description provided.

@spentakota spentakota requested a review from vmwjc April 3, 2023 18:11
@spentakota spentakota force-pushed the spentakota_asyncLeaseRenewal branch from 3d449c8 to 13a302c Compare April 3, 2023 19:06
@@ -69,6 +69,9 @@ const (
// DefaultLeaseRefreshPeriodMillis Period before the end of lease during which a lease is refreshed by the owner.
DefaultLeaseRefreshPeriodMillis = 5000

// LeaseRefreshWaitTime is the period of time to wait before async lease renewal attempt
LeaseRefreshWaitTime = 2500
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should prefix this const with Default just to keep it consistent with everything else here.

Copy link
Contributor Author

@spentakota spentakota Apr 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense made change

Signed-off-by: Shiva Pentakota <spentakota@vmware.com>
@spentakota spentakota force-pushed the spentakota_asyncLeaseRenewal branch from 13a302c to 4aebaf1 Compare April 3, 2023 21:58
Copy link
Contributor

@vmwjc vmwjc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, this looks better to me than just renewing leases in the checkpointer.

@spentakota spentakota merged commit 6516287 into main Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants