Archived
device: the stuck-exit watchdog does not fire during load
scheduler.stuck-exit (2.1.0, 60 s by default everywhere) turns the stall verdict into a process exit so a restart policy can act on a hung card. The verdict watches queue read-indices and the direct-IO counter -- and a cold load moves neither: a mapped tier faulting its tables through the page cache is not counted, a barrier-waiting rank parks its index, and "zero progress for 60 s" is then a description of a big model starting, not of a hang. Under a restart policy that misfire is a crash loop with a captive audience: the same load runs on every restart, and the exit was armed from process start. The watchdog now reads dev_engine_ready: set when an Engine::start() completed once, never unset, and the exit fires only after it. A hang during the very first bringup is what it always was -- dumps, the log line, /health 503; the supervisor's hammer hits a process that has not started serving, which is exactly the case the exemption keeps it off. The verdict's own log line says which of the two futures it has, per this file's rule that a report never states less than it will do. No fast-suite test reaches the backend watchdog thread (the exit path kills the process and the watch ticks in wall-clock seconds); the config parse stays pinned by fleet_config_test and the exemption is one flag read at the fatal's gate. Found by the 2.1.0 review pass (axis: hostile sockets / runtime; the load-phase scenario is the mapped-tier fault storm the release itself describes).
This commit is contained in:
1 parent
f4981154fc
commit
5c66eecc8e
4 files changed
+32
-6
No files matched your search
@@ -454,6 +454,13 @@ int64_t dev_stuck_ms();
|
||||
* reported hangs stood for hours, and a stall that clears does so within seconds. */
|
||||
extern std::atomic<int64_t> dev_stuck_exit_ms;
|
||||
|
||||
/* Whether at least one engine has finished bringup. The stuck-exit watchdog reads it: a stall
|
||||
* verdict standing DURING load is a slow load -- a cold start faulting a mapped tier from disk
|
||||
* advances none of the counters the verdict watches, and that is legitimate work, not a hang.
|
||||
* A watchdog that fires there turns one patient start into a supervisor's crash loop. Nothing
|
||||
* disarms: the phase the flag exempts is only the engine's first. */
|
||||
extern std::atomic<bool> dev_engine_ready;
|
||||
|
||||
/* Longest run of dispatches a played tape leaves unordered. Of any kTapeOverlapRun + 1
|
||||
* consecutive packets on a queue one carries the barrier bit, so a launched packet still proves
|
||||
* that everything more than that many packets earlier has completed. Argument slots and tape
|
||||
|
||||
Reference in new issue
Block a user