fixed-decider.asciidoc 1.7 KB

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