shutdown

Shut down cloud cluster

Syntax

shutdown(cluster)
shutdown(MJScluster,'At',D)
shutdown(MJScluster,'After',event)
shutdown(MJScluster,'After',numhours)

Description

example

shutdown(cluster) shuts down the cluster immediately. You can use this syntax for both for both MATLAB® Parallel Cloud™ and MATLAB Distributed Computing Server™ for Amazon EC2® clusters.

example

shutdown(MJScluster,'At',D) shuts down the cluster at the time specified by the datenum, datevec, or datetime D. D is interpreted in the local time zone unless D is a datetime with TimeZone specified. You can use the MJScluster argument syntaxes only for MATLAB Distributed Computing Server for Amazon EC2 clusters.

example

shutdown(MJScluster,'After',event) shuts down the cluster after the specified event event has occurred. event can be 'never' or 'idle'. A cluster is 'idle' immediately when there are no running jobs, queued jobs, or running pools. The cluster is eligible for shutdown if 'idle' for more than 5 minutes, and is guaranteed to shut down within 60 minutes.

example

shutdown(MJScluster,'After',numhours) shuts down the cluster after numhours hours, as measured from the time the method is called.

Examples

collapse all

shutdown(cluster);

Specify date and time to terminate a cluster using a datenum, datevec, or datetime. The datetime can (optionally) have a TimeZone specified.

shutdown(MJSCluster,'At',datenum('2017-02-22 19:00'));
shutdown(MJSCluster,'At',datevec('2017-02-22 19:00'));
shutdown(MJSCluster,'At',datetime(2017, 2, 22, 19, 0, 0,'TimeZone','local');
shutdown(MJSCluster,'After','never');
shutdown(MJSCluster,'After','idle');
shutdown(MJSCluster,'After',10);

Input Arguments

collapse all

MATLAB Parallel Cloud or MATLAB Distributed Computing Server for Amazon EC2 cluster, specified as cluster object created using parcluster.

Example: shutdown(cluster);

MATLAB Distributed Computing Server for Amazon EC2 cluster, specified as cluster object created using parcluster.

Example: shutdown(MJScluster);

Date and time, specified as a datenum, datevec, or datetime. D is interpreted in the local time zone unless D is a datetime with TimeZone specified.

Example: shutdown(MJSCluster,'At',datenum('2017-02-22 19:00'));

Example: shutdown(MJSCluster,'At',datevec('2017-02-22 19:00'));

Example: shutdown(MJSCluster,'At',datetime(2017, 2, 22, 19, 0, 0,'TimeZone', 'local'));

Event to shut down the cluster, specified as 'never' or 'idle'. A cluster is 'idle' immediately when there are no running jobs, queued jobs, or running pools. The cluster is eligible for shutdown if 'idle' for more than 5 minutes, and is guaranteed to shut down within 60 minutes.

Example: shutdown(MJSCluster,'After','idle');

Number of hours after which the cluster shuts down, specified as scalar, measured from the time you call shutdown.

Example: shutdown(MJSCluster,'After',10);

Introduced in R2017a

Was this topic helpful?