fixed-decider.asciidoc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 `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. `nodes`::
  17. (Optional, integer)
  18. Number of nodes to use when calculating capacity. Defaults to `1`.
  19. [[autoscaling-fixed-decider-examples]]
  20. ==== {api-examples-title}
  21. This example puts an autoscaling policy named `my_autoscaling_policy`, enabling
  22. and configuring the fixed decider.
  23. [source,console]
  24. --------------------------------------------------
  25. PUT /_autoscaling/policy/my_autoscaling_policy
  26. {
  27. "roles" : [ "data_hot" ],
  28. "deciders": {
  29. "fixed": {
  30. "storage": "1tb",
  31. "memory": "32gb",
  32. "nodes": 8
  33. }
  34. }
  35. }
  36. --------------------------------------------------
  37. // TEST
  38. The API returns the following result:
  39. [source,console-result]
  40. --------------------------------------------------
  41. {
  42. "acknowledged": true
  43. }
  44. --------------------------------------------------
  45. //////////////////////////
  46. [source,console]
  47. --------------------------------------------------
  48. DELETE /_autoscaling/policy/my_autoscaling_policy
  49. --------------------------------------------------
  50. // TEST[continued]
  51. //////////////////////////