This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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.

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.

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® 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