@Grooth wrote:
i still try common HAproxy configuration on my computer, after i have stupid problem because my fault before now i have another problem. and here is my servers configuration. this is OFFLINE and using LOCALHOST.
server1 using IP: 10.10.10.2/29
server2 using IP: 10.10.10.3/29
server3 using IP: 10.10.10.4/29
all server using host name: jarkommy load balancing using IP: 172.23.23.5/29
my firewall and connection i think on good condition because all of them can pinging each other.
and here my HAproxy script:
root@ubuntu:/home/jarkom# cat /etc/haproxy/haproxy.cfg
global
log 127.0.0.1 local0 notice
maxconn 2000
user jarkom
group jarkom
daemondefaults
mode httpfrontend http-in
bind 172.23.23.5:80
default_backend webservers
timeout connect 100
timeout client 100
timeout server 100backend webservers
server web01 10.10.10.2:80
server web02 10.10.10.3:80
server web03 10.10.10.4:80
balance roundrobin
timeout connect 100
timeout client 100
timeout server 100and then when this error show to me…
● haproxy.service - HAProxy Load Balancer
Loaded: loaded (/lib/systemd/system/haproxy.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-09-15 21:39:07 WIB; 2min 51s ago
Docs: man:haproxy(1)
file:/usr/share/doc/haproxy/configuration.txt.gz
Process: 3928 ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q $EXTRAOPTS (code=exited, status=0/SUCCESS)
Main PID: 3929 (haproxy)
Tasks: 2 (limit: 2307)
CGroup: /system.slice/haproxy.service
├─3929 /usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid
└─3930 /usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pidSep 15 21:39:07 ubuntu systemd[1]: Starting HAProxy Load Balancer…
Sep 15 21:39:07 ubuntu haproxy[3929]: [WARNING] 257/213907 (3929) : parsing [/etc/haproxy/haproxy.cfg:14] : ‘timeout connect’ will be ignored because frontend 'http-in’
Sep 15 21:39:07 ubuntu haproxy[3929]: [WARNING] 257/213907 (3929) : parsing [/etc/haproxy/haproxy.cfg:16] : ‘timeout server’ will be ignored because frontend 'http-in’
Sep 15 21:39:07 ubuntu haproxy[3929]: [WARNING] 257/213907 (3929) : parsing [/etc/haproxy/haproxy.cfg:24] : ‘timeout client’ will be ignored because backend 'webservers
Sep 15 21:39:07 ubuntu systemd[1]: Started HAProxy Load Balancer.when i try on browser, i check with load balancing IP but that is error “503” thats said cant reach server.
can someone explain me what wrong with my work?.. i will be appreciate if u tell me where is the wrong… thanks a lot for your attention and i hope god will be with u forever…
Posts: 1
Participants: 1