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

Scaling a Node Pool

You can specify a specification in a node pool for scaling.

The default node pool does not support scaling. Use Creating a Node to add a node.

  1. Log in to the CCE console.
  2. Click the cluster name to access the cluster console. Choose Nodes in the navigation pane. In the right pane, click the Node Pools tab.
  3. Choose Scaling next to the target node pool.
  4. In the displayed Node Pool Scaling window, configure scaling parameters.

    • Add or reduce nodes for scaling.
    • Use the selected flavor to increase or decrease the number of nodes.
    • Select a billing mode only when adding nodes.
      • Yearly/Monthly

        You must specify the required duration if Yearly/Monthly is selected. You can choose whether to select Auto-renew based on site requirements. Your order will automatically renew on a monthly or yearly basis, depending on if you purchased by month or by year.

      • Pay-per-use

        Resources will be billed based on usage duration. You can provision or delete resources at any time.

      • Spot price

        A postpaid billing mode, in which a spot cloud server will be billed based on the service duration at a lower price than that of a pay-per-use ECS cloud server with the same specifications. For details, see Spot Pricing ECSs.

        • If you purchase both a data disk and an EIP when creating a spot pricing ECS, they will be automatically released when the ECS is released. If you attach data disks or bind EIPs to an existing spot pricing ECS, these resources must be manually released after the ECS is deleted.
        • Spot pricing ECSs cannot be reset, accepted for management, removed, migrated, changed to yearly/monthly, or upgraded by resetting the cluster. Before resetting a cluster for an upgrade, delete spot pricing nodes and set the number of pods in the spot pricing node pool to 0.
        • Spot pricing ECSs may be released if the quoted price is lower than the market price or if there are not enough resources available. Install the latest NPD add-on in the cluster so that you can receive a notification 5 minutes before a spot pricing ECS is released. This add-on generates a ReceivedReclaimNodeNotification event, adds taint node-problem-controller.cce.io/SpotPriceNodeReclaimNotification: NoExecute to the node (spot pricing ECS), and evicts pods on the node. This allows pods to be migrated to other nodes before the spot pricing ECS is deleted.
    • Configure the number of nodes to be added or deleted.
      • When scaling out a node pool, make sure that the total number of nodes, both existing and new, does not exceed the management scale of the current cluster.
      • When scaling in a node pool, make sure that the number of nodes to be removed does not exceed the number of nodes currently in the pool.

        Scaling in can result in the unavailability of resources associated with a node, such as local storage and workloads that were scheduled to that node. Exercise caution when performing this operation to avoid impact on running services.

  5. Click OK.