Using ubuntu as my server I'm trying to set up load balancing using HAProxy.
When I try to run using "haproxy -f haproxy.cfg" i get this error.
[WARNING] 035/115820 (1148) : [haproxy.main()] Cannot raise FD limit to 8224. [ALERT] 035/115820 (1148) : Starting proxy webservice: cannot bind socket
I thought freeing up the port80 could solve the problem, so i uninstalled apache2 that might be using the port80. But to no avail still haven't solved my problem. So how can I kill an application that uses port 80?
my haproxy.cfg
# this config needs haproxy-1.1.28 or haproxy-1.2.1
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
#chroot /usr/share/haproxy
user haproxy
group haproxy
daemon
#debug
#quiet
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
listen webservice 192.168.1.120:80
mode http
stats enable
stats refresh 10s
stats hide-version
cookie GALAXY insert
balance roundrobin
option httpclose
option httpchk OPTIONS /health_check.html
option forwardfor
server RONAHPC 192.168.1.7:80 cookie GALAXY_SERVER_01 check
server MAANPC 192.168.101:80 cookie GALAXY_SERVER_02 check