Following the google hello world example, the PHP code works smoothly instantly.
However, if we use a similar version of PHP webdevops image "webdevops/php-apache:8.0" or any other version, on the first initial call, we get 503 apache service unavailable error, then on refresh, the application starts working as expected.
I'm not sure what is causing this issue but I have tried every possible thing to fix it (raising memory, CPU...)
Please see cold start section on cloudrun docs here. During the first start of container, if services not start in 10 seconds, cloudrun does not keep requests pending. That's why you see it on second reload but not initially.
Following the google hello world example, the PHP code works smoothly instantly.
However, if we use a similar version of PHP webdevops image "webdevops/php-apache:8.0" or any other version, on the first initial call, we get 503 apache service unavailable error, then on refresh, the application starts working as expected.
I'm not sure what is causing this issue but I have tried every possible thing to fix it (raising memory, CPU...)