mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 01:16:30 +00:00
fixed health check; sharding setup and tests
This commit is contained in:
16
pgcat.toml
16
pgcat.toml
@@ -32,8 +32,8 @@ ban_time = 60 # Seconds
|
||||
#
|
||||
# User to use for authentication against the server.
|
||||
[user]
|
||||
name = "lev"
|
||||
password = "lev"
|
||||
name = "sharding_user"
|
||||
password = "sharding_user"
|
||||
|
||||
|
||||
#
|
||||
@@ -49,7 +49,7 @@ servers = [
|
||||
[ "localhost", 5432 ],
|
||||
]
|
||||
# Database name (e.g. "postgres")
|
||||
database = "lev"
|
||||
database = "shard0"
|
||||
|
||||
[shards.1]
|
||||
# [ host, port ]
|
||||
@@ -57,4 +57,12 @@ servers = [
|
||||
[ "127.0.0.1", 5432 ],
|
||||
[ "localhost", 5432 ],
|
||||
]
|
||||
database = "lev"
|
||||
database = "shard1"
|
||||
|
||||
[shards.2]
|
||||
# [ host, port ]
|
||||
servers = [
|
||||
[ "127.0.0.1", 5432 ],
|
||||
[ "localhost", 5432 ],
|
||||
]
|
||||
database = "shard2"
|
||||
Reference in New Issue
Block a user