Download the PHP package ekreative/health-check-bundle without Composer
On this page you can find all versions of the php package ekreative/health-check-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ekreative/health-check-bundle
More information about ekreative/health-check-bundle
Files in ekreative/health-check-bundle
Package health-check-bundle
Short Description A bundle that provides a simple /healthcheck route
License MIT
Informations about the package health-check-bundle
Health Check Bundle
A bundle that provides a simple /healthcheck
route
Install
Composer
AppKernel
Include the bundle in your AppKernel
Routing
Security
You should make sure /healthcheck
does not require authentication
Configuration
By default healthcheck will check that your default doctrine connection is working.
Doctrine
To check more than one doctrine connection you should add the configuration, listing the names of the connections
You can also list doctrine connections that should be checked, but don't cause a failure
Its possible to disable the doctrine check
Timeout
Its recommended to change the default PDO connection timeout so that your health check will fail faster
Add this under connection setting
Redis
The bundle can also check that redis connections are working. You should add a list of service names to check
This will require the PHP Redis extension enabled.
You can also list redis connections that should be checked, but don't cause a failure
Timeout
Its recommended to change the default Redis connection timeout so that your health
check will fail faster. Its the third argument to connect
call for \Redis
.
Redis
When you want redis to be optional, you might want to use the provided RedisFactory
(or your own) that catches any exceptions on connect. Without this a Redis failure will
cause the container to fail, resulting in a 500 error.