You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Problem RFC] PriorityClass Preemption Displaces a Critical Service #795
I am thinking of adding a new SREGym benchmark problem around Kubernetes PriorityClass preemption. The idea is to model a case where a high-priority maintenance workload lands on the same node as an important application service. Since the maintenance workload has a higher PriorityClass and a large CPU request, Kubernetes may preempt the lower-priority service pod to make room for it.
For SREGym, I am thinking of using the Hotel Reservation app and targeting a user-facing service such as search. To keep the scenario deterministic, the fault would place the victim service on a selected worker node, then deploy a high-priority maintenance-worker pod onto that same node with a dynamically sized CPU request.
The expected symptom is that the victim service loses ready capacity or its replacement pod stays Pending while the high-priority workload occupies the node. Kubernetes events should show scheduling/preemption or insufficient CPU signals, and frontend requests that depend on the victim service should degrade.
A correct diagnosis should identify the high-priority maintenance workload and Kubernetes priority/preemption behavior as the root cause, rather than blaming the application service itself.
A valid mitigation would restore the service by removing or reducing the harmful maintenance pressure, for example by scaling down the maintenance workload, lowering its priority, reducing its CPU request, or moving it away from the affected node.
Does this idea sound reasonable as a new SREGym benchmark problem? I would appreciate feedback on whether this failure mode fits the benchmark, and whether there is a cleaner way to model the preemption behavior.
@munimthahmid sounds good. There are some implementation details that you would need to figure out. Like a node can have 192 cpu cores. So, dynamically allocating 190 cores to the priority service might be unreasonable. Maybe we can try to enforce a namespace level cpu limit and adjust based on that.
You should try to implement this. The details would become clearer when actively working on it.
Activity
Saadmrp1038 commentedon May 27, 2026
@munimthahmid sounds good. There are some implementation details that you would need to figure out. Like a node can have 192 cpu cores. So, dynamically allocating 190 cores to the priority service might be unreasonable. Maybe we can try to enforce a namespace level cpu limit and adjust based on that.
You should try to implement this. The details would become clearer when actively working on it.
tianyin commentedon May 28, 2026
Love the comments from @Saadmrp1038
Saadmrp1038 commentedon May 30, 2026
Implemented by another contributor (#821).
Luckily, @munimthahmid hadn't started implementation yet. Would've been wasted effort otherwise.