ops: record 100k hardening ecs rollout

This commit is contained in:
lingniu
2026-07-03 17:59:44 +08:00
parent 79e591f864
commit c1fe1fbfb5
2 changed files with 42 additions and 5 deletions

View File

@@ -420,12 +420,12 @@ git commit -m "docs: design tdengine batch writer"
- Modify: `docs/ops/vehicle-ingest-runbook.md`
- Modify: `docs/ops/go-vehicle-ingest-memory.md`
- [ ] **Step 1: Apply sysctl changes on ECS**
- [x] **Step 1: Apply sysctl changes on ECS**
Run on ECS:
```bash
cat >/etc/sysctl.d/99-lingniu-vehicle-ingest.conf <<'EOF'
cat >/etc/sysctl.d/zz-lingniu-vehicle-ingest.conf <<'EOF'
net.core.somaxconn = 65535
net.ipv4.tcp_max_syn_backlog = 65535
net.ipv4.ip_local_port_range = 10000 65000
@@ -434,7 +434,7 @@ EOF
sysctl --system
```
- [ ] **Step 2: Verify sysctl**
- [x] **Step 2: Verify sysctl**
Run:
@@ -451,7 +451,7 @@ net.ipv4.ip_local_port_range = 10000 65000
net.ipv4.tcp_tw_reuse = 1
```
- [ ] **Step 3: Restart gateway**
- [x] **Step 3: Restart gateway**
Run:
@@ -461,10 +461,12 @@ curl -fsS http://127.0.0.1:20211/readyz
ss -ltnp | grep -E ':(808|32960|20211) '
```
- [ ] **Step 4: Document rollout**
- [x] **Step 4: Document rollout**
Add the applied sysctl values and timestamp to `docs/ops/go-vehicle-ingest-memory.md`.
Actual release: `/opt/lingniu-go-native/releases/100k-hardening-20260703175730`.
- [ ] **Step 5: Commit**
```bash