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

Conversation

dofmind
Copy link
Owner

@dofmind dofmind commented Aug 1, 2024

No description provided.

@coveralls
Copy link

coveralls commented Aug 1, 2024

Pull Request Test Coverage Report for Build 10364502299

Details

  • 48 of 62 (77.42%) changed or added relevant lines in 3 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.04%) to 84.673%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/controller/controller.c 15 20 75.0%
src/agent/agent.c 32 41 78.05%
Files with Coverage Reduction New Missed Lines %
src/controller/controller.c 1 85.99%
Totals Coverage Status
Change from base Build 10363044494: -0.04%
Covered Lines: 5016
Relevant Lines: 5924

💛 - Coveralls

@dofmind dofmind force-pushed the check-liveness branch 4 times, most recently from 576d0f9 to 28a82bf Compare August 2, 2024 05:09
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]>
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]>
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.

2 participants