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
F13080515: D17407.diff
Wed, Apr 24, 8:08 AM
Unknown Object (File)
Sun, Apr 21, 3:39 PM
Unknown Object (File)
Fri, Apr 19, 6:17 PM
Unknown Object (File)
Wed, Apr 17, 2:28 PM
Unknown Object (File)
Thu, Apr 11, 6:55 AM
Unknown Object (File)
Tue, Apr 9, 6:05 PM
Unknown Object (File)
Wed, Apr 3, 1:45 AM
Unknown Object (File)
Feb 15 2024, 9:28 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.