diff options
| author | Franck Cuny <franck.cuny@gmail.com> | 2017-02-15 14:14:04 -0800 |
|---|---|---|
| committer | Franck Cuny <franck.cuny@gmail.com> | 2017-02-15 14:14:04 -0800 |
| commit | a6400298d0b0e9c28cc0a3e34617a8f682eb633f (patch) | |
| tree | 5c8946b4fdaa2c604d914d778282d061f7bddc0e /bin/zk-delete-dark-nodes | |
| parent | [tmux] and once again, add it back .. (diff) | |
| download | emacs.d-a6400298d0b0e9c28cc0a3e34617a8f682eb633f.tar.gz | |
[bin] Update a bunch of scripts.
Diffstat (limited to 'bin/zk-delete-dark-nodes')
| -rwxr-xr-x | bin/zk-delete-dark-nodes | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/zk-delete-dark-nodes b/bin/zk-delete-dark-nodes new file mode 100755 index 0000000..b5e995e --- /dev/null +++ b/bin/zk-delete-dark-nodes @@ -0,0 +1,12 @@ +#!/bin/bash + +set -x +set -e + +members=$(echo "ls /messaging/distributedlog/EventBus/" | zk-shell msgzookeeper.atla.twitter.com --run-from-stdin) + +for m in $members; do + if [[ $m =~ ^eventbus_system_loadtest_8_ ]]; then + echo "rmr /messaging/distributedlog/EventBus/$m" | zk-shell msgzookeeper.atla.twitter.com --run-from-stdin + fi +done |
