@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class PreemptionContract extends Object
ApplicationMaster(AM) can satisfy this request according to its own priorities to prevent containers from being forcibly killed by the platform.
|Constructor and Description|
|Modifier and Type||Method and Description|
Assign the set of
If the AM releases resources matching these requests, then the
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract List<PreemptionResourceRequest> getResourceRequest()
PreemptionContainers enumerated in
getContainers()should not be evicted from the cluster. Due to delays in propagating cluster state and sending these messages, there are conditions where satisfied contracts may not prevent the platform from killing containers.
PreemptionResourceRequestto update the
ApplicationMasterabout resources requested back by the
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract Set<PreemptionContainer> getContainers()
PreemptionContainerspecifying which containers owned by the
ApplicationMasterthat may be reclaimed by the
ResourceManager. If the AM prefers a different set of containers, then it may checkpoint or kill containers matching the description in
Copyright © 2022 Apache Software Foundation. All rights reserved.