Lars Volker has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/14146 )
Change subject: IMPALA-8895: Expose daemon health endpoint ...................................................................... IMPALA-8895: Expose daemon health endpoint This change exposes the daemon health of an impalad via an HTTP endpoint '/healthz'. If the server is healthy, this endpoint will return HTTP code 200 (OK). If it is unhealthy, it will return 503 (Service Unavailable). With this change, the endpoint is equivalent to the 'impala-server.ready' metric. Testing: I added a test in test_web_pages.py and observed manually that the endpoint returns 503 while starting up. Change-Id: I05889e21bbb1b97b23fad9928b9e61e5dbff2615 Reviewed-on: http://gerrit.cloudera.org:8080/14146 Reviewed-by: Lars Volker <[email protected]> Tested-by: Lars Volker <[email protected]> --- M be/src/service/impala-http-handler.cc M be/src/service/impala-http-handler.h M be/src/service/impala-server.cc M be/src/service/impala-server.h M be/src/util/metrics.cc M be/src/util/metrics.h M be/src/util/webserver-test.cc M be/src/util/webserver.cc M be/src/util/webserver.h M tests/webserver/test_web_pages.py 10 files changed, 49 insertions(+), 7 deletions(-) Approvals: Lars Volker: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/14146 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I05889e21bbb1b97b23fad9928b9e61e5dbff2615 Gerrit-Change-Number: 14146 Gerrit-PatchSet: 5 Gerrit-Owner: Lars Volker <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Lars Volker <[email protected]> Gerrit-Reviewer: Tim Armstrong <[email protected]>
