Applies to: Eugene-updates & Fargo
Retrieve the Arakoon master on a cluster.
echo -e "##########################\nWho is the Arakoon master?\n##########################" ; for i in $(pgrep -a arakoon | cut -d ' ' -f 6); do arakoon --who-master -config $i 2>/dev/null ; echo -ne " => " ; echo $i | cut -d '/' -f 6 ; done ; echo -e "\nThere should be $(find /var/log/arakoon/ -mindepth 1 -maxdepth 1 -type d | wc -l) arakoons available!"
echo -e "##########################\nWho is the Arakoon master?\n##########################" ; for i in $(pgrep -a arakoon | cut -d ' ' -f 6); do arakoon --who-master -config $i 2>/dev/null ; echo -ne " => " ; echo $i | cut -d '/' -f 6 ; done ; echo -e "\nThere should be $(find /var/log/upstart/ovs-arakoon-* | grep -v gz | wc -l) arakoons available!"