Re: PythonPaste and HAProxy

From: Baptiste <bedis9#gmail.com>
Date: Thu, 2 Jun 2011 07:14:07 +0200


Hi,

Maybe you should try this:
option httpchk HEAD /app/haproxycheck
http-check expect status 200

cheers

On Wed, Jun 1, 2011 at 10:59 AM, Christian Klinger <cklinger#novareto.de> wrote:
> Hi,
>
> i try to loadbalance some PythonPaste Servers with the help of haproxy.
>
> I have configured this healthcheck:
>
> ...
> option httpchk GET /app/haproxycheck
> http-check expect status 200
> ...
>
> All works fine, so far. But i get this error on my PasteConsole...
>
> Traceback (most recent call last):
>  File
> "/opt/extranet/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/httpserver.py",
> line 1068, in process_request_in_thread
>    self.finish_request(request, client_address)
>  File "/usr/local/lib/python2.6/SocketServer.py", line 322, in
> finish_request
>    self.RequestHandlerClass(request, client_address, self)
>  File "/usr/local/lib/python2.6/SocketServer.py", line 618, in __init__
>    self.finish()
>  File "/usr/local/lib/python2.6/SocketServer.py", line 661, in finish
>    self.wfile.flush()
>  File "/usr/local/lib/python2.6/socket.py", line 297, in flush
>    self._sock.sendall(buffer(data, write_offset, buffer_size))
> error: [Errno 32] Datenübergabe unterbrochen (broken pipe)
>
>
> I guess it's because haproxy does not wait on the response of the
> haproxycheck page from the webserver.
>
> Any idea what i can do to fix it?
>
> Christian
>
>
>
Received on 2011/06/02 07:14

This archive was generated by hypermail 2.2.0 : 2011/06/02 07:30 CEST