mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-09 06:42:57 +00:00
* feat: implement load_options. * refactor: build by ConfigOptions. * refactor: init_global_logging by LoggingOptions. * chore: make clippy happy. * refactor: use TopLevelOptions push top level options to subcommand. * test: test TopLevelOptions. * refactor: push Options in Box. * refactor: push Options in Box. * refactor: use let-else and Options.
21 lines
759 B
TOML
21 lines
759 B
TOML
# The bind address of metasrv, "127.0.0.1:3002" by default.
|
|
bind_addr = "127.0.0.1:3002"
|
|
# The communication server address for frontend and datanode to connect to metasrv, "127.0.0.1:3002" by default for localhost.
|
|
server_addr = "127.0.0.1:3002"
|
|
# Etcd server address, "127.0.0.1:2379" by default.
|
|
store_addr = "127.0.0.1:2379"
|
|
# Datanode lease in seconds, 15 seconds by default.
|
|
datanode_lease_secs = 15
|
|
# Datanode selector type.
|
|
# - "LeaseBased" (default value).
|
|
# - "LoadBased"
|
|
# For details, please see "https://docs.greptime.com/developer-guide/meta/selector".
|
|
selector = "LeaseBased"
|
|
# Store data in memory, false by default.
|
|
use_memory_store = false
|
|
|
|
# Log options, see `standalone.example.toml`
|
|
[logging]
|
|
dir = "/tmp/greptimedb/logs"
|
|
level = "info"
|