Reload the dmq-node topology on SIGHUP
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 48/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- haskell
- 領域
- backend, networking
研究方向
Start with the startup topology read in dmq-node/app/Main.hs (lines 164–167) and the diffusion configuration in dmq-node/src/DMQ/Configuration.hs (lines 411–438); compare the linked cardano-node SIGHUP handler and topology update. Verify reload updates all three settings together and keeps the last valid values after a malformed file, as described in the issue.
由索引模型根據 Issue 內容生成。
描述
Current behavior
dmq-node reads --topology-file at startup and initializes the local roots, public roots, and ledger peer policy used by diffusion. There is no SIGHUP handler to update those values, so operators have to restart the node to apply a topology edit. Startup topology read · Diffusion configuration
Expected behavior
On Unix, SIGHUP should reread the configured topology file. After a successful parse, update localRoots, publicRoots, and useLedgerAfterSlot in one STM transaction. If reading or parsing fails, trace the error and keep the last valid topology active. cardano-node already follows this pattern. SIGHUP handler · Topology update
Verification
- On a test instance, edit the local and public roots and change
useLedgerAfterSlot. Send SIGHUP and verify that the same process supplies all three new values to diffusion. - Introduce malformed JSON and send SIGHUP again. Verify that the node reports the error and continues using the previous values.
- Correct the file, send SIGHUP, and verify that the next reload succeeds.
The mutable useLedgerAfterSlot setting also matters for #89.
- 主要語言
- Haskell
- 星號
- 2
- 分支
- 6
- 平均合併
- 9 天 10 小時
- 30 天內合併 PR
- 4
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
IntersectMBO/dmq-node 的其他 Issue
-
tracing
難度 4/5 3-5 天 新手友好度 35/100
IntersectMBO/dmq-node#91 ·
-
big-ledger-peers bug peer-selection
難度 4/5 3-5 天 新手友好度 48/100
IntersectMBO/dmq-node#89 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 46/100
IntersectMBO/dmq-node#87 ·
-
Add tracers可能重新可做 @coot 於 151 天前認領,目前沒有進行中的 PR。 未關閉
IntersectMBO/dmq-node#59 · 已指派 1 人 ·
-
documentation
難度 3/5 1-2 天 新手友好度 25/100
IntersectMBO/dmq-node#26 · 1 則留言 ·
查看 IntersectMBO/dmq-node 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
haskell/bytestring#730 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 84/100
seal-harness/seal-harness#399 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 65/100
fmidue/codeworld-tasks#124 ·
-
難度 2/5 1-3 小時 新手友好度 62/100
reflex-frp/reflex#563 ·