PythonPaste and HAProxy

From: Christian Klinger <cklinger#novareto.de>
Date: Wed, 01 Jun 2011 10:59:12 +0200


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/01 10:59

This archive was generated by hypermail 2.2.0 : 2011/06/01 11:15 CEST