Expand description
Archiver of signed XRPL validations.
Subscribes to the nodeβs validation stream through its local admin port and writes the originals (raw signed validations) into archive segments. It exposes nothing to the outside.
Resilience:
- the journal is flushed to disk once a second, so a crash loses at most that much;
- on disconnect it reconnects with a growing pause of up to 5 s: the node is local, an attempt costs nothing, and every extra second of waiting is validations that cannot be recovered. After a successful connection the pause starts from one second again;
- if the connection is up but no validations arrive for longer than
--stall-secs, that also counts as a disconnect: the node may have hung while leaving the socket open; - every disconnect and recovery is written to
gaps.jsonlas one line, with the last and first ledger around it, so gaps are visible instead of guessed. Failed reconnect attempts only go to the process log. Shutdown is logged too, so downtime during a restart can be explained from the journal.
Metrics are served on --metrics-addr, see the metrics module.
Validator manifests: see the manifests module.
ModulesΒ§
- manifests π
- Validator manifests: the link between a signing key and a master key.
- metrics π
- Archiver metrics in Prometheus format, for any Prometheus-compatible scraper.
- nunl π
- Negative UNL per flag ledger.
StructsΒ§
- Args π
- Parsed π
- A validation from the stream: the archive record and the signerβs key, for counting validators. The key may be missing; the record is just as good.
- Side π
- Supporting evidence the archiver requests from the node over the same connection: validator manifests and the Negative UNL.
- Stats π
EnumsΒ§
- Session
End π - How a single connection session ended.
ConstantsΒ§
- MAX_
BACKOFF π
FunctionsΒ§
- log_gap π
- lost π
- main π
- missing_
count π - parse_
validation_ πvalue - run π
- session π
- shutdown_
signal π - start_
metrics π - Initial metrics state, from what is already on disk, plus the server.