Example #1
0
    def start(self):
        '''
        Starts the cluster. This may take a few minutes.

        The cluster will remain running until shutdown is called.
        '''
        if self.is_running(_silent=True):
            raise RuntimeWarning('This environment has already been started')

        self.cluster_controller = _ec2_execution._start_commander_host(
            self.name, self.ec2_config, self.s3_state_path, self.num_hosts,
            self.additional_packages, self.idle_shutdown_timeout)
        self._save()
    def start(self):
        '''
        Starts the cluster. This may take a few minutes.

        The cluster will remain running until shutdown is called.
        '''
        if self.is_running(_silent=True):
            raise RuntimeWarning('This environment has already been started')

        self.cluster_controller = _ec2_execution._start_commander_host(self.name,
                                                                       self.ec2_config,
                                                                       self.s3_state_path,
                                                                       self.num_hosts,
                                                                       self.additional_packages,
                                                                       self.idle_shutdown_timeout
                                                                       )
        self._save()