zoukankan      html  css  js  c++  java
  • weed-fs 压力测试

    阅读《Weed-FS/杂草文件系统 小文件存储集群 安装 使用 测试》中提到weedfs的负载压力不是很好,在看过代码后进行了相应测试,未发现负载压力有何问题。

      weedfs master weedfs volume 操作系统    
    weed_0.45_amd64.deb weed_0.45_amd64.deb ubuntu 12.04 64    
    棋仙博客 weed_0.45_linux_amd64.tar.gz weed_0.45_linux_386.tar.gz? 未知    

    可能存在的不同:

    对方进行ab测试时未知测试的是amd64的版本还是386版本

    对方操作系统版本未知

    对方在设置volume时是否设置了readTimeout的值

    对方ab测试参数未知

    以下为我的测试结果

    测试系统Ubuntu 12.04 64

    服务器:

    云服务器名称:Server2 CPU核数:4核 付费方式:免费试用
    拥有磁盘:2个 内存大小:4GB
    root@:~/data1# ab -k -c 100 -n 1000 http://localhost:9333/dir/assign
    This is ApacheBench, Version 2.3 <$Revision: 655654 $>
    Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
    Licensed to The Apache Software Foundation, http://www.apache.org/
    
    Benchmarking localhost (be patient)
    Completed 100 requests
    Completed 200 requests
    Completed 300 requests
    Completed 400 requests
    Completed 500 requests
    Completed 600 requests
    Completed 700 requests
    Completed 800 requests
    Completed 900 requests
    Completed 1000 requests
    Finished 1000 requests
    
    Server Software:
    Server Hostname:        localhost
    Server Port:            9333
    
    Document Path:          /dir/assign
    Document Length:        86 bytes
    
    Concurrency Level:      100
    Time taken for tests:   0.044 seconds
    Complete requests:      1000
    Failed requests:        0
    Write errors:           0
    Keep-Alive requests:    1000
    Total transferred:      224000 bytes
    HTML transferred:       86000 bytes
    Requests per second:    22826.36 [#/sec] (mean)
    Time per request:       4.381 [ms] (mean)
    Time per request:       0.044 [ms] (mean, across all concurrent requests)
    Transfer rate:          4993.27 [Kbytes/sec] received
    
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0    0   1.4      0       6
    Processing:     0    4   2.1      3      12
    Waiting:        0    4   2.1      3      12
    Total:          0    4   2.8      3      16
    
    Percentage of the requests served within a certain time (ms)
      50%      3
      66%      5
      75%      5
      80%      5
      90%      9
      95%     10
      98%     12
      99%     13
     100%     16 (longest request)
    
    root:~/data1# ab -k -c 100 -n 10000 http://localhost:9333/dir/assign
    This is ApacheBench, Version 2.3 <$Revision: 655654 $>
    Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
    Licensed to The Apache Software Foundation, http://www.apache.org/
    
    Benchmarking localhost (be patient)
    Completed 1000 requests
    Completed 2000 requests
    Completed 3000 requests
    Completed 4000 requests
    Completed 5000 requests
    Completed 6000 requests
    Completed 7000 requests
    Completed 8000 requests
    Completed 9000 requests
    Completed 10000 requests
    Finished 10000 requests
    
    Server Software:
    Server Hostname:        localhost
    Server Port:            9333
    
    Document Path:          /dir/assign
    Document Length:        86 bytes
    
    Concurrency Level:      100
    Time taken for tests:   0.413 seconds
    Complete requests:      10000
    Failed requests:        0
    Write errors:           0
    Keep-Alive requests:    10000
    Total transferred:      2240000 bytes
    HTML transferred:       860000 bytes
    Requests per second:    24185.90 [#/sec] (mean)
    Time per request:       4.135 [ms] (mean)
    Time per request:       0.041 [ms] (mean, across all concurrent requests)
    Transfer rate:          5290.67 [Kbytes/sec] received
    
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0    0   0.3      0       4
    Processing:     0    4   3.7      3      50
    Waiting:        0    4   3.7      3      50
    Total:          0    4   3.7      3      50
    
    Percentage of the requests served within a certain time (ms)
      50%      3
      66%      5
      75%      6
      80%      6
      90%      8
      95%     11
      98%     13
      99%     17
     100%     50 (longest request)
    
    root@:~/data1# ab -k -c 100 -n 20000 http://localhost:9333/dir/assign
    This is ApacheBench, Version 2.3 <$Revision: 655654 $>
    Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
    Licensed to The Apache Software Foundation, http://www.apache.org/
    
    Benchmarking localhost (be patient)
    Completed 2000 requests
    Completed 4000 requests
    Completed 6000 requests
    Completed 8000 requests
    Completed 10000 requests
    Completed 12000 requests
    Completed 14000 requests
    Completed 16000 requests
    Completed 18000 requests
    Completed 20000 requests
    Finished 20000 requests
    
    Server Software:
    Server Hostname:        localhost
    Server Port:            9333
    
    Document Path:          /dir/assign
    Document Length:        86 bytes
    
    Concurrency Level:      100
    Time taken for tests:   0.810 seconds
    Complete requests:      20000
    Failed requests:        0
    Write errors:           0
    Keep-Alive requests:    20000
    Total transferred:      4480000 bytes
    HTML transferred:       1720000 bytes
    Requests per second:    24679.17 [#/sec] (mean)
    Time per request:       4.052 [ms] (mean)
    Time per request:       0.041 [ms] (mean, across all concurrent requests)
    Transfer rate:          5398.57 [Kbytes/sec] received
    
    Connection Times (ms)
                  min  mean[+/-sd] median   max
    Connect:        0    0   0.5      0       7
    Processing:     0    4   4.4      3      86
    Waiting:        0    4   4.4      3      85
    Total:          0    4   4.4      3      86
    
    Percentage of the requests served within a certain time (ms)
      50%      3
      66%      4
      75%      5
      80%      6
      90%      8
      95%     10
      98%     15
      99%     20
     100%     86 (longest request)
  • 相关阅读:
    JAVA项目实战-设计模式-工厂模式的项目使用
    JAVA项目实战-设计模式——单例模式项目中运用
    JAVA项目实战-实现生成固定格式PDF文件和打包成zip压缩包并在浏览器中输出
    JAVA项目实战-阿里巴巴easyexcel导出导入工具使用
    JAVA项目实战-文件的上传和下载功能
    JAVA项目实战-生成二维码和验证码功能
    JAVA项目实战-高德地图API实现定位导航功能
    JAVA项目实战 -微信支付开发
    JAVA调用腾讯云API-实现语音合成(TTS)(三)
    MySQL高可用架构故障自动转移插件MHA
  • 原文地址:https://www.cnblogs.com/forrestsun/p/3503440.html
Copyright © 2011-2022 走看看