diff --git a/config/config.md b/config/config.md index dfd2ab889c6d..53d88f815380 100644 --- a/config/config.md +++ b/config/config.md @@ -258,12 +258,13 @@ | `data_home` | String | `/tmp/metasrv/` | The working home directory. | | `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_addr` | String | `127.0.0.1:2379` | Etcd server address. | +| `store_addr` | String | `127.0.0.1:2379` | Store server address default to etcd store. | | `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. | | `enable_telemetry` | Bool | `true` | Whether to enable greptimedb telemetry. | | `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. | | `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. | diff --git a/config/metasrv.example.toml b/config/metasrv.example.toml index b4ed23b2fe02..41e9306ebd78 100644 --- a/config/metasrv.example.toml +++ b/config/metasrv.example.toml @@ -7,7 +7,7 @@ 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. +## Store server address default to etcd store. store_addr = "127.0.0.1:2379" ## Datanode selector type. @@ -32,6 +32,9 @@ store_key_prefix = "" ## - Using shared storage (e.g., s3). enable_region_failover = false +## The datastore for meta server. +backend = "EtcdStore" + ## The runtime options. [runtime] ## The number of threads to execute the runtime for global read operations.