Skip to main content

◆ alterResourceGroup() [1/4]

AlterResourceGroupResponse gpudb::GPUdb::alterResourceGroup (const AlterResourceGroupRequest &request_) const

Alters the properties of an existing resource group to facilitate resource management.

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ alterResourceGroup() [2/4]

AlterResourceGroupResponse & gpudb::GPUdb::alterResourceGroup (const AlterResourceGroupRequest &request_,
AlterResourceGroupResponse &response_ ) const

Alters the properties of an existing resource group to facilitate resource management.

Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ alterResourceGroup() [3/4]

AlterResourceGroupResponse gpudb::GPUdb::alterResourceGroup (const std::string &name,
const std::map< std::string, std::map< std::string, std::string > > &tierAttributes,
const std::string &ranking,
const std::string &adjoiningResourceGroup,
const std::map< std::string, std::string > &options ) const

Alters the properties of an existing resource group to facilitate resource management.

Parameters
[in]nameName of the group to be altered. Must be an existing resource group name or an empty string when used in conjunction with is_default_group.
[in]tierAttributesOptional map containing tier names and their respective attribute group limits. The only valid attribute limit that can be set is max_memory (in bytes) for the VRAM and RAM tiers. For instance, to set max VRAM capacity to 1GB per rank per GPU and max RAM capacity to 10GB per rank, use: ‘VRAM’:‘max_memory’:‘1000000000’, ‘RAM’:‘max_memory’:‘10000000000’.
  • alter_resource_group_max_memory: Maximum amount of memory usable at one time, per rank, per GPU, for the VRAM tier; or maximum amount of memory usable at one time, per rank, for the RAM tier.
The default value is an empty map.
[in]rankingIf the resource group ranking is to be updated, this indicates the relative ranking among existing resource groups where this resource group will be placed. Supported values:The default value is alter_resource_group_empty_string.
[in]adjoiningResourceGroupIf ranking is before or after, this field indicates the resource group before or after which the current group will be placed; otherwise, leave blank. The default value is ”.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ alterResourceGroup() [4/4]

AlterResourceGroupResponse & gpudb::GPUdb::alterResourceGroup (const std::string &name,
const std::map< std::string, std::map< std::string, std::string > > &tierAttributes,
const std::string &ranking,
const std::string &adjoiningResourceGroup,
const std::map< std::string, std::string > &options,
AlterResourceGroupResponse &response_ ) const

Alters the properties of an existing resource group to facilitate resource management.

Parameters
[in]nameName of the group to be altered. Must be an existing resource group name or an empty string when used in conjunction with is_default_group.
[in]tierAttributesOptional map containing tier names and their respective attribute group limits. The only valid attribute limit that can be set is max_memory (in bytes) for the VRAM and RAM tiers. For instance, to set max VRAM capacity to 1GB per rank per GPU and max RAM capacity to 10GB per rank, use: ‘VRAM’:‘max_memory’:‘1000000000’, ‘RAM’:‘max_memory’:‘10000000000’.
  • alter_resource_group_max_memory: Maximum amount of memory usable at one time, per rank, per GPU, for the VRAM tier; or maximum amount of memory usable at one time, per rank, for the RAM tier.
The default value is an empty map.
[in]rankingIf the resource group ranking is to be updated, this indicates the relative ranking among existing resource groups where this resource group will be placed. Supported values:The default value is alter_resource_group_empty_string.
[in]adjoiningResourceGroupIf ranking is before or after, this field indicates the resource group before or after which the current group will be placed; otherwise, leave blank. The default value is ”.
[in]optionsOptional parameters.The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).