proactive-storage-decider.asciidoc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [role="xpack"]
  2. [[autoscaling-proactive-storage-decider]]
  3. === Proactive storage decider
  4. The proactive storage decider (`proactive_storage`) calculates the storage required to contain
  5. the current data set plus an estimated amount of expected additional data.
  6. The proactive storage decider is enabled for all policies governing nodes with the `data_hot` role.
  7. The estimation of expected additional data is based on past indexing that
  8. occurred within the `forecast_window`.
  9. Only indexing into data streams contributes to the estimate.
  10. [[autoscaling-proactive-storage-decider-settings]]
  11. ==== Configuration settings
  12. `forecast_window`::
  13. (Optional, <<time-units,time value>>)
  14. The window of time to use for forecasting. Defaults to 30 minutes.
  15. [[autoscaling-proactive-storage-decider-examples]]
  16. ==== {api-examples-title}
  17. This example puts an autoscaling policy named `my_autoscaling_policy`, overriding
  18. the proactive decider's `forecast_window` to be 10 minutes.
  19. [source,console]
  20. --------------------------------------------------
  21. PUT /_autoscaling/policy/my_autoscaling_policy
  22. {
  23. "roles" : [ "data_hot" ],
  24. "deciders": {
  25. "proactive_storage": {
  26. "forecast_window": "10m"
  27. }
  28. }
  29. }
  30. --------------------------------------------------
  31. // TEST
  32. The API returns the following result:
  33. [source,console-result]
  34. --------------------------------------------------
  35. {
  36. "acknowledged": true
  37. }
  38. --------------------------------------------------
  39. //////////////////////////
  40. [source,console]
  41. --------------------------------------------------
  42. DELETE /_autoscaling/policy/my_autoscaling_policy
  43. --------------------------------------------------
  44. // TEST[continued]
  45. //////////////////////////