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

Check liveness #12

Closed
wants to merge 2 commits into from
Closed

Check liveness #12

wants to merge 2 commits into from

Commits on Aug 13, 2024

  1. Add to check the liveness for connection with controller

    This adds a new heartbeat signal for internal DBus to controller, also
    adds a new option to agent: ControllerHeartbeatThreshold.
    
    The controller emits the heartbeat signal like agent. The agent writes
    last seen timestamp for connection with controller if it receives the
    heartbeat signal from controller, and the agent periodically checks the
    last seen timestamp for connection with controller, and if it was sent
    before ControllerHeartbeatThreshold, the agent treats it as
    disconnected.
    
    If ControllerHeartbeatThreshold value is 0, it is disabled to check the
    liveness for connection with controller, and the default value is 0.
    
    Signed-off-by: Joonyoung Shim <[email protected]>
    dofmind committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    a6e8137 View commit details
    Browse the repository at this point in the history
  2. Add an integration test for heartbeat

    An integration test is to verify if the agent gets disconnected when did
    not receive heartbeat since threshold from controller.
    
    Signed-off-by: Joonyoung Shim <[email protected]>
    dofmind committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    19ba4a4 View commit details
    Browse the repository at this point in the history