ssh免密配置

参考:https://blog.csdn.net/SweeNeil/article/details/95338293

  1. 使用Vdbench测试工具对所有虚拟机磁盘进行压力测试,vdbench测试工具脚本主机定义设置如下:

hd=default,vdbench=/home/vdbench,user=root,shell=ssh

hd=hd1,system=node1

hd=hd2,system=node2

hd=hd3,system=node3

……

  1. 设置测试工具模型为8k块大小随机读,测试数据量为块存储总SSD缓存大小的1倍。在压力虚拟机上运行Vdbench测试工具。存储定义、工作负载定义、运行定义设置如下:

sd=sd1,hd=hd1,lun=/dev/sdb,openflags=o_direct,hitarea=1G,threads=1(厂家自行调整)

……

wd=wd1,sd=sd*,seekpct=100,rdpct=100,rhpct=60,xfersize=8k

rd=rd1,wd=wd1,iorate=max,elapsed=604800,maxdata=数据量,interval=5,warmup=30

  1. 记录平均读写IOPS

master

1
2
3
4
5
6
7
ssh-keygen -t rsa
ssh-copy-id -i /root/.ssh/id_rsa.pub root@172.18.2.197
ssh-copy-id -i /root/.ssh/id_rsa.pub root@172.18.2.196
ssh-copy-id -i /root/.ssh/id_rsa.pub root@172.18.2.185
ssh-copy-id -i /root/.ssh/id_rsa.pub root@172.18.2.173
ssh-copy-id -i /root/.ssh/id_rsa.pub root@172.18.2.171
ssh-copy-id -i /root/.ssh/id_rsa.pub root@172.18.2.165
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
hd=default,vdbench=/home/vdbench,user=root,shell=ssh
hd=hd1,system=172.18.2.197
hd=hd2,system=172.18.2.196
hd=hd3,system=172.18.2.185
hd=hd4,system=172.18.2.173
hd=hd5,system=172.18.2.171
hd=hd6,system=172.18.2.165


sd=sd1,hd=hd1,lun=/dev/sda,openflags=o_direct,hitarea=1G,threads=1
sd=sd2,hd=hd1,lun=/dev/sdb,openflags=o_direct,hitarea=1G,threads=1
sd=sd3,hd=hd2,lun=/dev/sda,openflags=o_direct,hitarea=1G,threads=1
sd=sd4,hd=hd2,lun=/dev/sdb,openflags=o_direct,hitarea=1G,threads=1
sd=sd5,hd=hd3,lun=/dev/sda,openflags=o_direct,hitarea=1G,threads=1
sd=sd6,hd=hd3,lun=/dev/sdb,openflags=o_direct,hitarea=1G,threads=1
sd=sd7,hd=hd4,lun=/dev/sda,openflags=o_direct,hitarea=1G,threads=1
sd=sd8,hd=hd4,lun=/dev/sdb,openflags=o_direct,hitarea=1G,threads=1
sd=sd9,hd=hd5,lun=/dev/sdb,openflags=o_direct,hitarea=1G,threads=1
sd=sd10,hd=h5,lun=/dev/sda,openflags=o_direct,hitarea=1G,threads=1
sd=sd11,hd=hd6,lun=/dev/sdb,openflags=o_direct,hitarea=1G,threads=1
sd=sd12,hd=hd6,lun=/dev/sda,openflags=o_direct,hitarea=1G,threads=1

wd=wd1,sd=sd*,seekpct=100,rdpct=0,rhpct=60,xfersize=8k

rd=rd1,wd=wd1,iorate=max,elapsed=604800,maxdata=150G,interval=5,warmup=30