Interface PreemptableResourceScheduler

All Superinterfaces:
org.apache.hadoop.yarn.event.EventHandler<SchedulerEvent>, Recoverable, ResourceScheduler, YarnScheduler
All Known Implementing Classes:
CapacityScheduler

public interface PreemptableResourceScheduler extends ResourceScheduler
Interface for a scheduler that supports preemption/killing
  • Method Details

    • killReservedContainer

      void killReservedContainer(RMContainer container)
      If the scheduler support container reservations, this method is used to ask the scheduler to drop the reservation for the given container.
      Parameters:
      container - Reference to reserved container allocation.
    • markContainerForPreemption

      void markContainerForPreemption(org.apache.hadoop.yarn.api.records.ApplicationAttemptId aid, RMContainer container)
      Ask the scheduler to obtain back the container from a specific application by issuing a preemption request
      Parameters:
      aid - the application from which we want to get a container back
      container - the container we want back
    • markContainerForKillable

      void markContainerForKillable(RMContainer container)
      Ask the scheduler to forcibly interrupt the container given as input.
      Parameters:
      container - RMContainer.