haproxy não inicia na inicialização

1

Estou usando o haproxy para balanceamento de carga. O mysql.Haproxy está sendo executado no Ubuntu 14.04. Configurei o arquivo ENABLED=1 in /etc/defaults/haproxy . Mas quando reiniciado, o haproxy não inicia como daemon. O arquivo de configuração é assim:

global
    daemon

defaults
    log global
    retries 2
    timeout connect 3000
    timeout server 5000
    timeout client 5000



frontend mysql_read
    mode tcp
    bind *.*.*.*:3308
    default_backend cluster_db_read

backend cluster_db_read
    mode tcp
    option tcpka
    option mysql-check user haproxy_check
    balance roundrobin
     server s1 *.*.*.*:3306 check
    server s2 *.*.*.*:3306 check backup 


listen stats
    bind 0.0.0.0:8080
    mode http
    stats enable
    stats uri /
    stats realm Strictly\ Private
    stats auth user:password
#stats auth Another_User:passwd
#stats auth Another_User:passwd

A saída do sudo netstat -tulpn é a seguinte

Conexões ativas com a Internet (somente servidores)

Proto Recv-Q Endereço Local de Envio-Q Endereço Externo do Estado PID / Nome do Programa

tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1078 / mysqld
tcp 0 0 192.168.1.102:3308 0.0.0.0:* ESCUTA 1834 / haproxy
tcp 0 0 0.0.0.0:8080 0.0.0.0:* ESCUTA 1834 / haproxy
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 1557 / dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* ESCUTE 913 / sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2145 / cupsd
tcp6 0 0 ::: 22 ::: * ESCUTE 913 / sshd
tcp6 0 0 :: 1: 631 ::: * ESCUTA 2145 / cupsd
udp 0 0 0.0.0.0:56175 0.0.0.0:* 803 / avahi-daemon: r udp 0 0 0.0.0.0:39839 0.0.0.0:* 1292 / dhclient
udp 0 0 127.0.1.1:53 0.0.0.0:* 1557 / dnsmasq
udp 0 0 0.0.0.0:68 0.0.0.0:* 1292 / dhclient
udp 0 0 0.0.0.0:631 0.0.0.0:* 958 / cups-browsed udp 0 0 0.0.0.0:5353 0.0.0.0:* 803 / avahi-daemon: r udp6 0 0 ::: 53961 ::: * 803 / avahi-daemon: r udp6 0 0 ::: 5353 ::: * 803 / avahi-daemon: r udp6 0 0 ::: 22178 ::: * 1292 / dhclient

Quais mudanças devem ser feitas para tornar o haproxy como um serviço de daemon?

    
por user3615045 28.01.2016 / 14:08

0 respostas