-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add to check the liveness for connection with controller #921
Comments
Thanks for opening the issue! @dofmind I can reproduce this and confirm that the I assume the default behavior of the agent detecting the disconnect would be to actively trigger the disconnect and start with the reconnect loop (as it is done in #920). This would cause emitting a change signal for |
I agree with you. If an agent machine is disconnected over the threshold time, the unit services running on the agent machine should be stopped because the state manager will run them on another agent machine. If the agent emits a change signal for |
Makes sense to me. I think this would be a valuable feature similar to #857. |
Please describe what you would like to see
In #857, describes like below,
However, bluechi-agent still takes quite a while to detect a disconnect of the bluechi-controller. (It takes about 60 seconds even though applied TCP KeepAlive options introduced by #674)
For example, when i unplugged the cable at the Aug 07 11:23:10, bluechi-agent detects disconnection at the Aug 07 11:24:08
Please describe the solution you'd like
If bluechi-controller emits periodic heartbeat signal to the agents and each agent stores the current timestamp in the last seen timestamp property on callback handler of the heartbeat signal, bluechi-agent can check the liveness for connection with controller as implemented in bluechi-controller at #857.
The text was updated successfully, but these errors were encountered: