create_resource_group
- create_resource_group(
name: string,
tier_attributes: Record<string, Record<string, string>> | undefined,
ranking: string,
adjoining_resource_group?: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<CreateResourceGroupResponse>Parameters
- name: string
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.
- tier_attributes: Record<string, Record<string, string>> | undefined
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’
- ranking: string
Indicates the relative ranking among existing resource groups where this new 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<CreateResourceGroupResponse>
Promise<Types.CreateResourceGroupResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:6387
- name: string
create_resource_group_request
- create_resource_group_request(
request: CreateResourceGroupRequest,
callback?: GPUdbCallback,
): Promise<CreateResourceGroupResponse>Creates a new resource group to facilitate resource management.
Parameters
- request: CreateResourceGroupRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<CreateResourceGroupResponse>
Promise<Types.CreateResourceGroupResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:6352
- request: CreateResourceGroupRequest
Creates a new resource group to facilitate resource management.