make-test-cluster
#!/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