From 158a57b1e73e3624ec99124a1dad3326ea73ede4 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 3 Apr 2022 15:39:52 +0200 Subject: [PATCH] =?utf8?q?Experimente=20zu=20acks-0=20aus=20der=20=C3=9Cbu?= =?utf8?q?ng=20entfernt,=20weil=20sie=20nicht=20funzten?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- README.sh | 15 +-------------- docker-compose.yml | 12 +----------- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/README.sh b/README.sh index fc1537c..405b639 100755 --- a/README.sh +++ b/README.sh @@ -29,33 +29,20 @@ docker-compose up -d sleep 10 -echo foo | http -v :8080/foo-acks-0 echo foo | http -v :8081/foo-acks-1 echo foo | http -v :8082/foo-acks-all http -v :8000/seen docker-compose stop kafka-1 -echo bar | http -v :8080/bar-acks-0 echo bar | http -v :8081/bar-acks-1 echo bar | http -v :8082/bar-acks-all http -v :8000/seen docker-compose stop kafka-3 -echo foobar | http -v :8080/foobar-acks-0 echo foobar | http -v :8081/foobar-acks-1 echo foobar | http -v :8082/foobar-acks-all http -v :8000/seen -dd if=/dev/zero bs=4096 count=1 | http -v :8082/to-big-acks-all -dd if=/dev/zero bs=4096 count=1 | http -v :8081/to-big-acks-1 -dd if=/dev/zero bs=4096 count=1 | http -v :8080/to-big-acks-0 -http -v :8000/seen - -docker-compose stop kafka-2 - -echo nirvana | http -v :8080/nirvana-acks-0 -http -v :8000/seen - -docker-compose stop acks-all acks-1 acks-0 consumer +docker-compose stop acks-all acks-1 consumer diff --git a/docker-compose.yml b/docker-compose.yml index 987782f..e2df17f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -65,7 +65,7 @@ services: command: > bash -c " kafka-topics --bootstrap-server kafka:9092 --delete --if-exists --topic test - kafka-topics --bootstrap-server kafka:9092 --create --topic test --partitions 1 --replication-factor 3 --config min.insync.replicas=2 --config max.message.bytes=1024 + kafka-topics --bootstrap-server kafka:9092 --create --topic test --partitions 1 --replication-factor 3 --config min.insync.replicas=2 kafka-topics --bootstrap-server kafka:9092 --describe --topic test " @@ -93,16 +93,6 @@ services: producer.topic: test producer.acks: 1 - acks-0: - image: juplo/rest-producer:1.0-SNAPSHOT - ports: - - 8080:8080 - environment: - producer.bootstrap-server: kafka:9092 - producer.client-id: acks-0 - producer.topic: test - producer.acks: 0 - consumer: image: juplo/counting-consumer:1.0-SNAPSHOT ports: -- 2.20.1