Add defaults for configs (#174)

* add statement timeout to readme

* Add defaults to various configs

* primary read enabled default to false
This commit is contained in:
zainkabani
2022-09-23 02:00:46 -04:00
committed by GitHub
parent 3a729bb75b
commit f72dac420b
5 changed files with 115 additions and 58 deletions

View File

@@ -60,6 +60,8 @@ psql -h 127.0.0.1 -p 6432 -c 'SELECT 1'
| **`user`** | | |
| `name` | The user name. | `sharding_user` |
| `password` | The user password in plaintext. | `hunter2` |
| `statement_timeout` | Timeout in milliseconds for how long a query takes to execute | `0 (disabled)` |
| | | |
| **`shards`** | Shards are numerically numbered starting from 0; the order in the config is preserved by the pooler to route queries accordingly. | `[shards.0]` |
| `servers` | List of servers to connect to and their roles. A server is: `[host, port, role]`, where `role` is either `primary` or `replica`. | `["127.0.0.1", 5432, "primary"]` |