Updated on 2024-02-07 GMT+08:00

Changing vCPUs and Memory of an Instance

This section describes how to change your instance vCPUs and memory to suit your service requirements.

Precautions

  • Instances can be scaled up or down by changing their specifications.
  • If one instance has multiple nodes, the change will be performed on the nodes one by one. It takes about 5 to 10 minutes for each node, and the total time required depends on the number of the nodes.
  • For a node whose specifications are being changed, its computing tasks are handed over to other nodes. Change specifications of nodes during off-peak hours to prevent the instance from overload.
  • Do not perform DDL operations when you change the instance specifications.

    A data definition language (DDL) is a language for defining data structures and database objects. Common examples of DDL statements are CREATE, ALTER, and DROP. Data Definition Language (DDL) is used to create, modify, and delete database objects, such as tables, indexes, views, functions, stored procedures, and triggers.

  • To view vCPUs and nodes on the Instances page, contact customer service.
  • When you change the CPU or memory of an instance, the change takes effect on each node one by one. During the period, read/write operations may fail and the latency may increase. Change the CPU or memory during off-peak hours.

Method 1

  1. Log in to the management console.
  2. In the service list, choose Databases > GeminiDB Cassandra API.
  3. On the Instances page, locate the instance whose vCPUs and memory you want to change and click its name.
  4. In the DB Information area on the Basic Information page, click Change next to the Instance Class field.

    Figure 1 Changing instance specifications

  5. On the displayed page, select the required specifications and click Next.

    Figure 2 Changing specifications

  6. On the displayed page, confirm the instance specifications.

    • For yearly/monthly instances
      • If you need to modify your settings, click Previous.
      • If you do not need to modify your settings, click Submit. If you are scaling up the instance specifications, go to the payment page, select a payment method, and complete the payment.
    • For pay-per-use instances
      • If you need to modify your settings, click Previous.
      • If you do not need to modify your settings, click Submit.

  7. View the change result.

    Go to the Basic Information page and in the DB Information area you can see the new instance specifications.

Method 2

  1. Log in to the management console.
  2. In the service list, choose Databases > GeminiDB Cassandra API.
  3. On the Instances page, locate the instance whose specifications you want to change and choose More > Change Specifications in the Operation column.

    Figure 3 Changing specifications

  4. On the displayed page, select the required specifications and click Next.

    Figure 4 Changing specifications

  5. On the displayed page, confirm the instance specifications.

    • For yearly/monthly instances
      • If you need to modify your settings, click Previous.
      • If you do not need to modify your settings, click Submit. If you are scaling up the instance specifications, go to the payment page, select a payment method, and complete the payment.
    • For pay-per-use instances
      • If you need to modify your settings, click Previous.
      • If you do not need to modify your settings, click Submit.

  6. View the change result.

    Go to the Basic Information page and in the DB Information area you can see the new instance specifications.