mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-07 05:42:57 +00:00
* feat: adds data_home to DataOptions * refactor: split out object store stuffs from datanode instance * feat: move data_home into FileConfig * refactor: object storage layers * feat: adds datanode path to procedure paths * feat: temp commit * refactor: clean code * fix: forgot files * fix: forgot files * Update src/common/test-util/src/ports.rs Co-authored-by: Yingwen <realevenyag@gmail.com> * Update tests/runner/src/env.rs Co-authored-by: Yingwen <realevenyag@gmail.com> * fix: compile error * chore: cr comments * fix: dependencies order in cargo * fix: data path in test --------- Co-authored-by: Yingwen <realevenyag@gmail.com>
78 lines
2.2 KiB
TOML
78 lines
2.2 KiB
TOML
# Node running mode, see `standalone.example.toml`.
|
|
mode = "distributed"
|
|
# Whether to use in-memory catalog, see `standalone.example.toml`.
|
|
enable_memory_catalog = false
|
|
# The datanode identifier, should be unique.
|
|
node_id = 42
|
|
# gRPC server address, "127.0.0.1:3001" by default.
|
|
rpc_addr = "127.0.0.1:3001"
|
|
# Hostname of this node.
|
|
rpc_hostname = "127.0.0.1"
|
|
# The number of gRPC server worker threads, 8 by default.
|
|
rpc_runtime_size = 8
|
|
|
|
# Metasrv client options.
|
|
[meta_client_options]
|
|
# Metasrv address list.
|
|
metasrv_addrs = ["127.0.0.1:3002"]
|
|
# Operation timeout in milliseconds, 3000 by default.
|
|
timeout_millis = 3000
|
|
# Connect server timeout in milliseconds, 5000 by default.
|
|
connect_timeout_millis = 5000
|
|
# `TCP_NODELAY` option for accepted connections, true by default.
|
|
tcp_nodelay = true
|
|
|
|
# WAL options, see `standalone.example.toml`.
|
|
[wal]
|
|
# WAL data directory
|
|
# dir = "/tmp/greptimedb/wal"
|
|
file_size = "1GB"
|
|
purge_threshold = "50GB"
|
|
purge_interval = "10m"
|
|
read_batch_size = 128
|
|
sync_write = false
|
|
|
|
# Storage options, see `standalone.example.toml`.
|
|
[storage]
|
|
type = "File"
|
|
data_home = "/tmp/greptimedb/"
|
|
|
|
# Compaction options, see `standalone.example.toml`.
|
|
[storage.compaction]
|
|
max_inflight_tasks = 4
|
|
max_files_in_level0 = 8
|
|
max_purge_tasks = 32
|
|
|
|
# Storage manifest options
|
|
[storage.manifest]
|
|
# Region checkpoint actions margin.
|
|
# Create a checkpoint every <checkpoint_margin> actions.
|
|
checkpoint_margin = 10
|
|
# Region manifest logs and checkpoints gc execution duration
|
|
gc_duration = '30s'
|
|
# Whether to try creating a manifest checkpoint on region opening
|
|
checkpoint_on_startup = false
|
|
|
|
# Storage flush options
|
|
[storage.flush]
|
|
# Max inflight flush tasks.
|
|
max_flush_tasks = 8
|
|
# Default write buffer size for a region.
|
|
region_write_buffer_size = "32MB"
|
|
# Interval to check whether a region needs flush.
|
|
picker_schedule_interval = "5m"
|
|
# Interval to auto flush a region if it has not flushed yet.
|
|
auto_flush_interval = "1h"
|
|
# Global write buffer size for all regions.
|
|
global_write_buffer_size = "1GB"
|
|
|
|
# Procedure storage options, see `standalone.example.toml`.
|
|
[procedure]
|
|
max_retry_times = 3
|
|
retry_delay = "500ms"
|
|
|
|
# Log options, see `standalone.example.toml`
|
|
[logging]
|
|
dir = "/tmp/greptimedb/logs"
|
|
level = "info"
|