Hello,

I’am trying to perform a LoadBalancer with this huge haproxy tool.
It works with lots of backends in a mock-up except a backend and I don’t know
why.
Have you got an idea about this ?
In order to simplify the problem, in this config file below, I have only one
backend instead of two.

•       To communicate with the backend, with a wget or a telnet, it’s works:

-bash-3.2$ telnet cppfrontendx01-i 80
Trying 192.168.235.43...
Connected to cppfrontendx01-i (192.168.235.43).
Escape character is '^]'.
GET /myfarm/home/awhomepage.aspx
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Fri, 04 Feb 2011 17:07:46 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Set-Cookie: ASP.NET_SessionId=v5mevtim4orlzz2f4btimf45; path=/
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html; charset=utf-8
Content-Length: 3689


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
        <HEAD>
                <title>My Farm Portal Error</title>
                <meta name="GENERATOR" Content="Microsoft Visual Studio .NET
7.1">
                <meta name="CODE_LANGUAGE" Content="C#">
                <meta name="vs_defaultClientScript" content="JavaScript">
[ etc ]

•       To communicate with the haproxy listener, I obtain a 503 error :

-bash-3.2$ telnet 127.0.0.1 14001
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
GET /myfarm/home/awhomepage.aspx
HTTP/1.0 503 Service Unavailable
Cache-Control: no-cache
Connection: close
Content-Type: text/html

<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>
Connection closed by foreign host.

 Below, my global haproxy configuration file:

#Cat Haproxy.cfg

global
       log 127.0.0.1:1514   local4 debug
       maxconn 8192
       uid ta_h380_adm_i
       gid grp_h380_roa
       daemon

defaults
       log     global
       mode    http
       option  httplog
       option  dontlognull
       option httpclose
       option forwardfor
       retries 3
       option redispatch
       maxconn 2000
       contimeout      5000
       clitimeout      50000
       srvtimeout      50000

listen stats 127.0.0.1:14000
stats enable
stats refresh 5s
balance roundrobin
mode http
stats uri   /


#cat haproxy.cfg ## include for my backend:

listen A233_ cppfrontendx01-i_14001 127.0.0.1:14001
#      balance roundrobin
#      option httpchk GET /server-status HTTP/1.0
       cookie SERVERID insert indirect
       server cppfrontendx01-i cppfrontendx01-i cookie
c1a7e61bae8b014bd997915dea478161

The backend and my server are in the same subnet.

Thank you for your help in advance,
Vivien




Reply via email to