Skip to content

Commit

Permalink
chore: add example configs that introduced after pg_kvbackend
Browse files Browse the repository at this point in the history
  • Loading branch information
lyang24 committed Aug 15, 2024
1 parent 93be81c commit 2239a7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@
| `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.<br/>This feature is only available on GreptimeDB running on cluster mode and<br/>- Using Remote WAL<br/>- Using shared storage (e.g., s3). |
| `backend` | String | `etcd_store` | The datastore for metasrv. |
| `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. |
Expand Down
5 changes: 4 additions & 1 deletion config/metasrv.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -32,6 +32,9 @@ store_key_prefix = ""
## - Using shared storage (e.g., s3).
enable_region_failover = false

## The datastore for meta server.
backend = "etcd_store"

## The runtime options.
[runtime]
## The number of threads to execute the runtime for global read operations.
Expand Down

0 comments on commit 2239a7f

Please sign in to comment.