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

Add an endpoint to check whether function worker service is initialized #7350

Merged
merged 4 commits into from
Jun 25, 2020

Conversation

jerrypeng
Copy link
Contributor

Motivation

Add an endpoint to check whether function worker service is initialized. This endpoint can be used as a readiness check

@jerrypeng jerrypeng requested a review from srkukarni June 24, 2020 06:07
@jerrypeng
Copy link
Contributor Author

@cckellogg please also review

@jerrypeng jerrypeng self-assigned this Jun 24, 2020
@jerrypeng jerrypeng added this to the 2.7.0 milestone Jun 24, 2020
@jerrypeng
Copy link
Contributor Author

/pulsarbot run-failure-checks

@ApiResponse(code = 400, message = "Invalid request"),
@ApiResponse(code = 408, message = "Request timeout")
})
@Path("/initialized")
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the full path for this? Will callers need to be authenticated? If so we might want to make that optional (like the metrics endpoint). Otherwise, using this as a readiness/liveness probe in kubernetes will be difficult.

@jerrypeng
Copy link
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@jerrypeng
Copy link
Contributor Author

/pulsarbot run-failure-checks

@jerrypeng
Copy link
Contributor Author

/pulsarbot run-failure-checks

@jerrypeng jerrypeng merged commit ec0271b into apache:master Jun 25, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
…ed (apache#7350)

* Add an endpoint to check whether function worker service is initialized

Co-authored-by: Jerry Peng <jerryp@splunk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants