From 546f2577613b6e1ead27c4b8df950fc9e312668d Mon Sep 17 00:00:00 2001 From: Uxio Fuentefria Date: Wed, 15 Nov 2023 17:22:18 +0100 Subject: [PATCH] Increase number of docker max connections to 250 - 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. --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index ccd7e78..338eb63 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -36,6 +36,7 @@ services: txs-db: image: postgres:14-alpine + command: -c 'max_connections=250' environment: POSTGRES_PASSWORD: postgres volumes: