Commit 7975cf3
monitoring/bpi-r4: split conntrack into 5-min cron + tune CronSlow
Walking /proc/net/nf_conntrack costs ~90s sys CPU at 30k+ entries due to
kernel locking. Including it in the 1-min metrics-push.sh stacked cron
runs (165s observed) and tripped BpiR4CronSlow.
Producer side (deployed on bpi-r4):
- new /usr/local/bin/conntrack-state-metrics.sh → job=bpi_r4_conntrack
- cron */5 via timed-run.sh wrapper
- state-breakdown + HW_OFFLOAD count removed from main metrics-push.sh
Alert side:
- BpiR4CronSlow now excludes script=conntrack-state-metrics
- BpiR4ConntrackCronSlow new (threshold 240s for the 5-min cron)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent e430df8 commit 7975cf3
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
463 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
464 | 467 | | |
465 | 468 | | |
466 | 469 | | |
| |||
470 | 473 | | |
471 | 474 | | |
472 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
473 | 490 | | |
474 | 491 | | |
475 | 492 | | |
| |||
0 commit comments