ops: record 100k hardening ecs rollout
This commit is contained in:
@@ -52,6 +52,7 @@ Go 服务使用 systemd 裸机部署,不使用 Docker。
|
||||
最近 release:
|
||||
|
||||
```text
|
||||
/opt/lingniu-go-native/releases/100k-hardening-20260703175730
|
||||
/opt/lingniu-go-native/releases/parsed-fields-once-20260703163821
|
||||
```
|
||||
|
||||
@@ -332,6 +333,40 @@ journalctl -u lingniu-go-gateway.service --since "2 minutes ago" --no-pager | gr
|
||||
'
|
||||
```
|
||||
|
||||
## 2026-07-03 10W 接入优化部署记录
|
||||
|
||||
Release:
|
||||
|
||||
```text
|
||||
/opt/lingniu-go-native/releases/100k-hardening-20260703175730
|
||||
```
|
||||
|
||||
包含:
|
||||
|
||||
- Gateway 默认 `TCP_MAX_CONNECTIONS=120000`。
|
||||
- 新增 `vehicle_gateway_connection_rejections_total`。
|
||||
- 新增 `/opt/lingniu-go-native/current/load-sim` 运维压测工具。
|
||||
- Redis-first realtime projector 增加 MySQL async queue dropped 回归测试。
|
||||
|
||||
ECS 已落地内核参数:
|
||||
|
||||
```text
|
||||
net.core.somaxconn = 65535
|
||||
net.ipv4.tcp_max_syn_backlog = 65535
|
||||
net.ipv4.ip_local_port_range = 10000 65000
|
||||
net.ipv4.tcp_tw_reuse = 1
|
||||
```
|
||||
|
||||
注意:远端 `/etc/sysctl.conf` 原本有 `net.ipv4.tcp_max_syn_backlog = 1024`,已改为 `65535`,同时保留 `/etc/sysctl.d/zz-lingniu-vehicle-ingest.conf`。
|
||||
|
||||
部署后验证:
|
||||
|
||||
- `current` 指向 `100k-hardening-20260703175730`。
|
||||
- `20211/20212/20213/20214/20200` readyz 均为 ok。
|
||||
- `808`、`32960`、`20200`、`20211-20214` 监听 backlog 均显示 `65535`。
|
||||
- Gateway 重启后持续接收 GB32960、JT808、Yutong MQTT 帧。
|
||||
- 重启完成后窗口未发现 gateway/realtime-api 持续 error/fatal 日志。
|
||||
|
||||
## 下次恢复上下文时先做
|
||||
|
||||
1. 读本文件。
|
||||
|
||||
Reference in New Issue
Block a user