-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
kind/enhancementNew feature or requestNew feature or request
Description
Background
At the moment, Cloud Pipeline does not support launching runs on capacity blocks and it would be nice to support it.
Approach
- retrieve instance type (directly from input arguments or fetch from API)
- fetch
launch.reservation.parameterspreference:
# Structure description:
{
"<instance type>": {
"tag": "<name>",
"gpu_requests_enabled": true/false,
"cpu_requests_enabled": true/false,
"ram_requests_enabled": true/false,
"parameters": {
"<parameter name>": "<parameter value>", ...
},
"kube_assign_policy": { ... }
}, ...
}
- if instance type contained in
launch.reservation.parametersprocess such runs on capacity block:- if
gpu_requests_enabled/cpu_requests_enabled/ram_requests_enabledenabled inlaunch.reservation.parameters(for requested instance type) the corresponding parametersCP_CAP_REQUESTS_GPU/CP_CAP_REQUESTS_CPU/CP_CAP_REQUESTS_RAMshall be specified for this run. parameterscontent shall be added to run parameters (input arguments can override them).- pass
kube_assign_policyto run request object (podAssignPolicyfield)
- if
- if instance type not matches
launch.reservation.parameterspipe runcommand shall proceed as now.
Metadata
Metadata
Assignees
Labels
kind/enhancementNew feature or requestNew feature or request