Repository navigation
Archive archiver logs in the data dir and log at info level - #32
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
There was a problem hiding this comment.
Note
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
🔵 Needs a closer look
This changes production archiver logging behavior and depends on runtime/environment specifics (algod v5.0.4 support for LogArchiveDir plus ensuring /algod/data is local, writable, and has sufficient space), so deployment validation is needed before proceeding.
No open issues 🎉
What changed in this PR
This pull request updates the archiver algod configuration (mainnet/testnet/betanet) to prevent log rotation from archiving large node.log files onto NFS-backed cold storage, which previously caused stalls and extended downtime.
Changes:
- Set
LogArchiveDirto/algod/dataso log rotation archives stay on local disk instead of defaulting toColdDataDir(NFS). - Reduce
BaseLoggerDebugLevelfrom4to3to slow log growth and reduce rotation frequency.
| File | Summary |
|---|---|
configuration/testnet/archiver/config.json |
Moves log archive output to /algod/data and lowers debug verbosity for the testnet archiver profile. |
configuration/mainnet/archiver/config.json |
Moves log archive output to /algod/data and lowers debug verbosity for the mainnet archiver profile. |
configuration/betanet/archiver/config.json |
Moves log archive output to /algod/data and lowers debug verbosity for the betanet archiver profile. |
Review effort: Balanced
LogArchiveDir defaults to ColdDataDir, so log rotation copies a full LogSizeLimit-sized file to cold storage, which can be slow when cold storage is on network storage. Archive into the data dir instead, and use info (3) instead of debug (4) logging. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28d29d9 to
d44cf94
Compare
Change (archiver profile on mainnet, testnet and betanet)
LogArchiveDir: /algod/data:LogArchiveDirdefaults toColdDataDir, so rotation copies the full log to cold storage. That can be slow when cold storage is on network storage. Archiving into the data dir makes rotation a local rename.BaseLoggerDebugLevel: 3(was 4): info level instead of debug, so the log rotates far less often.🤖 Generated with Claude Code