Overview
CKafka supports automatic adjustment of the disk utilization. After the disk utilization reaches the threshold, you can set the Dynamic Message Retention Policy to reduce the message retention time or set the Automatic Disk Capacity Expansion to adjust the disk space.
- Dynamic Message Retention Policy: After you set the message retention time, expired messages will be deleted. In case of message surges, normal production and consumption cannot be performed after the disk is full. If you set a dynamic retention policy, when the disk utilization reaches a certain percentage, a certain proportion of data will be automatically expired to avoid the above issue.
- Automatic Disk Capacity Expansion: When the disk load gets heavy, messages cannot be produced and consumed normally. After the automatic disk capacity expansion policy is set, when the disk load reaches the trigger threshold, the disk capacity will be automatically adjusted according to the policy, thus avoiding this problem.
Policy |
Supported by CKafka Standard Edition |
Supported by CKafka Pro Edition |
Dynamic message retention |
Yes |
Yes |
Automatic disk capacity expansion |
No |
Yes |
Note
You can enable either dynamic message retention or automatic disk capacity expansion at any time.
Directions
- Log in to the CKafka console.
- Click Instance List on the left sidebar and click the ID/Name of the target instance to enter the basic information page.
- In the Disk Utilization Policy module on the instance's basic information page, enable Dynamic Message Retention Policy.
Note
The default dynamic policy reduces the message retention time by 10% when the disk load reaches 90%.

- Click View to view the message retention time of each topic.

- Click Configure in the Operation column of the dynamic retention policy to configure Dynamic Policy and Minimum Retention Period.

- Dynamic Policy: After message retention time adjustment is triggered, the broker will delete the oldest historical data according to the new retention time. This feature has a certain delay.
- Minimum Retention Period: It can be 1 minute to 30 hours. If the dynamic retention period is lower than this parameter, no dynamic adjustment will be triggered.
- Click Adjustment Record to view the dynamic adjustment records of the message retention period.
- Log in to the CKafka console.
- Click Instance List on the left sidebar and click the ID/Name of the target instance to enter the basic information page.
- In the Disk Utilization Policy module on the instance's basic information page, enable Automatic Disk Capacity Expansion.
Note
When the disk load reaches 90%, the disk capacity will be automatically expanded by 10% by default. The maximum disk capacity is 5,000 GB.

- Click Configure in the Operation column of the automatic disk capacity expansion policy to configure Dynamic Policy and Max Disk Capacity.

- Dynamic Policy: After the disk load reaches the trigger threshold, the disk capacity will be automatically adjusted according to the capacity expansion policy, with a certain delay.
Note
The disk capacity will be expanded in increments of 100 GB.
- Maximum Disk Capacity: Automatic disk capacity expansion will no longer be triggered after the disk capacity is expanded to this value.
- Click Adjustment Record to view the adjustment records of automatic disk expansion.
Was this page helpful?