Files
orbit/.env.example

24 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Example only. Load environment variables explicitly; binaries do not read .env.
ORBIT_HTTP_ADDR=127.0.0.1:8080
# Set a real DSN through your secret manager. No credentials are committed.
ORBIT_MYSQL_DSN=
ORBIT_DB_MAX_OPEN=20
ORBIT_DB_MAX_IDLE=5
# 后台控制循环的有界调度间隔;默认 workflow/schedule=1s,recovery=2s。
ORBIT_WORKFLOW_TICK_INTERVAL=1s
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
# 单节点 Worker/Event WebSocket 连接上限,范围1–4096;连接数仍受数据库和业务容量约束。
ORBIT_WORKER_CONNECTION_LIMIT=128
ORBIT_EVENT_CONNECTION_LIMIT=128
# 每个 WebSocket Hub 的数据库领取并发和有界内存排队,范围分别为1–256、1–65536。
ORBIT_DISPATCH_WORKERS=4
ORBIT_DISPATCH_CAPACITY=128
# 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=