From ecf39c6bb8883d6608baf24211012b0df9eedaf1 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Fri, 28 Mar 2025 14:45:13 +0100 Subject: [PATCH] fix(web03/postgresql): Increase the maximum number of connexions --- machines/nixos/web03/django-apps/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/machines/nixos/web03/django-apps/default.nix b/machines/nixos/web03/django-apps/default.nix index 6798e48d..1b23aebc 100644 --- a/machines/nixos/web03/django-apps/default.nix +++ b/machines/nixos/web03/django-apps/default.nix @@ -14,6 +14,12 @@ ./wikiens.nix ]; + services.postgresql.settings = { + # NOTE: Each concurrent Django request opens a DB connection, + # by default, the maximum allowed is 100, which is too small whan a lot of requests come in + max_connections = 512; + }; + services.django-apps = { enable = true;