add default server role; bug fix

This commit is contained in:
Lev Kokotov
2022-02-11 11:19:40 -08:00
parent 595e564216
commit 0d369ab90a
5 changed files with 65 additions and 12 deletions

View File

@@ -69,3 +69,15 @@ servers = [
# [ "127.0.1.1", 5432, "replica" ],
]
database = "shard2"
# Settings for our query routing layer.
[query_router]
# If the client doesn't specify, route traffic to
# this role by default.
#
# any: round-robin between primary and replicas,
# replica: round-robin between replicas only without touching the primary,
# primary: all queries go to the primary unless otherwise specified.
default_role = "any"