Hello,

I am using a fairly simple setup:

global
    debug
    maxconn 50000
    nbproc 1
    user www-data
    group www-data

defaults
    mode http
    hash-type consistent        # chash type

frontend fe
    bind *:80
    default_backend be

backend be

    balance uri
    server s01 10.96.3.1:8087
    server s02 10.96.3.2:8087

What happens is funny:

GET / -> 503, no server available to handle the request (no backend server
receives any request, no TCP connection attempt at all)

Whereas any other request but / will be sent to a backend server:
GET /favicon.ico -> 404

Full log:

00000001:fe.accept(0004)=0005 from [XXX:17531]
00000002:fe.accept(0004)=0006 from [XXX:17532]
00000001:fe.clireq[0005:ffff]: GET / HTTP/1.1
00000001:fe.clihdr[0005:ffff]: Host: fe
00000001:fe.clihdr[0005:ffff]: Connection: keep-alive
00000001:fe.clihdr[0005:ffff]: Cache-Control: max-age=0
00000001:fe.clihdr[0005:ffff]: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS 
X 10_6_8) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 
Safari/535.19
00000001:fe.clihdr[0005:ffff]: Accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
00000001:fe.clihdr[0005:ffff]: Accept-Encoding: gzip,deflate,sdch
00000001:fe.clihdr[0005:ffff]: Accept-Language: en-US,en;q=0.8
00000001:fe.clihdr[0005:ffff]: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
00000001:be.clicls[0005:0007]
00000001:be.closed[0005:0007]
00000002:fe.clireq[0006:ffff]: GET /favicon.ico HTTP/1.1
00000002:fe.clihdr[0006:ffff]: Host: fe
00000002:fe.clihdr[0006:ffff]: Connection: keep-alive
00000002:fe.clihdr[0006:ffff]: Accept: */*
00000002:fe.clihdr[0006:ffff]: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS 
X 10_6_8) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 
Safari/535.19
00000002:fe.clihdr[0006:ffff]: Accept-Encoding: gzip,deflate,sdch
00000002:fe.clihdr[0006:ffff]: Accept-Language: en-US,en;q=0.8
00000002:fe.clihdr[0006:ffff]: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
00000002:be.srvrep[0006:0005]: HTTP/1.1 404 NOT FOUND
00000002:be.srvhdr[0006:0005]: Server: gunicorn/0.12.2
00000002:be.srvhdr[0006:0005]: Date: Thu, 17 May 2012 16:45:46 GMT
00000002:be.srvhdr[0006:0005]: Connection: close
00000002:be.srvhdr[0006:0005]: Content-Type: text/html
00000002:be.srvhdr[0006:0005]: Content-Length: 238
00000002:be.srvcls[0006:0005]
00000002:be.clicls[0006:0005]
00000002:be.closed[0006:0005]

I am using HA-Proxy version 1.5-dev7 2011/09/10

What shall I do ? Problem is the same when using the "len" option.


Cheers,

-- 
Sameh Ghane

Reply via email to