Package starcluster :: Package commands :: Module restart
[hide private]
[frames] | no frames]

Source Code for Module starcluster.commands.restart

 1  from completers import ClusterCompleter 
 2   
 3   
4 -class CmdRestart(ClusterCompleter):
5 """ 6 restart [options] <cluster_tag> 7 8 Restart an existing cluster 9 10 Example: 11 12 $ starcluster restart mynewcluster 13 14 This command will reboot each node (without terminating), wait for the 15 nodes to come back up, and then reconfigures the cluster without losing 16 any data on the node's local disk 17 """ 18 names = ['restart', 'reboot'] 19 20 tag = None 21
22 - def execute(self, args):
23 if not args: 24 self.parser.error("please specify a cluster <tag_name>") 25 for arg in args: 26 self.cm.restart_cluster(arg)
27