調整 File Storage for Classic 卷的 IOPS
立即調整您的檔案儲存卷的每秒輸入/輸出操作 (IOPS) 數值,過程中不會造成服務中斷或干擾。
儲存空間的帳單已更新,將新價格的按比例計算差額加入當前計費週期中。 會在下一個計費週期收取新的完整金額。
可調式 IOPS 的優點
- 成本管理:客戶可根據使用模式調整 IOPS。 例如,大型零售店在節日期間會迎來使用高峰,此時儲存系統所需的 IOPS 數值,便會比盛夏時節更高。 使用此特性,您可以管理成本,並僅在需要時才支付更高 IOPS。
限制
調整 IOPS 時,無法在「耐力」與「效能」模式之間切換。 您可以根據下列準則為儲存空間指定新的 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 調整對於抄寫的效果
如果磁區已有抄寫,則會自動更新抄本,以符合主要磁區的 IOPS 選取項目。
在控制台中調整儲存的 IOPS
- 移至您的 File Storage for Classic 清單。 在IBM Cloud®控制台中,按一下基礎架構
>經典基礎架構>儲存> File Storage for Classic。
- 從清單中選取磁區,然後按一下省略符號
> 修改檔案共用。
- 在 調整儲存空間 IOPS 區段中,進行新的選擇:
- 對於耐久性 (分層 IOPS),請為儲存空間選取不同的 IOPS 層級。 您隨時可以增加 IOPS 層級。 不過,一個月只能減少一次。
- 若要設定效能(分配的 IOPS),請為您的儲存裝置指定新的 IOPS 選項,並輸入 100 至 48,000 IOPS 之間的數值。
- 檢閱您的選取項目及新的定價。 按一下 修改。
- 在幾分鐘之後,就可以使用您的新儲存空間配置。
從 CLI 調整儲存空間上的 IOPS
在開始執行此程序之前,請先決定要使用的命令列介面 (CLI) 客戶端。
- 您可以安裝 IBM Cloud CLI,並使用
ibmcloud plugin install sl來安裝 SL 外掛程式。 如需相關資訊,請參閱 使用外掛程式延伸 IBM Cloud CLI。 - 或者,您可以安裝 SLCLI。
從 IBMCLOUD CLI 調整 IOPS
您可以使用 ibmcloud sl file volume-modify 指令來更新 IOPS。 下列範例透過指定新的 IOPS 值來修改效能檔案共用。
ibmcloud sl file volume-modify 12345678 --new-iops 4000
下列範例會指定新的 IOPS 層級來修改「耐久性」檔案共用。
ibmcloud sl file volume-modify 12345678 --new-tier 4
如需此指令可用的所有參數的相關資訊,請參閱 ibmcloud sl file volume-modify。
從 SLCLI 調整 IOPS
您可以使用以下指令來更新 IOPS。
$ slcli file volume-modify --help
Usage: slcli file volume-modify [OPTIONS] VOLUME_ID
Options:
-c, --new-size INTEGER New Size of file 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 呼叫可以從您選擇的 Scripting 語言進行。
如需 SLAPI 的相關資訊,請參閱 SLDN。
-
以下範例說明如何針對 Performance 儲存卷請求變更 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_file 資源,並在 iops 引數中指定不同的數字,來調整 IOPS。 下列範例會將「耐久性」共用的效能層級增加至 4 IOPS/GB 層級。
resource "ibm_storage_file" "fs_endurance" {
type = "Endurance"
datacenter = "dal09"
capacity = 20
iops = 4
}
下列範例會將「效能」共用的效能層次變更為 150 IOPS。
resource "ibm_storage_file" "fs_performance" {
type = "Performance"
datacenter = "dal09"
capacity = 20
iops = 150
}
如需引數及屬性的相關資訊,請參閱 ibm_storage_file。