zoukankan      html  css  js  c++  java
  • haproxy 配置

    yum -y install haproxy

    vim /etc/haproxy/haproxy.cfg

    UI页面:

    listen monitor 0.0.0.0:8100
    mode http
    option httplog
    stats enable
    stats uri /stats
    stats refresh 5s

    tcp:

    listen IQFDataTransferReplay 0.0.0.0:18661
    mode tcp
    option tcplog
    balance roundrobin
    server ferReplay2 172.19.78.88:18661 check inter 2000 rise 2 fall 3
    server ferReplay1 172.19.78.83:18661 check inter 2000 rise 2 fall 3
    server ferReplay3 172.19.78.89:18661 check inter 2000 rise 2 fall 3

    http:

    listen consul 0.0.0.0:8500
    mode http
    balance roundrobin
    server c2 172.19.78.88:8500 check inter 2000 rise 2 fall 3
    server c3 172.19.78.83:8500 check inter 2000 rise 2 fall 3

    backend:

    listen community
    bind 0.0.0.0:15333
    mode http
    acl static_path_community path_beg -i /community
    use_backend path_community if static_path_community

    acl static_path_kolmanage path_beg -i /kolmanager
    use_backend path_kolmanage if static_path_kolmanage

    backend path_community
    server community2 172.19.78.88:5308 check inter 2000 rise 2 fall 3
    server community1 172.19.78.83:5308 check inter 2000 rise 2 fall 3

    backend path_kolmanage
    server kolmanage2 172.19.78.92:55059 check inter 2000 rise 2 fall 3
    server kolmanage1 172.19.78.90:55059 check inter 2000 rise 2 fall 3

  • 相关阅读:
    746. 使用最小花费爬楼梯(动态规划题)
    91.解码方法(动态规划)
    198/213 打家劫舍(动态规划)
    5. 最长回文子串 (从今天开始刷动态规划50题)
    POJ 2142
    HDU 4686
    HDU 4767
    HDU 1757
    POJ 3613
    HDU 2157
  • 原文地址:https://www.cnblogs.com/sqbk/p/14469654.html
Copyright © 2011-2022 走看看