IOPS の調整
この機能を使用すると、既存の Block Storage for Classic の IOPS をすぐに調整できます。 複製を作成したり、新しいストレージにデータを手動でコピーしたりする必要はない。 この調整によって、何らかの停止やストレージへのアクセスの不足が生じることはありません。
ストレージの請求は、現在の請求サイクルに新しい価格の日割り計算による差額を追加するように更新されます。 次の請求サイクルでは新しい金額全体が請求されます。
調整可能な IOPS の利点
- コスト管理 – 一部のお客様は、ピーク使用時にのみ高い IOPS を必要とする可能性があります。 例えば、大規模な小売店では、休日には使用量がピークに達するため、ストレージに高いIOPSレートが必要になるかもしれない。 しかし、小売店は真夏に高いIOPSを必要としていない。 この機能を使用すると、必要なときにコストを管理し、より高い IOPS の料金を支払うことができます。
制限
IOPSを調整する際、EnduranceとPerformanceを切り替えることはできない。 ただし、以下の基準に基づいて、ストレージの新規 IOPS を指定することができます。
| ボリューム・サイズ (GB) | IOPS 範囲 |
|---|---|
| 10 から 39 | 100 から 1,000 |
| 40 から 79 | 100 - 2,000 |
| 80 から 99 | 100 から 4,000 |
| 100 から 499 | 100 から 6,000 |
| 500 から 999 | 100 から 10,000 |
| 1,000 から 1,999 | 100 から 20,000 |
| 2,000 - 2,999 | 200 から 40,000 |
| 3,000 - 3,999 | 200 - 48,000 |
| 4,000 - 7,999 | 300 - 48,000 |
| 8,000 - 9,999 | 500 から 48,000 |
| 10,000 - 12,000 | 1,000 から 48,000 |
ブロック・ストレージ・ボリュームの最大 IOPS は、ボリューム・サイズによって異なります。 ボリュームの最大 IOPS は 48,000 IOPS です。
複製に対する IOPS 調整の影響
ボリュームに複製が設定されている場合、1 次の IOPS の選択に一致するようにレプリカが自動的に更新されます。
コンソールでストレージのIOPSを調整する
-
Block Storage for Classic のリストに進みます。 メニュー
・アイコンをクリックし、 「インフラストラクチャー」
> ストレージ > Block Storage for Classic をクリックします。
-
リストから iSCSI ボリュームを選択し、省略符号
> 「ボリュームの変更」 をクリックします。
-
**「ストレージ IOPS の調整 (Adjust Storage IOPS)」**で、新しい選択を行います。
- エンデュランス (階層化 IOPS) の場合は、別のティアを選択します。 IOPS 層はいつでも増やすことができます。 ただし、下げることができるのは、月に 1 回のみです。
- Performance (Allocated IOPS)では、100-48,000 IOPSの範囲の値を入力して、ストレージの新しいIOPSオプションを指定します。 選択内容がボリューム・サイズに対して有効でない場合は、UI によって通知されます。
-
選択内容と新しい価格設定を確認します。
-
**「変更」**をクリックします。
-
新規ストレージ割り振りは数分後に使用可能になります。
実際のストレージでの IOPS の調整 (CLI を使用)
このプロセスを開始する前に、使用する CLI クライアントを決定します。
- IBM Cloud CLI をインストールし、
ibmcloud plugin install slを使用して SL プラグインをインストールすることができます。 詳しくは、 プラグインを使用した IBM Cloud CLI の拡張 を参照してください。 - あるいは、 SLCLIをインストールすることもできます。
IBMCLOUD CLI からの IOPS の調整
ibmcloud sl block volume-modify コマンドを使用して IOPS を更新できます。 以下の例では、新しい IOPS 値を指定してパフォーマンス・ボリュームを変更します。 このコマンドを使用する場合は、IDENTIFIERをボリュームIDに置き換えてください(例:12345678)。
ibmcloud sl block volume-modify IDENTIFIER --new-iops 4000
以下の例では、新しい IOPS ティアを指定してエンデュランス・ファイル・シェアを変更します。
ibmcloud sl block volume-modify IDENTIFIER --new-tier 4
このコマンドで使用可能なすべてのパラメーターについて詳しくは、 ibmcloud sl block volume-modifyを参照してください。
SLCLI からの IOPS の調整
IOPSは以下のコマンドで更新できる。
$ slcli block volume-modify --help
Usage: slcli block volume-modify [OPTIONS] VOLUME_ID
Options:
-c, --new-size INTEGER New Size of block volume in GB. ***If no size
is given, the original size of volume is
used.***
Potential Sizes: [20, 40, 80, 100,
250, 500, 1000, 2000, 4000, 8000, 12000]
Minimum: [the original size of the volume]
-i, --new-iops INTEGER Performance Storage IOPS, between 100 and 6000
in multiples of 100 [only for performance
volumes] ***If no IOPS value is specified, the
original IOPS value of the volume will be
used.***
-t, --new-tier [0.25|2|4|10] Endurance Storage Tier (IOPS per GB) [only for
endurance volumes] ***If no tier is specified,
the original tier of the volume will be
used.***
-h, --help Show this message and exit.
API を使用したストレージの IOPS の調整
SOAPウェブサービスにAPIコールを行うことで、IOPSを調整することができます。 以下のサンプルAPIリクエストは、お好みのスクリプト言語から実行できます。
SLAPIの詳細については、 SLDNを参照のこと。
-
以下の例は、パフォーマンス・ストレージ・ボリュームの IOPS 変更をリクエストする方法を示しています。
XXXXXXXXXは、変更したいボリュームの ID です。3000は、ボリュームに設定したい新しい IOPS 値です。189433は、最大レベルの価格の ID です。190233は、2000 ~ 2999 GB の容量範囲の ID です。190293は、200 ~ 40000 IOPS の範囲の ID です。<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.service.softlayer.com/soap/v3.1/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Header> <ns1:authenticate> </ns1:authenticate> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:placeOrder> <orderData xsi:type="ns1:SoftLayer_Container_Product_Order_Network_Storage_AsAService_Upgrade"> <volume xsi:type="ns1:SoftLayer_Network_Storage"> <id xsi:type="xsd:int">XXXXXXXXX</id> </volume> <iops xsi:type="xsd:int">3000</iops> <packageId xsi:type="xsd:int">759</packageId> <prices SOAP-ENC:arrayType="ns1:SoftLayer_Product_Item_Price[3]" xsi:type="SOAP-ENC:Array"> <item xsi:type="ns1:SoftLayer_Product_Item_Price"> <id xsi:type="xsd:int">189433</id> </item> <item xsi:type="ns1:SoftLayer_Product_Item_Price"> <id xsi:type="xsd:int">190233</id> </item> <item xsi:type="ns1:SoftLayer_Product_Item_Price"> <id xsi:type="xsd:int">190293</id> </item> </prices> </orderData> </ns1:placeOrder> </SOAP-ENV:Body> </SOAP-ENV:Envelope> -
次の例は、EnduranceストレージボリュームのIOPSを調整する方法を示しています。
XXXXXXXXXは、変更するボリュームのIDです。4は、ボリュームに設定する新しいIOPSティアの値です。189433は、最大レベルの価格のIDです。193373と193433は、ボリュームの容量とIOPSの価格帯のIDです。<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.service.softlayer.com/soap/v3.1/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Header> <ns1:authenticate> </ns1:authenticate> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:placeOrder> <orderData xsi:type="ns1:SoftLayer_Container_Product_Order_Network_Storage_AsAService_Upgrade"> <volume xsi:type="ns1:SoftLayer_Network_Storage"> <id xsi:type="xsd:int">XXXXXXXX</id> </volume> <packageId xsi:type="xsd:int">759</packageId> <iops xsi:type="xsd:int">4</iops> <prices SOAP-ENC:arrayType="ns1:SoftLayer_Product_Item_Price[3]" xsi:type="SOAP-ENC:Array"> <item xsi:type="ns1:SoftLayer_Product_Item_Price"> <id xsi:type="xsd:int">189433</id> </item> <item xsi:type="ns1:SoftLayer_Product_Item_Price"> <id xsi:type="xsd:int">193373</id> </item> <item xsi:type="ns1:SoftLayer_Product_Item_Price"> <id xsi:type="xsd:int">193433</id> </item> </prices> </orderData> </ns1:placeOrder> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
TerraformでストレージのIOPSを調整する
ibm_storage_block リソースを使用し、 iops 引数に別の数値を指定することで、IOPS を調整できます。 以下の例では、エンデュランス・ボリュームのパフォーマンス層を 4 IOPS/GB 層に増やします。
resource "ibm_storage_block" "test1" {
type = "Endurance"
datacenter = "dal09"
capacity = 40
iops = 4
os_format_type = "Linux"
# Optional fields
allowed_virtual_guest_ids = [ 27699397 ]
allowed_ip_addresses = ["10.40.98.193", "10.40.98.200"]
snapshot_capacity = 10
hourly_billing = true
}
以下の例では、パフォーマンス・ボリュームのパフォーマンス・レベルを 150 IOPS に変更します。
resource "ibm_storage_block" "test2" {
type = "Performance"
datacenter = "dal09"
capacity = 40
iops = 150
os_format_type = "Linux"
# Optional fields
allowed_virtual_guest_ids = [ 27699397 ]
allowed_ip_addresses = ["10.40.98.193", "10.40.98.200"]
hourly_billing = true
}
引数および属性について詳しくは、 ibm_storage_blockを参照してください。