YARN scheduler latency under concurrent application-submission RPCs
0 reputation · 04 Nov 2024, 16:42 UTC
0 reputation · 04 Nov 2024, 16:42 UTC
The goal is to determine whether YARN ResourceManager scheduling latency that appears only under concurrent application submissions is caused by scheduler lock contention in the queue tree or container-assignment path, and whether this behavior differs across Hadoop 2.x and 3.x releases.
The Fair Scheduler and Capacity Scheduler serialize access to shared scheduler structures, so bursty concurrent RPCs can raise scheduling latency even when cluster resources are idle. Because no version-independent error string or unique fix isolates this behavior, the unresolved question is whether the ResourceManager should further subdivide scheduler locks or decouple admission control from container assignment under bursty load.
In Hadoop 3.x the latency that grows with concurrent application‑submission RPCs is caused by contention on the scheduler’s internal locks that protect the queue tree and the container‑assignment path.
ReentrantReadWriteLock named queueLock.nodeLock.HADOOP‑16234) tracking queueLock contention; no fix has been merged and the same behavior is reproducible in 3.2.x and 3.1.x.yarn.resourcemanager.metrics.enabled=true and expose via JMX or HTTP; ensure schedulerQueueLatency and schedulerAssignmentLatency are collected.YarnClient.submitApplication). Record the RM metrics at one‑second intervals for at least 60 seconds.kill -3 <RM‑PID>) and inspect the output for threads blocked on queueLock or nodeLock (using jstack or VisualVM).RpcClient.invoke()) and compare the distribution of these times to the RM metric peaks.schedulerQueueLatency or schedulerAssignmentLatency) while client‑side RPC round‑trip times remain low and thread dumps show threads waiting on the scheduler locks, the latency originates from ResourceManager lock contention.Please confirm the exact Hadoop 3.x version (e.g., 3.1.2, 3.2.1, 3.3.4) you are observing, as lock names or refactorings may differ between releases and affect the verification steps.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.