Reload the dmq-node topology on SIGHUP

Ouverte
#90 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
48/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
haskell
Domaine
backend, networking

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Haskell
Étoiles
2
Forks
6
Merge moyen
9 j 10 h
PR mergées (30 j)
4

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de IntersectMBO/dmq-node

Toutes les issues de IntersectMBO/dmq-node

Issues similaires

Plus d'issues Haskell

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.