Homec4science

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

Authored by epriestley <git@epriestley.com> on Feb 24 2017, 18:04.

Description

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

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.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12298

Differential Revision: https://secure.phabricator.com/D17407

Details

Committed
epriestley <git@epriestley.com>Feb 24 2017, 19:50
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUaf214c017801: Add limit (maximum simultaneous commands) and throttle (delay between commands)…
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU0625e4d28b16: Allow daemons to "hibernate", reducing pool size to 0 for a time (authored by epriestley <git@epriestley.com>).Feb 24 2017, 19:50