HAPROXY Config

Discussion in 'Server Operation' started by eppy1976, Feb 17, 2011.

  1. eppy1976

    eppy1976 New Member

    I loaded haproxcy on ubuntu 10 by way of a howtoforge forum and I get the following error on startup:

    * Starting haproxy haproxy [WARNING] 047/144955 (1177) : parsing [/etc/haproxy/haproxy.cfg:17]: keyword 'redispatch' is deprecated, please use 'option redispatch' instead.

    and I cannot see the virtual ip. Any help would be greatly appreciated.

    http://www.howtoforge.com/setting-u...-with-haproxy-wackamole-spread-on-debian-etch

    Thanks

    Eppy1976
    [
     
  2. falko

    falko Super Moderator

    Please post your /etc/haproxy/haproxy.cfg.
     
  3. eppy1976

    eppy1976 New Member

    config

    admin@whp-lbl01:~# /etc/init.d/haproxy restart
    * Restarting haproxy haproxy Available polling systems :
    sepoll : pref=400, test result OK
    epoll : pref=300, test result OK
    poll : pref=200, test result OK
    select : pref=150, test result OK
    Total: 4 (4 usable), will use sepoll.
    Using sepoll() as the polling mechanism.
    [ALERT] 048/093150 (1156) : Starting proxy webfarm: cannot bind socket

    Config:

    global
    log 127.0.0.1 local0
    log 127.0.0.1 local1 notice
    #log loghost local0 info
    maxconn 4096
    debug
    quiet
    user haproxy
    group haproxy

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

    listen webfarm 10.7.1.4:80
    mode http
    stats enable
    stats auth someuser:somepassword
    balance roundrobin
    cookie JSESSIONID prefix
    option httpclose
    option forwardfor
    option httpchk HEAD /check.txt HTTP/1.0
    server webA 10.7.1.7:80 cookie A check
    server webB 10.7.1.8:80 cookie B check



    Thanks!!!!
     
  4. falko

    falko Super Moderator

    Please try
    Code:
    option redispatch
    instead of
    Code:
    redispatch
    in line 17 and restart HAProxy.
     
  5. eppy1976

    eppy1976 New Member

    New Error- cannot bind socket?

    load-lbl01:~# /etc/init.d/haproxy start
    * Starting haproxy haproxy Available polling systems :
    sepoll : pref=400, test result OK
    epoll : pref=300, test result OK
    poll : pref=200, test result OK
    select : pref=150, test result OK
    Total: 4 (4 usable), will use sepoll.
    Using sepoll() as the polling mechanism.
    [ALERT] 051/071401 (19486) : Starting proxy orstest: cannot bind socket
    [fail]
    Thanks Can you help me with this ?
     

Share This Page