-
Notifications
You must be signed in to change notification settings - Fork 0
hyp restart_en.md
maoxiaoyue edited this page May 14, 2026
·
1 revision
Perform a zero-downtime hot restart. Unix only.
hyp restart
1. Send SIGUSR2 signal
2. Fork new process (pass listener FD)
3. New process starts accepting connections
4. Old process stops accepting new connections
5. Old process waits for in-flight requests (30s timeout)
6. Old process exits
No connections are dropped — old and new processes briefly overlap.
- Not supported on Windows — no SIGUSR2 signal
- hyp run — Start application
- hyp health — Verify health after restart
設計文件
套件
- config — 設定
- context — 請求上下文
- router — 路由器
- server — 伺服器
- middleware — 中介層
- websocket — WebSocket
- hidb — 資料庫 ORM
- hidb/cassandra — Cassandra
- logger — 日誌
- json — JSON 處理
- grpc — gRPC
AI 協作工具鏈
- schema — Schema-first 路由
- manifest — 專案 Manifest
- contract — Contract Testing
- errors — Typed Error Catalog
- migrate — Migration Diff
- scaffold — 智慧 Scaffold
- airules — AI Rules
CLI 命令
- hyp 總覽
- hyp new
- hyp api
- hyp run
- hyp restart
- hyp generate
- hyp migrate
- hyp context
- hyp ai-rules
- hyp chkcomment
- hyp impact
- hyp docker
- hyp health
- hyp version
- hyp difflog
Design Docs
Packages
- config — Configuration
- context — Request Context
- router — Router
- server — Server
- middleware — Middleware
- websocket — WebSocket
- hidb — Database ORM
- hidb/cassandra - Cassandra 5.0
- logger — Logger
- json — JSON
- grpc — gRPC
AI Collaboration Toolchain
- schema — Schema-first Routing
- manifest — Project Manifest
- contract — Contract Testing
- errors — Typed Error Catalog
- migrate — Migration Diff
- scaffold — Smart Scaffold
- airules — AI Rules
CLI Commands