CapacityPlan
Recommends the optimal configuration for cluster capacity planning based on business scenarios, QPS, and log generation volume.
Try it now
Test
RAM authorization
Request syntax
POST /openapi/assist/actions/capacity-plan HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request parameters. |
|
| complexQueryAvailable |
boolean |
No |
Indicates whether complex aggregation queries are required. Valid values:
|
true |
| dataInfo |
array<object> |
No |
The disk usage. |
|
|
object |
No |
The dataInfo information. |
||
| code |
string |
No |
The disk data metric code. Valid values:
|
totalRawData |
| size |
integer |
No |
The metric value for disk usage. |
100 |
| type |
string |
No |
The disk data type. Valid values:
|
hot |
| unit |
string |
No |
The data unit or time unit. Valid values:
|
MiB |
| totalCount |
integer |
No |
The total number of data entries. |
10000 |
| metric |
array<object> |
No |
The metric information such as disk usage, search and write performance, and aggregate requests. |
|
|
object |
No |
The metric parameter information. |
||
| code |
string |
No |
The search or write metric code. Valid values:
|
write |
| concurrent |
integer |
No |
The number of concurrent requests. |
2 |
| throughput |
integer |
No |
The throughput. Unit: MB/s. |
100 |
| type |
string |
No |
The peak type for search or write operations. Valid values:
|
common |
| peakQps |
integer |
No |
The peak QPS. |
30 |
| averageQps |
integer |
No |
The average QPS. |
30 |
| responseTime |
integer |
No |
The expected average response time. Unit: milliseconds. |
100 |
| usageScenario |
string |
No |
Scenarios. Valid values:
|
general |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response information. |
||
| RequestId |
string |
The ID of the request. |
E91B7129-A669-4D9D-A743-F90A0FF1F5EF |
| Result |
object |
The result of the request. |
|
| ExtendConfigs |
array<object> |
The extended configuration information. |
|
|
object |
The ExtendConfigs information. |
||
| ConfigType |
string |
The configuration type. The only valid value is sharedDisk. Note
This extendConfigs property may appear when the planned instance type is Advanced Edition (advanced). |
sharedDisk |
| Disk |
integer |
The disk size. Unit: GiB. |
2048 |
| DiskType |
string |
The disk type. The only valid value is CPFS_PREMIUM. Note
This extendConfigs property may appear when the planned instance type is Advanced Edition (advanced). |
CPFS_PREMIUM |
| InstanceCategory |
string |
The edition type. Valid values:
|
advanced |
| NodeConfigurations |
array<object> |
The node information. |
|
|
object |
The NodeConfigurations information. |
||
| Amount |
integer |
The number of nodes. |
10 |
| Cpu |
integer |
The number of CPUs. |
1 |
| Disk |
integer |
The disk size. Unit: GiB. |
20 |
| DiskType |
string |
The disk type. Valid values:
|
cloud_ssd |
| Memory |
integer |
The memory size for the current node role. |
2 |
| NodeType |
string |
The node type. Valid values:
|
WORKER |
| OversizedCluster |
boolean |
The result calculated based on capacity planning. No default value is provided. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "E91B7129-A669-4D9D-A743-F90A0FF1F5EF",
"Result": {
"ExtendConfigs": [
{
"ConfigType": "sharedDisk",
"Disk": 2048,
"DiskType": "CPFS_PREMIUM"
}
],
"InstanceCategory": "advanced",
"NodeConfigurations": [
{
"Amount": 10,
"Cpu": 1,
"Disk": 20,
"DiskType": "cloud_ssd",
"Memory": 2,
"NodeType": "WORKER"
}
],
"OversizedCluster": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.