Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tiproxy: add performance report of traffic capture #18974

Merged
merged 9 commits into from
Nov 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Aolin <aolinz@outlook.com>
  • Loading branch information
djshow832 and Oreoxmt authored Nov 4, 2024
commit c847c3a5f14afc31b38138405e38de8dce43e258
4 changes: 2 additions & 2 deletions tiproxy/tiproxy-performance-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ summary: TiProxy 的性能测试报告、与 HAProxy 的性能对比。
- 查询结果集的行数对 TiProxy 的 QPS 有显著影响,且影响程度与 HAProxy 相同
- TiProxy 的性能随 vCPU 的数量接近线性增长,因此增加 vCPU 的数量可以有效提高 QPS 上限
- 长连接的数量、短连接的创建频率对 TiProxy 的 QPS 影响很小
- TiProxy 的 CPU 使用率越高,捕获流量对 QPS 的影响越大。 TiProxy 的 CPU 使用率约 70% 时,开启流量捕获使平均 QPS 下降约 3%,同时最低 QPS 下降约 7%,后者是由压缩流量文件导致 QPS 周期性下降。
- TiProxy 的 CPU 使用率越高,开启捕获流量功能对 QPS 的影响越大。 TiProxy 的 CPU 使用率约为 70% 时,开启流量捕获会导致平均 QPS 下降约 3%,最低 QPS 下降约 7%,后者的下降是由压缩流量文件导致的 QPS 周期性下降。
djshow832 marked this conversation as resolved.
Show resolved Hide resolved

## 测试环境

Expand Down Expand Up @@ -318,7 +318,7 @@ sysbench oltp_point_select \

### 测试方案

该测试的目的是测试捕获流量对性能的影响。该测试使用 TiProxy v1.3.0 版本,在执行 `sysbench` 之前分别关闭和开启流量捕获,同时调整并发度,对比 QPS 和 TiProxy 的 CPU 使用率。由于周期性的压缩文件会引起 QPS 的波动,因此本测试除了对比平均 QPS,还对比最低 QPS。
该测试的目的是测试[捕获流量](/tiproxy/tiproxy-traffic-replay.md)对 TiProxy 性能的影响。该测试使用 TiProxy v1.3.0 版本,在执行 `sysbench` 之前分别关闭和开启流量捕获,同时调整并发度,以对比 QPS 和 TiProxy 的 CPU 使用率。由于周期性的压缩文件会引起 QPS 的波动,因此本测试除了对比平均 QPS,还对比最低 QPS。
djshow832 marked this conversation as resolved.
Show resolved Hide resolved

执行的测试命令:

Expand Down