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

  • 相关阅读:
    感悟贴2016-05-13
    操作系统原理部分
    java-NIO
    centos7下环境配置
    mysql 链接驱动问题
    ComboPooledDataSource 连接池耗完
    mvn使用问题
    js button onclick动作赋值操作
    git操作之git clean删除一些没有git add的文件
    VMware虚拟机网络设置
  • 原文地址:https://www.cnblogs.com/sqbk/p/14469654.html
Copyright © 2011-2022 走看看