Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tyk's health check always returns 200 #6674

Open
vanny96 opened this issue Oct 28, 2024 · 0 comments
Open

Tyk's health check always returns 200 #6674

vanny96 opened this issue Oct 28, 2024 · 0 comments
Labels

Comments

@vanny96
Copy link

vanny96 commented Oct 28, 2024

Version and Environment

  • Branch/Version: Master
  • Environment: All

Describe the bug
As already reported in the past at #2248, the health check currently always reports 200 even if the actual state is either warn or fail. This causes issues as the pod would try to accept requests but fail as it isn't fully working.

On a on premise setup, we noticed that some of the pods spinning up failed the initial fetching from the control plane. Instead of being restarted, they started accepting requests which raised the number of 404 errors. A functioning health check would have avoided this.

Reproduction steps
Steps to reproduce the behavior:

  1. Remove redis/Setup RPC with wrong configurations

Actual behavior
The container is still healthy and receiving requests

Expected behavior
The container should be unhealthy and restart until healthy (if ever)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant