Skip to content

Commit

Permalink
Increase number of docker max connections to 250
Browse files Browse the repository at this point in the history
- Quickly a `OperationalError: FATAL: sorry, too many clients already using` was triggered.
- Postgres configures by default max connections to 100.
- Every python web/worker opens 50 connections to the database: web, worker-indexer, worker-tokens and worker-notifications. Total: 200.
  • Loading branch information
Uxio0 committed Nov 15, 2023
1 parent 5cc20f3 commit 546f257
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ services:

txs-db:
image: postgres:14-alpine
command: -c 'max_connections=250'
environment:
POSTGRES_PASSWORD: postgres
volumes:
Expand Down

0 comments on commit 546f257

Please sign in to comment.