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

fix: health probe fails after some time #166

Merged
merged 1 commit into from
Jun 4, 2021
Merged

Conversation

xopham
Copy link
Collaborator

@xopham xopham commented Jun 4, 2021

After installing connaisseur the health probe will fail after some time though it only returns true it runs health checks on validators that will not influence the health status but be logged if unhealthy. In case the health checks for the validators take too long, the pod health probe timeouts and the pod is considered unhealthy. Validator health checks are now separated from the pod health.

@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2021

Codecov Report

Merging #166 (8ea6bde) into develop (165f518) will increase coverage by 3.26%.
The diff coverage is 97.43%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #166      +/-   ##
===========================================
+ Coverage    93.52%   96.78%   +3.26%     
===========================================
  Files           15       22       +7     
  Lines          633     1059     +426     
===========================================
+ Hits           592     1025     +433     
+ Misses          41       34       -7     
Impacted Files Coverage Δ
connaisseur/__main__.py 0.00% <ø> (ø)
...naisseur/validators/notaryv2/notaryv2_validator.py 80.00% <80.00%> (ø)
connaisseur/validators/static/static_validator.py 94.11% <94.11%> (ø)
connaisseur/util.py 94.28% <94.28%> (-5.72%) ⬇️
connaisseur/policy.py 93.67% <94.44%> (+0.16%) ⬆️
...naisseur/validators/notaryv1/notaryv1_validator.py 95.65% <95.65%> (ø)
connaisseur/config.py 95.83% <95.83%> (ø)
connaisseur/flask_server.py 97.80% <96.82%> (+26.37%) ⬆️
connaisseur/alert.py 96.87% <96.87%> (ø)
connaisseur/validators/notaryv1/notary.py 97.47% <97.47%> (ø)
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d90dcf3...8ea6bde. Read the comment docs.

@xopham xopham force-pushed the fix/fix-health-probe branch 2 times, most recently from 81a55ac to 377d796 Compare June 4, 2021 11:02
After installing connaisseur the health probe will fail after some time though it only returns true it runs health checks on validators that will not influence the health status but be logged if unhealthy. In case the health checks for the validators take too long, the pod health probe timeouts and the pod is considered unhealthy. Validator health checks are now separated from the pod health.
@phbelitz phbelitz merged commit 9920700 into develop Jun 4, 2021
@phbelitz phbelitz deleted the fix/fix-health-probe branch June 4, 2021 16:15
xopham added a commit that referenced this pull request Jun 5, 2021
After installing connaisseur the health probe will fail after some time though it only returns true it runs health checks on validators that will not influence the health status but be logged if unhealthy. In case the health checks for the validators take too long, the pod health probe timeouts and the pod is considered unhealthy. Validator health checks are now separated from the pod health.
@phbelitz phbelitz mentioned this pull request Jul 26, 2021
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

3 participants