[质量] 性能压测 — Locust/k6 #31

Closed
opened 2026-05-05 01:01:49 +08:00 by admin · 0 comments
Owner

背景

系统没有性能基线,不知道能支撑多少并发用户。

需求

  1. 核心 API 压测:/agent-chat、/executions、/agents
  2. 找瓶颈:数据库连接池、Redis、Celery 并发
  3. 输出报告:QPS、P50/P95/P99 延迟、错误率
  4. 压测脚本可重复执行

涉及模块

  • backend/tests/perf/ — 压测脚本

优先级

低 — 当前用户量小,非瓶颈

## 背景 系统没有性能基线,不知道能支撑多少并发用户。 ## 需求 1. 核心 API 压测:/agent-chat、/executions、/agents 2. 找瓶颈:数据库连接池、Redis、Celery 并发 3. 输出报告:QPS、P50/P95/P99 延迟、错误率 4. 压测脚本可重复执行 ## 涉及模块 - backend/tests/perf/ — 压测脚本 ## 优先级 低 — 当前用户量小,非瓶颈
admin self-assigned this 2026-05-05 01:01:49 +08:00
admin closed this issue 2026-05-10 14:42:33 +08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/aiagent#31