DeadlineCloud / Client / update_fleet
update_fleet#
- DeadlineCloud.Client.update_fleet(**kwargs)#
Updates a fleet.
See also: AWS API Documentation
Request Syntax
response = client.update_fleet( clientToken='string', farmId='string', fleetId='string', displayName='string', description='string', roleArn='string', minWorkerCount=123, maxWorkerCount=123, configuration={ 'customerManaged': { 'mode': 'NO_SCALING'|'EVENT_BASED_AUTO_SCALING', 'workerCapabilities': { 'vCpuCount': { 'min': 123, 'max': 123 }, 'memoryMiB': { 'min': 123, 'max': 123 }, 'acceleratorTypes': [ 'gpu', ], 'acceleratorCount': { 'min': 123, 'max': 123 }, 'acceleratorTotalMemoryMiB': { 'min': 123, 'max': 123 }, 'osFamily': 'WINDOWS'|'LINUX'|'MACOS', 'cpuArchitectureType': 'x86_64'|'arm64', 'customAmounts': [ { 'name': 'string', 'min': ..., 'max': ... }, ], 'customAttributes': [ { 'name': 'string', 'values': [ 'string', ] }, ] }, 'storageProfileId': 'string' }, 'serviceManagedEc2': { 'instanceCapabilities': { 'vCpuCount': { 'min': 123, 'max': 123 }, 'memoryMiB': { 'min': 123, 'max': 123 }, 'osFamily': 'WINDOWS'|'LINUX', 'cpuArchitectureType': 'x86_64'|'arm64', 'rootEbsVolume': { 'sizeGiB': 123, 'iops': 123, 'throughputMiB': 123 }, 'acceleratorCapabilities': { 'selections': [ { 'name': 't4'|'a10g'|'l4'|'l40s', 'runtime': 'string' }, ], 'count': { 'min': 123, 'max': 123 } }, 'allowedInstanceTypes': [ 'string', ], 'excludedInstanceTypes': [ 'string', ], 'customAmounts': [ { 'name': 'string', 'min': ..., 'max': ... }, ], 'customAttributes': [ { 'name': 'string', 'values': [ 'string', ] }, ] }, 'instanceMarketOptions': { 'type': 'on-demand'|'spot' } } } )
- Parameters:
clientToken (string) –
The unique token which the server uses to recognize retries of the same request.
This field is autopopulated if not provided.
farmId (string) –
[REQUIRED]
The farm ID to update.
fleetId (string) –
[REQUIRED]
The fleet ID to update.
displayName (string) –
The display name of the fleet to update.
Warning
This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
description (string) –
The description of the fleet to update.
Warning
This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
roleArn (string) – The IAM role ARN that the fleet’s workers assume while running jobs.
minWorkerCount (integer) – The minimum number of workers in the fleet.
maxWorkerCount (integer) – The maximum number of workers in the fleet.
configuration (dict) –
The fleet configuration to update.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
customerManaged
,serviceManagedEc2
.customerManaged (dict) –
The customer managed fleets within a fleet configuration.
mode (string) – [REQUIRED]
The Auto Scaling mode for the customer managed fleet configuration.
workerCapabilities (dict) – [REQUIRED]
The worker capabilities for a customer managed fleet configuration.
vCpuCount (dict) – [REQUIRED]
The vCPU count for the customer manged worker capabilities.
min (integer) – [REQUIRED]
The minimum amount of vCPU.
max (integer) –
The maximum amount of vCPU.
memoryMiB (dict) – [REQUIRED]
The memory (MiB).
min (integer) – [REQUIRED]
The minimum amount of memory (in MiB).
max (integer) –
The maximum amount of memory (in MiB).
acceleratorTypes (list) –
The accelerator types for the customer managed worker capabilities.
(string) –
acceleratorCount (dict) –
The range of the accelerator.
min (integer) – [REQUIRED]
The minimum number of GPU accelerators in the worker host.
max (integer) –
The maximum number of GPU accelerators in the worker host.
acceleratorTotalMemoryMiB (dict) –
The total memory (MiB) for the customer managed worker capabilities.
min (integer) – [REQUIRED]
The minimum amount of memory to use for the accelerator, measured in MiB.
max (integer) –
The maximum amount of memory to use for the accelerator, measured in MiB.
osFamily (string) – [REQUIRED]
The operating system (OS) family.
cpuArchitectureType (string) – [REQUIRED]
The CPU architecture type for the customer managed worker capabilities.
customAmounts (list) –
Custom requirement ranges for customer managed worker capabilities.
(dict) –
The fleet amount and attribute capabilities.
name (string) – [REQUIRED]
The name of the fleet capability.
min (float) – [REQUIRED]
The minimum amount of fleet worker capability.
max (float) –
The maximum amount of the fleet worker capability.
customAttributes (list) –
Custom attributes for the customer manged worker capabilities.
(dict) –
Defines the fleet’s capability name, minimum, and maximum.
name (string) – [REQUIRED]
The name of the fleet attribute capability for the worker.
values (list) – [REQUIRED]
The number of fleet attribute capabilities.
(string) –
storageProfileId (string) –
The storage profile ID.
serviceManagedEc2 (dict) –
The service managed Amazon EC2 instances for a fleet configuration.
instanceCapabilities (dict) – [REQUIRED]
The Amazon EC2 instance capabilities.
vCpuCount (dict) – [REQUIRED]
The amount of vCPU to require for instances in this fleet.
min (integer) – [REQUIRED]
The minimum amount of vCPU.
max (integer) –
The maximum amount of vCPU.
memoryMiB (dict) – [REQUIRED]
The memory, as MiB, for the Amazon EC2 instance type.
min (integer) – [REQUIRED]
The minimum amount of memory (in MiB).
max (integer) –
The maximum amount of memory (in MiB).
osFamily (string) – [REQUIRED]
The operating system (OS) family.
cpuArchitectureType (string) – [REQUIRED]
The CPU architecture type.
rootEbsVolume (dict) –
The root EBS volume.
sizeGiB (integer) –
The EBS volume size in GiB.
iops (integer) –
The IOPS per volume.
throughputMiB (integer) –
The throughput per volume in MiB.
acceleratorCapabilities (dict) –
Describes the GPU accelerator capabilities required for worker host instances in this fleet.
selections (list) – [REQUIRED]
A list of accelerator capabilities requested for this fleet. Only Amazon Elastic Compute Cloud instances that provide these capabilities will be used. For example, if you specify both L4 and T4 chips, Deadline Cloud will use Amazon EC2 instances that have either the L4 or the T4 chip installed.
(dict) –
Describes a specific GPU accelerator required for an Amazon Elastic Compute Cloud worker host.
name (string) – [REQUIRED]
The name of the chip used by the GPU accelerator.
If you specify
l4
as the name of the accelerator, you must specifylatest
orgrid:r550
as the runtime.The available GPU accelerators are:
t4
- NVIDIA T4 Tensor Core GPUa10g
- NVIDIA A10G Tensor Core GPUl4
- NVIDIA L4 Tensor Core GPUl40s
- NVIDIA L40S Tensor Core GPU
runtime (string) –
Specifies the runtime driver to use for the GPU accelerator. You must use the same runtime for all GPUs.
You can choose from the following runtimes:
latest
- Use the latest runtime available for the chip. If you specifylatest
and a new version of the runtime is released, the new version of the runtime is used.grid:r550
- NVIDIA vGPU software 17grid:r535
- NVIDIA vGPU software 16
If you don’t specify a runtime, Deadline Cloud uses
latest
as the default. However, if you have multiple accelerators and specifylatest
for some and leave others blank, Deadline Cloud raises an exception.
count (dict) –
The number of GPU accelerators specified for worker hosts in this fleet.
min (integer) – [REQUIRED]
The minimum number of GPU accelerators in the worker host.
max (integer) –
The maximum number of GPU accelerators in the worker host.
allowedInstanceTypes (list) –
The allowable Amazon EC2 instance types.
(string) –
excludedInstanceTypes (list) –
The instance types to exclude from the fleet.
(string) –
customAmounts (list) –
The custom capability amounts to require for instances in this fleet.
(dict) –
The fleet amount and attribute capabilities.
name (string) – [REQUIRED]
The name of the fleet capability.
min (float) – [REQUIRED]
The minimum amount of fleet worker capability.
max (float) –
The maximum amount of the fleet worker capability.
customAttributes (list) –
The custom capability attributes to require for instances in this fleet.
(dict) –
Defines the fleet’s capability name, minimum, and maximum.
name (string) – [REQUIRED]
The name of the fleet attribute capability for the worker.
values (list) – [REQUIRED]
The number of fleet attribute capabilities.
(string) –
instanceMarketOptions (dict) – [REQUIRED]
The Amazon EC2 market type.
type (string) – [REQUIRED]
The Amazon EC2 instance type.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
DeadlineCloud.Client.exceptions.AccessDeniedException
DeadlineCloud.Client.exceptions.InternalServerErrorException
DeadlineCloud.Client.exceptions.ResourceNotFoundException
DeadlineCloud.Client.exceptions.ThrottlingException
DeadlineCloud.Client.exceptions.ValidationException
DeadlineCloud.Client.exceptions.ServiceQuotaExceededException