Hi Ali,

> Now, what happens if the first web server dies whilst the file is being
> downloaded?

The download is interrupted. If the client uses a smart user-agent, like
a recent browser, a download manager or wget, then it will reconnect and
download from the other backend server.

What HAProxy can do is to fail-over from on server to the other at the
next transaction.

There is no way for HAProxy to hide a backend server failure once the
transaction is in-flight (past the HTTP header; forwarding the payload).


You will have to ensure that both the proxy, the backend and all
intermediate devices like switches and routers are as stable as possible
(dual PSU on different protected power feeds, ECC RAM, RAID HD, stable
kernel/applications, etc...).


Regards,
Lukas                                     

Reply via email to