Health Checks for Dataplane

Hi Community

We are trying to deploy Kong in Hybrid mode (Control Plane & Data Plane setup).
As a part of high availability setup we are setting up multiple Data Planes in different regions. As a part of failover we need to have a health endpoint on Data plane, does kong have any health check endpoint on Data Plane that can be continuously polled to check data plane healthiness ?

@Aman_Thakur - This link talks about the status endpoints.

Thanks @JohnWilliams for the quick reply.

I can see the endpoints in this documentation are either part of Admin API which itself is part of Control Plane or Status API on Data Plane which exposes /metrics & /status endpoints which is not helpful for checking the healthiness of the Data Plane since we need something which just replies with 200 status code with minimal response body.

@Aman_Thakur - Internally even the readiness probe uses this endpoint to see if the data plane is ready to take traffic. Its a simple response with 200.

http://localhost:8100/status/ready

curl -v http://localhost:8100/status/ready

> GET /status/ready HTTP/1.1
> Host: localhost:8100
> User-Agent: curl/8.1.2
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 07 Nov 2023 16:52:29 GMT
< Content-Type: application/json; charset=utf-8
< Connection: keep-alive
< Access-Control-Allow-Origin: *
< X-Kong-Status-Request-ID: 388w6BxBmOT90fTZExTld21NjEXzXPK4
< Content-Length: 19
< X-Kong-Admin-Latency: 2
< Server: kong/3.4.1.1-enterprise-edition

{"message":"ready"}

Thanks @JohnWilliams

I think this will work.