proactive-storage-decider.asciidoc 1.7 KB

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