IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Proactive storage decider
editProactive storage decider
editThe 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
edit-
forecast_window
- (Optional, time value) The window of time to use for forecasting. Defaults to 30 minutes.
Examples
editThis 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 }