TaskSpecPlacement
Table of Contents
- $constraints : array<string|int, string>|null
- An array of constraint expressions to limit the set of nodes where.
- $maxReplicas : int|null
- Maximum number of replicas for per node (default value is 0, which.
- $platforms : array<string|int, Platform>|null
- Platforms stores all the platforms that the service's image can.
- $preferences : array<string|int, TaskSpecPlacementPreferencesItem>|null
- Preferences provide a way to make the scheduler aware of factors.
- getConstraints() : array<string|int, string>|null
- An array of constraint expressions to limit the set of nodes where.
- getMaxReplicas() : int|null
- Maximum number of replicas for per node (default value is 0, which.
- getPlatforms() : array<string|int, Platform>|null
- Platforms stores all the platforms that the service's image can.
- getPreferences() : array<string|int, TaskSpecPlacementPreferencesItem>|null
- Preferences provide a way to make the scheduler aware of factors.
- setConstraints() : self
- An array of constraint expressions to limit the set of nodes where.
- setMaxReplicas() : self
- Maximum number of replicas for per node (default value is 0, which.
- setPlatforms() : self
- Platforms stores all the platforms that the service's image can.
- setPreferences() : self
- Preferences provide a way to make the scheduler aware of factors.
Properties
$constraints
An array of constraint expressions to limit the set of nodes where.
protected
array<string|int, string>|null
$constraints
$maxReplicas
Maximum number of replicas for per node (default value is 0, which.
protected
int|null
$maxReplicas
= 0
$platforms
Platforms stores all the platforms that the service's image can.
protected
array<string|int, Platform>|null
$platforms
$preferences
Preferences provide a way to make the scheduler aware of factors.
protected
array<string|int, TaskSpecPlacementPreferencesItem>|null
$preferences
Methods
getConstraints()
An array of constraint expressions to limit the set of nodes where.
public
getConstraints() : array<string|int, string>|null
Return values
array<string|int, string>|null —getMaxReplicas()
Maximum number of replicas for per node (default value is 0, which.
public
getMaxReplicas() : int|null
is unlimited)
Return values
int|null —getPlatforms()
Platforms stores all the platforms that the service's image can.
public
getPlatforms() : array<string|int, Platform>|null
Return values
array<string|int, Platform>|null —getPreferences()
Preferences provide a way to make the scheduler aware of factors.
public
getPreferences() : array<string|int, TaskSpecPlacementPreferencesItem>|null
Return values
array<string|int, TaskSpecPlacementPreferencesItem>|null —setConstraints()
An array of constraint expressions to limit the set of nodes where.
public
setConstraints(array<string|int, string>|null $constraints) : self
Parameters
- $constraints : array<string|int, string>|null
Return values
self —setMaxReplicas()
Maximum number of replicas for per node (default value is 0, which.
public
setMaxReplicas(int|null $maxReplicas) : self
is unlimited)
Parameters
- $maxReplicas : int|null
Return values
self —setPlatforms()
Platforms stores all the platforms that the service's image can.
public
setPlatforms(array<string|int, Platform>|null $platforms) : self
Parameters
- $platforms : array<string|int, Platform>|null
Return values
self —setPreferences()
Preferences provide a way to make the scheduler aware of factors.
public
setPreferences(array<string|int, TaskSpecPlacementPreferencesItem>|null $preferences) : self
Parameters
- $preferences : array<string|int, TaskSpecPlacementPreferencesItem>|null