Skip to content

[Problem RFC] PriorityClass Preemption Displaces a Critical Service #795

Closed

Description

@munimthahmid

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.

This is based on a real production failure mode. Grafana documented a Hosted Prometheus outage caused by Kubernetes Pod Priority behavior, where production ingesters were preempted after a priority rollout/configuration issue: https://grafana.com/blog/how-a-production-outage-was-caused-using-kubernetes-pod-priorities/

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.

Activity

  1. Saadmrp1038 commented on May 27, 2026

    @Saadmrp1038
    Collaborator

    @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.

  2. tianyin commented on May 28, 2026

    @tianyin
    Contributor

    Love the comments from @Saadmrp1038

  3. Saadmrp1038 commented on May 30, 2026

    @Saadmrp1038
    Collaborator

    Implemented by another contributor (#821).
    Luckily, @munimthahmid hadn't started implementation yet. Would've been wasted effort otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions