Commit 436961b
committed
Fix too_many_pings during DPU SetPackage by coordinating keepalive settings
The DPU proxy client was sending keepalive pings every 10s, but the gRPC
server uses the default EnforcementPolicy with MinTime=5m. During long-running
SetPackage operations (sonic-installer can take minutes), this mismatch
causes the server to terminate the connection with GOAWAY/ENHANCE_YOUR_CALM
and debug data 'too_many_pings'.
Fix:
1. Increase proxy client keepalive interval from 10s to 30s and timeout
from 3s to 10s for better resilience during long operations.
2. Add explicit KeepaliveEnforcementPolicy to the gNMI server allowing
pings as frequent as every 20s, with a safety margin above the client's
30s interval.
Fixes: #619
Related: sonic-net/sonic-mgmt#23054
Signed-off-by: Dawei Huang <daweihuang@microsoft.com>1 parent 3da860e commit 436961b
2 files changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
181 | 186 | | |
182 | 187 | | |
183 | 188 | | |
184 | 189 | | |
185 | | - | |
186 | | - | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
530 | 541 | | |
531 | 542 | | |
532 | 543 | | |
| |||
0 commit comments