feat: Exposed all actuator-endpoints
[demos/kafka/chat] / README.sh
1 #!/bin/sh
2 docker run --rm --sysctl net.ipv4.ip_unprivileged_port_start=0  -v $(pwd)./haproxy.cfg://usr/local/etc/haproxy/haproxy.cfg:ro haproxy:2.7 -c
3 i=$(($i+1)); echo -n "Nachricht #$i -- $(date)" | http put :8080/5c73531c-6fc4-426c-adcb-afc5c140a0f7/kai/$i X-Shard:2
4 echo "show map" | socat stdio tcp4-connect:127.0.0.1:8401
5 echo "show map /usr/local/etc/haproxy/sharding.map" | socat stdio tcp4-connect:127.0.0.1:8401
6 echo "set map /usr/local/etc/haproxy/sharding.map 0 backend_3" | socat stdio tcp4-connect:127.0.0.1:8401