From: Kai Moritz Date: Sun, 3 Apr 2022 13:39:52 +0000 (+0200) Subject: Experimente zu acks-0 aus der Übung entfernt, weil sie nicht funzten X-Git-Tag: acks---lvm-2-tage~12 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=158a57b1e73e3624ec99124a1dad3326ea73ede4;p=demos%2Fkafka%2Ftraining Experimente zu acks-0 aus der Übung entfernt, weil sie nicht funzten --- 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: