Skip to content

supervisor: skip the 15 s SIGTERM grace when both epochs are silent after the watchdog fires (SIGTERM cannot land on a blocked main thread), and export a wedge signal when the child is silent >10 s after 'starting workers' #1058

Closed

Description

@bpalermo

From #1050: when both Envoy main threads are blocked, SIGTERM is never handled (signals run on the main dispatcher), so the supervisor's drain deadline elapsed, killing envoy epoch came 15 s after the watchdog fired — 15 s of dead time on top of the 30 s watchdog. Two supervisor improvements (agent/internal/proxy/hotrestart/):

  1. When the liveness watchdog fires and the admin is unresponsive for both epochs, SIGKILL immediately instead of SIGTERM + 15 s grace; log the reason.
  2. Export a wedge signal: the supervisor knows the child's fork time and can poll the child's /server_info (or /ready) — if it has not answered within 10 s of the child being expected to serve, log hot-restart child silent with epoch and seconds, and count it (aether_supervisor_child_silent_total). This is soak gate (c) in e2e/soak/README.md (fix(proxy): pass --skip-hot-restart-parent-stats so the hot-restart child never blocks on the parent's main thread (#1050); hotrestart-wedge harness + soak gates #1056) as a metric instead of a log grep.

Also: on talos kubectl showed restartCount 0 on the affected pod after the watchdog exit, while kind shows 1 — confirm what the container did (terminating for container restart path in supervisor.go:388).

Related: #1050, #991, #1056.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions