# 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" # HTTP request body limit, 64Mb by default. # the following units are supported: B, KB, KiB, MB, MiB, GB, GiB, TB, TiB, PB, PiB body_limit = "64MB" # 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 remote storage options [prom_store_options] # Whether to enable Prometheus remote write and read in HTTP API, true by default. enable = true # Prometheus protocol options [prometheus_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 = "256MB" # WAL purge threshold. purge_threshold = "4GB" # 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_home = "/tmp/greptimedb/" # TTL for all tables. Disabled by default. # global_ttl = "7d" # Compaction options. [storage.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 # Storage manifest options [storage.manifest] # Region checkpoint actions margin. # Create a checkpoint every actions. checkpoint_margin = 10 # Region manifest logs and checkpoints gc execution duration gc_duration = '10m' # 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. [procedure] # Procedure max retry time. max_retry_times = 3 # Initial retry delay of procedures, increases exponentially retry_delay = "500ms" # Log options # [logging] # Specify logs directory. # dir = "/tmp/greptimedb/logs" # Specify the log level [info | debug | error | warn] # level = "info"