Using disk space in a Kafka cluster
In Managed Databases, part of the disk space is reserved for service needs. The total amount of 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 selecting a configuration lineup.
You can track disk occupancy using disk occupancy notifications and metrics. For more information about metrics, see 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 function in read-only mode. This is necessary to prevent complete blocking or corruption of the cluster due to lack of free space. To make the cluster work in read-write mode, free up disk space or scale the cluster and select a configuration with a larger disk size than the previous configuration. is in the previous configuration.
Disk occupancy notifications
Disk occupancy notifications are sent to the email address of the Account Owner and users who are subscribed to the "Services" notification category. Notifications are sent when the disk reaches 80% and 95% occupancy.
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 clearing, change the data retention policy in the cluster settings. Kafka will automatically delete data according to the new rules.
- In the Dashboard, on the top menu, click Products 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 parameters for configuring a data cleanup policy.
- Click Save.