|
||||||||||
| 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.NoOverCommitPolicy
@InterfaceAudience.LimitedPrivate(value="yarn") @InterfaceStability.Unstable public class NoOverCommitPolicy
This policy enforce a simple physical cluster capacity constraints, by validating that the allocation proposed fits in the current plan. This validation is compatible with "updates" and in verifying the capacity constraints it conceptually remove the prior version of the reservation.
| Constructor Summary | |
|---|---|
NoOverCommitPolicy()
|
|
| Method Summary | |
|---|---|
long |
getValidWindow()
Returns the time range before and after the current reservation considered by this policy. |
void |
init(String planQueuePath,
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 NoOverCommitPolicy()
| Method Detail |
|---|
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
public void init(String planQueuePath,
org.apache.hadoop.conf.Configuration conf)
SharingPolicy
init in interface SharingPolicyplanQueuePath - the name of the queue for this planconf - the system configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||