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
F15412102: D17407.id41859.diff
Wed, Mar 19, 11:18 AM
F15412050: D17407.id41859.diff
Wed, Mar 19, 11:02 AM
F15412026: D17407.id41859.diff
Wed, Mar 19, 10:55 AM
F15411931: D17407.id41859.diff
Wed, Mar 19, 10:24 AM
F15411892: D17407.id41859.diff
Wed, Mar 19, 10:12 AM
F15411805: D17407.id41859.diff
Wed, Mar 19, 9:51 AM
F15406893: D17407.id41859.diff
Tue, Mar 18, 2:33 PM
F15403583: D17407.id41862.diff
Tue, Mar 18, 3:59 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.