ceph性能测试

查看集群状态

ceph -s

在这里插入图片描述
查看osd情况

ceph osd tree

在这里插入图片描述

创建pg_num为60的pool,名为test。

ceph osd pool create test 60

rados bench用于测试rados存储池底层性能,该工具可以测试写、顺序读、随机读三种类型

rados bench -p <pool_name> <seconds> <write|seq|rand> [-b block_size] [-t concurrent_operations] [-k /.../ceph.client.admin.keyring] [-c /.../ceph.conf] [--no-cleanup] [--run-name run_name]
-p <pool_name> 
测试存储池名称
------------------------
<seconds> 
测试运行时长,单位S
------------------------
<write|seq|rand> 
测试读写类型(write写;seq顺序读;rand随机读)
------------------------
-b block_size
测试读写块大小,默认4MB,默认单位字节
------------------------
-t concurrent_operation
测试读写并发线程数,默认为16
------------------------
-k /…/ceph.client.admin.keyring
指定测试ceph.client.admin.keyring配置文件路径
------------------------
-c /…/ceph.conf
指定测试ceph.conf配置文件路径
------------------------
–no-cleanup
测试完成后不删除测试数据,只对写有效
rados bench -p test 10 write -b 1M --no-cleanup
rados bench -p test 10 write -b 2M --no-cleanup
rados bench -p test 10 write -b 3M --no-cleanup
rados bench -p test 10 seq
rados bench -p test 10 rand

删除测试文件

rados -p {pool_name} cleanup

查看test存储池中的文件

 rados -p test-pool ls
  • 6
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值