Noticing a dead server

How a load balancer finds out that a server has died, what the wait costs in errors, and the two settings that decide how long that wait is.