Page MenuHomePhabricator

Allow daemons to "hibernate", reducing pool size to 0 for a time
ClosedPublic

Authored by epriestley on Feb 24 2017, 5:06 PM.
Tags
None
Referenced Files
F14021804: D17407.diff
Wed, Nov 6, 12:10 PM
F14004706: D17407.id.diff
Sun, Oct 27, 1:27 AM
F14004675: D17407.diff
Sun, Oct 27, 12:53 AM
F14001282: D17407.diff
Fri, Oct 25, 5:59 AM
Unknown Object (File)
Sep 5 2024, 11:06 PM
Unknown Object (File)
Sep 5 2024, 11:06 PM
Unknown Object (File)
Sep 5 2024, 11:06 PM
Unknown Object (File)
Sep 2 2024, 5:02 AM
Subscribers
None

Details

Summary

Ref T12298. This change is the libphutil changes to support hibernation. The next change makes the Trigger daemon hibernate.

We already support having daemons exit, waiting a little while, then restarting them. We do this when configuration changes, by sending the daemons a signal. They exit, then we restart them a few seconds later.

This allows daemons to send a message to the overseer saying "when I exit, wait X seconds to restart me". Then they can exit and hibernate for a while before the overseer restarts them normally.

Test Plan

See next change.

Diff Detail

Repository
rPHU libphutil
Branch
daemon1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 15756
Build 20826: Run Core Tests
Build 20825: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Feb 24 2017, 5:35 PM
This revision was automatically updated to reflect the committed changes.