<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    少年阿賓

    那些青春的歲月

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      500 Posts :: 0 Stories :: 135 Comments :: 0 Trackbacks
    Haproxy根目錄:F:\SysWork\openSource\haproxy\haproxy1.5.12

    配置文件haproxy.cfg如下:


    global  
            log 127.0.0.1   local0
    #        maxconn 4096
            chroot F:\SysWork\openSource\haproxy\haproxy1.5.12
    #        uid 99
    #        gid 99
    #        daemon
            nbproc 1
            pidfile F:\SysWork\openSource\haproxy\haproxy1.5.12\haproxy.pid         
            debug quiet
    defaults  
            log     127.0.0.1       local3
            mode    http
            option httplog
            option httpclose
            option dontlognull
            option forwardfor
            option redispatch
            retries 3
            maxconn 8192
            balance roundrobin
            timeout connect 50000
    timeout client  50000
    timeout server  50000
            timeout check   20000
    listen httpweb :8100  
           mode http  
           balance roundrobin  
           option httpclose  
           option forwardfor  
           option httpchk GET /index.html #心跳檢測的文件  
           server httpweb1 localhost:9200 cookie 1 weight 5 check inter 2000 rise 2 fall 3
           server httpweb2 localhost:9300 cookie 2 weight 3 check inter 2000 rise 2 fall 3
      
    listen httpservice :8200  
           mode http  
           balance roundrobin  
           option httpclose  
           option forwardfor  
           option httpchk GET /index.html #心跳檢測的文件  
           server httpservice1 localhost:9200 cookie 3 weight 5 check inter 2000 rise 2 fall 3
           server httpservice2 localhost:9300 cookie 4 weight 3 check inter 2000 rise 2 fall 3
    listen tcpservice        
    bind 0.0.0.0:8400        
    mode tcp             
    server tcpservice1 localhost:20880 cookie 5 weight 3 check inter 2000 rise 2 fall 3
      
    listen status 127.0.0.1:8300
        stats enable
        stats uri /status
        stats auth admin:123456
        stats realm (Haproxy\ statistic) 


    啟動命令:
    F:\SysWork\openSource\haproxy\haproxy1.5.12>haproxy.exe -f haproxy.cfg
    [WARNING] 240/200829 (11260) : parsing [haproxy.cfg:14] : 'option httplog' not usable with proxy 'tcpservice' (needs 'mo
    de http'). Falling back to 'option tcplog'.
    [WARNING] 240/200829 (11260) : config : 'option forwardfor' ignored for proxy 'tcpservice' as it requires HTTP mode.
    [WARNING] 240/200829 (11260) : config : proxy 'tcpservice' : ignoring cookie for server 'tcpservice1' as HTTP mode is di
    sabled.
    Available polling systems :
           poll : pref=200,  test result OK
         select : pref=150,  test result FAILED
    Total: 2 (1 usable), will use poll.
    Using poll() as the polling mechanism.
    [WARNING] 240/200829 (11260) : [haproxy.main()] Cannot raise FD limit to 4019.
    [WARNING] 240/200829 (11260) : [haproxy.main()] FD limit (256) too low for maxconn=2000/maxsock=4019. Please raise 'ulim
    it-n' to 4019 or more to avoid any trouble.
    [WARNING] 240/200830 (11260) : Server httpweb/httpweb1 is DOWN, reason: Layer4 connection problem, info: "Connection ref
    used", check duration: 1000ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
    [WARNING] 240/200831 (11260) : Server httpweb/httpweb2 is DOWN, reason: Layer4 connection problem, info: "Connection ref
    used", check duration: 1000ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
    [ALERT] 240/200831 (11260) : proxy 'httpweb' has no server available!
    [WARNING] 240/200831 (11260) : Server httpservice/httpservice1 is DOWN, reason: Layer4 connection problem, info: "Connec
    tion refused", check duration: 1000ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in
     queue.
    [WARNING] 240/200831 (11260) : Server httpservice/httpservice2 is DOWN, reason: Layer4 connection problem, info: "Connec
    tion refused", check duration: 998ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in
    queue.
    [ALERT] 240/200831 (11260) : proxy 'httpservice' has no server available!



    監控頁面地址:http://127.0.0.1:8300/status



    現在配置文件除了http代理之外,還有tcp代理,http代理就是簡單的代理tomcat的請求。把haproxy的請求分發給多個tomcat,而tcp代理我這里是代理的dubbo請求,dubbo啟動起來的時候20880端口,但是我們可以通過這里的8400端口提供請求
    我們之前都是通過telnet localhost 20880可以看到dubbo控制臺,現在可以通過telnet localhost 8400查看dubbo控制臺
    posted on 2015-08-29 20:09 abin 閱讀(4377) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 无码成A毛片免费| 一级特黄录像免费播放中文版| a毛片全部免费播放| 亚洲欧洲中文日韩久久AV乱码| 老司机午夜在线视频免费| 国产亚洲成人久久| 一级片在线免费看| 亚洲视频在线免费| 久久久WWW免费人成精品| 亚洲精品tv久久久久久久久| 久久精品成人免费观看97| 亚洲日产韩国一二三四区| 亚洲精品成人久久| 久久福利资源网站免费看| 亚洲国产成人无码av在线播放| 中文字幕免费在线看线人 | 亚洲国产精品专区| 毛片视频免费观看| 老司机午夜性生免费福利| 中文字幕亚洲激情| 中文字幕亚洲免费无线观看日本 | 男女作爱在线播放免费网站| 亚洲一区免费观看| 毛片a级毛片免费观看免下载| 亚洲成AV人片高潮喷水| 亚洲色一色噜一噜噜噜| 国产精品白浆在线观看免费| 久久精品国产亚洲AV忘忧草18| 成人免费视频小说| 国产精品免费大片一区二区| 亚洲A∨无码无在线观看| 青草草色A免费观看在线| 阿v免费在线观看| 亚洲∧v久久久无码精品| 妞干网免费视频观看| 九九免费久久这里有精品23| 99人中文字幕亚洲区| 全部免费国产潢色一级| 日本在线看片免费人成视频1000| 亚洲人成自拍网站在线观看 | 中文字幕专区在线亚洲|