Broker /health endpoint returns 200 OK when process first starts up
See original GitHub issueAfter restarting a broker process, we noticed our brokers have their /health
endpoint return 200s right after the process starts up. Queries sent to the broker during this time return with BrokerResourceMissingError
in the exceptions field. This happens for several seconds and then the /health
endpoint will return 503 until it’s done building its routing maps.
We’re concerned that our load balances might pick up brokers that are being restarted and were wondering if it’s possible for them report 503 instead until it’s ready to serve queries for all tables it’s assigned to.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Production-ready Features - Spring
For example, the health endpoint provides basic application health ... If a @ReadOperation returns a value, the response status will be 200 (OK)....
Read more >Azure Traffic Manager endpoint monitoring | Microsoft Learn
An endpoint is considered healthy if probing agent receives a 200-OK response, or any of the responses configured in the Expected status code ......
Read more >Troubleshoot failing health checks for Application Load ...
You can specify values or ranges of values between 200 and 499. The default value is 200. Check your load balancer health check...
Read more >Returning http 200 OK with error within response body
No, it's very incorrect to send 200 with a error body. HTTP is an application protocol. 200 implies that the response contains a...
Read more >Adding health checks with Liveness, Readiness, and Startup ...
If the endpoint returns a status code from 200 to 399 , the probe is successful. Anything else is considered a failure. There...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My second question here is, can we make it configurable for service status to go to 503 once we send
TERM
orHUP
. Otherwise even though the broker will go down after draining requests, the load balancer will still think it’s safe to send requests that way.True, I’m making changes to not add PinotSM status check when the SM port < 0.