|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.server.resourcemanager.reservation.CapacityOverTimePolicy
@InterfaceAudience.LimitedPrivate(value="yarn") @InterfaceStability.Unstable public class CapacityOverTimePolicy
This policy enforces a time-extended notion of Capacity. In particular it guarantees that the allocation received in input when combined with all previous allocation for the user does not violate an instantaneous max limit on the resources received, and that for every window of time of length validWindow, the integral of the allocations for a user (sum of the currently submitted allocation and all prior allocations for the user) does not exceed validWindow * maxAvg. This allows flexibility, in the sense that an allocation can instantaneously use large portions of the available capacity, but prevents abuses by bounding the average use over time. By controlling maxInst, maxAvg, validWindow the administrator configuring this policy can obtain a behavior ranging from instantaneously enforced capacity (akin to existing queues), or fully flexible allocations (likely reserved to super-users, or trusted systems).
| Constructor Summary | |
|---|---|
CapacityOverTimePolicy()
|
|
| Method Summary | |
|---|---|
long |
getValidWindow()
Returns the time range before and after the current reservation considered by this policy. |
void |
init(String reservationQueuePath,
org.apache.hadoop.conf.Configuration conf)
Initialize this policy |
void |
validate(Plan plan,
ReservationAllocation reservation)
This method runs the policy validation logic, and return true/false on whether the ReservationAllocation is acceptable according to this
sharing policy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CapacityOverTimePolicy()
| Method Detail |
|---|
public void init(String reservationQueuePath,
org.apache.hadoop.conf.Configuration conf)
SharingPolicy
init in interface SharingPolicyreservationQueuePath - the name of the queue for this planconf - the system configuration
public void validate(Plan plan,
ReservationAllocation reservation)
throws PlanningException
SharingPolicyReservationAllocation is acceptable according to this
sharing policy.
validate in interface SharingPolicyplan - the Plan we validate againstreservation - the allocation proposed to be added to the
Plan
PlanningException - if the policy is respected if we add this
ReservationAllocation to the Planpublic long getValidWindow()
SharingPolicyPlan, i.e., reservations regarding times before (now - validWindow)
can be deleted.
getValidWindow in interface SharingPolicy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||