记一次ceph rbd和希捷sata盘简单测试

一fio测试 (由于测试的时候没注意到细节,所以第一部分结果不太准确,等到下次测试的时候更正)

ceph 为3台,3mon 3mgr 9osd,网卡千兆交换机千兆,只进行了内核最大文件数和进程数调整,4核cpu 16G内存
希捷硬盘为1t


挂载rbd到/home/data
#利用for循环多次测试
for i in {1..10};do fio xxx >>suijixie.txt ;done
egrep "^  write" /home/data/suijixie.txt 查看结果
#测试随机写
fio -direct=1 -iodepth=128 -rw=randwrite -ioengine=libaio -bs=4k -size=1G -numjobs=1 -runtime=1000 -group_reporting -filename=iotest -name=Rand_Write_Testing

egrep "^  write" /home/data/suijidu.txt
#rbd
write: IOPS=497, BW=1989KiB/s (2037kB/s)(1024MiB/527210msec)
write: IOPS=726, BW=2906KiB/s (2976kB/s)(1024MiB/360832msec)
write: IOPS=739, BW=2958KiB/s (3029kB/s)(1024MiB/354431msec)
write: IOPS=748, BW=2993KiB/s (3065kB/s)(1024MiB/350307msec)
write: IOPS=756, BW=3026KiB/s (3098kB/s)(1024MiB/346545msec)
write: IOPS=679, BW=2719KiB/s (2784kB/s)(1024MiB/385679msec)
write: IOPS=676, BW=2705KiB/s (2770kB/s)(1024MiB/387629msec)
write: IOPS=681, BW=2725KiB/s (2790kB/s)(1024MiB/384830msec)
write: IOPS=680, BW=2721KiB/s (2787kB/s)(1024MiB/385300msec)
write: IOPS=678, BW=2716KiB/s (2781kB/s)(1024MiB/386090msec)
write: IOPS=680, BW=2723KiB/s (2788kB/s)(1024MiB/385098msec)
write: IOPS=676, BW=2706KiB/s (2771kB/s)(1024MiB/387547msec)
write: IOPS=680, BW=2722KiB/s (2788kB/s)(1024MiB/385169msec)
write: IOPS=682, BW=2729KiB/s (2794kB/s)(1024MiB/384280msec)
#希捷stat
write: IOPS=640, BW=2564KiB/s (2625kB/s)(1024MiB/409010msec)
write: IOPS=713, BW=2856KiB/s (2924kB/s)(1024MiB/367168msec)
write: IOPS=667, BW=2671KiB/s (2735kB/s)(1024MiB/392526msec)
write: IOPS=713, BW=2852KiB/s (2921kB/s)(1024MiB/367606msec)
write: IOPS=706, BW=2827KiB/s (2894kB/s)(1024MiB/370971msec)
write: IOPS=707, BW=2829KiB/s (2897kB/s)(1024MiB/370659msec)
write: IOPS=704, BW=2820KiB/s (2888kB/s)(1024MiB/371852msec)
write: IOPS=707, BW=2830KiB/s (2898kB/s)(1024MiB/370529msec)
write: IOPS=707, BW=2829KiB/s (2896kB/s)(1024MiB/370708msec)
write: IOPS=707, BW=2830KiB/s (2898kB/s)(1024MiB/370515msec)
write: IOPS=705, BW=2823KiB/s (2890kB/s)(1024MiB/371489msec)
write: IOPS=707, BW=2830KiB/s (2897kB/s)(1024MiB/370577msec)
write: IOPS=706, BW=2825KiB/s (2892kB/s)(1024MiB/371219msec)
#测试随机读
fio -direct=1 -iodepth=128 -rw=randread -ioengine=libaio -bs=4k -size=1G -numjobs=1 -runtime=1000 -group_reporting -filename=iotest -name=Rand_Read_Testing

egrep "^   read" /home/data/suijidu.txt 
#rbd
read: IOPS=569, BW=2278KiB/s (2333kB/s)(1024MiB/460241msec)
read: IOPS=1029, BW=4117KiB/s (4216kB/s)(1024MiB/254699msec)
read: IOPS=1353, BW=5415KiB/s (5545kB/s)(1024MiB/193642msec)
read: IOPS=13.3k, BW=52.0MiB/s (54.6MB/s)(1024MiB/19679msec)
read: IOPS=33.4k, BW=130MiB/s (137MB/s)(1024MiB/7856msec)
read: IOPS=33.3k, BW=130MiB/s (136MB/s)(1024MiB/7869msec)
read: IOPS=33.6k, BW=131MiB/s (138MB/s)(1024MiB/7809msec)
   read: IOPS=1399, BW=5596KiB/s (5731kB/s)(1024MiB/187370msec)
   read: IOPS=33.5k, BW=131MiB/s (137MB/s)(1024MiB/7814msec)
   read: IOPS=32.8k, BW=128MiB/s (135MB/s)(1024MiB/7981msec)
   read: IOPS=33.2k, BW=130MiB/s (136MB/s)(1024MiB/7904msec)
   read: IOPS=33.5k, BW=131MiB/s (137MB/s)(1024MiB/7818msec)
   read: IOPS=33.4k, BW=130MiB/s (137MB/s)(1024MiB/7860msec)
   read: IOPS=33.4k, BW=130MiB/s (137MB/s)(1024MiB/7848msec)
   read: IOPS=33.3k, BW=130MiB/s (136MB/s)(1024MiB/7877msec)
   read: IOPS=33.2k, BW=130MiB/s (136MB/s)(1024MiB/7884msec)
   read: IOPS=33.4k, BW=131MiB/s (137MB/s)(1024MiB/7838msec)
#希捷stat
read: IOPS=667, BW=2672KiB/s (2736kB/s)(1024MiB/392479msec)
read: IOPS=668, BW=2674KiB/s (2739kB/s)(1024MiB/392067msec)
read: IOPS=666, BW=2668KiB/s (2732kB/s)(1024MiB/393056msec)
read: IOPS=665, BW=2661KiB/s (2725kB/s)(1024MiB/394044msec)
read: IOPS=667, BW=2669KiB/s (2733kB/s)(1024MiB/392855msec)
read: IOPS=666, BW=2665KiB/s (2728kB/s)(1024MiB/393530msec)
read: IOPS=664, BW=2659KiB/s (2723kB/s)(1024MiB/394358msec)
read: IOPS=665, BW=2661KiB/s (2725kB/s)(1024MiB/394011msec)
read: IOPS=640, BW=2563KiB/s (2624kB/s)(930MiB/371585msec)
read: IOPS=666, BW=2665KiB/s (2728kB/s)(1024MiB/393540msec)

#测试顺序写吞吐量
fio -direct=1 -iodepth=64 -rw=write -ioengine=libaio -bs=1024k -size=1G -numjobs=1 -runtime=1000 -group_reporting -filename=iotest -name=Write_PPS_Testing

egrep "^  write" /home/data/dutuxie.txt 
#rbd
write: IOPS=108, BW=109MiB/s (114MB/s)(1024MiB/9398msec)
write: IOPS=109, BW=110MiB/s (115MB/s)(1024MiB/9347msec)
write: IOPS=109, BW=109MiB/s (114MB/s)(1024MiB/9388msec)
write: IOPS=109, BW=109MiB/s (115MB/s)(1024MiB/9368msec)
  write: IOPS=109, BW=109MiB/s (115MB/s)(1024MiB/9368msec)
  write: IOPS=109, BW=109MiB/s (114MB/s)(1024MiB/9381msec)
  write: IOPS=109, BW=109MiB/s (114MB/s)(1024MiB/9384msec)
  write: IOPS=109, BW=109MiB/s (115MB/s)(1024MiB/9363msec)
  write: IOPS=109, BW=109MiB/s (114MB/s)(1024MiB/9392msec)
  write: IOPS=109, BW=110MiB/s (115MB/s)(1024MiB/9346msec)
  write: IOPS=109, BW=109MiB/s (114MB/s)(1024MiB/9389msec)
  write: IOPS=109, BW=109MiB/s (115MB/s)(1024MiB/9373msec)
  write: IOPS=109, BW=109MiB/s (115MB/s)(1024MiB/9361msec)
  write: IOPS=109, BW=109MiB/s (115MB/s)(1024MiB/9352msec)
#希捷stat
write: IOPS=171, BW=172MiB/s (180MB/s)(1024MiB/5954msec)
 write: IOPS=216, BW=217MiB/s (227MB/s)(1024MiB/4729msec)
write: IOPS=215, BW=216MiB/s (226MB/s)(1024MiB/4741msec)
write: IOPS=216, BW=216MiB/s (227MB/s)(1024MiB/4740msec)
write: IOPS=216, BW=217MiB/s (227MB/s)(1024MiB/4724msec)
write: IOPS=217, BW=217MiB/s (228MB/s)(1024MiB/4717msec)
write: IOPS=215, BW=215MiB/s (226MB/s)(1024MiB/4757msec)
write: IOPS=213, BW=213MiB/s (224MB/s)(1024MiB/4798msec)
write: IOPS=215, BW=215MiB/s (226MB/s)(1024MiB/4756msec)
write: IOPS=214, BW=215MiB/s (225MB/s)(1024MiB/4768msec)
write: IOPS=216, BW=216MiB/s (227MB/s)(1024MiB/4739msec)
write: IOPS=216, BW=216MiB/s (227MB/s)(1024MiB/4735msec)
测试顺序读吞吐量
fio -direct=1 -iodepth=64 -rw=read -ioengine=libaio -bs=1024k -size=1G -numjobs=1 -runtime=1000 -group_reporting -filename=iotest -name=Read_PPS_Testing

egrep "^   read" /home/data/tutudu.txt
#rbd
read: IOPS=162, BW=163MiB/s (171MB/s)(1024MiB/6292msec)
read: IOPS=163, BW=163MiB/s (171MB/s)(1024MiB/6281msec)
read: IOPS=162, BW=163MiB/s (171MB/s)(1024MiB/6284msec)
read: IOPS=163, BW=163MiB/s (171MB/s)(1024MiB/6276msec)
read: IOPS=163, BW=164MiB/s (172MB/s)(1024MiB/6257msec)
read: IOPS=163, BW=163MiB/s (171MB/s)(1024MiB/6264msec)
read: IOPS=163, BW=163MiB/s (171MB/s)(1024MiB/6264msec)
read: IOPS=163, BW=164MiB/s (172MB/s)(1024MiB/6256msec)
read: IOPS=163, BW=163MiB/s (171MB/s)(1024MiB/6282msec)
read: IOPS=163, BW=164MiB/s (172MB/s)(1024MiB/6253msec)
read: IOPS=163, BW=163MiB/s (171MB/s)(1024MiB/6264msec)
read: IOPS=163, BW=163MiB/s (171MB/s)(1024MiB/6272msec)
read: IOPS=163, BW=164MiB/s (172MB/s)(1024MiB/6259msec)
#希捷stat
read: IOPS=216, BW=216MiB/s (227MB/s)(1024MiB/4731msec)
read: IOPS=216, BW=216MiB/s (227MB/s)(1024MiB/4731msec)
read: IOPS=216, BW=217MiB/s (227MB/s)(1024MiB/4726msec)
read: IOPS=216, BW=216MiB/s (227MB/s)(1024MiB/4733msec)
read: IOPS=214, BW=215MiB/s (225MB/s)(1024MiB/4771msec)
read: IOPS=216, BW=216MiB/s (227MB/s)(1024MiB/4734msec)
read: IOPS=215, BW=216MiB/s (226MB/s)(1024MiB/4743msec)
read: IOPS=215, BW=216MiB/s (226MB/s)(1024MiB/4746msec)
read: IOPS=216, BW=216MiB/s (227MB/s)(1024MiB/4735msec)
read: IOPS=215, BW=216MiB/s (226MB/s)(1024MiB/4743msec)
read: IOPS=214, BW=214MiB/s (225MB/s)(1024MiB/4774msec)
read: IOPS=216, BW=216MiB/s (227MB/s)(1024MiB/4740msec)

二 solr查询测试

参考文章

solr post数据20.9G所用时间
stat 1:02:56  1:07:22
rbd  1:12:32  1:14:42

安装jmeter测试solr读速度
下载地址
jdk安装
jmeter使用
安装二进制版本的就可以,需要jdk8.0以上版本
下载到本地电脑解压缩,

image.png

打开这个文件,进入jmeter,可以进入选项修改成中文
右键新建如图中所示内容,填写图中的选项参数

参数化设置

这是文本格式,一个参数一行可以自动识别

这是测试结果可以输出给csv表格保存比较

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 203,937评论 6 478
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 85,503评论 2 381
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 150,712评论 0 337
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,668评论 1 276
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,677评论 5 366
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,601评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,975评论 3 396
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,637评论 0 258
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,881评论 1 298
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,621评论 2 321
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,710评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,387评论 4 319
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,971评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,947评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,189评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 44,805评论 2 349
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,449评论 2 342

推荐阅读更多精彩内容