Enable health checks on the gateway proxy or your upstreams to automatically monitor their availability.
Gateway health checks
Enable a health check plugin on your gateway proxy to respond with common HTTP codes.
Upstream health checks
Automatically monitor the status of upstreams by configuring health checks.