Skip to content

Commit

Permalink
chore: correct example config file (#5105)
Browse files Browse the repository at this point in the history
* chore: correct example config file

* fix: fix unit test
  • Loading branch information
WenyXu authored Dec 6, 2024
1 parent 7a3d6f2 commit 2b699e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
| `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` | Store server address default to etcd store. |
| `store_addrs` | Array | -- | Store server address default to etcd store. |
| `selector` | String | `round_robin` | Datanode selector type.<br/>- `round_robin` (default value)<br/>- `lease_based`<br/>- `load_based`<br/>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. |
Expand Down
2 changes: 1 addition & 1 deletion config/metasrv.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bind_addr = "127.0.0.1:3002"
server_addr = "127.0.0.1:3002"

## Store server address default to etcd store.
store_addr = "127.0.0.1:2379"
store_addrs = ["127.0.0.1:2379"]

## Datanode selector type.
## - `round_robin` (default value)
Expand Down
2 changes: 1 addition & 1 deletion src/meta-srv/src/metasrv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl Default for MetasrvOptions {

impl Configurable for MetasrvOptions {
fn env_list_keys() -> Option<&'static [&'static str]> {
Some(&["wal.broker_endpoints"])
Some(&["wal.broker_endpoints", "store_addrs"])
}
}

Expand Down

0 comments on commit 2b699e7

Please sign in to comment.