Class: Google::Cloud::Compute::V1::ResourcePolicyWorkloadPolicy

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/compute/v1/compute.rb

Overview

Represents the workload policy.

Defined Under Namespace

Modules: MaxTopologyDistance, Type

Instance Attribute Summary collapse

Instance Attribute Details

#accelerator_topology::String

Returns Specifies the topology required to create a partition for VMs that have interconnected GPUs.

Returns:

  • (::String)

    Specifies the topology required to create a partition for VMs that have interconnected GPUs.



30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30619

class ResourcePolicyWorkloadPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the maximum distance between instances.
  module MaxTopologyDistance
    # A value indicating that the enum field is not set.
    UNDEFINED_MAX_TOPOLOGY_DISTANCE = 0

    # VMs must be provisioned in the same block.
    BLOCK = 63_294_573

    # VMs must be provisioned in the same cluster.
    CLUSTER = 516_333_018

    # VMs must be provisioned in the same subblock.
    SUBBLOCK = 316_202_573
  end

  # Specifies the intent of the instance placement in the MIG.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    # MIG spreads out the instances as much as possible for high availability.
    HIGH_AVAILABILITY = 409_487_576

    # MIG provisions instances as close to each other as possible for high throughput.
    HIGH_THROUGHPUT = 146_499_815
  end
end

#max_topology_distance::String

Returns Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.

Returns:

  • (::String)

    Specifies the maximum distance between instances. Check the MaxTopologyDistance enum for the list of possible values.



30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30619

class ResourcePolicyWorkloadPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the maximum distance between instances.
  module MaxTopologyDistance
    # A value indicating that the enum field is not set.
    UNDEFINED_MAX_TOPOLOGY_DISTANCE = 0

    # VMs must be provisioned in the same block.
    BLOCK = 63_294_573

    # VMs must be provisioned in the same cluster.
    CLUSTER = 516_333_018

    # VMs must be provisioned in the same subblock.
    SUBBLOCK = 316_202_573
  end

  # Specifies the intent of the instance placement in the MIG.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    # MIG spreads out the instances as much as possible for high availability.
    HIGH_AVAILABILITY = 409_487_576

    # MIG provisions instances as close to each other as possible for high throughput.
    HIGH_THROUGHPUT = 146_499_815
  end
end

#type::String

Returns Specifies the intent of the instance placement in the MIG. Check the Type enum for the list of possible values.

Returns:

  • (::String)

    Specifies the intent of the instance placement in the MIG. Check the Type enum for the list of possible values.



30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30619

class ResourcePolicyWorkloadPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies the maximum distance between instances.
  module MaxTopologyDistance
    # A value indicating that the enum field is not set.
    UNDEFINED_MAX_TOPOLOGY_DISTANCE = 0

    # VMs must be provisioned in the same block.
    BLOCK = 63_294_573

    # VMs must be provisioned in the same cluster.
    CLUSTER = 516_333_018

    # VMs must be provisioned in the same subblock.
    SUBBLOCK = 316_202_573
  end

  # Specifies the intent of the instance placement in the MIG.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    # MIG spreads out the instances as much as possible for high availability.
    HIGH_AVAILABILITY = 409_487_576

    # MIG provisions instances as close to each other as possible for high throughput.
    HIGH_THROUGHPUT = 146_499_815
  end
end