Hedger Lai created YUNIKORN-3465:
------------------------------------
Summary: [scheduler-interface] Add victimAllocationKeys in
PreemptionPredicatesResponse for minimal preemption
Key: YUNIKORN-3465
URL: https://issues.apache.org/jira/browse/YUNIKORN-3465
Project: Apache YuniKorn
Issue Type: Improvement
Reporter: Hedger Lai
Assignee: Hedger Lai
Currently, {{PreemptionPredicatesResponse}} only returns a scalar {{index}}. In
{{yunikorn-core}}, this forces Core to unconditionally evict all candidate
allocations sequentially from index {{0}} through {{index}}, leading to
over-preemption of innocent pods that do not violate predicates.
Under YUNIKORN-3460, we are introducing reprieve verification in k8shim to
achieve minimal victim preemption. To convey the pruned victims back to Core,
we propose adding an optional {{victimAllocationKeys}} field:
{code:protobuf}
message PreemptionPredicatesResponse {
bool success = 1;
int32 index = 2;
map<string, int32> errorMessage = 3;
repeated string victimAllocationKeys = 4;
}
{code}
*Compatibility*: If {{victimAllocationKeys}} is empty, Core falls back to
legacy index-based eviction ({{0..index}}). When populated, Core only evicts
the specified allocations.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]