Skip to content

Commit 5cd16d0

Browse files
Merge pull request #104 from jembi/PLAT-366-remove-default-replicas
Remove default replicas
2 parents f03e60e + 3a64f77 commit 5cd16d0

File tree

20 files changed

+36
-16
lines changed

20 files changed

+36
-16
lines changed

client-registry-santempi/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
- SDB_DATA_POLICY_RESOURCE=Patient
1717
- SDB_DELAY_START=5000
1818
deploy:
19-
replicas: ${SANTEMPI_INSTANCES:-1}
19+
replicas: ${SANTEMPI_INSTANCES}
2020
santedb-www:
2121
image: santesuite/santedb-www:2.2.3
2222
depends_on:

client-registry-santempi/package-metadata.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
"description": "A patient matching and deduplicater for the platform",
55
"version": "0.0.1",
66
"dependencies": ["reverse-proxy-nginx"],
7-
"environmentVariables": {}
7+
"environmentVariables": {
8+
"SANTEMPI_INSTANCES": "1"
9+
}
810
}

client-registry-santempi/swarm.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
readonly ACTION=$1
44
readonly MODE=$2
5-
5+
readonly SANTEMPI_INSTANCES=${SANTEMPI_INSTANCES:-1}
6+
export SANTEMPI_INSTANCES
67
TIMESTAMP="$(date "+%Y%m%d%H%M%S")"
78
readonly TIMESTAMP
89

dashboard-visualiser-jsreport/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
deploy:
77
placement:
88
max_replicas_per_node: 1
9-
replicas: ${JS_REPORT_INSTANCES:-1}
9+
replicas: ${JS_REPORT_INSTANCES}
1010
resources:
1111
limits:
1212
cpus: ${JS_REPORT_CPU_LIMIT:-0.8}

dashboard-visualiser-jsreport/package-metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"JS_REPORT_CPU_RESERVE": "0.05",
1818
"JS_REPORT_MEMORY_RESERVE": "500M",
1919
"JS_REPORT_DEV_MOUNT": "false",
20-
"JS_REPORT_PACKAGE_PATH": ""
20+
"JS_REPORT_PACKAGE_PATH": "",
21+
"JS_REPORT_INSTANCES": "1"
2122
}
2223
}

dashboard-visualiser-jsreport/swarm.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
readonly ACTION=$1
44
readonly MODE=$2
5+
readonly JS_REPORT_INSTANCES=${JS_REPORT_INSTANCES:-1}
6+
export JS_REPORT_INSTANCES
7+
TIMESTAMP="$(date "+%Y%m%d%H%M%S")"
8+
readonly TIMESTAMP
59

610
STATEFUL_NODES=${STATEFUL_NODES:-"cluster"}
711

dashboard-visualiser-kibana/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
environment:
1313
ES_KIBANA_SYSTEM: ${ES_KIBANA_SYSTEM?:err}
1414
deploy:
15-
replicas: ${KIBANA_INSTANCES:-1}
15+
replicas: ${KIBANA_INSTANCES}
1616
resources:
1717
limits:
1818
memory: ${KIBANA_MEMORY_LIMIT:-3G}

dashboard-visualiser-kibana/swarm.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
readonly ACTION=$1
44
readonly MODE=$2
5+
readonly KIBANA_INSTANCES=${KIBANA_INSTANCES:-1}
6+
export KIBANA_INSTANCES
57

68
readonly STATEFUL_NODES=${STATEFUL_NODES:-"cluster"}
79

fhir-datastore-hapi-fhir/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- JAVA_TOOL_OPTIONS=-Xmx2g
1616
- CATALINA_OPTS=-Xmx2g
1717
deploy:
18-
replicas: ${HAPI_FHIR_INSTANCES:-1}
18+
replicas: ${HAPI_FHIR_INSTANCES}
1919
resources:
2020
limits:
2121
cpus: ${HAPI_FHIR_CPU_LIMIT:-0.8}

fhir-datastore-hapi-fhir/package-metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"HF_POSTGRES_CPU_LIMIT": "0.8",
1414
"HF_POSTGRES_CPU_RESERVE": "0.05",
1515
"HF_POSTGRES_MEMORY_LIMIT": "3G",
16-
"HF_POSTGRES_MEMORY_RESERVE": "500M"
16+
"HF_POSTGRES_MEMORY_RESERVE": "500M",
17+
"HAPI_FHIR_INSTANCES": "1"
1718
}
1819
}

0 commit comments

Comments
 (0)