mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-27 13:23:28 +02:00
Bugfix/pg connections (#2002)
* increase max_connections to 150 in all docker files * lower celery worker concurrency to 6
This commit is contained in:
@@ -25,7 +25,7 @@ autorestart=true
|
|||||||
# relatively compute-light (e.g. they tend to just make a bunch of requests to
|
# relatively compute-light (e.g. they tend to just make a bunch of requests to
|
||||||
# Vespa / Postgres)
|
# Vespa / Postgres)
|
||||||
[program:celery_worker]
|
[program:celery_worker]
|
||||||
command=celery -A danswer.background.celery.celery_run:celery_app worker --pool=threads --concurrency=16 --loglevel=INFO --logfile=/var/log/celery_worker.log
|
command=celery -A danswer.background.celery.celery_run:celery_app worker --pool=threads --concurrency=6 --loglevel=INFO --logfile=/var/log/celery_worker.log
|
||||||
stdout_logfile=/var/log/celery_worker_supervisor.log
|
stdout_logfile=/var/log/celery_worker_supervisor.log
|
||||||
stdout_logfile_maxbytes=52428800
|
stdout_logfile_maxbytes=52428800
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
|
@@ -290,6 +290,7 @@ services:
|
|||||||
|
|
||||||
relational_db:
|
relational_db:
|
||||||
image: postgres:15.2-alpine
|
image: postgres:15.2-alpine
|
||||||
|
command: -c 'max_connections=150'
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${POSTGRES_USER:-postgres}
|
- POSTGRES_USER=${POSTGRES_USER:-postgres}
|
||||||
|
@@ -300,6 +300,7 @@ services:
|
|||||||
|
|
||||||
relational_db:
|
relational_db:
|
||||||
image: postgres:15.2-alpine
|
image: postgres:15.2-alpine
|
||||||
|
command: -c 'max_connections=150'
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${POSTGRES_USER:-postgres}
|
- POSTGRES_USER=${POSTGRES_USER:-postgres}
|
||||||
|
@@ -143,6 +143,7 @@ services:
|
|||||||
|
|
||||||
relational_db:
|
relational_db:
|
||||||
image: postgres:15.2-alpine
|
image: postgres:15.2-alpine
|
||||||
|
command: -c 'max_connections=150'
|
||||||
restart: always
|
restart: always
|
||||||
# POSTGRES_USER and POSTGRES_PASSWORD should be set in .env file
|
# POSTGRES_USER and POSTGRES_PASSWORD should be set in .env file
|
||||||
env_file:
|
env_file:
|
||||||
|
@@ -86,6 +86,7 @@ services:
|
|||||||
|
|
||||||
relational_db:
|
relational_db:
|
||||||
image: postgres:15.2-alpine
|
image: postgres:15.2-alpine
|
||||||
|
command: -c 'max_connections=150'
|
||||||
restart: always
|
restart: always
|
||||||
# POSTGRES_USER and POSTGRES_PASSWORD should be set in .env file
|
# POSTGRES_USER and POSTGRES_PASSWORD should be set in .env file
|
||||||
env_file:
|
env_file:
|
||||||
|
@@ -144,6 +144,7 @@ services:
|
|||||||
|
|
||||||
relational_db:
|
relational_db:
|
||||||
image: postgres:15.2-alpine
|
image: postgres:15.2-alpine
|
||||||
|
command: -c 'max_connections=150'
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${POSTGRES_USER:-postgres}
|
- POSTGRES_USER=${POSTGRES_USER:-postgres}
|
||||||
|
@@ -40,6 +40,7 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: danswer-secrets
|
name: danswer-secrets
|
||||||
key: postgres_password
|
key: postgres_password
|
||||||
|
args: ["-c", "max_connections=150"]
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
Reference in New Issue
Block a user