diff --git a/config/config.md b/config/config.md index f366ddb02aea..caa7dbf64aee 100644 --- a/config/config.md +++ b/config/config.md @@ -17,10 +17,10 @@ | `init_regions_in_background` | Bool | `false` | Initialize all regions in the background during the startup.
By default, it provides services after all regions have been initialized. | | `init_regions_parallelism` | Integer | `16` | Parallelism of initializing regions. | | `max_concurrent_queries` | Integer | `0` | The maximum current queries allowed to be executed. Zero means unlimited. | +| `enable_telemetry` | Bool | `true` | Enable telemetry to collect anonymous usage data. Enabled by default. | | `runtime` | -- | -- | The runtime options. | | `runtime.global_rt_size` | Integer | `8` | The number of threads to execute the runtime for global read operations. | | `runtime.compact_rt_size` | Integer | `4` | The number of threads to execute the runtime for global write operations. | -| `runtime.enable_telemetry` | Bool | `true` | Enable telemetry to collect anonymous usage data. Enabled by default. | | `http` | -- | -- | The HTTP server options. | | `http.addr` | String | `127.0.0.1:4000` | The address to bind the HTTP server. | | `http.timeout` | String | `30s` | HTTP request timeout. Set to 0 to disable timeout. | @@ -287,15 +287,15 @@ | `bind_addr` | String | `127.0.0.1:3002` | The bind address of metasrv. | | `server_addr` | String | `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. | | `store_addrs` | Array | -- | Store server address default to etcd store. | +| `store_key_prefix` | String | `""` | If it's not empty, the metasrv will store all data with this key prefix. | +| `backend` | String | `EtcdStore` | The datastore for meta server. | | `selector` | String | `round_robin` | Datanode selector type.
- `round_robin` (default value)
- `lease_based`
- `load_based`
For details, please see "https://docs.greptime.com/developer-guide/metasrv/selector". | | `use_memory_store` | Bool | `false` | Store data in memory. | -| `store_key_prefix` | String | `""` | If it's not empty, the metasrv will store all data with this key prefix. | | `enable_region_failover` | Bool | `false` | Whether to enable region failover.
This feature is only available on GreptimeDB running on cluster mode and
- Using Remote WAL
- Using shared storage (e.g., s3). | -| `backend` | String | `EtcdStore` | The datastore for meta server. | +| `enable_telemetry` | Bool | `true` | Whether to enable greptimedb telemetry. Enabled by default. | | `runtime` | -- | -- | The runtime options. | | `runtime.global_rt_size` | Integer | `8` | The number of threads to execute the runtime for global read operations. | | `runtime.compact_rt_size` | Integer | `4` | The number of threads to execute the runtime for global write operations. | -| `runtime.enable_telemetry` | Bool | `true` | Whether to enable greptimedb telemetry. Enabled by default. | | `procedure` | -- | -- | Procedure storage options. | | `procedure.max_retry_times` | Integer | `12` | Procedure max retry time. | | `procedure.retry_delay` | String | `500ms` | Initial retry delay of procedures, increases exponentially | diff --git a/config/metasrv.example.toml b/config/metasrv.example.toml index 2468a3a4fb78..27716b5aa37b 100644 --- a/config/metasrv.example.toml +++ b/config/metasrv.example.toml @@ -10,6 +10,12 @@ server_addr = "127.0.0.1:3002" ## Store server address default to etcd store. store_addrs = ["127.0.0.1:2379"] +## If it's not empty, the metasrv will store all data with this key prefix. +store_key_prefix = "" + +## The datastore for meta server. +backend = "EtcdStore" + ## Datanode selector type. ## - `round_robin` (default value) ## - `lease_based` @@ -20,17 +26,14 @@ selector = "round_robin" ## Store data in memory. use_memory_store = false -## If it's not empty, the metasrv will store all data with this key prefix. -store_key_prefix = "" - ## Whether to enable region failover. ## This feature is only available on GreptimeDB running on cluster mode and ## - Using Remote WAL ## - Using shared storage (e.g., s3). enable_region_failover = false -## The datastore for meta server. -backend = "EtcdStore" +## Whether to enable greptimedb telemetry. Enabled by default. +#+ enable_telemetry = true ## The runtime options. #+ [runtime] @@ -39,9 +42,6 @@ backend = "EtcdStore" ## The number of threads to execute the runtime for global write operations. #+ compact_rt_size = 4 -## Whether to enable greptimedb telemetry. Enabled by default. -#+ enable_telemetry = true - ## Procedure storage options. [procedure] diff --git a/config/standalone.example.toml b/config/standalone.example.toml index e9bf8246ac8e..137a73c55e97 100644 --- a/config/standalone.example.toml +++ b/config/standalone.example.toml @@ -15,6 +15,9 @@ init_regions_parallelism = 16 ## The maximum current queries allowed to be executed. Zero means unlimited. max_concurrent_queries = 0 +## Enable telemetry to collect anonymous usage data. Enabled by default. +#+ enable_telemetry = true + ## The runtime options. #+ [runtime] ## The number of threads to execute the runtime for global read operations. @@ -22,9 +25,6 @@ max_concurrent_queries = 0 ## The number of threads to execute the runtime for global write operations. #+ compact_rt_size = 4 -## Enable telemetry to collect anonymous usage data. Enabled by default. -#+ enable_telemetry = true - ## The HTTP server options. [http] ## The address to bind the HTTP server.