feat(launcher): 弹性 agent 池 — 按需扩缩取代固定预起
agent_autoscale_loop(ENABLE_AGENT_AUTOSCALING):初始只起 AGENT_LAUNCH_MIN_POOL 个, 按每个 run 的 PENDING 任务积压超过空闲 agent 时 top-up,上限 MAX_POOL/per-user cap。 plan_launch_specs 加 count_override/id_start 支持非碰撞增补。trivial run 用少量 agent, 重 run 自动扩展。fail-soft,backend=none 时 no-op。 manifest:MIN/POOL 16→2 + ENABLE_AGENT_AUTOSCALING=1(初始小、按需长)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
98fb0d2bdb
commit
74f5ce2f97
@@ -91,11 +91,14 @@ spec:
|
||||
- name: JINA_API_KEY
|
||||
valueFrom:
|
||||
secretKeyRef: { name: swarm-jina-key, key: JINA_API_KEY }
|
||||
# --- agent 池窗口 ---
|
||||
# --- agent 池窗口(弹性)---
|
||||
# 初始只起 2 个;autoscale loop 按 PENDING 积压按需扩到 MAX/per-user 上限。
|
||||
- name: ENABLE_AGENT_AUTOSCALING
|
||||
value: "1"
|
||||
- name: AGENT_LAUNCH_MIN_POOL
|
||||
value: "16"
|
||||
value: "2"
|
||||
- name: AGENT_LAUNCH_POOL_SIZE
|
||||
value: "16"
|
||||
value: "2"
|
||||
- name: AGENT_LAUNCH_MAX_POOL
|
||||
value: "64"
|
||||
- name: MAX_AGENTS_PER_USER
|
||||
|
||||
Reference in New Issue
Block a user