Expand description
Represents a Managed Instance Group Resize Request
Resize Requests are the Managed Instance Group implementation of Dynamic Workload Scheduler Flex Start.
With Dynamic Workload Scheduler in Flex Start mode, you submit a GPU capacity request for your AI/ML jobs by indicating how many you need, a duration, and your preferred region. Dynamic Workload Scheduler intelligently persists the request; once the capacity becomes available, it automatically provisions your VMs enabling your workloads to run continuously for the entire duration of the capacity allocation.
To get more information about ResizeRequest, see:
- API documentation
- How-to Guides
§Example Usage
§Compute Mig Resize Request
resources:
a3Dws:
type: gcp:compute:RegionInstanceTemplate
name: a3_dws
properties:
name: a3-dws
region: us-central1
description: This template is used to create a mig instance that is compatible with DWS resize requests.
instanceDescription: A3 GPU
machineType: a3-highgpu-8g
canIpForward: false
scheduling:
automaticRestart: false
onHostMaintenance: TERMINATE
disks:
- sourceImage: cos-cloud/cos-105-lts
autoDelete: true
boot: true
diskType: pd-ssd
diskSizeGb: '960'
mode: READ_WRITE
guestAccelerators:
- type: nvidia-h100-80gb
count: 8
reservationAffinity:
type: NO_RESERVATION
shieldedInstanceConfig:
enableVtpm: true
enableIntegrityMonitoring: true
networkInterfaces:
- network: default
a3DwsInstanceGroupManager:
type: gcp:compute:InstanceGroupManager
name: a3_dws
properties:
name: a3-dws
baseInstanceName: a3-dws
zone: us-central1-a
versions:
- instanceTemplate: ${a3Dws.selfLink}
instanceLifecyclePolicy:
defaultActionOnFailure: DO_NOTHING
waitForInstances: false
a3ResizeRequest:
type: gcp:compute:ResizeRequest
name: a3_resize_request
properties:
name: a3-dws
instanceGroupManager: ${a3DwsInstanceGroupManager.name}
zone: us-central1-a
description: Test resize request resource
resizeBy: 2
requestedRunDuration:
seconds: 14400
nanos: 0
§Import
ResizeRequest can be imported using any of these accepted formats:
-
projects/{{project}}/zones/{{zone}}/instanceGroupManagers/{{instance_group_manager}}/resizeRequests/{{name}}
-
{{project}}/{{zone}}/{{instance_group_manager}}/{{name}}
-
{{zone}}/{{instance_group_manager}}/{{name}}
-
{{instance_group_manager}}/{{name}}
When using the pulumi import
command, ResizeRequest can be imported using one of the formats above. For example:
$ pulumi import gcp:compute/resizeRequest:ResizeRequest default projects/{{project}}/zones/{{zone}}/instanceGroupManagers/{{instance_group_manager}}/resizeRequests/{{name}}
$ pulumi import gcp:compute/resizeRequest:ResizeRequest default {{project}}/{{zone}}/{{instance_group_manager}}/{{name}}
$ pulumi import gcp:compute/resizeRequest:ResizeRequest default {{zone}}/{{instance_group_manager}}/{{name}}
$ pulumi import gcp:compute/resizeRequest:ResizeRequest default {{instance_group_manager}}/{{name}}
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments