diff --git a/config/config.md b/config/config.md index 7f48597737d3..b05e9dc669ed 100644 --- a/config/config.md +++ b/config/config.md @@ -257,7 +257,7 @@ | `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. | -| `selector` | String | `lease_based` | Datanode selector type.
- `lease_based` (default value).
- `load_based`
For details, please see "https://docs.greptime.com/developer-guide/metasrv/selector". | +| `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. | diff --git a/config/metasrv.example.toml b/config/metasrv.example.toml index e1169ba17497..19ad4fbccd9d 100644 --- a/config/metasrv.example.toml +++ b/config/metasrv.example.toml @@ -11,10 +11,11 @@ server_addr = "127.0.0.1:3002" store_addr = "127.0.0.1:2379" ## Datanode selector type. -## - `lease_based` (default value). +## - `round_robin` (default value) +## - `lease_based` ## - `load_based` ## For details, please see "https://docs.greptime.com/developer-guide/metasrv/selector". -selector = "lease_based" +selector = "round_robin" ## Store data in memory. use_memory_store = false diff --git a/src/cmd/tests/load_config_test.rs b/src/cmd/tests/load_config_test.rs index fff3f3e8c9a6..de10607a51d6 100644 --- a/src/cmd/tests/load_config_test.rs +++ b/src/cmd/tests/load_config_test.rs @@ -172,7 +172,7 @@ fn test_load_metasrv_example_config() { bg_rt_size: 4, }, component: MetasrvOptions { - selector: SelectorType::LeaseBased, + selector: SelectorType::default(), data_home: "/tmp/metasrv/".to_string(), logging: LoggingOptions { dir: "/tmp/greptimedb/logs".to_string(),