Using disk space in a Kafka cluster
In Managed Databases, some disk space is reserved for service needs.The total amount of reserved space depends on the version of Kafka.
The reserved portion of the disk space is not available to host databases.Take this into account 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.
When the cluster disk is 95% full or more, the cluster will enter DISK_FULL status and will be read-only.This is necessary to prevent total cluster lockup or damage 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 larger disk size than the previous one.
Disk occupancy notifications
Disk occupancy notifications are sent to the email address of the Account Owner and users who are subscribed to the notification category “Services & Products”.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, 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.