如何获得 Endurance Storage 的 IOPS?
How to get IOPS for Endurance Storage?
我尝试将屏蔽 IOPS 添加到 SoftLayer_Network_Storage 服务,
但我无法获得价值。它 returns 无效。
对于性能存储,我能够使用相同的 API 获得正确的值。
耐久存储和性能存储之间存在一些差异,关于耐久存储,IOPS取决于存储容量,因为IOPS是按GB排序的:
我可以提供一个根据存储容量提供总IOPS的rest请求:
https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Network_Storage/$storageId/getObject?objectMask=mask[properties[type]]
Method: Get
将:$user、$apiKey 和$storageId 替换为您自己的信息
PROVISIONED_IOPS 属性 将显示 存储 的总 IOPS。
例如,您可以得到这样的结果:
"createDate": "2015-09-18T10:23:26-03:00"
"modifyDate": null
"value": "5"
"volumeId": 12312345
"type": {
"description": "The iops value passed to the network storage hardware."
"keyname": "PROVISIONED_IOPS"
"name": "Provisioned iops"
}
“5”值是存储的总 IOPS,如果将其除以 capacityGb(例如:20 GB),您将得到每 Gb 的 IOPS(这应该是您订购的 IOPS)。
IOPS/GB = PROVISIONED_IOPS / capacityGB
e.g: IOPS/GB = 5 / 20 = 0.25
无论如何,如果您想获得订购的每 GB IOPS,请尝试以下请求:
https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Network_Storage/$storageId/getObject?objectMask=mask[billingItem[orderItem[order[items]]]]
Method: Get
参考文献:
我尝试将屏蔽 IOPS 添加到 SoftLayer_Network_Storage 服务, 但我无法获得价值。它 returns 无效。
对于性能存储,我能够使用相同的 API 获得正确的值。
耐久存储和性能存储之间存在一些差异,关于耐久存储,IOPS取决于存储容量,因为IOPS是按GB排序的:
我可以提供一个根据存储容量提供总IOPS的rest请求:
https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Network_Storage/$storageId/getObject?objectMask=mask[properties[type]]
Method: Get
将:$user、$apiKey 和$storageId 替换为您自己的信息
PROVISIONED_IOPS 属性 将显示 存储 的总 IOPS。 例如,您可以得到这样的结果:
"createDate": "2015-09-18T10:23:26-03:00"
"modifyDate": null
"value": "5"
"volumeId": 12312345
"type": {
"description": "The iops value passed to the network storage hardware."
"keyname": "PROVISIONED_IOPS"
"name": "Provisioned iops"
}
“5”值是存储的总 IOPS,如果将其除以 capacityGb(例如:20 GB),您将得到每 Gb 的 IOPS(这应该是您订购的 IOPS)。
IOPS/GB = PROVISIONED_IOPS / capacityGB
e.g: IOPS/GB = 5 / 20 = 0.25
无论如何,如果您想获得订购的每 GB IOPS,请尝试以下请求:
https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Network_Storage/$storageId/getObject?objectMask=mask[billingItem[orderItem[order[items]]]]
Method: Get
参考文献: