Skip to content

Commit

Permalink
postgress: reduce the number of open connectins to fit under default …
Browse files Browse the repository at this point in the history
…limit
  • Loading branch information
or-else committed Dec 8, 2023
1 parent c455fca commit 759865e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/tinode.conf
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@

// PostgreSQL connection pool settings.
// Maximum number of open connections to the database. Zero means unlimited.
"max_open_conns": 64,
"max_open_conns": 50,
// Maximum number of connections in the idle connection pool. Zero means no idle connections are retained.
"max_idle_conns": 64,
"max_idle_conns": 50,
// Maximum amount of time a connection may be reused. Zero means unlimited.
"conn_max_lifetime": 60,
// Maximum amount of time waiting for a connection from the pool. Zero means no timeout.
Expand Down

0 comments on commit 759865e

Please sign in to comment.