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 to host databases.Keep this in mind when choosing a configuration lineup.
You can track disk usage using disk occupancy notifications and metrics. Read more about metrics in the Kafka cluster and node monitoring guide.
When a cluster disk is 95% full or more, the cluster will enter the DISK_FULL status and will operate in read-only mode.This is necessary to prevent the cluster from being completely locked or damaged due to a lack of free space.To make the cluster operate in read-write mode, free up disk space or scale the cluster and choose a configuration with a larger disk size than 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 and Products 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 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 based on 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.