Reload the dmq-node topology on SIGHUP

Abierto
#90 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
haskell

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Haskell
Estrellas
2
Forks
6
Merge medio
9 d 10 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de IntersectMBO/dmq-node

Todos los issues de IntersectMBO/dmq-node

Issues similares

Más issues de Haskell

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.