Skip to main content

Adjust disk storage automatically Limited availabilty

Service disk autoscaler allows you to scale your services by increasing disk storage capacity automatically when the disk is running out of space.

Pricing

The disk autoscaler base pricing depends on your service type and plan.

You're only charged for additional storage space actually provisioned for your service, just like the dynamic disk sizing (DDS) feature listed on Aiven Plans and Pricing.

Why use disk autoscaling

  • Disk autoscaling allows you to improve the cost-efficiency of operating your Aiven services: You can start with a regular-sized disk and only have it scaled up when needed with no risk of running out of disk space at any point.
  • Disk autoscaling helps improve service resiliency eliminating the risk of a service becoming non-functional as a consequence of running out of disk space. Use disk autoscaling to make sure your service remains operational in case of unexpected high demand for disk space.
note

Service disk autoscaler doesn't support scaling down.

How it works

  1. You create a disk autoscaler integration endpoint in your Aiven project setting the maximum additional storage at the same time.
  2. You enable a disk autoscaler integration for your service using the new disk autoscaler integration endpoint.
  3. From that point onward, the evaluation of disk space availability for your service is done every 30 seconds.
  4. When disk storage consumption reaches the threshold for a specific service, disk autoscaler increases available storage space by 10% every time taking the used disk space as a baseline.
Autoscale thresholds per service type

The threshold at which disk autoscaling is triggered is a percentage of the available disk storage capacity and depends on a service type:

  • Aiven for Apache Cassandra®: 35% of the available disk storage capacity
  • Aiven for OpenSearch®: 75% of the available disk storage capacity
  • All the other Aiven service types: 85% of the available disk storage capacity

Prerequisites

Enable disk autoscaling

To enable disk autoscaling on your Aiven service, create an autoscaler integration endpoint and enable autoscaler integration with your service using the new endpoint.

Create an autoscaler endpoint:

  1. Log in to Aiven Console and go to a desired organization and project.
  2. On the left sidebar, click Integration endpoints.
  3. Click Aiven Autoscaler > Add new endpoint.
  4. Set the details of the endpoint and click Add endpoint.

Enable on a service:

  1. On the left sidebar, click Services and open your service.
  2. On the left sidebar, click Integrations and in Endpoint integrations, click Aiven autoscaler.
  3. Select the appropriate endpoint name and click Enable.

Configure disk autoscaler

After enabling disk autoscaler, you can always update the maximum additional disk storage allowed for autoscaling purposes. You can use Aiven Console, Aiven API, or Aiven CLI to do that.

  1. Log in to Aiven Console and go to a desired organization and project.
  2. On the left sidebar, click Integration endpoints.
  3. Click Aiven Autoscaler.
  4. Find your endpoint on the list, and click .
  5. Specify a new value for the maximum additional disk storage to be allowed for autoscaling, and click Update.

Disable disk autoscaler

To disable disk autoscaling on your Aiven service, disconnect the service from the autoscaler integration endpoint. You can also delete the integration endpoint itself if you don't need it for future purposes.

Update the service:

  1. Log in to Aiven Console and go to a desired organization, project.
  2. On the left sidebar, click Services and open your service.
  3. On the left sidebar, click Integrations and in Endpoint integrations, find your autoscaler service and click Actions > Disconnect.

Delete the autoscaler endpoint:

  1. Open your project.
  2. On the left sidebar, click Integration endpoints.
  3. On the Integration endpoints page, select Disk autoscaler.
  4. Find your endpoint on the list and click .

Dynamic disk sizing (DDS)