Laravel Deployment Health Checks
A deployment health check should answer separate questions: can the process run, can it accept traffic, and can a user complete an important task? Combine inexpensive bounded probes with external smoke tests, worker and scheduler evidence, and a clear stop or recovery decision.
A green deployment is not necessarily a healthy application. A process may boot while its database is unreachable, workers are using old code or the checkout path fails. Define what each check proves, who consumes its result, and what action follows failure. Use a cheap check for process health and separate, deliberately scoped checks for traffic readiness and real user journeys.

Separate liveness, readiness and user outcomes
Use separate checks for process liveness, traffic readiness and a real user journey. Bound dependency checks and verify workers separately before accepting a release.
Liveness asks whether an application process is running and able to make progress; its failure may trigger a restart. Readiness asks whether an instance should receive new traffic now. An external business journey asks whether a customer can actually perform an important operation through the public path. The same endpoint rarely answers all three questions adequately. An HTTP response can confirm a route is reachable but cannot by itself establish that orders are saved or background work completes.
Kubernetes probe guidance explains that startup checks protect slow initialization, readiness failures remove an endpoint from matching Services, and liveness failures can restart a container. A badly designed liveness check can amplify a shared dependency outage into repeated restarts. A database problem that a restart cannot fix is usually a poor reason to declare every process dead. On a single VPS without Kubernetes, retain the distinction even if your supervisor, proxy and external monitor implement it differently.
| Signal | Question | Typical response |
|---|---|---|
| Liveness | Can this process make progress? | Investigate or restart an unrecoverable process |
| Readiness | Should this instance receive traffic? | Withhold or drain traffic where supported |
| Business journey | Does a useful operation work end to end? | Stop rollout and investigate user impact |
| Worker and scheduler | Is background work actually progressing? | Inspect backlog, failures and heartbeat |
Assign a named owner to each signal and write the consequence in the release checklist. If the system has only one instance, removing it from service can itself cause an outage. Decide whether to hold traffic, display a maintenance response or restore a known-compatible release, and rehearse that decision before an incident. A health endpoint is a decision input, not an automatic recovery plan.
Start with Laravel's boot route
Laravel documents a built-in health route, normally /up, which returns a successful response when the application boots without exceptions and an error response otherwise. The route can be configured in bootstrap/app.php. Laravel also dispatches a health-diagnosis event so applications can add checks; see the deployment documentation. Confirm that the route exists and behaves as expected in your application and framework version rather than assuming every project uses the default.
Keep the basic response small and avoid including exception messages, environment variables, credentials, internal addresses or installed package details. A public monitor needs a status, not a diagnostic dump. Place detailed diagnostics behind appropriate authentication and network controls, and keep logs free of secrets. Check whether reverse proxies or caches can return a stale successful response without reaching the application; exclude health responses from caching where appropriate and verify the path through the actual proxy configuration.
Probe the application locally during a controlled release and from an external vantage point over the public hostname and TLS path. Those observations answer different questions: local success plus external failure may indicate DNS, certificate, firewall or proxy trouble. Conversely, a load balancer can route around a broken instance, so a public success does not prove every new instance is ready. Record the hostname, path, response code, time and release identifier without exposing secrets in the response.
Bound dependency checks and understand timing
A readiness check may verify an essential database connection with a small read-only operation and a strict timeout. Decide explicitly whether the dependency is necessary for all traffic or only a particular feature. Do not perform writes, queue dispatches, schema changes or expensive scans on every probe. Limit concurrency and avoid creating a fresh expensive connection for every frequent check if your design allows a safe alternative. A cached dependency result can reduce pressure but must carry a freshness limit; otherwise a stale success hides an outage.
Queue connectivity is not equivalent to a working worker. A harmless, isolated synthetic job can test dispatch and completion when its side effects are controlled, but it should be a separate, lower-frequency operational check with a timeout and cleanup policy. It must not email real customers or trigger external payment operations. Monitor backlog age, failure counts and worker activity independently. If a shared dependency fails, readiness behavior should be tested under that exact failure rather than assumed to improve availability.
Different systems choose different default intervals and timeouts. The chart reports configuration defaults, not a recommended universal detection time: thresholds, startup delays, scheduling and the probe's actual behavior affect when a change is acted upon. AWS also states that an Application Load Balancer can fail open when all registered targets are unhealthy, so an unhealthy state is not an absolute traffic block.
Default configured health-check timings
Intervals and timeouts are different settings, not failure detection guarantees
- Docker HEALTHCHECK interval30
- Docker HEALTHCHECK timeout30
- Kubernetes probe periodSeconds10
- Kubernetes probe timeoutSeconds1
- AWS ALB instance/IP interval30
- AWS ALB instance/IP timeout5
View chart data
| Item | seconds | Note |
|---|---|---|
| Docker HEALTHCHECK interval | 30 | |
| Docker HEALTHCHECK timeout | 30 | |
| Kubernetes probe periodSeconds | 10 | |
| Kubernetes probe timeoutSeconds | 1 | |
| AWS ALB instance/IP interval | 30 | |
| AWS ALB instance/IP timeout | 5 |
Docker's HEALTHCHECK reference, the Kubernetes probe reference and AWS target group documentation describe separate mechanisms. Docker's defaults apply only when a health check is configured; Kubernetes values apply to configured probes; the AWS values shown are for instance or IP targets, not Lambda. Choose timeouts based on measured normal behavior and the operational cost of both false failures and slow detection.
Check the business path and background services
After the new release is ready, use an authorised test account to exercise a representative read and a controlled write through the same entry point users reach. Verify the expected database effect and, if relevant, that a related job finishes. Create a clearly identified test record and agree how it will be removed. Never submit a real transaction, message a customer or call a paid external service unless the test has explicit authorization and safe test credentials. Tests should fail on incorrect content or missing effects, not merely on non-success HTTP status.
Compare application errors, request latency and queue age to the pre-release observation window. Separate failures from successful-request latency: a fast error is not a fast successful experience. Google's monitoring guidance distinguishes external symptom checks from internal telemetry and recommends watching latency, traffic, errors and saturation. Both perspectives are useful when the endpoint says healthy but users report trouble.
A scheduler heartbeat should be generated by work that actually ran, not simply by a server being powered on. Track the expected schedule, last successful completion, duration and failure; alert on missing or stale evidence with allowance for expected startup and maintenance. Review worker logs and failed jobs without leaking payloads. A process manager showing a worker as running does not prove that it has consumed the right queue or has loaded the new release. Confirm the worker deployment procedure and observe a controlled job end to end.
Make rollout and recovery decisions explicit
Before deployment, state which failed checks stop the rollout, who can approve continuing, which signals will be watched, and how to contact the responder. Check a new instance directly before expanding traffic, then verify the public path. If checks disagree, preserve the distinction: one instance failing readiness calls for a different response from a shared database outage or a failed checkout on every instance. Do not keep retrying a side-effecting business test merely to obtain a green result.
If a critical check fails, halt expansion and collect the release identifier, affected instances, health status, logs and relevant dependency observations. Revert compatible application code only after checking schema and queued-job compatibility. A code rollback does not undo database writes or a migration. For irreversible changes, use the documented recovery decision and communicate any potential loss of writes before a restore. After recovery, repeat the user journey and verify worker and scheduler progress as well as the health route.
Exercise failure scenarios in an isolated environment: an unavailable database, a stalled worker, a failed upstream and a slow boot. Confirm the monitor reports the correct signal and the intended responder receives an actionable alert. A probe that never fails in a test has not shown that it can detect the incident it was designed for. Keep its configuration and the release checklist together so future operators can reproduce the decision.
Sora Panel is not released yet. Read how it works on the homepage; for wider monitoring choices, see monitoring approaches.
Frequently asked questions
Does Laravel's default health route test every dependency?
No. It indicates whether the application booted without exceptions; additional checks need deliberate implementation.
Should a database outage always fail liveness?
Not necessarily. Restarting every application process may amplify a shared dependency outage; separate readiness from liveness.
Does a healthy HTTP response prove a worker is processing jobs?
No. Inspect worker activity and use a controlled end-to-end job check when appropriate.
Can an unhealthy ALB target still receive traffic?
AWS documents fail-open behavior when all registered targets are unhealthy, so plan for that case. Bound dependency checks and verify workers separately before accepting a release.
Sources
- Laravel deployment and health route (viewed 2026-11-29)
- Kubernetes probe concepts and defaults (viewed 2026-11-29)
- Dockerfile HEALTHCHECK (viewed 2026-11-29)
- AWS ALB target health checks (viewed 2026-11-29)
- Google SRE monitoring (viewed 2026-11-29)
Sora Panel is not released yet. Read how it works on the homepage.