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

PLAT-620 Add JeMPI services #179

Merged
merged 12 commits into from
Nov 29, 2022
9 changes: 9 additions & 0 deletions client-registry-jempi/docker-compose.api-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3.9'

services:
jempi-api:
ports:
- published: 50000
target: 50000
protocol: tcp
mode: host
12 changes: 12 additions & 0 deletions client-registry-jempi/docker-compose.api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3.9'

services:
jempi-api:
image: jembi/jempi-api:${API_IMAGE_TAG}
deploy:
replicas: 1
resources:
limits:
memory: ${API_MEMORY_LIMIT}
reservations:
memory: ${API_MEMORY_RESERVE}
23 changes: 23 additions & 0 deletions client-registry-jempi/docker-compose.combined-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '3.9'

services:
jempi-sync-receiver:
ports:
- published: 50040
target: 50000
protocol: tcp
mode: host

jempi-controller:
ports:
- published: 50020
target: 50000
protocol: tcp
mode: host

jempi-linker:
ports:
- published: 50010
target: 50000
protocol: tcp
mode: host
62 changes: 62 additions & 0 deletions client-registry-jempi/docker-compose.combined.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
version: '3.9'

services:
jempi-async-receiver:
image: jembi/jempi-async-receiver:${ASYNC_RECEIVER_IMAGE_TAG}
deploy:
replicas: 1
resources:
limits:
memory: ${ASYNC_RECEIVER_MEMORY_LIMIT}
reservations:
memory: ${ASYNC_RECEIVER_MEMORY_RESERVE}

jempi-sync-receiver:
image: jembi/jempi-sync-receiver:${SYNC_RECEIVER_IMAGE_TAG}
deploy:
replicas: 1
resources:
limits:
memory: ${SYNC_RECEIVER_MEMORY_LIMIT}
reservations:
memory: ${SYNC_RECEIVER_MEMORY_RESERVE}

jempi-pre-processor:
image: jembi/jempi-pre-processor:${PRE_PROCESSOR_IMAGE_TAG}
deploy:
replicas: 1
resources:
limits:
memory: ${PRE_PROCESSOR_MEMORY_LIMIT}
reservations:
memory: ${PRE_PROCESSOR_MEMORY_RESERVE}

jempi-controller:
image: jembi/jempi-controller:${CONTROLLER_IMAGE_TAG}
deploy:
replicas: 1
resources:
limits:
memory: ${CONTROLLER_MEMORY_LIMIT}
reservations:
memory: ${CONTROLLER_MEMORY_RESERVE}

jempi-em-calculator:
image: jembi/jempi-em-calculator:${EM_CALCULATOR_IMAGE_TAG}
deploy:
replicas: 1
resources:
limits:
memory: ${EM_CALCULATOR_MEMORY_LIMIT}
reservations:
memory: ${EM_CALCULATOR_MEMORY_RESERVE}

jempi-linker:
image: jembi/jempi-linker:${LINKER_IMAGE_TAG}
deploy:
replicas: 1
resources:
limits:
memory: ${LINKER_MEMORY_LIMIT}
reservations:
memory: ${LINKER_MEMORY_RESERVE}
6 changes: 0 additions & 6 deletions client-registry-jempi/docker-compose.dgraph-cluster.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
version: '3.9'

services:
jempi-zero-01:
deploy:
placement:
constraints:
- node.hostname == node-1

jempi-alpha-01:
deploy:
placement:
Expand Down
13 changes: 1 addition & 12 deletions client-registry-jempi/docker-compose.dgraph-dev.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
version: '3.9'

services:
jempi-zero-01:
ports:
- published: 5080
target: 5080
protocol: tcp
mode: host
- published: 6080
target: 6080
protocol: tcp
mode: host

jempi-alpha-01:
ports:
- published: 8070
Expand Down Expand Up @@ -45,7 +34,7 @@ services:
protocol: tcp
mode: host

ratel:
jempi-ratel:
ports:
- published: 8010
target: 8000
Expand Down
8 changes: 8 additions & 0 deletions client-registry-jempi/docker-compose.dgraph-zero-cluster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3.9'

services:
jempi-zero-01:
deploy:
placement:
constraints:
- node.hostname == node-1
13 changes: 13 additions & 0 deletions client-registry-jempi/docker-compose.dgraph-zero-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3.9'

services:
jempi-zero-01:
ports:
- published: 5080
target: 5080
protocol: tcp
mode: host
- published: 6080
target: 6080
protocol: tcp
mode: host
21 changes: 21 additions & 0 deletions client-registry-jempi/docker-compose.dgraph-zero.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '3.9'

services:
jempi-zero-01:
image: dgraph/dgraph:v22.0.0
volumes:
- jempi-zero-01-data:/dgraph
deploy:
replicas: 1
resources:
limits:
memory: ${ZERO_01_MEMORY_LIMIT}
reservations:
memory: ${ZERO_01_MEMORY_RESERVE}
restart_policy:
condition: on-failure
command: dgraph zero --my=jempi-zero-01:5080 --replicas 1

volumes:
jempi-zero-01-data:

16 changes: 0 additions & 16 deletions client-registry-jempi/docker-compose.dgraph.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
version: '3.9'

services:
jempi-zero-01:
image: dgraph/dgraph:v22.0.0
volumes:
- jempi-zero-01-data:/dgraph
deploy:
replicas: 1
resources:
limits:
memory: ${ZERO_01_MEMORY_LIMIT}
reservations:
memory: ${ZERO_01_MEMORY_RESERVE}
restart_policy:
condition: on-failure
command: dgraph zero --my=jempi-zero-01:5080 --replicas 1

jempi-alpha-01:
image: dgraph/dgraph:v22.0.0
volumes:
Expand Down Expand Up @@ -75,7 +60,6 @@ services:
command: dgraph-ratel

volumes:
jempi-zero-01-data:
jempi-alpha-01-data:
jempi-alpha-02-data:
jempi-alpha-03-data:
27 changes: 24 additions & 3 deletions client-registry-jempi/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"JEMPI_KAFDROP_CPU_RESERVE": "0.05",
"JEMPI_KAFDROP_MEMORY_LIMIT": "3G",
"JEMPI_KAFDROP_MEMORY_RESERVE": "500M",
"JEMPI_KAFKA_TOPICS": "jempi-patient-staging-01,jempi-patient-staging-02,jempi-patient-staging-disi,jempi-patient-controller,jempi-patient-em,jempi-patient-linker,jempi-mu-linker,jempi-journal,jempi-notifications",
"JEMPI_KAFKA_DEBUG": false,
"ZERO_01_MEMORY_LIMIT": "3G",
"ZERO_01_MEMORY_RESERVE": "500M",
"ALPHA_01_MEMORY_LIMIT": "3G",
Expand All @@ -28,6 +26,29 @@
"ALPHA_03_MEMORY_LIMIT": "3G",
"ALPHA_03_MEMORY_RESERVE": "500M",
"RATEL_MEMORY_LIMIT": "3G",
"RATEL_MEMORY_RESERVE": "500M"
"RATEL_MEMORY_RESERVE": "500M",
Mark-Labuschagne marked this conversation as resolved.
Show resolved Hide resolved
"ASYNC_RECEIVER_MEMORY_LIMIT": "3G",
"ASYNC_RECEIVER_MEMORY_RESERVE": "500M",
"EM_CALCULATOR_MEMORY_LIMIT": "3G",
"EM_CALCULATOR_MEMORY_RESERVE": "500M",
"CONTROLLER_MEMORY_LIMIT": "3G",
"CONTROLLER_MEMORY_RESERVE": "500M",
"LINKER_MEMORY_LIMIT": "3G",
"LINKER_MEMORY_RESERVE": "500M",
"PRE_PROCESSOR_MEMORY_LIMIT": "3G",
"PRE_PROCESSOR_MEMORY_RESERVE": "500M",
"SYNC_RECEIVER_MEMORY_LIMIT": "3G",
"SYNC_RECEIVER_MEMORY_RESERVE": "500M",
"API_MEMORY_LIMIT": "3G",
"API_MEMORY_RESERVE": "500M",
"JEMPI_KAFKA_TOPICS": "JeMPI-async-preprocessor,JeMPI-patient-controller,JeMPI-patient-em,JeMPI-patient-linker,JeMPI-mu-linker,JeMPI-notifications",
"JEMPI_KAFKA_DEBUG": false,
"ASYNC_RECEIVER_IMAGE_TAG": "0.1.0",
"SYNC_RECEIVER_IMAGE_TAG": "0.1.0",
"PRE_PROCESSOR_IMAGE_TAG": "0.1.0",
"CONTROLLER_IMAGE_TAG": "0.1.0",
"EM_CALCULATOR_IMAGE_TAG": "0.1.0",
"LINKER_IMAGE_TAG": "0.1.0",
"API_IMAGE_TAG": "0.1.0"
}
}
Loading