mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 10:46:30 +00:00
committed by
GitHub
parent
a5c360e848
commit
9a668e584f
@@ -205,7 +205,7 @@ If the client doesn't specify, PgCat routes traffic to this role by default.
|
|||||||
`replica` round-robin between replicas only without touching the primary,
|
`replica` round-robin between replicas only without touching the primary,
|
||||||
`primary` all queries go to the primary unless otherwise specified.
|
`primary` all queries go to the primary unless otherwise specified.
|
||||||
|
|
||||||
### query_parser_enabled
|
### query_parser_enabled (experimental)
|
||||||
```
|
```
|
||||||
path: pools.<pool_name>.query_parser_enabled
|
path: pools.<pool_name>.query_parser_enabled
|
||||||
default: true
|
default: true
|
||||||
@@ -226,7 +226,7 @@ If the query parser is enabled and this setting is enabled, the primary will be
|
|||||||
load balancing of read queries. Otherwise, the primary will only be used for write
|
load balancing of read queries. Otherwise, the primary will only be used for write
|
||||||
queries. The primary can always be explicitly selected with our custom protocol.
|
queries. The primary can always be explicitly selected with our custom protocol.
|
||||||
|
|
||||||
### sharding_key_regex
|
### sharding_key_regex (experimental)
|
||||||
```
|
```
|
||||||
path: pools.<pool_name>.sharding_key_regex
|
path: pools.<pool_name>.sharding_key_regex
|
||||||
default: <UNSET>
|
default: <UNSET>
|
||||||
@@ -248,7 +248,7 @@ Current options:
|
|||||||
`pg_bigint_hash`: PARTITION BY HASH (Postgres hashing function)
|
`pg_bigint_hash`: PARTITION BY HASH (Postgres hashing function)
|
||||||
`sha1`: A hashing function based on SHA1
|
`sha1`: A hashing function based on SHA1
|
||||||
|
|
||||||
### automatic_sharding_key
|
### automatic_sharding_key (experimental)
|
||||||
```
|
```
|
||||||
path: pools.<pool_name>.automatic_sharding_key
|
path: pools.<pool_name>.automatic_sharding_key
|
||||||
default: <UNSET>
|
default: <UNSET>
|
||||||
@@ -320,7 +320,7 @@ default: [["127.0.0.1", 5432, "primary"], ["localhost", 5432, "replica"]]
|
|||||||
|
|
||||||
Array of servers in the shard, each server entry is an array of `[host, port, role]`
|
Array of servers in the shard, each server entry is an array of `[host, port, role]`
|
||||||
|
|
||||||
### mirrors
|
### mirrors (experimental)
|
||||||
```
|
```
|
||||||
path: pools.<pool_name>.shards.<shard_index>.mirrors
|
path: pools.<pool_name>.shards.<shard_index>.mirrors
|
||||||
default: <UNSET>
|
default: <UNSET>
|
||||||
|
|||||||
Reference in New Issue
Block a user