elasticsearch/docs/reference/autoscaling/deciders/fixed-decider.asciidoc
Stef Nestor c1019d4c5d
(Doc+) Link API doc to parent object - part1 (#111951)
* (Doc+) Link API to parent Doc part1

---------

Co-authored-by: shainaraskas <shaina.raskas@elastic.co>
Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
2024-08-20 14:58:18 -06:00

71 lines
1.7 KiB
Text

[role="xpack"]
[[autoscaling-fixed-decider]]
=== Fixed decider
experimental[]
[WARNING]
The fixed decider is intended for testing only. Do not use this decider in production.
The {cloud}/ec-autoscaling.html[autoscaling] `fixed` decider responds with a fixed required capacity. It is not enabled
by default but can be enabled for any policy by explicitly configuring it.
==== Configuration settings
`storage`::
(Optional, <<byte-units,byte value>>)
Required amount of node-level storage. Defaults to `-1` (disabled).
`memory`::
(Optional, <<byte-units,byte value>>)
Required amount of node-level memory. Defaults to `-1` (disabled).
`processors`::
(Optional, float)
Required number of processors. Defaults to disabled.
`nodes`::
(Optional, integer)
Number of nodes to use when calculating capacity. Defaults to `1`.
[[autoscaling-fixed-decider-examples]]
==== {api-examples-title}
This example puts an autoscaling policy named `my_autoscaling_policy`, enabling
and configuring the fixed decider.
[source,console]
--------------------------------------------------
PUT /_autoscaling/policy/my_autoscaling_policy
{
"roles" : [ "data_hot" ],
"deciders": {
"fixed": {
"storage": "1tb",
"memory": "32gb",
"processors": 2.3,
"nodes": 8
}
}
}
--------------------------------------------------
// TEST
The API returns the following result:
[source,console-result]
--------------------------------------------------
{
"acknowledged": true
}
--------------------------------------------------
//////////////////////////
[source,console]
--------------------------------------------------
DELETE /_autoscaling/policy/my_autoscaling_policy
--------------------------------------------------
// TEST[continued]
//////////////////////////