`

Mogile-REST-Service与nginxmogilemodule对比测试

阅读更多

Mogilefs-REST- Service 测试

测试目的

  • 测试使用MogileFS-REST-Service的稳定性和可用性
  • 对比nginxmogilefsmodule与MogileFS-REST的上传,下载,删除方法性能

测试方法

  • 重复上传下载删除不同大小的文件,测试MogileFS-REST服务可用性和稳定性
  • 重复上传下载删除不同大小的文件到nginxmogilefsmodule,MogileFS-REST,记录耗时数据进行对比

测试环境

  • 环境描述: 
    MogileFS-REST app server:..**.252/10.20.169.194 
    tracker:..**.252/10.20.169.194 
    node1:..**.252/10.20.169.194 
    node2:..**.173/10.20.169.18 
    文件上传,下载,删除操作均在局域网
  • 硬件配置:C2
  • 软件配置:mogilefs 2.72,MogileFS-REST ,Mysql 5.5.31

环境配置

  • 安装数据库: 
    create database mogilefs; 
    grant all privileges on mogilefs.* to ‘mogile’@’localhost’ identified by ‘123’; 
    grant all privileges on mogilefs.* to ‘mogile’@’10.20.169.18’ identified by ‘123’; 
    flush privileges;

  • 配置mogilefs 

  • 服务健康检查 
    mogadm –trackers=10.20.169.194:7001 check
  • 测试 mogilefsd 服务: 
    mogupload –domain=testing –key=123 –file=README –trackers=10.20.169.194 
    mogfileinfo –domain=testing –key=123 –trackers=10.20.169.194

  • 安装MogileFS-REST-Service 
    git clone git@github.com/yannk/MogileFS-REST.git

  • 启动MogileFS-REST-Service: 
    cd /home/liuyd/MogileFS-REST-Service 
    MOGILEFSRESTDEFAULTCLASS=test2 MOGILEFSREST_SERVERS=localhost:7001 plackup -Ilib -a app.psgi &

  • 测试MogileFS-REST-Service服务: 
    curl -i -X GET http://10.20.169.194:5000/testing/123

对比测试



 

结论

  • Mogile-REST-Service 服务可用
  • Mogile-REST-Service性能比 nginxmogilemodule差很多,特别是在下载和删除操作上
  • Mogile-REST-Service下载性能太差,不适于应用于生产环境
  • 测试未发现Mogile-REST-Service服务上传,下载,删除失败的情况
  • 测试未发现 Nginxmogilemodule 服务上传,下载,删除失败的情况
  • 大小: 32 KB
0
1
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics