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

PTFE-1196 ping redis on healthcheck calls #503

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

tcarmet
Copy link
Contributor

@tcarmet tcarmet commented Dec 15, 2023

No description provided.

@tcarmet tcarmet requested a review from a team as a code owner December 15, 2023 18:33
@codecov-commenter
Copy link

codecov-commenter commented Dec 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4964aff) 85.45% compared to head (edbddb1) 85.55%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #503      +/-   ##
==========================================
+ Coverage   85.45%   85.55%   +0.09%     
==========================================
  Files          31       31              
  Lines        1169     1177       +8     
==========================================
+ Hits          999     1007       +8     
  Misses        170      170              
Flag Coverage Δ
api 66.35% <100.00%> (+0.23%) ⬆️
unit 70.51% <0.00%> (-0.57%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@nootal nootal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm all for pinging Redis, but is this going to fix the issue where the API goes south and returns "Internal Server Error" when redis is back on track?

@tcarmet
Copy link
Contributor Author

tcarmet commented Dec 19, 2023

I'm all for pinging Redis, but is this going to fix the issue where the API goes south and returns "Internal Server Error" when redis is back on track?

The internal server errors were returned because the API was unable to contact the redis server. The reason why it was unable to do so remains a mistery, but regardless of the reason the healthcheck will fail (especially as there could be multiple reason that lead to the same symptom).

When a healthcheck fails, Kubernetes will restart the service accordingly. (Which is the same operation that was done manually to fix the issue)

Now, it is possible that a ping to redis may succeed but other request won't, but before we go into the route of handling all possibilities, let's start with a simple one first.

@tcarmet tcarmet merged commit 1d8b1e9 into main Dec 19, 2023
12 checks passed
@tcarmet tcarmet deleted the bugfix/PTFE-1196-redis-ping-healthcheck branch December 19, 2023 17:14
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.

3 participants