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 ·