-
Notifications
You must be signed in to change notification settings - Fork 595
Added liveness and readiness probe to pms container #117
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
Conversation
cilindrox
left a comment
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.
Thanks @koiralasandesh - let's include some default probes as comments underneath their values.yaml definition - that way, users can uncomment and expect a working probe by default.
Co-authored-by: Gaston Festari <[email protected]>
Co-authored-by: Gaston Festari <[email protected]>
@cilindrox can you please provide me some guidance on what you think would be good defaults for these probes? I am personally using this in my values file, would you like me to add this as default or update anything?
|
sounds good - either |
|
I'm not certain of the definitions of liveness and readiness but Note: when PMS is starting up, running database migrations, and essentially not quite ready to respond to HTTP requests, these endpoint will all respond but with a 503. While there are some other cases where a 503 is returned on endpoints, this is the only case it is returned on these two. This would be better to make sure it doesn't result in a container being restarted while yielding a 503 because if it's a particularly long db migration, the restart will just result in it being run again from the beginning and will indefinitely until the migration is allowed enough time to complete. |
|
@gbooker the restart scenario would be covered by the readiness checks, then the control is handed to the liveness probes. Good point about the redirect too, guess |
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.
looks good to me, same comment as Gaston about the commented defaults.
Also re-run the command helm-docs to update the readme with the new values, (probably after you add the comment)
|
Hello @cilindrox I have added commented liveness and readiness checks as per our discussion. However, I am not much familiar with helm-docs. I installed helm-docs as per @MarshallAsch's instructions and tried to generate the docs. But, the generated one was quite different from the one in the repo. It only has the values table and they are missing the comment descriptions. Can you point me to an instruction or Readme that might help me understand how I can update the docs? |
|
I'll take care of the docs then, I'll push a commit tomorrow probably. (I had a work in progress to switch the doc tool I might have mixed up if I had merged that one or not) |
cilindrox
left a comment
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 👍 - thanks @koiralasandesh
| value: compute,video,utility | ||
| {{- end }} | ||
| {{- with .Values.pms.resources }} | ||
| livenessProbe: |
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.
It appears to me that this is incorrectly nested within resources due to the line above conatining with .Values.pms.resources.
Please let me know if you would like me to include any default probes.