Improving Cardano Node Performance
By design, a Cardano Node instance operating as a block producer must test whether to prepare a block every slot—that is, every second. When the computer hosting the block producer is busy, then the block producer sometimes may miss testing whether to prepare a block. If the block producer misses testing whether to prepare a block in a slot when the stake pool is elected to produce a block, then the stake pool may miss the opportunity to produce the block.
In general, investigate potential configuration changes to reduce missed tests to prepare a block if the cardano.node.metrics.slotsMissed_int EKG metric reports that the block-producing node in your stake pool configuration misses more than approximately 75 slots per day.
Note | Configuration changes that you implement on a block-producing node to reduce the number of missed slots may also improve performance when implemented on a relay node. |
To reduce the number of missed slots on a block-producing node or improve the general performance of a relay node, consider implementing the following configuration changes:
- Increase the speed of the disk drive that the computer hosting the Cardano Node instance uses.
- To force the Cardano Node instance to use all processor cores available on the computer, configure runtime system options to include the
-Noption. For details, see the topic Configuring GHC Runtime System Options. - By default, Cardano Node stores on disk a ledger snapshot every 72 minutes. Increasing the amount of time between snapshots may improve the performance of Cardano Node. To customize the amount of time between snapshots, update the value of the key named
SnapshotIntervalin theconfig*.jsonfile that the Cardano Node instance uses to the desired duration of time between snapshots in seconds. For example, to take a snapshot every 24 hours, set the value to86400Note

Increasing the amount of time between snapshots may slightly increase the time required to start Cardano Node.
To implement new runtime system or node configuration options:
- Using a terminal window, type:sudo systemctl restart cardano-node.service