Skip to content

ATLAS-3508: Add API for getting the active instance as a HTTP status code (503 or 200)#72

Closed
andrewluotechnologies wants to merge 1 commit intoapache:masterfrom
andrewluotechnologies:ATLAS3508
Closed

ATLAS-3508: Add API for getting the active instance as a HTTP status code (503 or 200)#72
andrewluotechnologies wants to merge 1 commit intoapache:masterfrom
andrewluotechnologies:ATLAS3508

Conversation

@andrewluotechnologies
Copy link
Contributor

Currently, Atlas exposes the active instance using the web API /api/atlas/admin/status. However, this returns the status using a string embedded in the body of the response rather than a HTTP error code. For haproxy, this works but requires a sufficient buffer size for the response. On the other hand, for certain proxies (envoy in particular), this is not supported. This proposes to add a new API to return the status of the instance as an HTTP error code: 200 for active, 503 for passive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant