Skip to content

Commit

Permalink
Modify postgres configs to fit production recommendations / tuner rec…
Browse files Browse the repository at this point in the history
…ommends
  • Loading branch information
arran-standish committed Dec 27, 2023
1 parent 8d64cb8 commit 8c323eb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .env.cluster
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ OPENHIM_MONGO_ATNAURL=mongodb://mongo-1:27017,mongo-2:27017,mongo-3:27017/openhi

# FHIR Datastore - HAPI FHIR
HAPI_FHIR_INSTANCES=3
# (pool size * instances) should be less than 100
HF_MAX_POOL_SIZE=30
REPMGR_PARTNER_NODES=postgres-1,postgres-2,postgres-3
POSTGRES_REPLICA_SET=postgres-1:5432,postgres-2:5432,postgres-3:5432
HAPI_DB_SET=pgpool-1:5432,pgpool-2:5432,pgpool-3:5432
HF_POSTGRES_MEMORY_LIMIT=8G

# Sante Datastore - Sante MPI
SANTEMPI_REPMGR_PARTNER_NODES=santempi-psql-1,santempi-psql-2,santempi-psql-3
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
projectName: platform
image: jembi/platform:2.5.0
image: jembi/platform:2.5.1
logPath: /tmp/logs

packages:
Expand Down
12 changes: 11 additions & 1 deletion fhir-datastore-hapi-fhir/config/custom_postgresql.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
max_connections = 250
shared_buffers = 768MB
shared_buffers = 2GB
effective_cache_size = 6GB
wal_buffers = 16MB
default_statistics_target = 500
effective_io_concurrency = 2
huge_pages = off
min_wal_size = 4GB
max_wal_size = 16GB
max_parallel_workers_per_gather = 4
max_parallel_maintenance_workers = 4
maintenance_work_mem = 1GB

0 comments on commit 8c323eb

Please sign in to comment.