From 9f8bcc8f869626efa0a258b3116582c8354a66d1 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 31 Aug 2022 16:41:04 +0200 Subject: [PATCH] =?utf8?q?Klar=20erkennbar=20gemacht,=20dass=20Staffel?= =?utf8?q?=C3=BCbergabe=20nur=20im=20Regelfall=20klappt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- README.sh | 8 +++++++- docker-compose.yml | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.sh b/README.sh index d22179d..3292f5f 100755 --- a/README.sh +++ b/README.sh @@ -89,6 +89,7 @@ http :8092/results/klaus | jq .[].sum | uniq docker-compose kill -s 9 adder-2 docker-compose start adder-1 +docker-compose kill -s 9 peter klaus while ! [[ $(http 0:8091/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for adder-1..."; sleep 1; done until [ $(http --check-status :8091/results/peter 2> /dev/null) ]; do echo "Waiting for some results for peter to show up on adder-1..."; sleep 1; done until [ $(http --check-status :8091/results/klaus 2> /dev/null) ]; do echo "Waiting for some results for klaus to show up on adder-1..."; sleep 1; done @@ -102,4 +103,9 @@ http :8091/results/peter | jq .[].sum | uniq echo "Resultate für klaus von adder-1" http :8091/results/klaus | jq .[].sum | uniq -docker-compose kill -s 9 peter klaus +sleep 5 + +echo "Resultate für peter von adder-1" +http :8091/results/peter | jq .[].sum | uniq +echo "Resultate für klaus von adder-1" +http :8091/results/klaus | jq .[].sum | uniq diff --git a/docker-compose.yml b/docker-compose.yml index c46b00d..5f0acac 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -131,7 +131,7 @@ services: server.port: 8080 sumup.adder.bootstrap-server: kafka:9092 sumup.adder.client-id: adder-1 - sumup.adder.commit-interval: 3s + sumup.adder.commit-interval: 1s sumup.adder.throttle: 3ms spring.data.mongodb.uri: mongodb://juplo:training@mongo:27017 spring.data.mongodb.database: juplo @@ -145,7 +145,7 @@ services: server.port: 8080 sumup.adder.bootstrap-server: kafka:9092 sumup.adder.client-id: adder-2 - sumup.adder.commit-interval: 3s + sumup.adder.commit-interval: 1s sumup.adder.throttle: 3ms spring.data.mongodb.uri: mongodb://juplo:training@mongo:27017 spring.data.mongodb.database: juplo -- 2.20.1