Disk space utilization in the Kafka cluster
In cloud databases, part of the disk space is reserved for service needs:
- for the file system — approximately 4% of the disk volume;
- for the operating system, service components and logs — approximately 8 GB.
The reserved portion of the disk space is not available to host databases. Keep this in mind when selecting a configuration lineup.
You can monitor disk occupancy using disk occupancy notifications and metrics. For more information about metrics, see the Kafka Cluster and Node Monitoring instructions.
When the cluster disk is 95% or more full, the cluster will go to DISK_FULL status and will be read-only. This is to prevent the cluster from becoming completely locked up or corrupted due to lack of free space. To make the cluster read-write ,free up disk space or scale the cluster and select a configuration with a disk size larger than the previous configuration.
Disk fullness notifications
Notifications of disk fullness are sent to the Account Owner's email and to users who are subscribed to the "Services and Services" notification category. Notifications are sent when the disk is 80% and 95% full.
Free up disk space
To free up disk space, you can:
Delete topic
- In the Dashboard, on the top menu, click Products and select Cloud Databases.
- Open the Active tab.
- Open the cluster page → Topics tab.
- From themenu of the topic, select Delete.
- Enter the name of the topic to confirm deletion.
- Click Delete.
Customize the data cleansing policy
After changing the log.retention.minutes and log.retention.hours parameters in the DBMS settings, the cluster will be restarted and will become unavailable for the restart time.
To speed up disk cleanup, change the storage policy in the cluster settings. Kafka will automatically delete data according to the new policy.
- In the Dashboard, on the top menu, click Products and select Cloud Databases.
- Open the Active tab.
- Open the cluster page → Settings tab.
- In the DBMS Settings block, click Edit.
- Specify new parameter values to customize the data cleansing policy.
- Click Save.