-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Bug] Cold starts cause FCGI: attempt to connect to Unix domain socket /var/run/php/php-fpm.sock (localhost:8000) failed #19
Comments
@pentium10 There are a few other possible ways to handle this situation:
I look forward to receiving some other suitable solutions from you. |
We implemented these containers to use in a serverless environment, we spent 2 days swapping our existing containers for this one. After we put in production bummer, nothing works. So these containers ARE NOT SUITABLE in serverless environments at all:
We were trying to see if these containers are faster for a cold start than others. Our local metrics looked promising, but with the small delay in FPM starting in production, they never worked. So this "sometimes" or "acceptable" result to return 503, is not going to work in serverless environment, because the orchestrator automatically will classify the instance as probe-with-error, and try to start a new instance. Leading to huge number of containers started, that all fail. Why? Because the orchestrator can establish network but it's faulty error code returns. Any mitigation for a HTTP error code, is not acceptable. The solution needs to work well for the above situation. |
@pentium10 Please let me know if there is anything else I can help you with or if you have any idea to make these containers work with serverless environments. |
@pentium10 If you have any questions or concerns about the source code or anything else, please let me know and I'll be happy to help. |
Not sure what's going on, but cold start now has a huge latency >15 seconds.
|
We are using Cloud Run from Google cloud platform to run these in serverless environments. https://github.com/pentium10/shinsenterPhpFpm If you setup the gcloud utility on your terminal.
|
@pentium10
|
Issue description
At cold starts, for a brief time, we get 503 errors.
Environment
Steps to reproduce the issue
create a i.php phpinfo() file to host container
What is expected?
503 errors should not happen before proper booting of environment
My suspicion is that Apache is up sooner than FPM PHP, and this causes the errors.
Additional details / screenshots
The text was updated successfully, but these errors were encountered: