亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 40969 | 回復: 0
打印 上一主題 下一主題

經過haproxy操作mysql性能疑問 [復制鏈接]

論壇徽章:
3
數(shù)據(jù)庫技術版塊每日發(fā)帖之星
日期:2016-05-27 06:20:00數(shù)據(jù)庫技術版塊每日發(fā)帖之星
日期:2016-06-04 06:20:00數(shù)據(jù)庫技術版塊每日發(fā)帖之星
日期:2016-06-23 06:20:00
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2018-07-24 11:37 |只看該作者 |倒序瀏覽
請問大家有用過haproxy做mysql的代理嗎?
我這里測試了一下經過haproxy向后端mysql寫200萬記錄要了60分鐘,不經過haproxy直接寫入mysql的只要了30分鐘
采用haproxy寫入數(shù)據(jù)時間多了一倍,請問是什么原因呢,是不是我的haproxy配置有問題。


我的haproxy配置如下:
[root@localhost conf]# more haproxy.cfg
global
        log             127.0.0.1        local3 info
        maxconn         10000
        user            haproxy
        group           haproxy
        nbproc          1
        pidfile         /var/run/haproxy.pid
        #debug
        #quiet
defaults
        log            global
        option         tcplog
        option         dontlognull
        retries        3
        option         redispatch
        maxconn        10000
        timeout        connect  10s
        timeout        client     10s
        timeout        server    48h

listen stats
    mode http
    bind :6677
    stats enable
    stats hide-version
    stats uri     /haproxyadmin?stats
    stats realm   Haproxy\ Statistics
    stats auth    admin:admin
    stats admin if TRUE

listen  pxc-galera
        bind 0.0.0.0:3308
        option mysql-check user haproxy
        balance  leastconn
        server   db1  192.168.1.118:3307 weight 1 check  inter 1s rise 2 fall 2
        server   db2  192.168.1.101:3307 weight 1 check  inter 1s rise 2 fall 2
        server   db3  192.168.1.129:3307 weight 1 check  inter 1s rise 2 fall 2



您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP