-
Notifications
You must be signed in to change notification settings - Fork 626
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 #226: support the readiness and liveness for kubernetes #238
Conversation
Codecov Report
@@ Coverage Diff @@
## main #238 +/- ##
==========================================
- Coverage 55.65% 54.44% -1.20%
==========================================
Files 82 84 +2
Lines 3249 3470 +221
==========================================
+ Hits 1808 1889 +81
- Misses 1259 1390 +131
- Partials 182 191 +9
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I guess https://github.com/pyroscope-io/helm-chart should be updated accordingly. And, perhaps, we don't need a separate deployment manifest - consider use of the helm chart instead.
ok, i will commit a PR for helm chart |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There should be two different endpoints for liveness and readiness. |
That makes a lot of sense. But right now we don't have any particular reason (apart from crash) for a health controller to restart pyroscope server. The same for readiness: the only condition we should meet before starting accepting incoming requests is that the local storage is accessible - and http server won't start otherwise. Therefore the same endpoint may serve both purposes: readiness probe and liveness probe. Once we introduce more dependencies (e.g., connection to a remote storage backend), we should definitely split the endpoints and logic behind them. |
Will work for now. |
No description provided.