Reload the dmq-node topology on SIGHUP

未關閉
#90 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
haskell

研究方向

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 內容生成。

描述

enhancement peer-selection

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

  1. 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.
  2. Introduce malformed JSON and send SIGHUP again. Verify that the node reports the error and continues using the previous values.
  3. 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

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

IntersectMBO/dmq-node 的其他 Issue

查看 IntersectMBO/dmq-node 的全部 Issue

相似的 Issue

更多 Haskell Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。