Re-add ASmap support (followup to #146 / #217)
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 28/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- docker
- 領域
- devops, infrastructure
調査の方向性
resources/images/bitcoin/addrman.patch と2つの Dockerfiles から始めて、無条件に適用されるパッチを理解し、その後 bitcoincore chart を調べて、-asmap の不足している plumbing と mounts を確認します。提案されている plugin アプローチを、pod.yaml の loadSnapshot.enabled パターンおよび network.yaml の annotations と比較します。完了とは、アーキテクチャについて合意し、実装前に条件付きパッチを分離すべきかどうかを決めることです。
索引モデルが issue の本文から書いたものです。
説明
Quick motivation: I'd like to experiment a bit with -asmap effectiveness and netgroup-bucketing on a realistic topology and warnet seems like the natural substrate, but -asmap= isn't currently reachable through the chart.
Picking back up the ASmap question that willcl-ark parked in #217 with "we can revisit if needed." With ASmap now embedded in Bitcoin Core v31.0 it's worth another look at warnet, and I'd appreciate input on the right architectural shape before any PR.
What's actually disabled today
resources/images/bitcoin/addrman.patch is applied unconditionally in both Dockerfiles. It extends the netgroup vector with the lower two IPv4 bytes, turning bucketing from /16 into /32. Because both the default /16 path and any ASmap path share GetGroup(), the patch silently disables both. So even leaving ASmap aside, scenarios that reason about peer diversity at the netgroup level aren't exercising the production codepath.
On top of that, the bitcoincore chart has no -asmap= plumbing and no mount slot for an asmap file.
Two plausible shapes
I'd rather decide direction before writing code:
A) postNetwork plugin that reads per-tank ASN annotations from network.yaml, builds a synthetic asmap from scheduled pod IPs, and exposes it as a ConfigMap. Tanks gate on it via an init-container. The same pattern already used for loadSnapshot.enabled in pod.yaml. Closest to m3dwards' #217 sketch, adapted to the current architecture.
B) Minimal -asmap= plumbing only in the chart, with users supplying their own asmap. Pod IPs stay unmapped (fall back to /16 bucketing for them), but it's a small, single-PR change that covers use cases where pod-IP-to-ASN mapping isn't the point.
Both share a prerequisite: making addrman.patch conditional via build-arg, since nothing downstream of GetGroup() matters until that's lifted.
What I'm asking
- Does A or B (or some other shape) match how warnet should evolve?
- Is the conditional
addrman.patchworth a separate small PR first? It independently unblocks any netgroup-aware testing, ASmap or not.
Happy to drop this if there's no appetite right now. Wanted to surface the design question before investing implementation time.
- 主要言語
- Python
- スター
- 153
- フォーク
- 87
- 平均マージ
- 5日 7時間
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bitcoin-dev-project/warnet のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
bitcoin-dev-project/warnet#821 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
bitcoin-dev-project/warnet#817 · コメント 2 件 · リアクション 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
bitcoin-dev-project/warnet#802 · コメント 5 件 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
bitcoin-dev-project/warnet#781 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
bitcoin-dev-project/warnet#763 ·
bitcoin-dev-project/warnet の issue をすべて見る
似ている issue
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
future-agi/future-agi#6392 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
memmapped_arange ignores the start value and drops the last point above the memmap threshold対応中かも @prathameshfuke が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
StingraySoftware/HENDRICS#213 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信