mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-25 23:49:58 +00:00
* feat: support set timezone in db * chore: fix ci * chore: fix code advice * fix: rename `time_zone` to `timezone`
98 lines
2.5 KiB
TOML
98 lines
2.5 KiB
TOML
# Node running mode, see `standalone.example.toml`.
|
|
mode = "distributed"
|
|
# The default timezone of the server
|
|
# default_timezone = "UTC"
|
|
|
|
[heartbeat]
|
|
# Interval for sending heartbeat task to the Metasrv, 5 seconds by default.
|
|
interval = "5s"
|
|
# Interval for retry sending heartbeat task, 5 seconds by default.
|
|
retry_interval = "5s"
|
|
|
|
# HTTP server options, see `standalone.example.toml`.
|
|
[http]
|
|
addr = "127.0.0.1:4000"
|
|
timeout = "30s"
|
|
body_limit = "64MB"
|
|
|
|
# gRPC server options, see `standalone.example.toml`.
|
|
[grpc]
|
|
addr = "127.0.0.1:4001"
|
|
runtime_size = 8
|
|
|
|
# MySQL server options, see `standalone.example.toml`.
|
|
[mysql]
|
|
enable = true
|
|
addr = "127.0.0.1:4002"
|
|
runtime_size = 2
|
|
|
|
# MySQL server TLS options, see `standalone.example.toml`.
|
|
[mysql.tls]
|
|
mode = "disable"
|
|
cert_path = ""
|
|
key_path = ""
|
|
|
|
# PostgresSQL server options, see `standalone.example.toml`.
|
|
[postgres]
|
|
enable = true
|
|
addr = "127.0.0.1:4003"
|
|
runtime_size = 2
|
|
|
|
# PostgresSQL server TLS options, see `standalone.example.toml`.
|
|
[postgres.tls]
|
|
mode = "disable"
|
|
cert_path = ""
|
|
key_path = ""
|
|
|
|
# OpenTSDB protocol options, see `standalone.example.toml`.
|
|
[opentsdb]
|
|
enable = true
|
|
addr = "127.0.0.1:4242"
|
|
runtime_size = 2
|
|
|
|
# InfluxDB protocol options, see `standalone.example.toml`.
|
|
[influxdb]
|
|
enable = true
|
|
|
|
# Prometheus remote storage options, see `standalone.example.toml`.
|
|
[prom_store]
|
|
enable = true
|
|
|
|
# Metasrv client options, see `datanode.example.toml`.
|
|
[meta_client]
|
|
metasrv_addrs = ["127.0.0.1:3002"]
|
|
timeout = "3s"
|
|
# DDL timeouts options.
|
|
ddl_timeout = "10s"
|
|
connect_timeout = "1s"
|
|
tcp_nodelay = true
|
|
|
|
# Log options, see `standalone.example.toml`
|
|
# [logging]
|
|
# dir = "/tmp/greptimedb/logs"
|
|
# level = "info"
|
|
|
|
# Datanode options.
|
|
[datanode]
|
|
# Datanode client options.
|
|
[datanode.client]
|
|
timeout = "10s"
|
|
connect_timeout = "10s"
|
|
tcp_nodelay = true
|
|
|
|
# Frontend export the metrics generated by itself
|
|
# encoded to Prometheus remote-write format
|
|
# and send to Prometheus remote-write compatible receiver (e.g. send to `greptimedb` itself)
|
|
# This is only used for `greptimedb` to export its own metrics internally. It's different from prometheus scrape.
|
|
# [export_metrics]
|
|
# whether enable export metrics, default is false
|
|
# enable = false
|
|
# The url of metrics export endpoint, default is `frontend` default HTTP endpoint.
|
|
# endpoint = "127.0.0.1:4000"
|
|
# The database name of exported metrics stores, user needs to specify a valid database
|
|
# db = ""
|
|
# The interval of export metrics
|
|
# write_interval = "30s"
|
|
# HTTP headers of Prometheus remote-write carry
|
|
# headers = {}
|