Skip to content

Commit cbb2d88

Browse files
committed
update jempi docker config and set new defaults
1 parent 3876e49 commit cbb2d88

File tree

7 files changed

+59
-98
lines changed

7 files changed

+59
-98
lines changed

client-registry-jempi/docker-compose.combined-dev.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

client-registry-jempi/docker-compose.dgraph-cluster.yml

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,60 @@ services:
66
placement:
77
constraints:
88
- node.labels.name == node-1
9-
9+
1010
jempi-alpha-02:
11+
image: ${JEMPI_ZERO_IMAGE}
12+
hostname: alpha-02
13+
volumes:
14+
- jempi-alpha-02-data:/dgraph
1115
deploy:
1216
placement:
1317
constraints:
1418
- node.labels.name == node-2
19+
replicas: 1
20+
resources:
21+
limits:
22+
memory: ${JEMPI_ALPHA_02_MEMORY_LIMIT}
23+
reservations:
24+
memory: ${JEMPI_ALPHA_02_MEMORY_RESERVE}
25+
restart_policy:
26+
condition: on-failure
27+
command: dgraph alpha --my=jempi-alpha-02:7081 --zero=jempi-zero-01:5080 --security whitelist=0.0.0.0/0 -o 1 --telemetry "sentry=false;"
28+
networks:
29+
jempi:
1530

1631
jempi-alpha-03:
32+
image: ${JEMPI_ZERO_IMAGE}
33+
hostname: alpha-03
34+
volumes:
35+
- jempi-alpha-03-data:/dgraph
1736
deploy:
1837
placement:
19-
constraints:
20-
- node.labels.name == node-3
38+
constraints:
39+
- node.labels.name == node-3
40+
replicas: 1
41+
resources:
42+
limits:
43+
memory: ${JEMPI_ALPHA_03_MEMORY_LIMIT}
44+
reservations:
45+
memory: ${JEMPI_ALPHA_03_MEMORY_RESERVE}
46+
restart_policy:
47+
condition: on-failure
48+
command: dgraph alpha --my=jempi-alpha-03:7082 --zero=jempi-zero-01:5080 --security whitelist=0.0.0.0/0 -o 2 --telemetry "sentry=false;"
49+
networks:
50+
jempi:
2151

2252
jempi-ratel:
2353
deploy:
2454
placement:
2555
constraints:
2656
- node.labels.name == node-1
57+
58+
volumes:
59+
jempi-alpha-02-data:
60+
jempi-alpha-03-data:
61+
62+
networks:
63+
jempi:
64+
name: jempi_public
65+
external: true

client-registry-jempi/docker-compose.dgraph-dev.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,6 @@ services:
1212
protocol: tcp
1313
mode: host
1414

15-
jempi-alpha-02:
16-
ports:
17-
- published: 8071
18-
target: 8081
19-
protocol: tcp
20-
mode: host
21-
- published: 9081
22-
target: 9081
23-
protocol: tcp
24-
mode: host
25-
26-
jempi-alpha-03:
27-
ports:
28-
- published: 8072
29-
target: 8082
30-
protocol: tcp
31-
mode: host
32-
- published: 9082
33-
target: 9082
34-
protocol: tcp
35-
mode: host
36-
3715
jempi-ratel:
3816
ports:
3917
- published: 8010

client-registry-jempi/docker-compose.dgraph.yml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -15,43 +15,7 @@ services:
1515
memory: ${JEMPI_ALPHA_01_MEMORY_RESERVE}
1616
restart_policy:
1717
condition: on-failure
18-
command: dgraph alpha --my=jempi-alpha-01:7080 --zero=jempi-zero-01:5080 --security whitelist=0.0.0.0/0 --telemetry "sentry=false;"
19-
networks:
20-
jempi:
21-
22-
jempi-alpha-02:
23-
image: ${JEMPI_ZERO_IMAGE}
24-
hostname: alpha-02
25-
volumes:
26-
- jempi-alpha-02-data:/dgraph
27-
deploy:
28-
replicas: 1
29-
resources:
30-
limits:
31-
memory: ${JEMPI_ALPHA_02_MEMORY_LIMIT}
32-
reservations:
33-
memory: ${JEMPI_ALPHA_02_MEMORY_RESERVE}
34-
restart_policy:
35-
condition: on-failure
36-
command: dgraph alpha --my=jempi-alpha-02:7081 --zero=jempi-zero-01:5080 --security whitelist=0.0.0.0/0 -o 1 --telemetry "sentry=false;"
37-
networks:
38-
jempi:
39-
40-
jempi-alpha-03:
41-
image: ${JEMPI_ZERO_IMAGE}
42-
hostname: alpha-03
43-
volumes:
44-
- jempi-alpha-03-data:/dgraph
45-
deploy:
46-
replicas: 1
47-
resources:
48-
limits:
49-
memory: ${JEMPI_ALPHA_03_MEMORY_LIMIT}
50-
reservations:
51-
memory: ${JEMPI_ALPHA_03_MEMORY_RESERVE}
52-
restart_policy:
53-
condition: on-failure
54-
command: dgraph alpha --my=jempi-alpha-03:7082 --zero=jempi-zero-01:5080 --security whitelist=0.0.0.0/0 -o 2 --telemetry "sentry=false;"
18+
command: dgraph alpha --my=jempi-alpha-01:7080 --zero=jempi-zero-01:5080 --cache "size-mb=4096; percentage=50,30,20;" --security whitelist=0.0.0.0/0 --telemetry "sentry=false;"
5519
networks:
5620
jempi:
5721

@@ -72,8 +36,6 @@ services:
7236

7337
volumes:
7438
jempi-alpha-01-data:
75-
jempi-alpha-02-data:
76-
jempi-alpha-03-data:
7739

7840
networks:
7941
jempi:

client-registry-jempi/importer/openhim/openhimConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const path = require("path");
77
const OPENHIM_CORE_SERVICE_NAME = 'openhim-core'
88
const OPENHIM_MEDIATOR_API_PORT = 8080
99
const OPENHIM_API_PASSWORD =
10-
process.env.OPENHIM_API_PASSWORD || 'openhim-password'
10+
process.env.OPENHIM_API_PASSWORD || 'instant101'
1111
const OPENHIM_API_USERNAME =
1212
process.env.OPENHIM_API_USERNAME || 'root@openhim.org'
1313

client-registry-jempi/package-metadata.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"environmentVariables": {
1414
"KAFKA_HOSTS": "kafka-01:9092",
1515
"JEMPI_POSTGRESQL_IMAGE": "bitnami/postgresql-repmgr:15.2.0",
16-
"JEMPI_ZERO_IMAGE": "dgraph/dgraph:v22.0.0",
16+
"JEMPI_ZERO_IMAGE": "dgraph/dgraph:v23.1.1",
1717
"JEMPI_RATEL_IMAGE": "dgraph/ratel:v21.03.2",
1818
"JEMPI_ZERO_MEMORY_LIMIT": "3G",
1919
"JEMPI_ZERO_MEMORY_RESERVE": "500M",
2020
"JEMPI_ZERO_01_PLACEMENT": "node-1",
2121
"JEMPI_ZERO_02_PLACEMENT": "node-2",
2222
"JEMPI_ZERO_03_PLACEMENT": "node-3",
23-
"JEMPI_ALPHA_01_MEMORY_LIMIT": "3G",
23+
"JEMPI_ALPHA_01_MEMORY_LIMIT": "6G",
2424
"JEMPI_ALPHA_01_MEMORY_RESERVE": "500M",
2525
"JEMPI_ALPHA_02_MEMORY_LIMIT": "3G",
2626
"JEMPI_ALPHA_02_MEMORY_RESERVE": "500M",
@@ -40,23 +40,23 @@
4040
"JEMPI_ETL_MEMORY_RESERVE": "500M",
4141
"JEMPI_API_INSTANCES": 1,
4242
"JEMPI_KAFKA_TOPICS": "JeMPI-async-etl,JeMPI-interaction-controller,JeMPI-interaction-em,JeMPI-interaction-linker,JeMPI-mu-linker,JeMPI-audit-trail,JeMPI-notifications",
43-
"JEMPI_ASYNC_RECEIVER_IMAGE_TAG": "1.0.1-beta",
44-
"JEMPI_CONTROLLER_IMAGE_TAG": "1.0.1-beta",
45-
"JEMPI_LINKER_IMAGE_TAG": "1.0.1-beta",
46-
"JEMPI_API_IMAGE_TAG": "1.0.1-beta",
47-
"JEMPI_API_KC_IMAGE_TAG": "1.0.1-beta",
48-
"JEMPI_ETL_IMAGE_TAG": "1.0.1-beta",
43+
"JEMPI_ASYNC_RECEIVER_IMAGE_TAG": "1.1.0",
44+
"JEMPI_CONTROLLER_IMAGE_TAG": "1.1.0",
45+
"JEMPI_LINKER_IMAGE_TAG": "1.1.1",
46+
"JEMPI_API_IMAGE_TAG": "1.1.1",
47+
"JEMPI_API_KC_IMAGE_TAG": "1.1.1",
48+
"JEMPI_ETL_IMAGE_TAG": "1.1.0",
4949
"JEMPI_ASYNC_RECEIVER_INSTANCES": 1,
5050
"JEMPI_CONTROLLER_INSTANCES": 1,
51-
"JEMPI_LINKER_INSTANCES": 1,
51+
"JEMPI_LINKER_INSTANCES": 3,
5252
"JEMPI_ETL_INSTANCES": 1,
5353
"JEMPI_OPENHIM_PASSWORD": "instant101",
5454
"JEMPI_SESSION_SECRET": "c05ll3lesrinf39t7mc5h6un6r0c69lgfno69dsak3vabeqamouq4328cuaekros401ajdpkh60rrt",
5555
"JEMPI_FILE_IMPORT_MAX_SIZE_BYTE": "128m",
5656
"REACT_APP_JEMPI_BASE_API_HOST": "http://localhost",
5757
"REACT_APP_JEMPI_BASE_API_PORT": "50000",
5858
"REACT_APP_MOCK_BACKEND": "false",
59-
"JEMPI_WEB_VERSION": "1.0.1-beta",
59+
"JEMPI_WEB_VERSION": "1.1.0",
6060
"JEMPI_WEB_INSTANCES": 1,
6161
"JEMPI_WEB_MEMORY_LIMIT": "2G",
6262
"JEMPI_WEB_MEMORY_RESERVE": "500M",
@@ -69,7 +69,7 @@
6969
"KC_JEMPI_ROOT_URL": "http://localhost:3033",
7070
"POSTGRES_SERVICE": "postgres-1",
7171
"JEMPI_POSTGRES_DB": "postgres-1",
72-
"JEMPI_POSTGRESQL_USERNAME": "jempi",
72+
"JEMPI_POSTGRESQL_USERNAME": "postgres",
7373
"JEMPI_POSTGRESQL_PASSWORD": "instant101",
7474
"POSTGRESQL_USERS_DB": "users_db",
7575
"POSTGRESQL_NOTIFICATIONS_DB": "notifications_db",
@@ -82,8 +82,8 @@
8282
"JEMPI_SESSION_DOMAIN_NAME": "localhost",
8383
"DOMAIN_NAME": "",
8484
"KAFKA_APPLICATION_ID_API": "api-app-id",
85-
"DGRAPH_HOSTS": "jempi-alpha-01,jempi-alpha-02,jempi-alpha-03",
86-
"DGRAPH_PORTS": "9080,9081,9082",
85+
"DGRAPH_HOSTS": "jempi-alpha-01",
86+
"DGRAPH_PORTS": "9080",
8787
"LOG4J2_LEVEL": "DEBUG",
8888
"KAFKA_APPLICATION_ID_INTERACTIONS": "app-id-link1",
8989
"KAFKA_APPLICATION_ID_MU": "app-id-link2",
@@ -95,7 +95,7 @@
9595
"KAFKA_APPLICATION_ID_CTRL": "app-id-ctrl",
9696
"KAFKA_CLIENT_ID_CTRL": "client-id-ctrl",
9797
"KAFKA_APPLICATION_ID_BOOTSTRAPPER": "app-id-bootstrapper",
98-
"JEMPI_BOOTSTRAPPER_IMAGE_TAG": "1.0.1-beta",
98+
"JEMPI_BOOTSTRAPPER_IMAGE_TAG": "1.1.0",
9999
"JEMPI_EM_SCALA_IMAGE_TAG": "dev",
100100
"JEMPI_EM_SCALA_INSTANCES": "1",
101101
"JEMPI_EM_SCALA_MEMORY_LIMIT": "3G",

client-registry-jempi/swarm.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ function import_sources() {
3434
function initialize_package() {
3535
local dgraph_dev_compose_param=""
3636
local dgraph_zero_dev_compose_param=""
37-
local combined_dev_compose_param=""
3837
local combined_cluster_compose_param=""
3938
local api_dev_compose_param=""
4039
local web_dev_compose_param=""
@@ -45,7 +44,6 @@ function initialize_package() {
4544
log info "Running package in DEV mode"
4645
dgraph_dev_compose_param="docker-compose.dgraph-dev.yml"
4746
dgraph_zero_dev_compose_param="docker-compose.dgraph-zero-dev.yml"
48-
combined_dev_compose_param="docker-compose.combined-dev.yml"
4947
api_dev_compose_param="docker-compose.api-dev.yml"
5048
web_dev_compose_param="docker-compose.web-dev.yml"
5149
else
@@ -74,7 +72,7 @@ function initialize_package() {
7472
docker::deploy_service $STACK "${COMPOSE_FILE_PATH}" "docker-compose.dgraph.yml" "$dgraph_dev_compose_param" "$dgraph_cluster_compose_param"
7573

7674
log info "Deploy other combined services"
77-
docker::deploy_service $STACK "${COMPOSE_FILE_PATH}" "docker-compose.combined.yml" "$combined_dev_compose_param" "$combined_cluster_compose_param"
75+
docker::deploy_service $STACK "${COMPOSE_FILE_PATH}" "docker-compose.combined.yml" "$combined_cluster_compose_param"
7876

7977
log info "Deploy JeMPI API"
8078
docker::deploy_service $STACK "${COMPOSE_FILE_PATH}" "docker-compose.api.yml" "$api_dev_compose_param"

0 commit comments

Comments
 (0)