test(go): record 100k gateway connection baseline

This commit is contained in:
lingniu
2026-07-03 18:24:07 +08:00
parent 65232812a1
commit f8fbeb8936
3 changed files with 13 additions and 2 deletions

View File

@@ -376,9 +376,15 @@ net.ipv4.tcp_tw_reuse = 1
| 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` |
| 50,000 连接 / 180s | opened `50000`failed `0`frames `0`write_errors `0` |
| 100,000 总连接 / 180s | JT808 opened `50000`、GB32960 opened `50000`failed `0`frames `0`write_errors `0` |
1W 阶段峰值约 `10240` JT808 active connectionsgateway FD 约 `10256`NATS ack pending 为 `0`,压测后连接回落到生产基线约 `240`readyz 全部 OK。
5W 阶段峰值约 `50238` JT808 active connectionsgateway FD 约 `50254`available memory 约 `5590 MB`。NATS ack pending 中间短时到 `29``18:16:49 CST` 回到 `0`history/stat/realtime Kafka lag 总和均为 `0`。压测后 JT808 active 回落到生产基线约 `238-240`readyz 全部 OK。
10W 总连接阶段使用双端口 loopbackJT808 `50000` + GB32960 `50000`,均 `-send=false`。峰值约 `100238` active connectionsgateway FD 约 `100252`available memory 约 `4511 MB`。NATS ack pending 中间短时到 `10``18:23:02 CST` 回到 `0`history/stat/realtime Kafka lag 总和均为 `0`。压测后 JT808 回落到约 `236`GB32960 回落到约 `2`readyz 全部 OK。
## 下次恢复上下文时先做
1. 读本文件。