Skip to content

Commit 49e11ec

Browse files
committed
configure custom pool size for postgresql
1 parent 9c00b6f commit 49e11ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

values/wire-server/prod-values.example.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ brig:
3636
port: "5432"
3737
user: wire-server
3838
dbname: wire-server
39+
postgresqlPool:
40+
size: 10 # adjust pool size as needed based on expected load and available resources
3941
useSES: false
4042
# Set to false if you want to hand out DynamoDB to store prekeys
4143
randomPrekeys: true
@@ -183,6 +185,8 @@ galley:
183185
port: "5432"
184186
user: wire-server
185187
dbname: wire-server
188+
postgresqlPool:
189+
size: 10 # adjust pool size as needed based on expected load and available resources
186190
# Explicitly set postgresMigration to cassandra for fresh deployments.
187191
# This controls whether galley reads conversations/teamFeatures from Cassandra or PostgreSQL.
188192
postgresMigration:
@@ -367,6 +371,8 @@ background-worker:
367371
port: "5432"
368372
user: wire-server
369373
dbname: wire-server
374+
postgresqlPool:
375+
size: 3 # Background worker has fewer connections to DB, so smaller pool size is fine
370376
postgresMigration:
371377
conversation: cassandra
372378
teamFeatures: cassandra

0 commit comments

Comments
 (0)