Hi all,
Since we migrate our squid on Haproxy we experiencing high CPU usage on our HaProxy server. Theses Squid are used as proxy web for our users (the VIP of HAPROXY is directly set up on their browser)
We activate muthreading option on 4 vCPU but they are all at 90% at the top of the day.
I’ve also check that TCP ports are not exhausted.
Compilation option are the following : make TARGET=custom CPU=generic USE_OPENSSL=1 USE_ZLIB=1 USE_PCRE=1 USE_LINUX_SPLICE=1 USE_CPU_AFFINITY=1
We also used Keepalived for high availability in active/passive mode.<img
Can you help me please, we don’t have so many connections and I’m sure that HAPROXY can do better ?
You can find bellow the Hardware and Software configuration :
Vmware Esxi 5.5
Linux Red Hat 6.8
4 vCPU
4 Go RAM
20 Go Disk
3 Gigabits interfaces (One for the administration and the two other one for the VIP)
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 2000000
chroot /product/haproxy
uid 99
gid 99
daemon
tune.ssl.default-dh-param 2048
nbproc 4
cpu-map 1 0
cpu-map 2 1
cpu-map 3 2
cpu-map 4 3
#debug
#quiet
defaults
log global
option dontlognull
retries 3
option redispatch
maxconn 2000000
timeout connect 5000
timeout client 600000
timeout server 600000
frontend stats
bind xxx.xxx.xxx.xxx:8080
mode http
stats enable
stats uri /stats
stats realm HAProxy Statistics
stats auth admin:admin
################################
####### Ferme Proxy LAN ####
################################
frontend proxylan-rewrite
bind xxx.xxx.xxx.xxx:xx
mode http
option http-keep-alive
default_backend proxylan-backend
backend proxylan-backend
mode http
balance source
option prefer-last-server
option http-keep-alive
option forwardfor
server proxylan_1 xxx.xxx.xxx.xxx:xx check
server proxylan_2 xxx.xxx.xxx.xxx:xx check
server proxylan_3 xxx.xxx.xxx.xxx:xx check
server proxylan_4 xxx.xxx.xxx.xxx:xx check