mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-19 16:17:56 +00:00
Merge pull request #2872 from wucm667/fix/scheduler-sticky-health-escape
fix(scheduler): session_hash sticky 引入健康度逃逸,慢账号不再独占用户会话
This commit is contained in:
@@ -320,6 +320,14 @@ gateway:
|
||||
queue: 0.7
|
||||
error_rate: 0.8
|
||||
ttft: 0.5
|
||||
# OpenAI 高级调度器补充配置
|
||||
openai_scheduler:
|
||||
# 是否允许 session_hash sticky 在账号健康度恶化时临时逃逸;false 可一键回退旧行为
|
||||
sticky_escape_enabled: true
|
||||
# TTFT EWMA 超过该阈值(毫秒)时跳过 sticky,默认 15s,避免轻微抖动就逃逸
|
||||
sticky_escape_ttft_ms: 15000
|
||||
# 错误率 EWMA 超过该阈值时跳过 sticky,默认 0.5,仅在明显降级时触发
|
||||
sticky_escape_error_rate: 0.5
|
||||
# OpenAI HTTP upstream protocol strategy.
|
||||
# OpenAI HTTP 上游协议策略(默认 HTTP/2;代理明确不兼容时可临时回退 HTTP/1.1)。
|
||||
openai_http2:
|
||||
|
||||
Reference in New Issue
Block a user