resize
R2026bOutput or update resizing information for job manager processes
You can set your MATLAB® Job Scheduler cluster to resize automatically based on demand. For details,
see Set Up MATLAB Job Scheduler Cluster for Auto-Resizing. Use the
resize command to return information about the resizeable
cluster while the cluster is running. You can also use the resize
command to update the limits of the resizeable cluster.
The
resize executable resides in the folder
(Windows® operating system) or matlabroot\toolbox\parallel\bin
(Linux® operating system). Enter the command at a Windows or Linux command-line prompt, respectively.matlabroot/toolbox/parallel/bin
Syntax
resize status
resize update
resize ___ --options
Description
resize status returns information about the job manager and worker
processes in JSON format. The mjs service must already be running on the
target computer. For each job manager, resize status displays the job
manager's name, host name, desired and maximum number of Linux and Windows workers, and registered workers. The worker information includes their name,
host, operating system, state, and number of seconds they have been idle. Use this
information to decide whether you need to start or stop workers.
resize update updates resizing limits for the job manager
processes. Use this argument with the --maxlinuxworkers and
--maxwindowsworkers to specify new limits for the resizeable
cluster.
resize ___ accepts
the following options. You can use multiple options together in the same command. Precede
each option with two dashes (--options--).
Before R2026b: To specify an option, use a single dash
(-).
| Option | Operation |
|---|---|
--jobmanager | Specify the name of a single job manager process to query or update
resizing information. If you do not use this option, the command outputs or
updates resizing information for all job manager processes the
|
--maxlinuxworkers | Update the maximum number of Linux workers the cluster can resize to on demand. |
--maxwindowsworkers | Update the maximum number of Windows workers the cluster can resize to on demand. |
--remotehost <hostname> | Specify the host of the |
--baseport <port_number> | Specify the base port used by the |
--secretfile <path_to_shared_secret_file> |
Specify the path to the shared secret file to use to sign the
command. This option is required when the $CHECKPOINTBASE/security/secret |
Examples
Display the resizing information of the job managers on the local host.
resize status{
"jobManagers": [
{
"name": "myJobManager",
"host": "myhostname",
"desiredWorkers": {
"linux": 1,
"windows": 0
},
"maxWorkers": {
"linux": 4,
"windows": 8,
},
"workers": [
{
"name": "worker_1",
"host": "myhostname",
"operatingSystem": "linux",
"state": "busy",
"secondsIdle": 0
},
{
"name": "worker_2",
"host": "myhostname",
"operatingSystem": "linux",
"state": "idle",
"secondsIdle": 60
}
]
}
]
}Display resizing information about the job managers on remote host
node27.
resize status --remotehost node27Display resizing information about the job manager named myJobManager
on the local host.
resize status --jobmanager myJobManagerUpdate the maximum number of Linux workers for the job manager named MyJobManager on the local
host.
resize update --jobmanager MyJobManager --maxlinuxworkers 8See Also
mjs | nodestatus | startjobmanager | startworker | stopjobmanager