`rate_limit_nic_packets_total` keeps the old count after a NIC meter is created again
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 69/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- backend, observability
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Rust
- スター
- 21
- フォーク
- 9
- 平均マージ
- 2日 8時間
- マージ済み PR(30日)
- 99
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
githedgehog/dataplane のほかの issue
-
area/dpdk bug
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
githedgehog/dataplane#2047 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
ci: run NIC offload hardware qualification in CI対応中かも @daniel-noland が 4 日前に担当しました。 オープン
githedgehog/dataplane#2034 · コメント 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
githedgehog/dataplane#2023 ·
メンテナーはふだん 1 日以内に返信
-
Support SYN cookies対応中かも @qmonnet が 14 日前に担当しました。 オープン
githedgehog/dataplane#1981 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
dataplane v0.30.0: gateway does not recover after a dataplane pod restart, the control-plane taps lose their IPv4 addresses対応中かも @daniel-noland が 14 日前に担当しました。 オープンbug
githedgehog/dataplane#1977 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
githedgehog/dataplane の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug i18n priority: medium ui
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
storytold/craft-anything#983 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pbakaus/impeccable#1328 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Dinnerbone/Rascal#91 · リアクション 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
higress-group/HiRoute#405 ·
メンテナーはふだん 1 日以内に返信