◆ createResourceGroup() [1/4]
| CreateResourceGroupResponse gpudb::GPUdb::createResourceGroup | ( | const CreateResourceGroupRequest & | request_ | ) | const |
◆ createResourceGroup() [2/4]
| CreateResourceGroupResponse & gpudb::GPUdb::createResourceGroup | ( | const CreateResourceGroupRequest & | request_, |
| CreateResourceGroupResponse & | response_ ) const |
Creates a new resource group to facilitate resource management.
Parameters
Returns
Response object containing the result of the operation (initially passed in by reference).
◆ createResourceGroup() [3/4]
| CreateResourceGroupResponse gpudb::GPUdb::createResourceGroup | ( | 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 |
Creates a new resource group to facilitate resource management.
Parameters
| [in] | name | Name of the group to be created. Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match existing resource group name. |
| [in] | tierAttributes | Optional 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’.
|
| [in] | ranking | Indicates the relative ranking among existing resource groups where this new resource group will be placed. Supported values:
|
| [in] | adjoiningResourceGroup | If 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] | options | Optional parameters.
|
Returns
Response object containing the result of the operation.
◆ createResourceGroup() [4/4]
| CreateResourceGroupResponse & gpudb::GPUdb::createResourceGroup | ( | 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, | ||
| CreateResourceGroupResponse & | response_ ) const |
Creates a new resource group to facilitate resource management.
Parameters
| [in] | name | Name of the group to be created. Must contain only letters, digits, and underscores, and cannot begin with a digit. Must not match existing resource group name. |
| [in] | tierAttributes | Optional 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’.
|
| [in] | ranking | Indicates the relative ranking among existing resource groups where this new resource group will be placed. Supported values:
|
| [in] | adjoiningResourceGroup | If 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] | options | Optional parameters.
|
| [out] | response_ | Response object containing the results of the operation. |
Returns
Response object containing the result of the operation (initially passed in by reference).