Skip to content

Commit

Permalink
Merge pull request #288 from jembi/CU-86bygn3jn_Images-Placement-for-…
Browse files Browse the repository at this point in the history
…Client-Registry-Mapper-Kafka-FHIR

Cu 86bygn3jn images placement for client registry mapper kafka fhir
  • Loading branch information
brett-onions committed May 31, 2024
2 parents 4eca587 + 193d376 commit ec6ae59
Show file tree
Hide file tree
Showing 25 changed files with 96 additions and 74 deletions.
2 changes: 1 addition & 1 deletion client-registry-jempi/docker-compose.combined-cluster.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
jempi-bootstrapper:
Expand Down
8 changes: 1 addition & 7 deletions client-registry-jempi/docker-compose.combined.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
jempi-async-receiver:
Expand All @@ -21,7 +21,6 @@ services:
default:
jempi:


jempi-etl:
image: jembi/jempi-etl:${JEMPI_ETL_IMAGE_TAG}
environment:
Expand All @@ -40,7 +39,6 @@ services:
default:
jempi:


jempi-controller:
image: jembi/jempi-controller:${JEMPI_CONTROLLER_IMAGE_TAG}
environment:
Expand Down Expand Up @@ -75,7 +73,6 @@ services:
jempi:
postgres:


jempi-linker:
image: jembi/jempi-linker:${JEMPI_LINKER_IMAGE_TAG}
environment:
Expand Down Expand Up @@ -111,7 +108,6 @@ services:
jempi:
postgres:


jempi-bootstrapper:
image: jembi/jempi-bootstrapper:${JEMPI_BOOTSTRAPPER_IMAGE_TAG}
environment:
Expand All @@ -134,11 +130,9 @@ services:
jempi:
postgres:


volumes:
jempi-shared-data:


networks:
kafka:
name: kafka_public
Expand Down
12 changes: 6 additions & 6 deletions client-registry-jempi/docker-compose.dgraph-zero-cluster.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
version: '3.9'
version: "3.9"

services:
jempi-zero-01:
deploy:
placement:
constraints:
- node.labels.name == node-1
- node.labels.name == ${JEMPI_ZERO_01_PLACEMENT}
command: dgraph zero --my=jempi-zero-01:5080 --replicas 3 --bindall --raft "idx=1"
networks:
jempi:

jempi-zero-02:
image: dgraph/dgraph:v22.0.0
image: ${JEMPI_ZERO_IMAGE}
volumes:
- jempi-zero-02-data:/dgraph
deploy:
replicas: 1
placement:
constraints:
- node.labels.name == node-2
- node.labels.name == ${JEPMI_ZERO_02_PLACEMENT}
resources:
limits:
memory: ${JEMPI_ZERO_MEMORY_LIMIT}
Expand All @@ -31,14 +31,14 @@ services:
jempi:

jempi-zero-03:
image: dgraph/dgraph:v22.0.0
image: ${JEMPI_ZERO_IMAGE}
volumes:
- jempi-zero-03-data:/dgraph
deploy:
replicas: 1
placement:
constraints:
- node.labels.name == node-3
- node.labels.name == ${JEMPI_ZERO_03_PLACEMENT}
resources:
limits:
memory: ${JEMPI_ZERO_MEMORY_LIMIT}
Expand Down
4 changes: 2 additions & 2 deletions client-registry-jempi/docker-compose.dgraph-zero.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3.9'
version: "3.9"

services:
jempi-zero-01:
image: dgraph/dgraph:v22.0.0
image: ${JEMPI_ZERO_IMAGE}
volumes:
- jempi-zero-01-data:/dgraph
deploy:
Expand Down
10 changes: 5 additions & 5 deletions client-registry-jempi/docker-compose.dgraph.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3.9'
version: "3.9"

services:
jempi-alpha-01:
image: dgraph/dgraph:v22.0.0
image: ${JEMPI_ZERO_IMAGE}
hostname: alpha-01
volumes:
- jempi-alpha-01-data:/dgraph
Expand All @@ -20,7 +20,7 @@ services:
jempi:

jempi-alpha-02:
image: dgraph/dgraph:v22.0.0
image: ${JEMPI_ZERO_IMAGE}
hostname: alpha-02
volumes:
- jempi-alpha-02-data:/dgraph
Expand All @@ -38,7 +38,7 @@ services:
jempi:

jempi-alpha-03:
image: dgraph/dgraph:v22.0.0
image: ${JEMPI_ZERO_IMAGE}
hostname: alpha-03
volumes:
- jempi-alpha-03-data:/dgraph
Expand All @@ -56,7 +56,7 @@ services:
jempi:

jempi-ratel:
image: dgraph/ratel:v21.03.2
image: ${JEMPI_RATEL_IMAGE}
deploy:
replicas: 1
resources:
Expand Down
6 changes: 6 additions & 0 deletions client-registry-jempi/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@
],
"environmentVariables": {
"KAFKA_HOSTS": "kafka-01:9092",
"JEMPI_POSTGRESQL_IMAGE": "bitnami/postgresql-repmgr:15.2.0",
"JEMPI_ZERO_IMAGE": "dgraph/dgraph:v22.0.0",
"JEMPI_RATEL_IMAGE": "dgraph/ratel:v21.03.2",
"JEMPI_ZERO_MEMORY_LIMIT": "3G",
"JEMPI_ZERO_MEMORY_RESERVE": "500M",
"JEMPI_ZERO_01_PLACEMENT": "node-1",
"JEMPI_ZERO_02_PLACEMENT": "node-2",
"JEMPI_ZERO_03_PLACEMENT": "node-3",
"JEMPI_ALPHA_01_MEMORY_LIMIT": "3G",
"JEMPI_ALPHA_01_MEMORY_RESERVE": "500M",
"JEMPI_ALPHA_02_MEMORY_LIMIT": "3G",
Expand Down
6 changes: 3 additions & 3 deletions client-registry-santempi/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3.9'
version: "3.9"

services:
santedb-mpi:
image: santesuite/santedb-mpi:2.2.3
image: ${SANTEMPI_IMAGE}
networks:
mpi:
public:
Expand All @@ -27,7 +27,7 @@ services:
- santedb-data:/santedb

santedb-www:
image: santesuite/santedb-www:2.2.1.10
image: ${SANTEDB_WWW_IMAGE}
networks:
default:
reverse-proxy:
Expand Down
14 changes: 11 additions & 3 deletions client-registry-santempi/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@
"dependencies": ["database-postgres"],
"environmentVariables": {
"SANTEMPI_INSTANCES": "1",
"POSTGRESQL_PASSWORD": "instant101",
"POSTGRESQL_USERNAME": "postgres",
"SANTEMPI_DB_REP_SET": "postgres-1"
"SANTE_POSTGRES_PASSWORD": "postgres",
"SANTEMPI_POSTGRESQL_PASSWORD": "SanteDB123",
"SANTEMPI_POSTGRESQL_USERNAME": "santedb",
"SANTEMPI_REPMGR_PRIMARY_HOST": "santempi-psql-1",
"SANTEMPI_REPMGR_PARTNER_NODES": "santempi-psql-1",
"SANTEMPI_IMAGE": "santesuite/santedb-mpi:2.2.3",
"SANTEDB_WWW_IMAGE": "santesuite/santedb-www:2.2.1.10",
"SANTEMPI_PSQL_IMAGE": "bitnami/postgresql-repmgr:14",
"PSQL_1_PLACEMENT": "node-1",
"PSQL_2_PLACEMENT": "node-2",
"PSQL_3_PLACEMENT": "node-3"
}
}
6 changes: 3 additions & 3 deletions data-mapper-logstash/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3.9'
version: "3.9"

services:
data-mapper-logstash:
image: docker.elastic.co/logstash/logstash:7.12.1
image: ${LOGSTASH_IMAGE}
healthcheck:
test: curl --fail http://localhost:9600 || exit 1
interval: 10s
Expand All @@ -19,7 +19,7 @@ services:
- logstash-data:/usr/share/logstash/data
deploy:
placement:
max_replicas_per_node: 1
max_replicas_per_node: ${LOGSTASH_MAX_REPLICAS_PER_NODE}
replicas: ${LOGSTASH_INSTANCES}
resources:
limits:
Expand Down
2 changes: 2 additions & 0 deletions data-mapper-logstash/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"version": "0.0.1",
"dependencies": ["analytics-datastore-elastic-search"],
"environmentVariables": {
"LOGSTASH_IMAGE": "docker.elastic.co/logstash/logstash:7.12.1",
"LOGSTASH_INSTANCES": "1",
"LOGSTASH_MAX_REPLICAS_PER_NODE": "1",
"LS_JAVA_OPTS": "-Xmx2g -Xms2g",
"LOGSTASH_YML_CONFIG": "logstash-logstash.yml",
"LOGSTASH_DEV_MOUNT": "false",
Expand Down
4 changes: 2 additions & 2 deletions database-postgres/docker-compose-postgres.cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- "node.labels.name==${POSTGRES_1_PLACEMENT}"

postgres-2:
image: bitnami/postgresql-repmgr:14
image: ${POSTGRES_IMAGE}
environment:
POSTGRESQL_PASSWORD: ${POSTGRESQL_PASSWORD}
REPMGR_NODE_NETWORK_NAME: postgres-2
Expand Down Expand Up @@ -45,7 +45,7 @@ services:
postgres:

postgres-3:
image: bitnami/postgresql-repmgr:14
image: ${POSTGRES_IMAGE}
environment:
POSTGRESQL_PASSWORD: ${POSTGRESQL_PASSWORD}
REPMGR_NODE_NETWORK_NAME: postgres-3
Expand Down
2 changes: 1 addition & 1 deletion database-postgres/docker-compose-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
- target: /bitnami/postgresql/conf/conf.d/custom_postgresql.conf
source: postgresql.conf
deploy:
replicas: 1
replicas: ${POSTGRES_REPLICAS}
resources:
limits:
cpus: ${POSTGRES_CPU_LIMIT}
Expand Down
3 changes: 2 additions & 1 deletion database-postgres/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"PGPOOL_MEMORY_RESERVE": "50M",
"HF_PGPOOL_ENABLED": "true",
"POSTGRES_FAILOVER": "automatic",
"POSTGRES_DEGRADED_MONITORING_TIMEOUT": "5"
"POSTGRES_DEGRADED_MONITORING_TIMEOUT": "5",
"POSTGRES_REPLICAS": "1"
}
}
2 changes: 1 addition & 1 deletion kafka-mapper-consumer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
kafka-mapper-consumer:
Expand Down
4 changes: 2 additions & 2 deletions kafka-unbundler-consumer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3.9'
version: "3.9"

services:
kafka-unbundler-consumer:
image: jembi/kafka-unbundler-consumer:0.0.3
image: ${KAFKA_UNBUNDLER_CONSUMER_IMAGE}
environment:
KAFKA_HOST: ${KAFKA_HOST}
KAFKA_PORT: ${KAFKA_PORT}
Expand Down
1 change: 1 addition & 0 deletions kafka-unbundler-consumer/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"version": "0.0.1",
"dependencies": ["message-bus-kafka"],
"environmentVariables": {
"KAFKA_UNBUNDLER_CONSUMER_IMAGE": "jembi/kafka-unbundler-consumer:0.0.3",
"KAFKA_HOST": "kafka-01",
"KAFKA_PORT": "9092"
}
Expand Down
4 changes: 2 additions & 2 deletions message-bus-helper-hapi-proxy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3.9'
version: "3.9"

services:
hapi-proxy:
image: jembi/springproxyserver:20211217-170809.3f57ef5
image: ${HAPI_PROXY_IMAGE}
hostname: hapi-proxy
environment:
HAPI_SERVER_URL: ${HAPI_SERVER_URL}
Expand Down
1 change: 1 addition & 0 deletions message-bus-helper-hapi-proxy/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"type": "infrastructure",
"dependencies": ["message-bus-kafka", "fhir-datastore-hapi-fhir"],
"environmentVariables": {
"HAPI_PROXY_IMAGE": "jembi/springproxyserver:20211217-170809.3f57ef5",
"HAPI_PROXY_INSTANCES": 1,
"HAPI_PROXY_CPU_LIMIT": "0",
"HAPI_PROXY_CPU_RESERVE": "0.05",
Expand Down
Loading

0 comments on commit ec6ae59

Please sign in to comment.