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

[11.x] Ignore health endpoint when in maintenance mode #53772

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

joshmanders
Copy link
Contributor

@joshmanders joshmanders commented Dec 5, 2024

Currently if you use any liveliness or readiness checks in your app such as with Kubernetes, if you put the app into maintenance mode, it clobbers the health endpoint and starts returning 503 response, which triggers the infra to spin up new containers in an attempt to resolve the unhealthy containers... This we do not want to happen.

This PR puts the health endpoint into the exception list for preventing requests during maintenance.

Currently if you use any liveliness or readiness checks in your app such as with Kubernetes, if you put the app into maintenance mode, it clobbers the health endpoint and starts returning 503 response, which triggers the infra to spin up new containers in an attempt to resolve the unhealthy containers... This we do not not to happen.

This PR puts the health endpoint into the exception list for preventing requests during maintenance.
@taylorotwell taylorotwell merged commit ea35f41 into laravel:11.x Dec 6, 2024
38 checks passed
@joshmanders joshmanders deleted the patch-1 branch December 6, 2024 19:01
browner12 pushed a commit to browner12/framework that referenced this pull request Dec 10, 2024
* Ignore health endpoint when in maintenance mode

Currently if you use any liveliness or readiness checks in your app such as with Kubernetes, if you put the app into maintenance mode, it clobbers the health endpoint and starts returning 503 response, which triggers the infra to spin up new containers in an attempt to resolve the unhealthy containers... This we do not not to happen.

This PR puts the health endpoint into the exception list for preventing requests during maintenance.

* style fixes
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.

2 participants