Skip to content

fix(dev2/c0mpute-gateway): startup grace in the watchdog, no restart loop - #289

Merged
ralyodio merged 1 commit into
masterfrom
fix/gateway-watchdog-startup-grace
Nov 30, 2026
Merged

ralyodio merged 1 commit into
masterfrom
fix/gateway-watchdog-startup-grace

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

The c0mpute worker 0.3.136 opens :7777 only after its apps are up (3.5 min on dev2 today). The watchdog restarted it after 12 s of failed /healthz, so from 20:13 to 20:29 UTC it looped every 2 min and every Moshpit name served by c0mpute was down.

This leaves a worker alone for C0MPUTE_GATEWAY_GRACE (480 s) after it became active. Already installed on dev2 (backup .bak-20261130-grace); bash -n clean; the installed copy matched master before the change. Recovery today: stopped the timer, the worker opened :7777 at 20:29:07 (3 m 37 s after start), timer re-enabled with this version.

Open for the c0mpute repo: the gateway listener should not wait for apps to promote.

🤖 Generated with Claude Code

…loop

Since c0mpute 0.3.136 the worker brings its apps up before it opens :7777;
on 2026-11-30 that took 3.5 min. The watchdog restarted any worker whose
/healthz failed for 12 s, so from 20:13 to 20:29 UTC it restarted the
worker every 2 min and :7777 never came up: every Moshpit name on c0mpute
(my.ip, mums.flower, dbml.db, autoinfluencer) answered 502/503.

Now a worker that became active less than C0MPUTE_GATEWAY_GRACE (480 s)
ago is left to finish starting. Installed on dev2 (backup
/usr/local/sbin/c0mpute-gateway-watchdog.bak-20261130-grace).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

0 finding(s) in the 1 file(s) this pull request changes.

Nothing in the files this pull request changes.

42 pre-existing finding(s) elsewhere in the repository — **HIGH**: 15 | **MEDIUM**: 13 | **LOW**: 14

Not introduced by this pull request.

Severity Rule Location
HIGH py-ssrf-outbound-request dev2/dev2-site:152
HIGH py-ssrf-outbound-request dev2/dev2-site:1103
HIGH py-ssrf-outbound-request dev2/dev2-site:1916
HIGH sh-remote-script-execution root-ubuntu.sh:3262
HIGH sh-remote-script-execution root-ubuntu.sh:3263
HIGH sh-remote-script-execution root-ubuntu.sh:5176
HIGH sh-remote-script-execution root-ubuntu.sh:5180
HIGH sh-remote-script-execution root-w3bs-os.sh:3639
HIGH sh-remote-script-execution root-w3bs-os.sh:3640
HIGH sh-remote-script-execution root-w3bs-os.sh:5569
HIGH sh-remote-script-execution root-w3bs-os.sh:5579
HIGH sh-remote-script-execution root-w3bs-os.sh:5586
HIGH sh-remote-script-execution root-w3bs-os.sh:5602
HIGH sh-remote-script-execution root-w3bs-os.sh:5607
HIGH sh-plaintext-download root-w3bs-os.sh:6289
MEDIUM sql-template-interpolation dev2/dev2-site:1347
MEDIUM sql-template-interpolation dev2/dev2-site:1424
MEDIUM gha-ssh-key-secret dev2/templates/deploy-dev2.yml:40
MEDIUM sh-remote-script-execution root-ubuntu.sh:5384
MEDIUM redos-nested-quantifier src/domain-free.ts:56

…and 22 more; the full set is in the SARIF artifact.

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit 089e689 into master Nov 30, 2026
2 checks passed
@ralyodio
ralyodio deleted the fix/gateway-watchdog-startup-grace branch November 30, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant