Disk Usage Optimization
Customize the configuration settings to lower the disk requirements for your validator node. Blockchain database tends to grow over time, depending e.g. on block speed and transaction amount. For Paxeer Network, we are talking about close to 100GB of disk usage in first two weeks. There are few configurations that can be done to reduce the required disk usage quite significantly. Some of these changes take full effect only when you do the configuration and start syncing from start with them in use.Indexing
If you do not need to query transactions from the specific node, you can disable indexing. Onconfig.toml set
data/tx_index.db/.
State-sync snapshots
I believe this was disabled by default on Paxeer Network, but listing it in any case here. Onapp.toml set
Configure pruning
By default every 500th state, and the last 100 states are kept. This consumes a lot of disk space on long run, and can be optimized with following custom configuration:pruning-keep-recent = "0" might sound tempting, but this
will risk database corruption if the hyperpaxd is killed for any reason.
Thus, it is recommended to keep the few latest states.
Logging
By default the logging level is set toinfo, and this produces a lot of
logs. This log level might be good when starting up to see that the
node starts syncing properly. However, after you see the syncing is
going smoothly, you can lower the log level to warn (or error). On
config.toml set the following