Class SchedulerHealth
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerHealth
SchedulerHealth class holds the details of the schedulers operations.
SchedulerHealth provides clients with information such as:
- scheduler's latest timestamp
- resources allocated, reserved, released in the last scheduler run
- latest allocation, release, reservation, preemption details
- count of latest allocation, release, reservation, preemption
- aggregate count of latest allocation, release, reservation, preemption, fulfilled reservation
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGet the aggregate of all the allocations count.Get the aggregate of all the fulfilled reservations count.Get the aggregate of all the preemption count.Get the aggregate of all the release count.Get the aggregate of all the reservations count.Get the count of allocation from the latest scheduler health report.Get the details of last allocation.Get the details of last preemption.Get the details of last release.Get the details of last reservation.longGet the timestamp of the latest scheduler operation.Get the count of preemption from the latest scheduler health report.Get the count of release from the latest scheduler health report.Get the count of reservation from the latest scheduler health report.org.apache.hadoop.yarn.api.records.ResourceGet the resources allocated in the last scheduler run.org.apache.hadoop.yarn.api.records.ResourceGet the resources released in the last scheduler run.org.apache.hadoop.yarn.api.records.ResourceGet the resources reserved in the last scheduler run.voidupdateAllocation(long timestamp, org.apache.hadoop.yarn.api.records.NodeId nodeId, org.apache.hadoop.yarn.api.records.ContainerId containerId, String queue) voidupdatePreemption(long timestamp, org.apache.hadoop.yarn.api.records.NodeId nodeId, org.apache.hadoop.yarn.api.records.ContainerId containerId, String queue) voidupdateRelease(long timestamp, org.apache.hadoop.yarn.api.records.NodeId nodeId, org.apache.hadoop.yarn.api.records.ContainerId containerId, String queue) voidupdateReservation(long timestamp, org.apache.hadoop.yarn.api.records.NodeId nodeId, org.apache.hadoop.yarn.api.records.ContainerId containerId, String queue) voidupdateSchedulerAllocationCounts(long count) voidupdateSchedulerFulfilledReservationCounts(long count) voidupdateSchedulerPreemptionCounts(long count) voidupdateSchedulerReleaseCounts(long count) voidupdateSchedulerReleaseDetails(long timestamp, org.apache.hadoop.yarn.api.records.Resource released) voidupdateSchedulerReservationCounts(long count) voidupdateSchedulerRunDetails(long timestamp, org.apache.hadoop.yarn.api.records.Resource allocated, org.apache.hadoop.yarn.api.records.Resource reserved)
-
Method Details
-
updateAllocation
public void updateAllocation(long timestamp, org.apache.hadoop.yarn.api.records.NodeId nodeId, org.apache.hadoop.yarn.api.records.ContainerId containerId, String queue) -
updateRelease
public void updateRelease(long timestamp, org.apache.hadoop.yarn.api.records.NodeId nodeId, org.apache.hadoop.yarn.api.records.ContainerId containerId, String queue) -
updatePreemption
public void updatePreemption(long timestamp, org.apache.hadoop.yarn.api.records.NodeId nodeId, org.apache.hadoop.yarn.api.records.ContainerId containerId, String queue) -
updateReservation
public void updateReservation(long timestamp, org.apache.hadoop.yarn.api.records.NodeId nodeId, org.apache.hadoop.yarn.api.records.ContainerId containerId, String queue) -
updateSchedulerRunDetails
public void updateSchedulerRunDetails(long timestamp, org.apache.hadoop.yarn.api.records.Resource allocated, org.apache.hadoop.yarn.api.records.Resource reserved) -
updateSchedulerReleaseDetails
public void updateSchedulerReleaseDetails(long timestamp, org.apache.hadoop.yarn.api.records.Resource released) -
updateSchedulerReleaseCounts
public void updateSchedulerReleaseCounts(long count) -
updateSchedulerAllocationCounts
public void updateSchedulerAllocationCounts(long count) -
updateSchedulerReservationCounts
public void updateSchedulerReservationCounts(long count) -
updateSchedulerFulfilledReservationCounts
public void updateSchedulerFulfilledReservationCounts(long count) -
updateSchedulerPreemptionCounts
public void updateSchedulerPreemptionCounts(long count) -
getLastSchedulerRunTime
public long getLastSchedulerRunTime()Get the timestamp of the latest scheduler operation.- Returns:
- the scheduler's latest timestamp
-
getResourcesAllocated
public org.apache.hadoop.yarn.api.records.Resource getResourcesAllocated()Get the resources allocated in the last scheduler run.- Returns:
- resources allocated
-
getResourcesReserved
public org.apache.hadoop.yarn.api.records.Resource getResourcesReserved()Get the resources reserved in the last scheduler run.- Returns:
- resources reserved
-
getResourcesReleased
public org.apache.hadoop.yarn.api.records.Resource getResourcesReleased()Get the resources released in the last scheduler run.- Returns:
- resources released
-
getLastAllocationDetails
Get the details of last allocation.- Returns:
- last allocation details
-
getLastReleaseDetails
Get the details of last release.- Returns:
- last release details
-
getLastReservationDetails
Get the details of last reservation.- Returns:
- last reservation details
-
getLastPreemptionDetails
Get the details of last preemption.- Returns:
- last preemption details
-
getAllocationCount
Get the count of allocation from the latest scheduler health report.- Returns:
- allocation count
-
getReleaseCount
Get the count of release from the latest scheduler health report.- Returns:
- release count
-
getReservationCount
Get the count of reservation from the latest scheduler health report.- Returns:
- reservation count
-
getPreemptionCount
Get the count of preemption from the latest scheduler health report.- Returns:
- preemption count
-
getAggregateAllocationCount
Get the aggregate of all the allocations count.- Returns:
- aggregate allocation count
-
getAggregateReleaseCount
Get the aggregate of all the release count.- Returns:
- aggregate release count
-
getAggregateReservationCount
Get the aggregate of all the reservations count.- Returns:
- aggregate reservation count
-
getAggregatePreemptionCount
Get the aggregate of all the preemption count.- Returns:
- aggregate preemption count
-
getAggregateFulFilledReservationsCount
Get the aggregate of all the fulfilled reservations count.- Returns:
- aggregate fulfilled reservations count
-