Python-based alternative for clustercheck does not work with HAProxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The Python based pyclustercheck script does not work with HAProxy, reason being that HAProxy sends an OPTIONS header first which BaseHTTPServer.
Following is the error that is reported:
web01.xxx - - [09/Aug/2013 04:00:59] code 501, message Unsupported method ('OPTIONS')
web01.xxx - - [09/Aug/2013 04:00:59] "OPTIONS / HTTP/1.0" 501 -
Traceback (most recent call last):
File "/usr/lib64/
self.
File "/usr/lib64/
self.
File "/usr/lib64/
self.
File "/usr/lib64/
self.handle()
File "/usr/lib64/
self.
File "/usr/lib64/
self.
File "/usr/lib64/
self.
File "/usr/lib64/
self.
File "/usr/lib64/
self.
File "/usr/lib64/
self.flush()
File "/usr/lib64/
self.
error: [Errno 32] Broken pipe
Changed in percona-xtradb-cluster: | |
status: | Fix Committed → Fix Released |
Seems HAProxy uses OPTIONS HTTP method to check on server health as a lightweight alternative.
The script only supports GET, so the workaround is to specify the method as GET, details here http:// code.google. com/p/haproxy- docs/wiki/ httpchk