tencent cloud

Feedback

Deleting Secondary Node

Last updated: 2024-04-02 15:44:10

    Overview

    Deleting secondary nodes can reduce the high availability of a cluster. When the business load is low, you can remove secondary nodes appropriately to avoid wasting resources.

    Instructions

    Deleting secondary nodes can reduce the high availability of a cluster. Therefore, proceed with caution. Make sure that after some secondary nodes are deleted, the cluster still has three (one-primary-two-secondary), five (one-primary-four-secondary), or seven (one-primary-six-secondary) nodes in total.
    A hidden node cannot be deleted, as when a secondary node fails, the system will automatically switch it with the hidden node to guarantee the cluster's high availability.
    The IP address of a deleted secondary node won't be retained, so connections to the secondary node will be closed.

    Prerequisites

    If your instance is pay-as-you-go, make sure that your Tencent Cloud account balance is sufficient.
    The instance and its associated instances are in Running status and and there are currently no tasks being executed.

    Deleting a secondary node (replica set)

    2. In the MongoDB drop-down list on the left sidebar, select Replica Set Instance.
    3. Above the instance list on the right, select the region.
    4. In the instance list, find the target instance.
    5. Click the Instance ID to enter the Instance Details page and click the Node Management tab.
    6. On the Mongod Node tab on the Node Management tab, select the target secondary node in the Instance List and select Operation > Delete Secondary Node.
    Note:
    In the node list, if the value of a node in the Hidden column is true, the node is hidden and cannot be deleted.
    7. In the Delete Secondary Node pop-up window, read the notes on node quantity adjustment and confirm the instance name.
    Parameter
    Description
    Instance ID/Name
    The name of the instance that requires node quantity adjustment.
    Instance Specification
    Check the current specification of the instance, including the CPU core quantity, memory, disk capacity, and node quantity. The node quantity includes all primary and secondary nodes. The nodes are evenly distributed to shards; for example, if there are two shards and eight nodes, each shard will have four nodes. You should determine the number of nodes to be deleted based on the current specification.
    Secondary Node Information
    Confirm the information of the secondary nodes to be deleted, including the node ID, AZ, role, and tags.
    Specification Change Fees
    Fees after specification adjustment. In pay-as-you-go billing mode, fees are charged hourly by the new specification in three billing tiers.
    Compare
    You can compare the specifications and maximum numbers of connections before and after the specification adjustment of mongod secondary nodes in order to assess whether the new specification meets your needs.
    API
    Description
    Adjust the specification of a TencentDB instance
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support