Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to watch node status message #46

Merged
merged 1 commit into from
Mar 2, 2021
Merged

Conversation

tonicmuroq
Copy link
Contributor

由于是 agent 来处理 container 的 status, 那么如果 agent 挂了, 这之后挂掉的 container 就没办法被知道.
selfmon 只是监听 engine, 所以还会认为 container 健康.
那么需要处理 agent 挂了, engine 没挂的情况.
agent 那边会以 node 为维度刷心跳, selfmon 可以订阅 node 的事件, 这样 agent 挂了 selfmon 也可以知道, 设置一把 node 挂就行, 之后 agent 如果恢复了, container 的 status 由 agent 处理, selfmon 知道 agent 恢复之后设置成 node 恢复就行.

@tonicmuroq tonicmuroq requested review from anrs and CMGS March 2, 2021 06:58
@CMGS
Copy link
Contributor

CMGS commented Mar 2, 2021

我理解 self mon 不应该去探测 engine 了

@tonicmuroq
Copy link
Contributor Author

这个可以交给另外个 PR 啊 =.= 探测 engine 倒是也没问题

@CMGS
Copy link
Contributor

CMGS commented Mar 2, 2021

这样的话岂不是有2个东西决定着 node 的生死,没收敛啊- -

@tonicmuroq
Copy link
Contributor Author

我改我改 - -

@CMGS CMGS merged commit 19625cb into master Mar 2, 2021
@CMGS CMGS deleted the add-node-status-watcher branch March 2, 2021 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants