alter_resource_group
- alter_resource_group(
name: string,
tier_attributes?: Record<string, Record<string, string>>,
ranking?: string,
adjoining_resource_group?: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<AlterResourceGroupResponse>Parameters
- name: string
Name 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.
Optionaltier_attributes: Record<string, Record<string, string>>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’
Optionalranking: stringIf the resource group ranking is to be updated, this indicates the relative ranking among existing resource groups where this resource group will be placed.
Optionaladjoining_resource_group: stringIf
rankingis before or after, this field indicates the resource group before or after which the current group will be placed; otherwise, leave blank.Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<AlterResourceGroupResponse>
Promise<Types.AlterResourceGroupResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:4247
- name: string
alter_resource_group_request
- alter_resource_group_request(
request: AlterResourceGroupRequest,
callback?: GPUdbCallback,
): Promise<AlterResourceGroupResponse>Alters the properties of an existing resource group to facilitate resource management.
Parameters
- request: AlterResourceGroupRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<AlterResourceGroupResponse>
Promise<Types.AlterResourceGroupResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:4211
- request: AlterResourceGroupRequest
Alters the properties of an existing resource group to facilitate resource management.