Oracle公有云,以下简称OCI。
OCI上块存储按性能分为高(Higher Performance)中(Balanced Performance)低(Lower Cost)3档。详细可参考文档: Block Volume Performance。关于这3档的价格,可参考这里。
关于这3档的说明,可参加Oracle Blog的文章Elastic Performance with the Next Generation Block Storage on Oracle Cloud。OCI的块存储还支持Auto-Tune功能,即当卷处于detach状态时,会自动降级到低档,详见Auto-tune Detached Block Volumes for Cost Savings。
考量的指标有延迟,吞吐量和IOPS。以中档为例,对于单个卷,延迟小于1毫秒,吞吐量480 KBPS/GB,最大480 MBPS;IOPS 为60 IOPS/GB,最大为25,000 IOPS。
对于单个实例而言,可以通过分配多个卷提供IOPS,目前单个实例最大IOPS为70万,详见这里。
- Block Volume Performance Analysis
- Oracle Bare Metal Cloud - DenseIO Virtual Machine Performance Analysis
- High Performance X7 Compute Service Review and Analysis
以下是一个示例,在根卷外再分配两个500G block volume的测试:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 500G 0 disk
sdc 8:32 0 500G 0 disk
sda 8:0 0 46.6G 0 disk
├─sda2 8:2 0 8G 0 part [SWAP]
├─sda3 8:3 0 38.4G 0 part /
└─sda1 8:1 0 200M 0 part /boot/efi
$ git clone https://github.com/cloudharmony/block-storage
Cloning into 'block-storage'...
remote: Enumerating objects: 1068, done.
remote: Total 1068 (delta 0), reused 0 (delta 0), pack-reused 1068
Receiving objects: 100% (1068/1068), 1.98 MiB | 0 bytes/s, done.
Resolving deltas: 100% (825/825), done.
# yum install fio gnuplot wkhtmltopdf
# yum install php-json
$ sudo ./run.sh --savefio --nopurge --noprecondition --nozerofill --nosecureerase --notrim -v --fio_direct=1 --fio_size=10g --target /dev/sdb,/dev/sdc --test iops --skip_blocksize 512b&