Skip to content

feat: support zero-downtime upgrades across process generations - #38

Closed
taoky wants to merge 3 commits into
masterfrom
restart-zero-downtime
Closed

feat: support zero-downtime upgrades across process generations#38
taoky wants to merge 3 commits into
masterfrom
restart-zero-downtime

Conversation

@taoky

@taoky taoky commented Sep 9, 2026

Copy link
Copy Markdown
Member

Inherit listeners while older generations drain existing sessions. Coordinate admission and FIFO queues through SQLite, and aggregate connection status, metrics, and log rotation across generations.

Add configurable drain deadlines, systemd MAINPID handoff, and package upgrade integration. Cover multi-generation upgrades, failure recovery, and real rsync transfers with process tests.

Assisted-by: OpenAI Codex (GPT-6)

Inherit listeners while older generations drain existing sessions. Coordinate admission and FIFO queues through SQLite, and aggregate connection status, metrics, and log rotation across generations.

Add configurable drain deadlines, systemd MAINPID handoff, and package upgrade integration. Cover multi-generation upgrades, failure recovery, and real rsync transfers with process tests.

Assisted-by: OpenAI Codex (GPT-6)
Include worker PIDs, operation context, and subprocess output when concurrent admission tests fail.

Assisted-by: OpenAI Codex (GPT-6)
Replace SQLite with in-memory admission state and Unix socket IPC. Keep the supervisor PID and listeners stable while workers upgrade and drain, and reclaim capacity after worker exit.

Cover supervisor failure, worker restart, and graceful shutdown; update systemd integration and migration documentation.

Assisted-by: OpenAI Codex (GPT-6)
@taoky

taoky commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

Not worth it, closing.

@taoky taoky closed this Sep 10, 2026
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