From 23b9b93b4cacdce8e86c23d0d5de2a9934808c1a Mon Sep 17 00:00:00 2001 From: zeekling Date: Sun, 26 Nov 2023 23:17:59 +0800 Subject: [PATCH] =?UTF-8?q?Yarn=E7=8A=B6=E6=80=81=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yarn/yarn_event.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/yarn/yarn_event.md b/yarn/yarn_event.md index 4b7d424..c9b974b 100644 --- a/yarn/yarn_event.md +++ b/yarn/yarn_event.md @@ -97,5 +97,20 @@ AsyncDispatcher#getEventHandler()是异步派发的关键: ``` + +ResourceManager中状态机: + +- RMApp:用于维护一个Application的生命周期,实现类 - RMAppImpl +- RMAppAttempt:用于维护一次试探运行的生命周期,实现类 - RMAppAttemptImpl +- RMContainer:用于维护一个已分配的资源最小单位Container的生命周期,实现类 - RMContainerImpl +- RMNode:用于维护一个NodeManager的生命周期,实现类 - RMNodeImpl + +NodeManager中状态机: + +- Application:用于维护节点上一个Application的生命周期,实现类 - ApplicationImpl +- Container:用于维护节点上一个容器的生命周期,实现类 - ContainerImpl +- LocalizedResource:用于维护节点上资源本地化的生命周期,没有使用接口即实现类 - LocalizedResource + + https://monkeysayhi.github.io/2018/11/20/%E6%BA%90%E7%A0%81%7CYarn%E7%9A%84%E4%BA%8B%E4%BB%B6%E9%A9%B1%E5%8A%A8%E6%A8%A1%E5%9E%8B%E4%B8%8E%E7%8A%B6%E6%80%81%E6%9C%BA/