Reload the dmq-node topology on SIGHUP

Offen
#90 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
haskell
Bereich
backend, networking

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Haskell
Sterne
2
Forks
6
Ø Merge
9 T. 10 Std.
Gemergte PRs (30 T.)
4

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus IntersectMBO/dmq-node

Alle Issues in IntersectMBO/dmq-node

Ähnliche Issues

Weitere Issues zu Haskell

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.