Bugfix/pg connections (#2002)

* increase max_connections to 150 in all docker files

* lower celery worker concurrency to 6
This commit is contained in:
rkuo-danswer 2024-07-31 12:49:20 -07:00 committed by GitHub
parent 5307d38472
commit 288e6fa606
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 1 deletions

View File

@ -25,7 +25,7 @@ autorestart=true
# relatively compute-light (e.g. they tend to just make a bunch of requests to
# Vespa / Postgres)
[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_maxbytes=52428800
redirect_stderr=true

View File

@ -290,6 +290,7 @@ services:
relational_db:
image: postgres:15.2-alpine
command: -c 'max_connections=150'
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}

View File

@ -300,6 +300,7 @@ services:
relational_db:
image: postgres:15.2-alpine
command: -c 'max_connections=150'
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}

View File

@ -143,6 +143,7 @@ services:
relational_db:
image: postgres:15.2-alpine
command: -c 'max_connections=150'
restart: always
# POSTGRES_USER and POSTGRES_PASSWORD should be set in .env file
env_file:

View File

@ -86,6 +86,7 @@ services:
relational_db:
image: postgres:15.2-alpine
command: -c 'max_connections=150'
restart: always
# POSTGRES_USER and POSTGRES_PASSWORD should be set in .env file
env_file:

View File

@ -144,6 +144,7 @@ services:
relational_db:
image: postgres:15.2-alpine
command: -c 'max_connections=150'
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}

View File

@ -40,6 +40,7 @@ spec:
secretKeyRef:
name: danswer-secrets
key: postgres_password
args: ["-c", "max_connections=150"]
ports:
- containerPort: 5432
volumeMounts: