tencent cloud

Feedback

Splitting a topic partition

Last updated: 2024-01-20 16:42:10
    This document describes how to split topic partitions in the CLS console. CLS provides two operation modes: auto-split and manual split. In order to reduce the read/write restrictions due to traffic surges, we recommend that you enable auto-split.

    Overview

    When a log topic is created, an initial number of partitions is set, which can be modified subsequently through partition split or merge based on the actual needs. As a single topic partition limits write requests (up to 500 requests/sec) and write traffic (up to 5 MB/sec), if your service requests exceed the upper limit of a single partition, you can increase the throughput of the log topic by splitting the partition so as to avoid write failures.

    Directions

    Auto-split

    Note:
    After the auto-split feature is enabled, CLS will automatically split a log topic into partitions (up to 50) when the write requests or write traffic exceed the capacity of the log topic.
    If the number of partitions of a log topic has reached the set maximum value, CLS will no longer trigger auto-split, and the excessive partitions will be rejected with an error code returned.
    1. Log in to the CLS console.
    2. On the left sidebar, click Log Topic to enter the log topic list page.
    3. Find the target log topic and click Edit in the Operation column.
    4. In the pop-up window, set Partition Auto-Split to
    
    and set the Maximum Partitions (we recommend that you set it to the maximum value 50).
    5. Click OK.

    Manual split

    1. Log in to the CLS console.
    2. On the left sidebar, click Log Topic to enter the log topic list page.
    3. Find the target log topic and click its ID/name to enter the Basic Info page.
    4. In the Topic Partition Management section, find the target topic partition and click Edit.
    5. In the pop-up window, select Split as the Operation and set the Partition Quantity as shown below:
    Note:
    Each partition has a left-closed-right-open range. Even split is used by default.
    6. Click OK.
    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