test(go): record 10k gateway connection baseline

This commit is contained in:
lingniu
2026-07-03 18:09:53 +08:00
parent 291bffa340
commit 65232812a1
3 changed files with 54 additions and 6 deletions

View File

@@ -367,6 +367,18 @@ net.ipv4.tcp_tw_reuse = 1
- Gateway 重启后持续接收 GB32960、JT808、Yutong MQTT 帧。
- 重启完成后窗口未发现 gateway/realtime-api 持续 error/fatal 日志。
### 10W 阶段压测进展
2026-07-03 已完成 ECS 本机 JT808 hold-only 阶段压测,不发送业务帧:
| 阶段 | 结果 |
| --- | --- |
| 100 连接 / 60s | opened `100`failed `0`frames `0`write_errors `0` |
| 1,000 连接 / 60s | opened `1000`failed `0`frames `0`write_errors `0` |
| 10,000 连接 / 120s | opened `10000`failed `0`frames `0`write_errors `0` |
1W 阶段峰值约 `10240` JT808 active connectionsgateway FD 约 `10256`NATS ack pending 为 `0`,压测后连接回落到生产基线约 `240`readyz 全部 OK。
## 下次恢复上下文时先做
1. 读本文件。