Hello,
I m newbie to the HAproxy and trying to set that as API gateway for the
micro-services.
following is the haproxy.cfg
##################################
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user root
group root
daemon
#---------------------------------------------------------------------
defaults
mode http
option httplog
option dontlognull
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 3000
stats enable
stats uri /haproxy?stats
frontend http-in3
bind *:8080
default_backend candidate
backend candidate
balance roundrobin
server server2 127.0.0.1:8099 check
haproxy service is up and running. however, fronend is not able to
communicate with backend candidate service ... in the haproxy stats , it
says following error :
*Layer4 connection problem: General socket error (Permission denied)*
Indeed the candidate is a springboot micro-service and is running on tomcat
port 8099 , but still front end and backend communication is not happening
. i m not sure , whetaher the haproxy configuration is the problem OR
anywhere else ...
please help. i m stuck up like anything
Regards,
irfan