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

Updated health-configmap.yaml to include new API for liveliness check for function worker #302

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mukesh-ctds
Copy link

This update introduces a new liveness check API endpoint (/admin/v3/live) for the function worker. This endpoint allows the system to check the current state of the function worker in addition to the existing health check API endpoint (/metrics).

@mukesh-ctds mukesh-ctds requested a review from pgier January 2, 2025 04:16
@@ -47,6 +47,8 @@ data:
#!/bin/bash
{{- if .Values.enableTokenAuth }}
curl -s --max-time {{ .Values.proxy.probe.timeout }} --fail -H "Authorization: Bearer $(cat /pulsar/token-superuser/superuser.jwt | tr -d '\r')" http://localhost:{{ .Values.function.probe.port }}/metrics/ > /dev/null
curl -s --max-time {{ .Values.proxy.probe.timeout }} --fail -H "Authorization: Bearer $(cat /pulsar/token-superuser/superuser.jwt | tr -d '\r')" http://localhost:{{ .Values.function.probe.port }}/admin/v3/functions/live/ > /dev/null
Copy link
Collaborator

@pgier pgier Jan 2, 2025

Choose a reason for hiding this comment

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

What happens if the function is in an alive state, but the metrics are not working? Does the new endpoint check that metrics are also ok?

Copy link
Author

Choose a reason for hiding this comment

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

Updated the config, if any of the API fails, the pod will restart

Copy link
Collaborator

@pgier pgier left a comment

Choose a reason for hiding this comment

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

LGTM, can you also update the Astra streaming charts?

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