Skip to content

Instantly share code, notes, and snippets.

@joeabbey
Last active March 4, 2022 14:03
Show Gist options
  • Save joeabbey/8fc8bf0117184f01692964eb01fbf21f to your computer and use it in GitHub Desktop.
Save joeabbey/8fc8bf0117184f01692964eb01fbf21f to your computer and use it in GitHub Desktop.
Optimal Osmosis Settings (for speed)

config.toml

log_level = "warn"
[tx_index]
indexer = "null"

Setting the log_level = "warn" isn't critical, but it does reduce disk usage

Setting indexer = "null" will prevent your validator from running transaction indexing which is disk intensive.

The above configuration does prevent your validator from being able to query transaction and events... but that's OK you can have another node provide that. The key here is to optimize the "validator" for validating.

app.toml

pruning = "everything"
[state-sync]
snapshot-interval = 0

Setting pruning = "everything" will save space, and require your validator to sift through less data.

Setting snapshot-interval = 0 will save space, and prevent your valdiator from taking snapshots... which is disk intensive.

The above configuration does put your validator at some risk of being difficult to recover in an outage. Again, we're optimizing for validator performance, so having a hot-backup ready or a well scripted recovery can mitigate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment