Unicorn and HAProxy, 500 Internal errors after checks

Clifton King cliftonk at gmail.com
Wed Dec 1 11:12:37 EST 2010


Pierre,

Any specific reason you're using HAProxy for Unicorn?

Clifton

On Wed, Dec 1, 2010 at 5:59 AM, Pierre <oct at fotopedia.com> wrote:
> Hi,
>
> This morning, while checking for a correct deployment, we found out
> that the Unicorns we are using were sending 500 Internal errors very
> frequently to the HAProxy that sits in front of them. After some
> investigation, It turned out that HAProxy checks the backend by
> opening and closing a connection to the unicorn. Unfortunately the
> Unicorns we use ( v 0.990.0 ) will try to reply to this probe by a
> 500, resulting in the error being sent to the HAProxy when the proxy
> has already close the connection. I think Unicorn should refrain from
> sending an error in this case. There is no visible side effect,
> excepted that there are a "lot" of 500s running on the wire that
> nobody will ever read. Also, these errors are not sent in the Unicorn
> log, making it quite difficult to understand what's going on :-)
>
> Cheers,
> --
> Pierre <oct at fotopedia.com>
> Server Shepherd at http://www.fotopedia.com/
> _______________________________________________
> Unicorn mailing list - mongrel-unicorn at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-unicorn
> Do not quote signatures (like this one) or top post when replying
>


More information about the mongrel-unicorn mailing list