This class is responsible for deciding how many affective workers are needed. It also contains the logic for respawning workers when they are killed by the os.
The workers values are interpreted as follows:
-m
num_cores - m
m < num_cores
-1
num_cores - 1
0
num_cores
1
single threaded mode
n
Private
Readonly
Whether the calling process is the primary process.
True if primary
Check whether the CSS server was booted in single threaded mode.
True is single threaded.
Whether the calling process is a worker process.
True if worker
Spawn all required workers.
This class is responsible for deciding how many affective workers are needed. It also contains the logic for respawning workers when they are killed by the os.
The workers values are interpreted as follows:
-m
num_cores - m
workers (autoscale) (m < num_cores
)-1
num_cores - 1
workers (autoscale)0
num_cores
workers (autoscale)1
single threaded mode
(default)n
n
workers