Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4736

Php application slow where use haproxy

$
0
0

Greeting for day!
In my php application when i use mysql direct connection it work perfectly . But when i use haproxy ip for ha , its take too long for retrieve result.
Ha proxy configuration as following

global
    maxconn         5000
    nbproc          5

defaults
retries 3
option redispatch
timeout client 120s
timeout connect 10s
timeout server 120s

Galera Cluster Frontend configuration

frontend galera_cluster_frontend
bind 0.0.0.0:3307
mode tcp

log global
option  dontlognull

option tcplog
default_backend galera_cluster_backend

Galera Cluster Backend configuration

backend galera_cluster_backend

bind 0.0.0.0:3307

 mode tcp
 option tcpka
 
option tcplog
option log-health-checks
retries                   3

balance roundrobin

balance leastconn
server db-server-01 e2e-34-201:3306  check weight 1
server db-server-02 e2e-34-202:3306  check weight 3
server db-server-03 e2e-34-203:3306  check weight 2

Please share solution asap.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4736


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>