small pixel drawing of a pufferfish cascade

make-test-cluster

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh
#
# make a little cascade cluster for development & debugging

export CASCADE_DEBUG=true

trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
# error case:
# CASCADE_BIND='127.0.0.1' go run . &
# sleep 5
# CASCADE_BIND='127.0.0.2' CASCADE_JOIN='127.0.0.1' go run . &
# happy case:
CASCADE_NAME=foo CASCADE_BIND='127.0.0.1' go run . &
sleep 5
CASCADE_NAME=bar CASCADE_BIND='127.0.0.2' CASCADE_JOIN='127.0.0.1' go run . &
wait