Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

PHP-FPM liveness_check #460

Open
juanmrad opened this issue Sep 24, 2018 · 1 comment
Open

PHP-FPM liveness_check #460

juanmrad opened this issue Sep 24, 2018 · 1 comment

Comments

@juanmrad
Copy link

I'm working with Docker containers and my gaeapp has 2 supervisor services running:

nginx
php-fpm

I need to configure my /rediness_check and /liveness_check to make sure those services are running. I tried to implement the custom path on my default.yaml file:

liveness_check:
  path: "/_ah/health.php"

and it didn't worked the liveness_check started returning a 301 instead and there was no request to my path. It would be nice to have better documentation on this or some samples using custom health checks that are supposedly supported by the docs: https://cloud.google.com/appengine/docs/flexible/php/reference/app-yaml#liveness_checks

@jaitaiwan
Copy link
Contributor

Custom healthchecks are largely going to be up to the person implementing to make it happen. The docs advise you to specify a custom URL but the URL you specified is going to be matched by the regular expression in this file and not passed on to your application.

Instead you should point the rediness and liveness checks at your own URL like ${DOCUMENT_ROOT}/_app/health.php.

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

No branches or pull requests

2 participants