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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Readiness Endpoint #678

Merged
merged 1 commit into from Jan 17, 2021
Merged

Conversation

EladLeev
Copy link
Contributor

@EladLeev EladLeev commented Jan 16, 2021

Hi 馃槃
I'm creating this PR after facing related issues in our environment.
I think that it's a good idea to add a Readiness endpoint to Burrow.

On Burrow startup, it configures and starts the coordinators one by one in a predefined order (ZK, Storage, Evaluator, HTTP, and so on).
It makes a lot of sense, but the healthcheck itself is initialized on the HTTP subsystem and returns HTTP 200 no matter what's the real status of Burrow is, like mention on the Wiki page.

This causes an issue when something is not right with one of the Kafka / Zookeeper clusters and the consumer subsystem fails -
our orchestration system already got the HTTP 200 (which initialized before even connecting to any client) and marked the deployment of Burrow as a success, and causing silent failure.

In order to avoid this situation, I added a readiness probe, that will be switched only after the last subsystem (the consumer) finish to be initialized with a success, to mark that Burrow is ready to serve requests.

  • Add the feature
  • Cover with test for both startup state and ready state
  • Document in the Wiki page

Thank you!

@EladLeev EladLeev requested a review from bai as a code owner January 16, 2021 15:50
@EladLeev
Copy link
Contributor Author

Well, the CI failed on Setup env stage 馃槥
All test are OK when running make test

@bai
Copy link
Collaborator

bai commented Jan 16, 2021

Thanks for contributing! Could you please rebase off of master, I've fixed CI in #679.

@EladLeev
Copy link
Contributor Author

EladLeev commented Jan 16, 2021

@bai Done, thanks! 馃檹
I cannot change the Wiki, right?

@bai bai merged commit 89743bf into linkedin:master Jan 17, 2021
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.

None yet

2 participants