forked from DGNum/infrastructure
fix(web03/postgresql): Increase the maximum number of connexions
This commit is contained in:
parent
aed96b16e1
commit
ecf39c6bb8
1 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,12 @@
|
||||||
./wikiens.nix
|
./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 = {
|
services.django-apps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue