Project

General

Profile

Actions

Feature #11906

closed

Basic authenticated http health check ("ping") for each system service

Added by Tom Clegg almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
Deployment
Target version:
Story points:
3.0

Description

Functional details:
  • respond to “GET /_health/ping” on same addr:port as the microservice’s main http server (or “management” server in nodemanager’s case)
  • expect header “Authorization: Bearer XXX” where XXX is “ManagementToken” in config file (note "Bearer", not "OAuth2")
  • return 404 if configured management token is blank / missing
  • return 401 if Authorization: header is missing
  • return 403 if Authorization: header does not match configured token
  • return JSON, either {"health":"OK"} or {"health":"ERROR"}

It’s OK if the “ping” healthcheck has lots of false-positive potential -- even if “OK” merely means the process is running. The focus here is instrumenting all services, not detecting all failure modes.


Subtasks 9 (0 open9 closed)

Task #11978: Review branch 11906-keepstore-pingResolvedRadhika Chippada07/17/2017Actions
Task #11981: Review branch 11906-api-pingResolvedLucas Di Pentima07/18/2017Actions
Task #11987: Review branch 11906-wb-pingResolvedLucas Di Pentima07/18/2017Actions
Task #12000: Review 11906-health-check-libResolvedRadhika Chippada07/17/2017Actions
Task #11996: Refactor health check handlers into an SDK libraryResolvedTom Clegg07/17/2017Actions
Task #12021: Review branch 11906-keepproxy-pingResolvedLucas Di Pentima07/24/2017Actions
Task #12043: Review branch 11906-arv-git-httpd-pingResolvedLucas Di Pentima07/26/2017Actions
Task #12041: Review branch 11906-keep-web-pingResolvedRadhika Chippada07/26/2017Actions
Task #12049: Review branch 11906-nodemanager-pingResolvedLucas Di Pentima07/27/2017Actions

Related issues

Related to Arvados - Bug #11901: [arvados-ws] Fix leaking postgres connections and subsequent stallResolvedTom Clegg06/26/2017Actions
Related to Arvados - Idea #11748: Standard convention for Nagios-compatible health check scripts kept alongside source for servicesRejectedActions
Related to Arvados - Feature #12260: Healthcheck endpoint aggregatorResolvedTom Clegg10/10/2017Actions
Actions

Also available in: Atom PDF