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

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

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

    少年阿賓

    那些青春的歲月

      BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
      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!



    監(jiān)控頁面地址:http://127.0.0.1:8300/status



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

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


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 亚洲乱码一二三四区乱码| 国产又大又粗又长免费视频| 国产精品亚洲专区在线观看| 亚洲欧洲自拍拍偷午夜色无码| 国内自产拍自a免费毛片| 久久久久久曰本AV免费免费| 十八禁在线观看视频播放免费| 国产成人综合亚洲一区| 久久久国产亚洲精品| 亚洲精品在线视频观看| 亚洲妇熟XXXX妇色黄| 久久国产成人亚洲精品影院 | 亚洲国产aⅴ综合网| 国产又黄又爽又猛免费app| 99ee6热久久免费精品6| 99精品全国免费观看视频..| 国产精品免费在线播放| 日本在线观看免费高清| 疯狂做受xxxx高潮视频免费| 亚洲精品又粗又大又爽A片| 天堂亚洲国产中文在线| 日韩亚洲国产高清免费视频| 亚洲熟妇av一区| 亚洲国产精品久久久久秋霞影院 | 18禁超污无遮挡无码免费网站| 一本到卡二卡三卡免费高| 免费无遮挡无码视频在线观看| 亚洲AV香蕉一区区二区三区| 亚洲人成色777777精品| 亚洲国产av玩弄放荡人妇 | 女人18毛片特级一级免费视频| 午夜国产精品免费观看| 国产一卡2卡3卡4卡2021免费观看 国产一卡2卡3卡4卡无卡免费视频 | 巨波霸乳在线永久免费视频| 最近中文字幕免费mv在线视频| 久久国产乱子伦精品免费一| 国产99视频精品免费专区| 小日子的在线观看免费| 91精品国产免费| 91情侣在线精品国产免费| 女人被免费视频网站|