获取实例规格列表
更新时间:2024-12-23
请求说明
获取实例规格列表。
请求结构
GET /v2/nodetypes HTTP/1.1
HOST: redis.bj.baidubce.com
Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
无
返回头域
除公共头域外,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
defaultNodeTypeList | List<NodeTypeItem> | Redis内存型标准版规格 |
clusterNodeTypeList | List<NodeTypeItem> | Redis内存型集群版规格 |
pegaClusterNodeTypeList | List<NodeTypeItem> | Redis容量型(PegaDB)集群版规格 |
NodeTypeItem Object详情
参数名称 | 参数类型 | 参数描述 |
---|---|---|
nodeType | String | 节点规格 |
instanceFlavor | Integer | 节点容量 |
cpuNum | Integer | cpu数量 |
networkThroughputInGbps | float | 网络吞吐 |
peakQps | Integer | 参考最大Qps |
maxConnections | Integer | 最大连接数 |
allowedNodeNumList | List<int> | 允许的分片数量 |
minDiskFlavor | Integer | Pegadb规格最小的磁盘大小,单位GB。 |
maxDiskFlavor | Integer | Pegadb规格最小的磁盘大小,单位GB。 |
请求示例
GET /v2/nodetypes HTTP/1.1
HOST: redis.bj.baidubce.com
Content-Type: application/json
Authorization: bce-auth-v1/0255cb4f78f140728045b551d6a317ec/2018-11-13T06:13:25Z/1800/host/2feac87a586a66c048be0b6ef2d02fdfca7d65cf9b6c9e6b9efe20bac95b7c7a
返回示例
HTTP/1.1 200 OK
x-bce-request-id: 7869616F-7A68-6977-656E-406261696475
Content-Type: application/json
Content-Length: 150
{
"clusterNodeTypeList": [
{
"instanceFlavor": 32.0,
"nodeType": "cache.n1.2xlarge",
"allowedNodeNumList": [
1,
2,
3,
4,
5,
6,
8,
12,
16,
24,
32,
40,
48,
64,
80,
96,
128,
160,
192,
256
],
"cpuNum": 2,
"networkThroughputInMB": 48,
"networkThroughputInGbps": 0.048,
"peakQps": 60000,
"maxConnections": 60000,
"allowedReplicationNumList": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
],
"minDiskFlavor": 0,
"maxDiskFlavor": 0,
"defaultDiskFlavor": 0
}
],
"defaultNodeTypeList": [
{
"instanceFlavor": 0.25,
"nodeType": "cache.n1.nano",
"allowedNodeNumList": [
1
],
"cpuNum": 2,
"networkThroughputInMB": 10,
"networkThroughputInGbps": 0.01,
"peakQps": 60000,
"maxConnections": 10000,
"allowedReplicationNumList": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
],
"minDiskFlavor": 0,
"maxDiskFlavor": 0,
"defaultDiskFlavor": 0
},
{
"instanceFlavor": 1.0,
"nodeType": "cache.n1.micro",
"allowedNodeNumList": [
1
],
"cpuNum": 2,
"networkThroughputInMB": 10,
"networkThroughputInGbps": 0.01,
"peakQps": 60000,
"maxConnections": 10000,
"allowedReplicationNumList": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
],
"minDiskFlavor": 0,
"maxDiskFlavor": 0,
"defaultDiskFlavor": 0
}
],
"pegaClusterNodeTypeList": [
{
"instanceFlavor": 8.0,
"nodeType": "pega.g4s1.micro",
"allowedNodeNumList": [
1,
2,
4,
6,
8,
12,
16,
24,
32,
48,
64,
96,
128,
160,
192,
256,
320
],
"cpuNum": 4,
"networkThroughputInMB": 187,
"networkThroughputInGbps": 0.187,
"peakQps": 10000,
"maxConnections": 30000,
"allowedReplicationNumList": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
],
"minDiskFlavor": 50,
"maxDiskFlavor": 320,
"defaultDiskFlavor": 64
}
]
}