fixed-decider.asciidoc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. [role="xpack"]
  2. [testenv="enterprise"]
  3. [[autoscaling-fixed-decider]]
  4. === Fixed decider
  5. experimental[]
  6. [WARNING]
  7. The fixed decider is intended for testing only. Do not use this decider in production.
  8. The `fixed` decider responds with a fixed required capacity. It is not enabled
  9. by default but can be enabled for any policy by explicitly configuring it.
  10. ==== Configuration settings
  11. `storage`::
  12. (Optional, <<byte-units,byte value>>)
  13. Required amount of node-level storage. Defaults to `-1` (disabled).
  14. `memory`::
  15. (Optional, <<byte-units,byte value>>)
  16. Required amount of node-level memory. Defaults to `-1` (disabled).
  17. `nodes`::
  18. (Optional, integer)
  19. Number of nodes to use when calculating capacity. Defaults to `1`.
  20. [[autoscaling-fixed-decider-examples]]
  21. ==== {api-examples-title}
  22. This example puts an autoscaling policy named `my_autoscaling_policy`, enabling
  23. and configuring the fixed decider.
  24. [source,console]
  25. --------------------------------------------------
  26. PUT /_autoscaling/policy/my_autoscaling_policy
  27. {
  28. "roles" : [ "data_hot" ],
  29. "deciders": {
  30. "fixed": {
  31. "storage": "1tb",
  32. "memory": "32gb",
  33. "nodes": 8
  34. }
  35. }
  36. }
  37. --------------------------------------------------
  38. // TEST
  39. The API returns the following result:
  40. [source,console-result]
  41. --------------------------------------------------
  42. {
  43. "acknowledged": true
  44. }
  45. --------------------------------------------------
  46. //////////////////////////
  47. [source,console]
  48. --------------------------------------------------
  49. DELETE /_autoscaling/policy/my_autoscaling_policy
  50. --------------------------------------------------
  51. // TEST[continued]
  52. //////////////////////////