Preemption is governed by a set of capacity monitor policies, which must be enabled by
yarn.resourcemanager.scheduler.monitor.enable property to
true. These capacity monitor policies apply Preemption in configurable
intervals based on defined capacity allocations, and in as graceful a manner as possible.
Containers are only killed as a last resort.
The following image demonstrates the Preemption workflow: