You could direct your traffic to something like HAProxy. It can detect upstream server failures. I am not sure what facilities are available for NGinx. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,82436,82661#msg-82661