You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "markhoerth (via GitHub)" <gi...@apache.org> on 2026/08/09 20:53:37 UTC
[PR] Docs: document the health and readiness endpoints [gravitino]
markhoerth opened a new pull request, #12402:
URL: https://github.com/apache/gravitino/pull/12402
HealthOperations and HealthAliasServlet ship in the server but have no doc page, so the endpoints, the root aliases, and gravitino.server.health.entityStore.probeTimeoutMs are undiscoverable outside the source.
Covers what readiness actually tests, an existence lookup for a sentinel metalake run on a bounded thread pool rather than on the request thread, and the five reasons a check reports DOWN, including probe-rejected, which indicates probe traffic outpacing the store rather than any single probe failing.
Also notes that the Helm chart's default probes target / rather than the health endpoints, so a pod whose entity store has failed still reports ready. Correcting the chart defaults is left to a separate change, since the health config entry is marked 1.3.0 and pointing chart defaults at it would need a version floor in Chart.yaml.
Every claim is checked against source: the three endpoints and status codes, the four root aliases with /health.html mapping to the aggregate, the httpServer and entityStore check names, the gravitino_health_probe sentinel, the 1/4/20 probe thread pool, the five DOWN reasons, and probeTimeoutMs defaulting to 2000.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Docs: document the health and readiness endpoints [gravitino]
Posted by "markhoerth (via GitHub)" <gi...@apache.org>.
markhoerth commented on code in PR #12402:
URL: https://github.com/apache/gravitino/pull/12402#discussion_r3753605899
##########
docs/health-and-readiness.md:
##########
@@ -0,0 +1,134 @@
+---
+title: "Health and readiness"
+slug: /health-and-readiness
+keywords:
+ - health
+ - readiness
+ - liveness
+ - monitoring
+license: "This software is licensed under the Apache License version 2."
+---
+
+Gravitino exposes separate liveness and readiness endpoints so that a caller can tell "restart this
+process" apart from "send traffic somewhere else." Liveness answers whether the server can respond
+at all. Readiness answers whether it can reach the entity store and therefore do useful work.
+
+The endpoints follow MicroProfile Health semantics. A healthy check returns 200 and an unhealthy one
+returns 503, both with a JSON body naming the individual checks that ran.
+
+## Quick Start
+
+**1. Check liveness.** This returns 200 whenever an HTTP thread is able to answer.
+
+```shell
+GRAVITINO_URL=http://localhost:8090
Review Comment:
Yes, added. Both services register their own health resources on their own Jetty server,
including in auxiliary mode, so the Gravitino server's endpoints say nothing about them.
The new section carries the paths, ports, and readiness check names for all three.
It also states what each readiness check actually tests, since the two services check less
than the Gravitino server does and in different ways. Iceberg reports UP once
IcebergCatalogWrapperManager is bound, which happens at startup, so it never reflects the
catalog behind it. Lance reports UP once NamespaceWrapper is initialized, and that
initialization is deferred until the first namespace or table request.
That second one has a consequence worth stating on the page: /lance/health/ready cannot be
used as a Kubernetes readiness probe on its own, because a failing readiness probe keeps the
pod out of the Service, no request arrives, and the wrapper never initializes. The page says
to keep Lance liveness on the health endpoint and leave readiness on a request path.
The chart defaults are a separate change. The Gravitino chart probes / , while the Iceberg
and Lance charts probe request paths that carry no credentials once authentication is on.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Docs: document the health and readiness endpoints [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao merged PR #12402:
URL: https://github.com/apache/gravitino/pull/12402
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Docs: document the health and readiness endpoints [gravitino]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12402:
URL: https://github.com/apache/gravitino/pull/12402#issuecomment-5246962142
<!-- coverage-report -->
### Code Coverage Report
|Overall Project|68.34%|:green_circle:|
|:-|:-|:-:|
|Files changed|No Java source files changed|-|
<br>
|Module|Coverage||
|:-|:-|:-:|
|aliyun|1.72%|:red_circle:|
|api|49.37%|:green_circle:|
|authorization-common|85.96%|:green_circle:|
|aws|42.04%|:green_circle:|
|azure|2.47%|:red_circle:|
|catalog-common|9.92%|:red_circle:|
|catalog-fileset|79.74%|:green_circle:|
|catalog-glue|68.95%|:green_circle:|
|catalog-hive|79.4%|:green_circle:|
|catalog-jdbc-common|45.7%|:green_circle:|
|catalog-jdbc-doris|81.8%|:green_circle:|
|catalog-jdbc-mysql|79.33%|:green_circle:|
|catalog-jdbc-postgresql|83.39%|:green_circle:|
|catalog-jdbc-starrocks|79.16%|:green_circle:|
|catalog-kafka|77.01%|:green_circle:|
|catalog-lakehouse-generic|59.18%|:green_circle:|
|catalog-lakehouse-hudi|79.1%|:green_circle:|
|catalog-lakehouse-iceberg|85.93%|:green_circle:|
|catalog-lakehouse-paimon|84.23%|:green_circle:|
|catalog-model|77.72%|:green_circle:|
|cli|44.48%|:green_circle:|
|client-java|78.27%|:green_circle:|
|common|52.57%|:green_circle:|
|core|83.28%|:green_circle:|
|filesystem-hadoop3|77.28%|:green_circle:|
|flink|0.0%|:red_circle:|
|flink-common|48.68%|:green_circle:|
|flink-runtime|0.0%|:red_circle:|
|gcp|14.12%|:red_circle:|
|hadoop-auth|68.0%|:green_circle:|
|hadoop-common|12.7%|:red_circle:|
|hive-metastore-common|53.4%|:green_circle:|
|iceberg-aliyun-bundle|0.0%|:red_circle:|
|iceberg-common|64.75%|:green_circle:|
|iceberg-rest-server|75.03%|:green_circle:|
|idp-basic|86.02%|:green_circle:|
|integration-test-common|0.0%|:red_circle:|
|jobs|62.92%|:green_circle:|
|lance-common|31.75%|:red_circle:|
|lance-rest-server|63.47%|:green_circle:|
|lineage|53.02%|:green_circle:|
|optimizer|83.17%|:green_circle:|
|optimizer-api|21.95%|:red_circle:|
|server|85.76%|:green_circle:|
|server-common|76.47%|:green_circle:|
|spark|28.57%|:red_circle:|
|spark-common|45.89%|:green_circle:|
|tencent|69.84%|:green_circle:|
|trino-connector|40.29%|:green_circle:|
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Docs: document the health and readiness endpoints [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #12402:
URL: https://github.com/apache/gravitino/pull/12402#discussion_r3747541578
##########
docs/health-and-readiness.md:
##########
@@ -0,0 +1,134 @@
+---
+title: "Health and readiness"
+slug: /health-and-readiness
+keywords:
+ - health
+ - readiness
+ - liveness
+ - monitoring
+license: "This software is licensed under the Apache License version 2."
+---
+
+Gravitino exposes separate liveness and readiness endpoints so that a caller can tell "restart this
+process" apart from "send traffic somewhere else." Liveness answers whether the server can respond
+at all. Readiness answers whether it can reach the entity store and therefore do useful work.
+
+The endpoints follow MicroProfile Health semantics. A healthy check returns 200 and an unhealthy one
+returns 503, both with a JSON body naming the individual checks that ran.
+
+## Quick Start
+
+**1. Check liveness.** This returns 200 whenever an HTTP thread is able to answer.
+
+```shell
+GRAVITINO_URL=http://localhost:8090
Review Comment:
Shall we also mention the IRC and Lance Rest endpoints here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org