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
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
"
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: