Page MenuHomePhabricator

Clean up a few more daemon behaviors
ClosedPublic

Authored by epriestley on Mar 24 2017, 8:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 28 2024, 2:02 AM
Unknown Object (File)
Jan 22 2024, 12:11 AM
Unknown Object (File)
Jan 16 2024, 1:36 PM
Unknown Object (File)
Dec 27 2023, 10:21 AM
Unknown Object (File)
Dec 21 2023, 5:09 PM
Unknown Object (File)
Dec 17 2023, 2:02 AM
Unknown Object (File)
Nov 30 2023, 3:26 AM
Unknown Object (File)
Nov 25 2023, 8:28 AM
Subscribers
None

Details

Summary

Ref T12298.

  • If all daemons in all pools are hibernating already, we may exit immediately without sending EXIT events and fail to update the web UI.
  • A max() should be min() ("sleep for at most 180 seconds", not "sleep for at least 180 seconds").
  • If there are no daemons in a pool (unlikely/theoretical), we might not set the shutdown flag on the pool correctly.
  • An autoscale message may actually mean that a pool is exiting.
Test Plan
  • Ran bin/phd debug task, waited for daemon to hibernate, killed it, saw it vanish from daemon console.
  • Saw it hibernate for 60s, not 180s.
  • Uh, killed a pool real fast and nothing broke? This one is hard/impossible to test.
  • Read the newer autoscale message.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable