Plain nginx has no active health checks, but passive ones cost two parameters per server line.
upstream app {
server 10.0.0.11:8080 max_fails=3 fail_timeout=30s;
server 10.0.0.13:8080 backup;
}
After max_fails failed attempts within fail_timeout, nginx treats the server as unavailable for the same fail_timeout period and then tries it again. A backup server only gets traffic when all the others are down. The check is passive: real requests have to fail first, and by default only connection errors and timeouts count. The defaults are one failure and ten seconds. Active probes are an nginx Plus feature.
Further reading: ngx_http_upstream_module: server
Going deeper: Guide: fix a 502 Bad Gateway in Nginx Proxy Manager, with a checklist that finds the cause