ComputeClusterPlacementConstraintDetails¶
- class oci.core.models.ComputeClusterPlacementConstraintDetails(**kwargs)¶
Bases:
PlacementConstraintDetailsThe details for providing placement constraints for a compute cluster.
Attributes:
LOGICAL_PLACEMENT_CONSTRAINT_PACKED_DISTRIBUTION_MULTI_BLOCKA constant which can be used with the logical_placement_constraint property of a ComputeClusterPlacementConstraintDetails.
A constant which can be used with the logical_placement_constraint property of a ComputeClusterPlacementConstraintDetails.
A constant which can be used with the logical_placement_constraint property of a ComputeClusterPlacementConstraintDetails.
Gets the hpc_island_id of this ComputeClusterPlacementConstraintDetails.
Gets the logical_placement_constraint of this ComputeClusterPlacementConstraintDetails.
Gets the target_memory_fabric_ids of this ComputeClusterPlacementConstraintDetails.
Gets the target_network_block_ids of this ComputeClusterPlacementConstraintDetails.
[Required] Gets the type of this PlacementConstraintDetails.
Methods:
__init__(**kwargs)Initializes a new ComputeClusterPlacementConstraintDetails object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- LOGICAL_PLACEMENT_CONSTRAINT_PACKED_DISTRIBUTION_MULTI_BLOCK = 'PACKED_DISTRIBUTION_MULTI_BLOCK'¶
A constant which can be used with the logical_placement_constraint property of a ComputeClusterPlacementConstraintDetails. This constant has a value of “PACKED_DISTRIBUTION_MULTI_BLOCK”
- LOGICAL_PLACEMENT_CONSTRAINT_SINGLE_BLOCK = 'SINGLE_BLOCK'¶
A constant which can be used with the logical_placement_constraint property of a ComputeClusterPlacementConstraintDetails. This constant has a value of “SINGLE_BLOCK”
- LOGICAL_PLACEMENT_CONSTRAINT_SINGLE_TIER = 'SINGLE_TIER'¶
A constant which can be used with the logical_placement_constraint property of a ComputeClusterPlacementConstraintDetails. This constant has a value of “SINGLE_TIER”
- __init__(**kwargs)¶
Initializes a new ComputeClusterPlacementConstraintDetails object with values from keyword arguments. The default value of the
typeattribute of this class isCOMPUTE_CLUSTERand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
type (str) – The value to assign to the type property of this ComputeClusterPlacementConstraintDetails.
hpc_island_id (str) – The value to assign to the hpc_island_id property of this ComputeClusterPlacementConstraintDetails.
target_network_block_ids (list[str]) – The value to assign to the target_network_block_ids property of this ComputeClusterPlacementConstraintDetails.
target_memory_fabric_ids (list[str]) – The value to assign to the target_memory_fabric_ids property of this ComputeClusterPlacementConstraintDetails.
logical_placement_constraint (str) – The value to assign to the logical_placement_constraint property of this ComputeClusterPlacementConstraintDetails. Allowed values for this property are: “SINGLE_TIER”, “SINGLE_BLOCK”, “PACKED_DISTRIBUTION_MULTI_BLOCK”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property hpc_island_id¶
Gets the hpc_island_id of this ComputeClusterPlacementConstraintDetails. The OCID of the HPC island for the compute cluster.
This field cannot be updated after creation of the compute cluster.
- Returns
The hpc_island_id of this ComputeClusterPlacementConstraintDetails.
- Return type
str
- property logical_placement_constraint¶
Gets the logical_placement_constraint of this ComputeClusterPlacementConstraintDetails. The logical placement strategy to apply. Allowed values are SINGLE_TIER, SINGLE_BLOCK, and PACKED_DISTRIBUTION_MULTI_BLOCK.
Allowed values for this property are: “SINGLE_TIER”, “SINGLE_BLOCK”, “PACKED_DISTRIBUTION_MULTI_BLOCK”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The logical_placement_constraint of this ComputeClusterPlacementConstraintDetails.
- Return type
str
- property target_memory_fabric_ids¶
Gets the target_memory_fabric_ids of this ComputeClusterPlacementConstraintDetails. The list of target GPU memory fabric OCIDs to constrain placement.
If GMFs are passed in, the hpcIslandId must be set on the compute cluster, and the provided GMFs must belong to that same HPC island.
The ordering of the array will be preserved. Ensure that all items in the array are unique.
- Returns
The target_memory_fabric_ids of this ComputeClusterPlacementConstraintDetails.
- Return type
list[str]
- property target_network_block_ids¶
Gets the target_network_block_ids of this ComputeClusterPlacementConstraintDetails. The list of target network block OCIDs to constrain placement.
If targetNetworkBlockIds is provided, the hpcIslandId must be set on the compute cluster, and the provided network blocks must belong to that same HPC island.
The ordering of the array will be preserved. Ensure that all items in the array are unique.
- Returns
The target_network_block_ids of this ComputeClusterPlacementConstraintDetails.
- Return type
list[str]
- property type¶
[Required] Gets the type of this PlacementConstraintDetails. The type for the placement constraints. Use COMPUTE_BARE_METAL_HOST when specifying the compute bare metal host OCID. Use HOST_GROUP when specifying the compute host group OCID. Use COMPUTE_CLUSTER when specifying compute cluster placement constraints.
- Returns
The type of this PlacementConstraintDetails.
- Return type
str