hashicorp / hashicorp/consul

RFE: Have /v1/agent/maintenance respond to GET with valid response codes

Open
#2,779 2 comments 1 reaction 0 assignees View on GitHub
theme/api type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

Ideally, there'd be a simple way to tell the state of a node via HTTP Response Codes. Even better would be via a HEAD vs. GET request, so that things like Load balancers can auto remove nodes based upon failures. Specifically
/v1/agent/maintenance GET/HEAD - 503 when in maintenance mode
/v1/agent/maintenance GET/HEAD - 200 when not in maintenance mode

Another end point that should return a 503 response code as well:
/v1/agent/checks

It'd be nice if /v1/agent/checks also responded to a HEAD request with the response code for simple health checking/monitoring

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.