Using disk space in a Kafka cluster
In Managed Databases, some disk space is reserved for service needs. The total reserved space depends on the Kafka version.
The reserved portion of the disk space is not available for hosting databases. Take this into account when choosing a configuration lineup.
You can monitor disk occupancy using disk occupancy notifications and metrics. Learn more about metrics in the Monitoring Kafka clusters and nodes guide.
When a cluster disk is 95% full or more, the cluster will enter the DISK_FULL status and will be set to read-only mode. This is necessary to prevent the cluster from becoming completely locked or corrupted due to a lack of free space. To restore read and write operations, free up disk space or scale the cluster and select a configuration with a larger disk size than the previous one.
Disk occupancy notifications
Disk occupancy notifications are sent to the email addresses of the Account Owner and panel users who are subscribed to the notification category "Services". Notifications are sent when the disk is 80% and 95% full.
Free up disk space
To free up disk space, you can:
Delete a topic
- In the Dashboard, on the top menu, click Products and select Managed Databases.
- Open the Active tab.
- Open the cluster page → Topics tab.
- In the menu of the topic, select Delete.
- Enter the topic name to confirm deletion.
- Click Delete.
Configure a data cleanup policy
After changing the log.retention.minutes and log.retention.hours parameters in the DBMS settings, the cluster will be restarted and will be unavailable during the restart.
To speed up disk cleanup, change the data retention policy in the cluster settings. Kafka will automatically delete data based on the new rules.
- In the Dashboard, click Products in the top menu and select Managed Databases.
- Open the Active tab.
- Open the cluster page → Settings tab.
- In the DBMS settings block, click Edit.
- Specify the new values for the data retention policy parameters.
- Click Save.