projecteru2/agent

eru_agent container status update

Closed this issue · 2 comments

while container stops, eru needs to update running field no matter the status of health check

骗人的.

两个节点 testnodetestnode1, 只有一个 testnode 注册了 agent, 所以跑在 testnode1 上的容器永远没有 agent 上报状态; 而古代 eru-core 的容器状态初始化的时候就是 running=true, 没有 agent 上报所以一直没有更新, 所以 restart 失败.

在新版 eru-core 里容器是初始化状态是 running=false, 所以就算没有上报更新也能狗且 restart 成功...

解决办法, 再注册一个 agent 容器, 环境变量里指定是对 testnode1 上报; 或者升级到最新的 eru-core.

request closing