Reload the dmq-node topology on SIGHUP
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
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.
- Vorherrschende Sprache
- Haskell
- Sterne
- 2
- Forks
- 6
- Ø Merge
- 9 T. 10 Std.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus IntersectMBO/dmq-node
-
tracing
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
IntersectMBO/dmq-node#91 ·
-
big-ledger-peers bug peer-selection
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
IntersectMBO/dmq-node#89 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 46/100
IntersectMBO/dmq-node#87 ·
-
Add tracersEvtl. wieder frei @coot hat das vor 151 Tagen übernommen, und es ist kein Pull Request offen. Offen
IntersectMBO/dmq-node#59 · 1 zugewiesene Person ·
-
documentation
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
IntersectMBO/dmq-node#26 · 1 Kommentar ·
Alle Issues in IntersectMBO/dmq-node
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
haskell/bytestring#730 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
seal-harness/seal-harness#399 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
fmidue/codeworld-tasks#124 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
reflex-frp/reflex#563 ·