BadgerDB
The knot server can be configured to use the embedded BadgerDB for its database. BadgerDB is production-ready and works well for single-server and multi-server deployments (data is synced between servers via gossip protocol). To enable BadgerDB, update the configuration file as shown below.
Configuration
To use BadgerDB, set badgerdb.enabled to true in the configuration file and specify the storage path:
knot.toml
[server.badgerdb]
enabled = true
path = "/badgerdb/"Configuration Parameters
-
enabled: Must be set totrueto enable the use of BadgerDB. -
path: The directory where BadgerDB files will be stored. This directory must be mounted to persistent storage to ensure configurations are preserved between restarts of the knot server.