fix: optimize Firo node config for memory-constrained VM#3302
Open
fix: optimize Firo node config for memory-constrained VM#3302
Conversation
Reduce memory footprint to prevent swap thrashing on 3.8GB VM running 5 blockchain containers: firo.conf: - dbcache: 512 → 256 MB (saves ~256 MB) - maxmempool: 300 → 100 MB (saves ~200 MB) - mempoolexpiry: 72 → 24 hours - maxorphantx: 100 → 10 (reduces cs_main lock hold time) - rpcworkqueue: 32 → 64 (more buffer before RPC rejection) - maxsendbuffer/maxreceivebuffer: reduced per-connection buffers docker-compose-firo.yml: - Add 2048M memory limit / 1024M reservation - Healthcheck: getblockcount instead of getblockchaininfo (lighter) - Healthcheck interval: 30s → 120s, timeout: 60s → 10s, retries: 10 → 3
davidleomay
approved these changes
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
firo.conf
dbcache: 512 → 256 MB (reduced UTXO cache)maxmempool: 300 → 100 MB (limit mempool memory)mempoolexpiry: 72 → 24 hours (faster cleanup)maxorphantx: 100 → 10 (reduce cs_main lock hold time during Spark tx validation)rpcworkqueue: 32 → 64 (more buffer before HTTP 500 rejection)docker-compose-firo.yml
getblockcountinstead ofgetblockchaininfo(lighter RPC call)Test plan