Skip to content

Commit

Permalink
add scale config to high setting
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewErispe committed Jul 15, 2024
1 parent b8f2d7b commit c6b9421
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion devops/linux/docker/conf/env/create-env-linux-high-1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export PROJECT_DATA_MONITOR_DIR=${PROJECT_DIR}/docker_data/data-monitor
export NODE1=$(hostname)
# export NODE1_IP=$(ifconfig | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | head -1 | awk '{ print $2 }')
export NODE1_IP=$(hostname -i)
export PLACEMENT_NODE1=jempi1
export PLACEMENT_NODE2=jempi2
export PLACEMENT_NODE3=jempi3

export SCALE_KEYCLOAK_TEST_SERVER=1
export SCALE_KAFKA_01=1
Expand All @@ -24,7 +27,7 @@ export SCALE_ALPHA_02=1
export SCALE_ALPHA_03=1
export SCALE_RATEL=1
export SCALE_POSTGRESQL=1
export SCALE_LINKER=1
export SCALE_LINKER=3

export POSTGRESQL_USERNAME="postgres"
export POSTGRESQL_PASSWORD="postgres"
Expand Down
18 changes: 9 additions & 9 deletions devops/linux/docker/conf/stack/docker-stack-high-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ services:
condition: on-failure
placement:
constraints:
- node.labels.name == $PLACEMENT_KAFKA_01
- node.labels.name == $PLACEMENT_NODE1

kafka-02:
image: ${IMAGE_REGISTRY}$KAFKA_IMAGE
Expand Down Expand Up @@ -169,7 +169,7 @@ services:
condition: on-failure
placement:
constraints:
- node.labels.name == $PLACEMENT_KAFKA_02
- node.labels.name == $PLACEMENT_NODE2

kafka-03:
image: ${IMAGE_REGISTRY}$KAFKA_IMAGE
Expand Down Expand Up @@ -209,7 +209,7 @@ services:
condition: on-failure
placement:
constraints:
- node.labels.name == $PLACEMENT_KAFKA_03
- node.labels.name == $PLACEMENT_NODE3

zero-01:
image: ${IMAGE_REGISTRY}${DGRAPH_IMAGE}
Expand Down Expand Up @@ -241,7 +241,7 @@ services:
condition: on-failure
placement:
constraints:
- node.labels.name == ${PLACEMENT_DGRAPH_ZERO_01}
- node.labels.name == $PLACEMENT_NODE1
command: dgraph zero --my=zero-01:5080 --replicas 1 --telemetry "reports=false; sentry=false;"

zero-02:
Expand Down Expand Up @@ -274,7 +274,7 @@ services:
condition: on-failure
placement:
constraints:
- node.labels.name == ${PLACEMENT_DGRAPH_ZERO_02}
- node.labels.name == $PLACEMENT_NODE2
command: dgraph zero --my=zero-02:5080 --raft idx=2 --peer zero-01:5080 --replicas 1 --telemetry "reports=false; sentry=false;"

zero-03:
Expand Down Expand Up @@ -307,7 +307,7 @@ services:
condition: on-failure
placement:
constraints:
- node.labels.name == ${PLACEMENT_DGRAPH_ZERO_02}
- node.labels.name == $PLACEMENT_NODE3
command: dgraph zero --my=zero-03:5080 --raft idx=3 --peer zero-01:5080 --replicas 1 --telemetry "reports=false; sentry=false;"

alpha-01:
Expand Down Expand Up @@ -340,7 +340,7 @@ services:
condition: on-failure
placement:
constraints:
- node.labels.name == ${PLACEMENT_DGRAPH_ALPHA_01}
- node.labels.name == $PLACEMENT_NODE1
command: dgraph alpha --my=alpha-01:7080 --zero=zero-01:5080 --cache "size-mb=10240; percentage=50,30,20;" --security whitelist=0.0.0.0/0 --telemetry "reports=false; sentry=false;"

alpha-02:
Expand Down Expand Up @@ -373,7 +373,7 @@ services:
condition: on-failure
placement:
constraints:
- node.labels.name == ${PLACEMENT_DGRAPH_ALPHA_02}
- node.labels.name == $PLACEMENT_NODE2
command: dgraph alpha --my=alpha-02:7081 --zero=zero-01:5080 --cache "size-mb=10240; percentage=50,30,20;" --security whitelist=0.0.0.0/0 -o 1 --telemetry "reports=false; sentry=false;"

alpha-03:
Expand Down Expand Up @@ -406,7 +406,7 @@ services:
condition: on-failure
placement:
constraints:
- node.labels.name == ${PLACEMENT_DGRAPH_ALPHA_03}
- node.labels.name == $PLACEMENT_NODE3
command: dgraph alpha --my=alpha-03:7082 --zero=zero-01:5080 --cache "size-mb=10240; percentage=50,30,20;" --security whitelist=0.0.0.0/0 -o 2 --telemetry "reports=false; sentry=false;"

ratel:
Expand Down

0 comments on commit c6b9421

Please sign in to comment.