Products & Services Industries Academia Support User Community Company

Learn more about Parallel Computing Toolbox   

MinimumNumberOfWorkers - Specify minimum number of workers to perform job tasks

Description

With MinimumNumberOfWorkers you specify the minimum number of workers to perform the evaluation of the job's tasks. When the job is queued, it will not run until at least this many workers are simultaneously available.

If MinimumNumberOfWorkers workers are available to the job manager, but some of the task dispatches fail due to network or node failures, such that the number of tasks actually dispatched is less than MinimumNumberOfWorkers, the job will be canceled.

Characteristics

Usage

Job object

Read-only

After job is submitted

Data type

Double

Values

The default value is 1. You can set the value anywhere from 1 up to or equal to the value of the MaximumNumberOfWorkers property.

Examples

Set the minimum number of workers to perform a job.

jm = findResource('scheduler','type','jobmanager', ...
          'name','MyJobManager','LookupURL','JobMgrHost');
j = createJob(jm);
set(j, 'MinimumNumberOfWorkers', 6);

In this example, when the job is queued, it will not begin running tasks until at least six workers are available to perform task evaluations.

See Also

Properties

BusyWorkers, ClusterSize, IdleWorkers, MaximumNumberOfWorkers, NumberOfBusyWorkers, NumberOfIdleWorkers

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS