Рубрики
k8s Linux Performance tests storage

fio (IOPS test)

Original topic can be accessed by https://www.ibm.com/cloud/blog/using-fio-to-tell-whether-your-storage-is-fast-enough-for-etcd


Test IOPS in Linux system.

tar -xzf fio.tgz
yum localinstall *.rpm
cd /data0/etcd
mkdir test-data;fio —rw=write —ioengine=sync —fdatasync=1 —directory=test-data —size=22m —bs=2300 —name=mytest

#!/bin/bash
now=$(date "+%Y%d%m-%H%M");
while true;
do
fio --rw=write --ioengine=sync --fdatasync=1 --directory=/data0/etcd/test-data --size=22m --bs=2300 --name=${now}_mytest >> /data0/etcd/results.log;
sleep 600;
done