mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
docs: Add instructions for checking and increasing max_connections in Postgres
This commit is contained in:
@@ -53,4 +53,21 @@ CREATE ROLE readonlyuser WITH LOGIN PASSWORD '<password>'
|
||||
GRANT pg_read_all_data TO readonlyuser;
|
||||
```
|
||||
|
||||
|
||||
### Increasing max_connections for postgres.
|
||||
|
||||
To see the current number of max_connections. You need to run the following command in psql.
|
||||
|
||||
```
|
||||
SHOW max_connections;
|
||||
```
|
||||
|
||||
To increase the max_connections, you need to run this sql command in psql.
|
||||
|
||||
|
||||
```
|
||||
ALTER SYSTEM SET max_connections = 200;
|
||||
```
|
||||
|
||||
Then you need to restart the postgres pod.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user