---
title: Increase the disk capacity of data nodes
description: 
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/troubleshoot/elasticsearch/increase-capacity-data-node
products:
  - Elasticsearch
---

# Increase the disk capacity of data nodes
<tab-set>
  <tab-item title="Elastic Cloud Hosted">
    In order to increase the disk capacity of the data nodes in your cluster:
    1. Log in to the [Elastic Cloud console](https://cloud.elastic.co?page=docs&placement=docs-body).
    2. On the **Hosted deployments** panel, click the gear under the `Manage deployment` column that corresponds to the name of your deployment.
    3. If autoscaling is available but not enabled, enable it. You can do this by clicking the button `Enable autoscaling` on a banner like the one below:
       ![](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/troubleshoot/images/elasticsearch-reference-autoscaling_banner.png)
    Or you can go to `Actions > Edit deployment`, check the checkbox `Autoscale` and click `save` at the bottom of the page.
    1. If autoscaling has succeeded the cluster should return to `healthy` status. If the cluster is still out of disk, check if autoscaling has reached its limits. You will be notified about this by the following banner:
       ![](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/troubleshoot/images/elasticsearch-reference-autoscaling_limits_banner.png)
    or you can go to `Actions > Edit deployment` and look for the label `LIMIT REACHED` as shown below:If you are seeing the banner click `Update autoscaling settings` to go to the `Edit` page. Otherwise, you are already in the `Edit` page, click `Edit settings` to increase the autoscaling limits. After you perform the change click `save` at the bottom of the page.
  </tab-item>

  <tab-item title="Self-managed">
    In order to increase the data node capacity in your cluster, you will need to calculate the amount of extra disk space needed.
    1. First, retrieve the relevant disk thresholds that will indicate how much space should be available. The relevant thresholds are the [high watermark](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings#cluster-routing-watermark-high) for all the tiers apart from the frozen one and the [frozen flood stage watermark](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings#cluster-routing-flood-stage-frozen) for the frozen tier. The following example demonstrates disk shortage in the hot tier, so we will only retrieve the high watermark:
       ```json
       ```
       The response will look like this:
       ```json
       {
         "defaults": {
           "cluster": {
             "routing": {
               "allocation": {
                 "disk": {
                   "watermark": {
                     "high": "90%",
                     "high.max_headroom": "150GB"
                   }
                 }
               }
             }
           }
         }
       }
       ```
       The above means that in order to resolve the disk shortage we need to either drop our disk usage below the 90% or have more than 150GB available, read more on how this threshold works [here](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings#cluster-routing-watermark-high).
    2. The next step is to find out the current disk usage, this will indicate how much extra space is needed. For simplicity, our example has one node, but you can apply the same for every node over the relevant threshold.
       ```json
       ```
       The response will look like this:
       ```json
       node                disk.percent disk.avail disk.total disk.used disk.indices shards
       instance-0000000000           91     4.6gb       35gb    31.1gb       29.9gb    111
       ```
    3. The high watermark configuration indicates that the disk usage needs to drop below 90%. To achieve this, 2 things are possible:
       - to add an extra data node to the cluster (this requires that you have more than one shard in your cluster), or
    - to extend the disk space of the current node by approximately 20% to allow this node to drop to 70%. This will give enough space to this node to not run out of space soon.
    4. In the case of adding another data node, the cluster will not recover immediately. It might take some time to relocate some shards to the new node. You can check the progress here:
       ```json
       ```
       If in the response the shards' state is `RELOCATING`, it means that shards are still moving. Wait until all shards turn to `STARTED` or until the health disk indicator turns to `green`.
  </tab-item>
</tab-set>