Skip to Content
🚀 KalamDB v0.3.0-alpha2 is out — Learn more
Getting StartedConfiguration

Configuration

KalamDB can be configured via a config.toml file or environment variables.

Configuration File

Place a config.toml in the working directory or specify its path:

kalamdb-server --config /path/to/config.toml

Key Settings

[server] host = "0.0.0.0" port = 8080 [storage] data_dir = "./data" flush_policy = "rows:1000,interval:60" [auth] jwt_secret = "your-secret-key" [cluster] node_id = 1 peers = ["node2:8081", "node3:8082"]

Environment Variables

All configuration options can be set via environment variables with the KALAMDB_ prefix:

Environment VariableDescriptionDefault
KALAMDB_HOSTServer bind address0.0.0.0
KALAMDB_PORTServer port8080
KALAMDB_DATA_DIRData directory path./data
KALAMDB_JWT_SECRETJWT signing secret(required)
KALAMDB_LOG_LEVELLog verbosityinfo
Last updated on