Proactive storage decider
The autoscaling proactive storage decider (proactive_storage) calculates the storage required to contain the current data set plus an estimated amount of expected additional data.
The proactive storage decider is enabled for all policies governing nodes with the data_hot role.
The estimation of expected additional data is based on past indexing that occurred within the forecast_window. Only indexing into data streams contributes to the estimate.
Configuration settings
-
forecast_window - (Optional, time value) The window of time to use for forecasting. Defaults to 30 minutes.
Examples
This example puts an autoscaling policy named my_autoscaling_policy, overriding the proactive decider’s forecast_window to be 10 minutes.
resp = client.autoscaling.put_autoscaling_policy(
name="my_autoscaling_policy",
policy={
"roles": [
"data_hot"
],
"deciders": {
"proactive_storage": {
"forecast_window": "10m"
}
}
},
)
print(resp) const response = await client.autoscaling.putAutoscalingPolicy({
name: "my_autoscaling_policy",
policy: {
roles: ["data_hot"],
deciders: {
proactive_storage: {
forecast_window: "10m",
},
},
},
});
console.log(response); PUT /_autoscaling/policy/my_autoscaling_policy
{
"roles" : [ "data_hot" ],
"deciders": {
"proactive_storage": {
"forecast_window": "10m"
}
}
} The API returns the following result:
{
"acknowledged": true
}
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-proactive-storage-decider.html