summary refs log tree commit diff
path: root/bin/tw-zk-delete-nodes
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tw-zk-delete-nodes')
-rwxr-xr-xbin/tw-zk-delete-nodes12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/tw-zk-delete-nodes b/bin/tw-zk-delete-nodes
new file mode 100755
index 0000000..b5e995e
--- /dev/null
+++ b/bin/tw-zk-delete-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