feat: configure graceful shutdown window

This commit is contained in:
2026-09-20 20:07:32 +08:00
parent c3e9610258
commit a557ba5af0
11 changed files with 32 additions and 13 deletions

View File

@@ -10,6 +10,8 @@ ORBIT_SCHEDULE_TICK_INTERVAL=1s
ORBIT_RECOVERY_TICK_INTERVAL=2s
# 每个后台批次最多处理的持久化候选,范围1–100。
ORBIT_RUNTIME_BATCH_LIMIT=100
# 收到 SIGTERM 后的排空与优雅关闭窗口,范围1s–5m,默认10s。
ORBIT_SHUTDOWN_TIMEOUT=10s
# Empty disables metrics. To enable a separate private listener, use e.g.
# ORBIT_METRICS_ADDR=127.0.0.1:9090. Never expose it on the public API ingress.
ORBIT_METRICS_ADDR=