El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Resizing a Cluster

Updated on 2022-08-12 GMT+08:00

Function

This API is used to manually scale out or scale in Core or Task nodes in a cluster that has been created. After an MRS cluster is created, the number of Master nodes cannot be adjusted. That is, Master nodes cannot be scaled in or out. This API is incompatible with Sahara.

Only clusters in the Running state can be scaled out or in.

URI

  • Format

    PUT /v1.1/{project_id}/cluster_infos/{cluster_id}

  • Parameter description
    Table 1 Parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Project ID. For details on how to obtain the project ID, see Obtaining a Project ID.

    cluster_id

    Yes

    Cluster ID

Request

Table 2 Request parameter description

Parameter

Mandatory

Type

Description

service_id

No

String

Service ID. This parameter is reserved for extension. You do not need to set this parameter.

plan_id

No

String

Plan ID. This parameter is reserved for extension. You do not need to set this parameter.

parameters

Yes

Object

Core parameters. For details, see Table 3.

Table 3 parameters description

Parameter

Mandatory

Type

Description

order_id

No

String

Order ID obtained by the system during scale-out or scale-in. You do not need to set the parameter.

scale_type

Yes

String

  • scale_in: cluster scale-in
  • scale_out: cluster scale-out

node_id

Yes

String

ID of the newly added or removed node. The parameter value is fixed to node_orderadd.

node_group

No

String

Node group to be scaled out or in
  • If the value of node_group is core_node_default_group, the node group is a Core node group.
  • If the value of node_group is task_node_default_group, the node group is a Task node group.

If it is left blank, the default value core_node_default_group is used.

task_node_info

No

Object

Task node specifications. For more parameter description, see Table 5.

  • When the number of Task nodes is 0, this parameter is used to specify Task node specifications.
  • When the number of Task nodes is greater than 0, this parameter is unavailable.

instances

Yes

Integer

Number of nodes to be added or removed

  • The maximum number of nodes to be added is 500 minus the number of Core and Task nodes. For example, the current number of Core nodes is 3, the number of nodes to be added must be less than or equal to 497.

    A maximum of 500 Core and Task nodes are supported by default. If more than 500 Core and Task nodes are required, contact technical support engineers or call a background API to modify the database.

  • Nodes can be deleted for cluster scale-out when the number of Core nodes is greater than 3 or the number of Task nodes is greater than 0. For example, if there are 5 Core nodes and 5 Task nodes in a cluster, only 2 (5 minus 3) Core nodes are available for deletion and 5 or fewer than 5 Task nodes can be deleted.

skip_bootstrap_scripts

No

String

This parameter is valid only when a bootstrap action is configured during cluster creation and takes effect during scale-out. It indicates whether the bootstrap action specified during cluster creation is performed on nodes added during scale-out. The default value is false, indicating that the bootstrap action is performed.

scale_without_start

No

boolean

Whether to start components on the added nodes after cluster scale-out

  • true: Do not start components after scale-out.
  • false: Start components after scale-out.

server_ids

No

List<String>

ID list of Task nodes to be deleted during task node scale-in.

  • This parameter does not take effect when scale_type is set to scale-out.
  • If scale_type is set to scale-in and cannot be left blank, the system deletes the specified Task nodes.
  • When scale_type is set to scale-in and server_ids is left blank, the system automatically deletes the Task nodes based on the system rules.

previous_values

No

Object

Extension parameter. You do not need to set this parameter. For details, see Table 4.

Table 4 Parameter description of previous_values

Parameter

Mandatory

Type

Description

plan_id

No

String

Reserve the parameter for extending APIs.

You do not need to set the parameter.

Table 5 task_node_info parameter description

Parameter

Mandatory

Type

Description

node_size

Yes

String

Instance specifications of a Task node, for example, c3.4xlarge.2.linux.bigdata

data_volume_type

No

String

Data disk storage type of the Task node, supporting SATA, SAS, and SSD currently.

  • SATA: Common I/O
  • SAS: High I/O
  • SSD: Ultra-high I/O

data_volume_count

No

Integer

Number of data disks of a Task node

Value range: 1 to 10

data_volume_size

No

Integer

Data disk storage space of a Task node

Value range: 100 GB to 32,000 GB

Response

Response parameters

Table 6 describes the response parameters.
Table 6 Response parameter description

Parameter

Type

Description

result

String

Operation result

  • succeeded: The operation is successful.
  • Table 8 describes the error codes returned upon operation failures.

Example

  • Example request

    Scaling out Core nodes:

    { 
        "service_id": "",  
        "plan_id": "",  
        "parameters": { 
            "order_id": "",  
            "scale_type": "scale_out",  
            "node_id": "node_orderadd",  
            "node_group": "core_node_default_group",
            "instances": "1",
           "skip_bootstrap_scripts":false,
           "scale_without_start":false
        },  
        "previous_values": { 
            "plan_id": "" 
        } 
    }

    Scaling out Task nodes when the number of the existing Task nodes is greater than zero:

    { 
        "service_id": "",  
        "plan_id": "",  
        "parameters": { 
            "order_id": "",  
            "scale_type": "scale_out",  
            "node_id": "node_orderadd",  
            "node_group": "task_node_default_group",
            "instances": "1",
            "skip_bootstrap_scripts":false,  
            "scale_without_start":false
        },  
        "previous_values": { 
            "plan_id": "" 
        } 
    }

    Scaling out Task nodes when the number of the existing Task nodes is zero:

    { 
        "service_id": "",  
        "plan_id": "",  
        "parameters": { 
            "order_id": "",  
            "scale_type": "scale_out",  
            "node_id": "node_orderadd",  
            "node_group": "task_node_default_group",
            "task_node_info": {
                      "node_size": "s3.xlarge.2.linux.bigdata",
                      "data_volume_type":"SATA",
                      "data_volume_count":2,
                      "data_volume_size":600
                      },
            "instances": "1",  
            "scale_without_start":false
    
    
        },  
        "previous_values": { 
            "plan_id": "" 
        } 
    }

    Scaling in Core nodes:

    { 
        "service_id": "",  
        "plan_id": "",  
        "parameters": { 
            "order_id": "",  
            "scale_type": "scale_in",  
            "node_id": "node_orderadd",  
            "node_group": "core_node_default_group",
            "instances": "1"  
    
     
        },  
        "previous_values": { 
            "plan_id": "" 
        } 
    }

    Scaling in Task nodes:

    { 
        "service_id": "",  
        "plan_id": "",  
        "parameters": { 
            "order_id": "",  
            "scale_type": "scale_in",  
            "node_id": "node_orderadd",  
            "node_group": "task_node_default_group",
            "instances": "1"  
    
     
        },  
        "previous_values": { 
            "plan_id": "" 
        } 
    }
    The following is an example of a specified Task node scale-in:
    { 
        "service_id": "",  
        "plan_id": "",  
        "parameters": { 
            "order_id": "",  
            "scale_type": "scale_in",  
            "node_id": "node_orderadd",  
            "node_group": "task_node_default_group",
            "instances": "2",
            "server_ids": ["c9573435-7814-4b2c-9131-ad78b814414c", "a4951009-6a0f-4e7b-9c81-9d4bd1f8c537"]  
        },  
        "previous_values": { 
            "plan_id": "" 
        } 
    }
  • Example response
    {
        "result": "succeeded"
    }

Status Code

  • Table 7 describes the status code of this API.
    Table 7 Status code

    Status Code

    Description

    200

    The Core or Task nodes have been successfully scaled out or in.

  • Table 8 describes the error codes returned upon operation failures.
    Table 8 Error codes

    Error Code

    Message

    12000001

    Identity verification is invalid

    12000002

    The parameter is invalid.

    12000003

    The cluster does not exist.

    12000009

    The method parameter is invalid.

    12000013

    Scale-in of cluster XX failed.

    12000014

    Scale-out of cluster XX failed.

    12000017

    Scale-out or scale-in is not allowed for clusters that are not in the Running state.

    12000018

    Scale-out or scale-in cannot be performed again because it is in progress.

    12000019

    Failed to obtain hosts of the cluster.

    12000028

    The maximum number of Core nodes in a cluster is N.

    12000029

    Failed to obtain the quota.

    12000030

    The requested number of nodes in the cluster exceeds the available quota.

    12000031

    The requested number of vCPUs in the cluster exceeds the available quota.

    12000032

    The requested memory of the cluster exceeds the available quota.

    12000033

    The requested number of disks in the cluster exceeds the available quota.

    12000034

    The requested disk capacity of the cluster exceeds the available quota.

    12000054

    The operation is not supported.

    12000067

    The cluster cannot be scaled out because its version is too early. Upgrade the cluster to the latest version.

    12000068

    The status of some nodes is not running in the cluster. Try again later.

    12000121

    Scale-out is not allowed because the cluster has an unpaid order. Scale out the cluster again after you pay the order.

    MRS.101

    Your request could not be fulfilled because your quota is insufficient. Contact technical support to increase the quota.

    MRS.102

    The token cannot be null or invalid. Try again later or contact customer service.

    MRS.103

    Invalid request. Try again later or contact customer service.

    MRS.104

    Insufficient resources. Try again later or contact customer service.

    MRS.105

    Insufficient IP addresses in the existing subnet. Try again later or contact customer service.

    MRS.201

    Failed due to an ECS error. Try again later or contact customer service. (ECS: xxxx, ECS error information)

    MRS.202

    Failed due to an IAM error. Try again later or contact customer service. (IAM: xxxx, IAM error information)

    MRS.203

    Failed due to a VPC error. Try again later or contact customer service. (VPC: xxxx, VPC error information)

    MRS.300

    MRS system error. Try again later or contact customer service.

  • For the description about error status codes, see Status Codes.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback