Skip to content

Commit 8c323eb

Browse files
Modify postgres configs to fit production recommendations / tuner recommends
1 parent 8d64cb8 commit 8c323eb

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.env.cluster

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ OPENHIM_MONGO_ATNAURL=mongodb://mongo-1:27017,mongo-2:27017,mongo-3:27017/openhi
1919

2020
# FHIR Datastore - HAPI FHIR
2121
HAPI_FHIR_INSTANCES=3
22-
# (pool size * instances) should be less than 100
23-
HF_MAX_POOL_SIZE=30
2422
REPMGR_PARTNER_NODES=postgres-1,postgres-2,postgres-3
2523
POSTGRES_REPLICA_SET=postgres-1:5432,postgres-2:5432,postgres-3:5432
2624
HAPI_DB_SET=pgpool-1:5432,pgpool-2:5432,pgpool-3:5432
25+
HF_POSTGRES_MEMORY_LIMIT=8G
2726

2827
# Sante Datastore - Sante MPI
2928
SANTEMPI_REPMGR_PARTNER_NODES=santempi-psql-1,santempi-psql-2,santempi-psql-3

config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
projectName: platform
2-
image: jembi/platform:2.5.0
2+
image: jembi/platform:2.5.1
33
logPath: /tmp/logs
44

55
packages:
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
max_connections = 250
2-
shared_buffers = 768MB
2+
shared_buffers = 2GB
3+
effective_cache_size = 6GB
4+
wal_buffers = 16MB
5+
default_statistics_target = 500
6+
effective_io_concurrency = 2
7+
huge_pages = off
8+
min_wal_size = 4GB
9+
max_wal_size = 16GB
10+
max_parallel_workers_per_gather = 4
11+
max_parallel_maintenance_workers = 4
12+
maintenance_work_mem = 1GB

0 commit comments

Comments
 (0)