1、haproxy配置多个负载

global
    log 127.0.0.1 local0
    log 127.0.0.1 local1 notice
    #daemon
    debug
    user haproxy
    group haproxy
    maxconn 4096

defaults
    log global
    mode tcp
    option tcplog
    option dontlognull
    option redispatch
    retries 3
    maxconn 2000
    contimeout 10000
    clitimeout 50000
    srvtimeout 50000

listen tidb3 :80
    mode tcp
    balance roundrobin

    server h1 xxx.xxx.xxx.xxx:80 check
    server h2 xxx.xxx.xxx.xxx:80 check

listen tidb4 :1935
   mode tcp
   balance roundrobin

   server s1 xxx.xxx.xxx.xxx:1935 check
   server s2 xxx.xxx.xxx.xxx:1935 check

  

 

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2021-11-19
  • 2021-05-11
  • 2021-05-14
  • 2021-06-09
  • 2021-06-09
猜你喜欢
  • 2021-05-09
  • 2022-12-23
  • 2021-06-07
  • 2021-07-29
  • 2021-07-16
  • 2022-12-23
相关资源
相似解决方案