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

primary idle shutdown#242

Merged
bors[bot] merged 5 commits into
mainfrom
primary-idle-shutdown
Feb 22, 2023
Merged

primary idle shutdown#242
bors[bot] merged 5 commits into
mainfrom
primary-idle-shutdown

Conversation

@MarinPostma

Copy link
Copy Markdown
Contributor

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.

@haaawk haaawk left a comment

Copy link
Copy Markdown
Contributor

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

haaawk commented Feb 22, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

bors merge

@bors

bors Bot commented Feb 22, 2023

Copy link
Copy Markdown
Contributor

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