From 0d72ab0d44e0887704a4be436525abb920f2a86a Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 1 Apr 2022 16:43:20 +0200 Subject: [PATCH] =?utf8?q?Setup=20f=C3=BCr=20die=20Vorf=C3=BChrung=20in=20?= =?utf8?q?der=20Einf=C3=BChrung=20vereinfacht?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * Nur Übergabe zwischen zwei Consumern * Nur geregelte Übergabe * Scaling up/down wird gezeigt --- README.sh | 18 ++++++++---------- docker-compose.yml | 2 +- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/README.sh b/README.sh index fbeb0f1..f249957 100755 --- a/README.sh +++ b/README.sh @@ -12,17 +12,15 @@ echo "Waiting for the Kafka-Cluster to become ready..." docker-compose exec cli cub kafka-ready -b kafka:9092 1 60 > /dev/null 2>&1 || exit 1 docker-compose up setup +# In separatem Terminal mit zugucken mit: +# +# docker-compose logs --tail=10 -f +# docker-compose up -d producer docker-compose up -d peter -sleep 3 -docker-compose up -d franz -sleep 3 +sleep 15 docker-compose up -d beate -sleep 3 -docker-compose up -d klaus -sleep 2 -docker-compose stop franz -sleep 2 -docker-compose kill -s 9 peter -sleep 5 +sleep 15 +docker-compose stop peter +sleep 15 docker-compose stop producer peter franz beate klaus diff --git a/docker-compose.yml b/docker-compose.yml index 4962312..6bd5400 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -44,7 +44,7 @@ services: producer.bootstrap-server: kafka:9092 producer.client-id: producer producer.topic: test - producer.throttle-ms: 100 + producer.throttle-ms: 500 peter: -- 2.20.1