Get the autoscaling capacity

  • GET /_autoscaling/capacity
Auth
Note

This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.

This API gets the current autoscaling capacity based on the configured autoscaling policy. It will return information to size the cluster appropriately to the current workload.

The required_capacity is calculated as the maximum of the required_capacity result of all individual deciders that are enabled for the policy.

The operator should verify that the current_nodes match the operator’s knowledge of the cluster to avoid making autoscaling decisions based on stale or incomplete information.

The response contains decider-specific information you can use to diagnose how and why autoscaling determined a certain capacity was required. This information is provided for diagnosis only. Do not use this information to make autoscaling decisions.

Read the reference documentation

Query parameters

master_timeout string · default: 30s

Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

Response

application/json
policies map string to object required
<string> object
required_capacity object required
node object required
storage number required
memory number required
total object required
storage number required
memory number required
current_capacity object required
node object required
storage number required
memory number required
total object required
storage number required
memory number required
current_nodes object[] required
name string required
deciders map string to object required
<string> object
required_capacity object required
node object required
storage number required
memory number required
total object required
storage number required
memory number required
reason_summary string
reason_details object