Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

primary idle shutdown #242

Merged
merged 5 commits into from
Feb 22, 2023
Merged

primary idle shutdown #242

merged 5 commits into from
Feb 22, 2023

Conversation

MarinPostma
Copy link
Collaborator

This PR adds idle shutdown to the primary by sharing the IdleShutdownService with the rpc server.

Whenever the primary does not receive any ping from replicas for some period AND doesn't get any requests, then it shuts down.

Copy link
Collaborator

@haaawk haaawk left a comment

Choose a reason for hiding this comment

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

Amazing! Thanks a lot @MarinPostma

@haaawk
Copy link
Collaborator

haaawk commented Feb 22, 2023

I think we just need to fix clippy and we're good to go. Let's get this merged today and I can test it and enable it on Turso tomorrow.

@MarinPostma MarinPostma force-pushed the primary-idle-shutdown branch from 37437c2 to 886d92b Compare February 22, 2023 12:22
@MarinPostma
Copy link
Collaborator Author

bors merge

@bors
Copy link
Contributor

bors bot commented Feb 22, 2023

Build succeeded:

@bors bors bot merged commit 8739b80 into main Feb 22, 2023
@MarinPostma MarinPostma deleted the primary-idle-shutdown branch August 25, 2023 13:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants