definewater
HOBBYOP
2 years ago
Hey guys im currently using Laravel 10. And i am trying to use the "sleep" feature but when my app is sleeping, and if i do a get request it will take some time to spin up (expected) but then it wil throw a NGINX problem shown on the screenshot below.
any idea?
14 Replies
brody
EMPLOYEE
2 years ago
are you using a health check?
brody
EMPLOYEE
2 years ago
try implementing a readiness health check
brody
EMPLOYEE
2 years ago
you are doing the exact opposite of what i said, you always want to have a health check, preferably not / though
brody
EMPLOYEE
2 years ago
a proper readiness health check is going to be best, not just return 200, check if you are connected to the database and such