From a6400298d0b0e9c28cc0a3e34617a8f682eb633f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 15 Feb 2017 14:14:04 -0800 Subject: [bin] Update a bunch of scripts. --- bin/zk-delete-dark-nodes | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/zk-delete-dark-nodes (limited to 'bin/zk-delete-dark-nodes') 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 -- cgit 1.4.1