CapacityPlan

Updated at:

Recommends the optimal configuration for cluster capacity planning based on business scenarios, QPS, and log generation volume.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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: Yes.

  • false: No. Default value: false.

true

dataInfo

array<object>

No

The disk usage.

object

No

The dataInfo information.

code

string

No

The disk data metric code. Valid values:

  • totalRawData: source data information.

  • document: document information, which indicates the estimated number of documents.

  • dailyIncrement: daily data increment.

  • dailyIncrement: daily document increment.

  • retentionTime: data retention period.

  • replica: replica settings.

totalRawData

size

integer

No

The metric value for disk usage.

100

type

string

No

The disk data type. Valid values:

  • hot: hot data.

  • warm: warm data.

hot

unit

string

No

The data unit or time unit. Valid values:

  • Data units: MiB, GiB, TB, and PB.

  • Time units: DAYS, WEEKS, MONTHS, and YEARS.

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: write.

  • search: search.

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: normal.

  • peak: peak.

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: general scenarios.

  • analysisVisualization: data analytics scenarios.

  • dbAcceleration: database acceleration scenarios.

  • search: search scenarios.

  • log: log scenarios.

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: Advanced Edition.

  • x-pack: Commercial Edition.

  • community: Community Edition.

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_essd: ESSD.

  • cloud_ssd: standard SSD.

  • cloud_efficiency: ultra disk.

  • local_ssd: local SSD.

  • local_efficiency: local ultra disk.

cloud_ssd

Memory

integer

The memory size for the current node role.

2

NodeType

string

The node type. Valid values:

  • WORKER: data node.

  • WORKER_WARM: warm node.

  • MASTER: dedicated master node.

  • KIBANA: Kibana node.

  • COORDINATING: client node.

  • ELASTIC_WORKER: elastic node.

WORKER

OversizedCluster

boolean

The result calculated based on capacity planning. No default value is provided. Valid values:

  • true: indicates an oversized cluster, which means the number of data nodes calculated by capacity planning exceeds the threshold of 50.

  • false: indicates that the number of data nodes calculated by capacity planning is 50 or less.

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.