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 | |
parent | [tmux] and once again, add it back .. (diff) | |
download | emacs.d-a6400298d0b0e9c28cc0a3e34617a8f682eb633f.tar.gz |
[bin] Update a bunch of scripts.
-rwxr-xr-x | bin/get-hosts-from-job | 5 | ||||
-rwxr-xr-x | bin/os-centos-7-report (renamed from bin/os-centos-7-report.sh) | 0 | ||||
-rwxr-xr-x | bin/touch-projects | 4 | ||||
-rwxr-xr-x | bin/zk-delete-dark-nodes | 12 |
4 files changed, 20 insertions, 1 deletions
diff --git a/bin/get-hosts-from-job b/bin/get-hosts-from-job new file mode 100755 index 0000000..6985bb6 --- /dev/null +++ b/bin/get-hosts-from-job @@ -0,0 +1,5 @@ +#!/bin/bash + +JOB_NAME=$1 + +aurora job status "${JOB_NAME}" |grep 'RUNNING on'|awk '{print $13}' | sort diff --git a/bin/os-centos-7-report.sh b/bin/os-centos-7-report index c003136..c003136 100755 --- a/bin/os-centos-7-report.sh +++ b/bin/os-centos-7-report diff --git a/bin/touch-projects b/bin/touch-projects index c7de34d..28f0819 100755 --- a/bin/touch-projects +++ b/bin/touch-projects @@ -9,7 +9,9 @@ PROJECTS=( eventbus/read-proxy eventbus/provisioning monitoring-configs - src/python/twitter/messaging + src/python/twitter + distributedlog + kestrel ) for project in "${PROJECTS[@]}"; do 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 |