`rate_limit_nic_packets_total` keeps the old count after a NIC meter is created again
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 69/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- backend, observability
Direzione di ricerca
Start with nic-offload/src/mlx5/install.rs and stats/src/scrape.rs, where the issue identifies the NIC counter reset and the recorder retaining its maximum. Trace how meter recreation updates the counter and how scrape values are held, then check for tests covering counter resets. Done when the exported metric follows the restarted NIC count (or the NIC count continues across recreation) and the reported delta is correct.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
After a NIC meter is created again under the same name, rate_limit_nic_packets_total keeps exporting the old meter's count until the new count passes it. The NIC count restarts at 0 (report in nic-offload/src/mlx5/install.rs sets it with counter.absolute()), but the recorder keeps the larger value: *held = (*held).max(value) in stats/src/scrape.rs. Deltas read across the restart come out short by the old count.
Seen on v0.38.2 (fabricator v0.51.4) on env-5, ConnectX-7, DPDK driver:
- Create a gateway peering with a
rate-limitsannotation, send traffic through it, and readrate_limit_nic_packets_totalwithresult="conforming"on the gateway: 314,606. - Delete the peering, create it again with the same annotation, and read the metric before any traffic: still 314,606.
- Send 13,889,592 UDP packets. The dataplane log line
meter vpc-01--vpc-04/rl (bits) in the NICcounts from 0 and ends atpassed 2518699 packets, dropped 11370914 packets. The metric reads 2,518,699, so its delta from step 2 is 2,204,093.
curl -s 127.0.0.1:9442/metrics | grep '^rate_limit_nic_packets_total'
kubectl -n fab logs <gateway pod> -c dataplane | grep 'in the NIC: passed'
The metric should follow the NIC's count after the meter is created again, or the NIC's count should continue across it.
- Lingua principale
- Rust
- Stelle
- 21
- Fork
- 9
- Merge medio
- 2g 8h
- PR unite (30g)
- 99
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di githedgehog/dataplane
-
DPDK workers hold VPC counters until their next packetForse già presa @Fredi-raspall l’ha presa 2 giorni fa. Apertaarea/dpdk bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
githedgehog/dataplane#2047 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
ci: run NIC offload hardware qualification in CIForse già presa @daniel-noland l’ha presa 5 giorni fa. Aperta
githedgehog/dataplane#2034 · 1 commento · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
githedgehog/dataplane#2023 ·
I maintainer di solito rispondono entro 1 giorno
-
Support SYN cookiesForse già presa @qmonnet l’ha presa 14 giorni fa. Aperta
githedgehog/dataplane#1981 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
dataplane v0.30.0: gateway does not recover after a dataplane pod restart, the control-plane taps lose their IPv4 addressesForse già presa @daniel-noland l’ha presa 14 giorni fa. Apertabug
githedgehog/dataplane#1977 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di githedgehog/dataplane
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
bug order-flow studies ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
userFRM/egui-charts#2417 ·
I maintainer di solito rispondono entro 1 giorno
-
In a plain-text message, Font, Font Size, Font Color and Text Highlight Color stay liveForse già presa @ragelfundionctrumnar l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
UCS-Care-Group/mailcraft#862 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
smoltcp-rs/smoltcp#1243 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 4 giorni