Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve postgres custom config settings #260

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion fhir-datastore-hapi-fhir/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Fhir Datastore Package - HAPI-FHIR",
"description": "A FHIR compliant server for the platform",
"type": "infrastructure",
"version": "0.0.1",
"version": "1.0.0",
"dependencies": [],
"environmentVariables": {
"REPMGR_PRIMARY_HOST": "postgres-1",
Expand Down