mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 05:12:54 +00:00
feat(config): make table name of pg backend configurable (#5244)
* feat: configurable table name * fix: election sql * feat: configurable lock_id * chore: update config file * perf: useless allocation * perf: useless allocation * chore: remove unused type hint * Apply suggestions from code review Co-authored-by: Weny Xu <wenymedia@gmail.com> * chore: update config file --------- Co-authored-by: Weny Xu <wenymedia@gmail.com>
This commit is contained in:
@@ -24,6 +24,14 @@ store_key_prefix = ""
|
||||
## - `postgres_store`
|
||||
backend = "etcd_store"
|
||||
|
||||
## Table name in RDS to store metadata. Effect when using a RDS kvbackend.
|
||||
## **Only used when backend is `postgres_store`.**
|
||||
meta_table_name = "greptime_metakv"
|
||||
|
||||
## Advisory lock id in PostgreSQL for election. Effect when using PostgreSQL as kvbackend
|
||||
## Only used when backend is `postgres_store`.
|
||||
meta_election_lock_id = 1
|
||||
|
||||
## Datanode selector type.
|
||||
## - `round_robin` (default value)
|
||||
## - `lease_based`
|
||||
|
||||
Reference in New Issue
Block a user