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: jarkom
my 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
daemon
defaults
mode http
frontend http-in
bind 172.23.23.5:80
default_backend webservers
timeout connect 100
timeout client 100
timeout server 100
backend 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 100
and 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.pid
Sep 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ā¦