[3.1.2 Backport] Add basic ping/healthcheck endpoint

Description

Add API route that users can use for basic healthcheck processes (e.g. Load Balancer healthcheck)

  • Add a new /_ping route on all APIs: public, admin, and metrics

  • If healthy (HTTP server running) return HTTP 200 status and static body

  • Should not require authentication to check the health of an otherwise accessible port (no information leakage)

  • Should always be available to use (not behind a config flag)

  • Should be logged at debug level only (silent at info)

Activity

Show:

CB robot April 8, 2024 at 10:11 PM

Build sync_gateway-3.2.0-350 contains sync_gateway commit 56fbbb2 with commit message:
[3.1.2 Backport] : Add /_ping healthcheck API (#6396)

CB robot April 8, 2024 at 9:31 PM

Build sync_gateway-3.2.0-348 contains sync_gateway commit 56fbbb2 with commit message:
[3.1.2 Backport] : Add /_ping healthcheck API (#6396)

CB robot April 8, 2024 at 8:53 PM

Build sync_gateway-3.2.0-346 contains sync_gateway commit 56fbbb2 with commit message:
[3.1.2 Backport] : Add /_ping healthcheck API (#6396)

CB robot April 8, 2024 at 8:21 PM

Build sync_gateway-3.2.0-344 contains sync_gateway commit 56fbbb2 with commit message:
[3.1.2 Backport] : Add /_ping healthcheck API (#6396)

CB robot April 8, 2024 at 7:41 PM

Build sync_gateway-3.2.0-342 contains sync_gateway commit 56fbbb2 with commit message:
[3.1.2 Backport] : Add /_ping healthcheck API (#6396)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created September 4, 2023 at 1:11 PM
Updated April 8, 2024 at 10:11 PM
Resolved September 7, 2023 at 3:29 PM
Instabug