Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Reviewed
Description
Since we have labels on nodes, so we need to track resource usage by labels, includes
- AM resource (to enforce max-am-resource-by-label after
YARN-2637) - Used resource (includes AM resource usage)
- Reserved resource
- Pending resource
- Headroom
Benefits to have such a common class are:
- Reuse lots of code in different places (Queue/App/User), better maintainability and readability.
- Can make fine-grained locking (e.g. accessing used resource in a queue doesn't need lock a queue)
Attachments
Attachments
Issue Links
- blocks
-
YARN-3099 Capacity Scheduler LeafQueue/ParentQueue should use ResourceUsage to track used-resources-by-label.
- Closed