MaximumNumberOfWorkers - Specify maximum number of workers to perform job tasks

Description

With MaximumNumberOfWorkers you specify the greatest number of workers to be used to perform the evaluation of the job's tasks at any one time. Tasks may be distributed to different workers at different times during execution of the job, so that more than MaximumNumberOfWorkers might be used for the whole job, but this property limits the portion of the cluster used for the job at any one time.

Characteristics

Usage

Job object

Read-only

After job is submitted

Data type

Double

Values

You can set the value to anything equal to or greater than the value of the MinimumNumberOfWorkers property.

Examples

Set the maximum number of workers to perform a job.

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

In this example, the job will use no more than 12 workers, regardless of how many tasks are in the job and how many workers are available on the cluster.

See Also

Properties

BusyWorkers, ClusterSize, IdleWorkers, MinimumNumberOfWorkers, NumberOfBusyWorkers, NumberOfIdleWorkers

  


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