Libro sobre Proxmox maestria
High Availability Storage for High Availability Cluster
Please note that both storage pools will show the exact same size and usage information because they are on the same cluster. The only way to fully separate them is to create two separate Ceph clusters. Clusters can be on the same or different hardware.
There are many ways to run a benchmark test on a Ceph cluster to check disk drive, network, and cluster performance. Use the following commands to test the performance of the Ceph cluster.
To write a block of data to test write performance, use the following command: root@node:/# rados -p <pool> bench -b <blockSize> <seconds> <write> t <threads> --no-cleanup
To read a block of data to test read performance, use the following command: root@node:/# rados -p <pool> bench -b <blockSize> <seconds> <seq> -t <threads>
After each of the previous commands, run the following command to clear cache: root@node:/# echo 3 > tee /proc/sys/vm/drop_caches && sync
We can create a separate pool for the purpose of benchmarking so that we do not run benchmark tests on live production pools. Let us create a pool to run cluster benchmarking using the following command:
root@node:/# ceph osd pool create test 256 256
For a good spread of benchmarks, use the block sizes of 4096, 131072, and 4194304 bytes. After each write performance, run the read benchmark. The no-cleanup option will make sure that data written for write performance is not automatically deleted after the write test. We will need the written data to perform the read test. Based on the benchmark command format, the four following steps test each block size. Use 300 seconds and 32 threads for sustained performance tests:
1. To test data with block size 4096 bytes for a write performance, use the following command:
root@node:/#rados -p test bench -b 4096 300 write -t 32 --no- cleanup
2. Clear cache using the following command:
root@node:/# echo 3 >tee /proc/sys/vm/drop_caches && sync