mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-05 21:02:58 +00:00
* feat: procedure config * fix: modify config * feat: add retry logic * feat: add error * feat: add it * feat: add it * feat: add it * feat: rm retry from runner * feat: use backon * feat: add retry_interval * feat: add retry_interval * fix: conflict * fix: cr * feat: add retry error and id * feat: rename * refactor: execute * feat: use config dir * fix: cr * fix: cr * fix: fmt * fix: fmt * fix: pr * fix: it * fix: rm unless cmd params * feat: add toml * fix: ut * feat: add rolling back * fix: cr * fix: cr * fix: cr * fix: ci * fix: ci * fix: ci * chore: Apply suggestions from code review --------- Co-authored-by: Yingwen <realevenyag@gmail.com>
121 lines
3.0 KiB
TOML
121 lines
3.0 KiB
TOML
# 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]
|
|
# Server address, "127.0.0.1:4000" by default.
|
|
addr = "127.0.0.1:4000"
|
|
# HTTP request timeout, 30s by default.
|
|
timeout = "30s"
|
|
|
|
# gRPC server options.
|
|
[grpc_options]
|
|
# 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]
|
|
# 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
|
|
|
|
# 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]
|
|
# 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
|
|
|
|
# Prom protocol options.
|
|
[prom_options]
|
|
# Prometheus API 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 storage options.
|
|
# Uncomment to enable.
|
|
# [procedure.store]
|
|
# # Storage type.
|
|
# type = "File"
|
|
# # Procedure data path.
|
|
# data_dir = "/tmp/greptimedb/procedure/"
|
|
# # Procedure max retry time.
|
|
# max_retry_times = 3
|
|
# # Initial retry delay of procedures, increases exponentially
|
|
# retry_delay = "500ms"
|