signal: exit code for an unavailable aux component (AuxSigner / tapd)

Aperta
#11,477 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
22/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
go
Ambito
backend

Direzione di ricerca

Start with signal/exit_codes.go for the existing exit-code constants, then read the health-check and shutdown path that already uses RequestShutdownWithCode and the healthcheck.* config, as referenced in #11304. The open questions are design decisions: whether this becomes a new health check or is reported by the aux provider, what counts as unavailable, and how tapd takes part. Settle those with the maintainers before writing code. Done means a distinct exit code is returned when a required aux component goes down.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement monitoring

Background

#11304 makes lnd exit with a distinct code for each health check that gives up (chain backend, disk space, TLS cert, tor, remote signer, leader status). Review discussion there (thread) raised one more case worth covering as a follow-up.

Problem

When lnd runs with aux components supplied by an external daemon (for example tapd providing AuxSigner, AuxLeafStore, AuxFundingController), that daemon can shut down on its own error. lnd then keeps running but cannot function properly, and nothing in the exit status or shutdown path identifies the aux component as the cause. Operators have hit this with tapd and had to work it out from logs.

Proposal

Add a dedicated exit code (for example ExitCodeAuxComponent in signal/exit_codes.go) and a path that reports it when a required aux component becomes unavailable.

Open questions, raised in the PR thread:

  • Should this be a new lnd health check (so it picks up the existing healthcheck.* config knobs and RequestShutdownWithCode plumbing), or should the aux provider detect and report the condition itself?
  • What does "unavailable" mean for an aux component: a failed liveness probe, or an error returned from an aux call?
  • How should tapd participate, since it owns the components and the integrated-mode lifecycle?

cc @ViktorT-11 @GeorgeTsagk

Lingua principale
Go
Stelle
8.2k
Fork
2.3k
Merge medio
1g 11h
PR unite (30g)
103

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lightningnetwork/lnd

Tutte le issue di lightningnetwork/lnd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.