Last active
December 23, 2015 17:19
-
-
Save dbrandt/6667805 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function restart_balancer() { | |
sh.stopBalancer(); | |
while (sh.isBalancerRunning()) { | |
sleep(1000); | |
} | |
sh.startBalancer(); | |
print("Balancer restarted at " + new ISODate() + "."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment