-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Document fields in the config examples (#1098)
* docs: Add comments to standalone config example * docs: Add comments to datanode config example * docs: Add comments to frontend config example * docs: Add comments to meta-srv config example * docs: Use "GB" instead of "GiB" * docs: Add link to the selector doc * docs: Fix grammar
- Loading branch information
Showing
4 changed files
with
200 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,52 @@ | ||
# 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 | ||
mode = 'distributed' | ||
rpc_addr = '127.0.0.1:3001' | ||
rpc_hostname = '127.0.0.1' | ||
# 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 | ||
mysql_addr = '127.0.0.1:4406' | ||
mysql_runtime_size = 4 | ||
enable_memory_catalog = false | ||
# MySQL server address, "127.0.0.1:4406" by default. | ||
mysql_addr = "127.0.0.1:4406" | ||
# The number of MySQL server worker threads, 2 by default. | ||
mysql_runtime_size = 2 | ||
|
||
# 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] | ||
dir = "/tmp/greptimedb/wal" | ||
file_size = '1GB' | ||
purge_interval = '10m' | ||
purge_threshold = '50GB' | ||
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_dir = '/tmp/greptimedb/data/' | ||
|
||
[meta_client_options] | ||
metasrv_addrs = ['127.0.0.1:3002'] | ||
timeout_millis = 3000 | ||
connect_timeout_millis = 5000 | ||
tcp_nodelay = false | ||
type = "File" | ||
data_dir = "/tmp/greptimedb/data/" | ||
|
||
# Compaction options, see `standalone.example.toml`. | ||
[compaction] | ||
max_inflight_tasks = 4 | ||
max_files_in_level0 = 16 | ||
max_files_in_level0 = 8 | ||
max_purge_tasks = 32 | ||
|
||
[procedure.store] | ||
type = 'File' | ||
data_dir = '/tmp/greptimedb/procedure/' | ||
# Procedure storage options, see `standalone.example.toml`. | ||
# [procedure.store] | ||
# type = 'File' | ||
# data_dir = '/tmp/greptimedb/procedure/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,58 @@ | ||
mode = 'distributed' | ||
datanode_rpc_addr = '127.0.0.1:3001' | ||
# Node running mode, see `standalone.example.toml`. | ||
mode = "distributed" | ||
|
||
# HTTP server options, see `standalone.example.toml`. | ||
[http_options] | ||
addr = '127.0.0.1:4000' | ||
addr = "127.0.0.1:4000" | ||
timeout = "30s" | ||
|
||
# gRPC server options, see `standalone.example.toml`. | ||
[grpc_options] | ||
addr = "127.0.0.1:4001" | ||
runtime_size = 8 | ||
|
||
# MySQL server options, see `standalone.example.toml`. | ||
[mysql_options] | ||
addr = "127.0.0.1:4002" | ||
runtime_size = 2 | ||
|
||
# MySQL server TLS options, see `standalone.example.toml`. | ||
[mysql_options.tls] | ||
mode = "disable" | ||
cert_path = "" | ||
key_path = "" | ||
|
||
# PostgresSQL server options, see `standalone.example.toml`. | ||
[postgres_options] | ||
addr = "127.0.0.1:4003" | ||
runtime_size = 2 | ||
|
||
# PostgresSQL server TLS options, see `standalone.example.toml`. | ||
[postgres_options.tls] | ||
mode = "disable" | ||
cert_path = "" | ||
key_path = "" | ||
|
||
# OpenTSDB protocol options, see `standalone.example.toml`. | ||
[opentsdb_options] | ||
addr = "127.0.0.1:4242" | ||
runtime_size = 2 | ||
|
||
# InfluxDB protocol options, see `standalone.example.toml`. | ||
[influxdb_options] | ||
enable = true | ||
|
||
# Prometheus protocol options, see `standalone.example.toml`. | ||
[prometheus_options] | ||
enable = true | ||
|
||
# PromQL protocol options, see `standalone.example.toml`. | ||
[promql_options] | ||
addr = "127.0.0.1:4004" | ||
|
||
# Metasrv client options, see `datanode.example.toml`. | ||
[meta_client_options] | ||
metasrv_addrs = ['127.0.0.1:3002'] | ||
metasrv_addrs = ["127.0.0.1:3002"] | ||
timeout_millis = 3000 | ||
connect_timeout_millis = 5000 | ||
tcp_nodelay = false | ||
tcp_nodelay = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
bind_addr = '127.0.0.1:3002' | ||
server_addr = '127.0.0.1:3002' | ||
store_addr = '127.0.0.1:2379' | ||
# 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 | ||
# selector: 'LeaseBased', 'LoadBased' | ||
selector = 'LeaseBased' | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,116 @@ | ||
node_id = 0 | ||
mode = 'standalone' | ||
# Node running mode, "standalone" or "distributed". | ||
mode = "standalone" | ||
# Whether to use in-memory catalog, `false` by default. | ||
enable_memory_catalog = false | ||
|
||
# HTTP server options. | ||
[http_options] | ||
addr = '127.0.0.1:4000' | ||
# Server address, "127.0.0.1:4000" by default. | ||
addr = "127.0.0.1:4000" | ||
# HTTP request timeout, 30s by default. | ||
timeout = "30s" | ||
|
||
[wal] | ||
dir = "/tmp/greptimedb/wal" | ||
file_size = '1GB' | ||
purge_interval = '10m' | ||
purge_threshold = '50GB' | ||
read_batch_size = 128 | ||
sync_write = false | ||
|
||
[storage] | ||
type = 'File' | ||
data_dir = '/tmp/greptimedb/data/' | ||
|
||
# gRPC server options. | ||
[grpc_options] | ||
addr = '127.0.0.1:4001' | ||
# Server address, "127.0.0.1:4001" by default. | ||
addr = "127.0.0.1:4001" | ||
# The number of server worker threads, 8 by default. | ||
runtime_size = 8 | ||
|
||
# MySQL server options. | ||
[mysql_options] | ||
addr = '127.0.0.1:4002' | ||
# Server address, "127.0.0.1:4002" by default. | ||
addr = "127.0.0.1:4002" | ||
# The number of server worker threads, 2 by default. | ||
runtime_size = 2 | ||
|
||
[influxdb_options] | ||
enable = true | ||
# MySQL server TLS options. | ||
[mysql_options.tls] | ||
# TLS mode, refer to https://www.postgresql.org/docs/current/libpq-ssl.html | ||
# - "disable" (default value) | ||
# - "prefer" | ||
# - "require" | ||
# - "verify-ca" | ||
# - "verify-full" | ||
mode = "disable" | ||
# Certificate file path. | ||
cert_path = "" | ||
# Private key file path. | ||
key_path = "" | ||
|
||
# PostgresSQL server options. | ||
[postgres_options] | ||
# Server address, "127.0.0.1:4003" by default. | ||
addr = "127.0.0.1:4003" | ||
# The number of server worker threads, 2 by default. | ||
runtime_size = 2 | ||
|
||
# PostgresSQL server TLS options, see `[mysql_options.tls]` section. | ||
[postgres_options.tls] | ||
# TLS mode. | ||
mode = "disable" | ||
# certificate file path. | ||
cert_path = "" | ||
# private key file path. | ||
key_path = "" | ||
|
||
# OpenTSDB protocol options. | ||
[opentsdb_options] | ||
addr = '127.0.0.1:4242' | ||
enable = true | ||
# OpenTSDB telnet API server address, "127.0.0.1:4242" by default. | ||
addr = "127.0.0.1:4242" | ||
# The number of server worker threads, 2 by default. | ||
runtime_size = 2 | ||
|
||
# InfluxDB protocol options. | ||
[influxdb_options] | ||
# Whether to enable InfluxDB protocol in HTTP API, true by default. | ||
enable = true | ||
|
||
# Prometheus protocol options. | ||
[prometheus_options] | ||
# Whether to enable Prometheus remote write and read in HTTP API, true by default. | ||
enable = true | ||
|
||
[postgres_options] | ||
addr = '127.0.0.1:4003' | ||
runtime_size = 2 | ||
check_pwd = false | ||
# PromQL protocol options. | ||
[promql_options] | ||
# PromQL server address, "127.0.0.1:4004" by default. | ||
addr = "127.0.0.1:4004" | ||
|
||
# WAL options. | ||
[wal] | ||
# WAL data directory. | ||
dir = "/tmp/greptimedb/wal" | ||
# WAL file size in bytes. | ||
file_size = "1GB" | ||
# WAL purge threshold in bytes. | ||
purge_threshold = "50GB" | ||
# WAL purge interval in seconds. | ||
purge_interval = "10m" | ||
# WAL read batch size. | ||
read_batch_size = 128 | ||
# Whether to sync log file after every write. | ||
sync_write = false | ||
|
||
# Storage options. | ||
[storage] | ||
# Storage type. | ||
type = "File" | ||
# Data directory, "/tmp/greptimedb/data" by default. | ||
data_dir = "/tmp/greptimedb/data/" | ||
|
||
# Compaction options. | ||
[compaction] | ||
# Max task number that can concurrently run. | ||
max_inflight_tasks = 4 | ||
# Max files in level 0 to trigger compaction. | ||
max_files_in_level0 = 8 | ||
# Max task number for SST purge task after compaction. | ||
max_purge_tasks = 32 | ||
|
||
[procedure.store] | ||
type = 'File' | ||
data_dir = '/tmp/greptimedb/procedure/' | ||
# Procedure storage options. | ||
# Uncomment to enable. | ||
# [procedure.store] | ||
# # Storage type. | ||
# type = "File" | ||
# # Procedure data path. | ||
# data_dir = "/tmp/greptimedb/procedure/" |