Commit graph

30 commits

Author SHA1 Message Date
Henning Andersen
8779330638
[DOCS] Document autoscaling processors (#88248)
Add documentation for new `processors` response in autoscaling capacity API.

Relates #87895
2022-07-05 13:51:51 +02:00
James Rodewig
f56a0f4b66
[DOCS] Remove testenv annotations from doc snippet tests (#80023)
Removes `testenv` annotations and related code. These annotations originally let you skip x-pack snippet tests in the docs. However, that's no longer possible.

Relates to #79309, #31619
2021-11-05 18:38:50 -04:00
Henning Andersen
77938381ea
Autoscale frozen tier into existence (#73435)
This commit adds two related changes:
* ILM WaitForDataTierStep
* Autoscaling frozen_existence decider

The first part ensures that we wait mounting an index until a node that
can hold the index is available, avoiding a failed restore and red
cluster state. This is in particular important for the frozen phase, but
is done generically in the searchable snapshot action.

The second part triggers on indices in the ILM frozen phase to scale the
tier into existence by requiring a minimal amount of memory and storage.

Closes #72771
2021-06-22 13:21:04 +02:00
Henning Andersen
0f0cdcb3b0
[DOCS] Use partially mounted in autoscaling docs (#73229)
Fixed autoscaling docs to no longer call partially mounted indices or
shards for frozen indices/shards, now uses partially mounted indices or
shards.

Closes #73132

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2021-05-20 11:18:42 +02:00
Henning Andersen
9d6ce2c8d6
Frozen autoscaling decider based on storage pct (#71756)
The frozen tier partially downloads shards only. This commit
introduces an autoscaling decider that scales the total storage
on the tier according to a configurable percentage relative to
the total data set size.
2021-04-20 14:09:07 +02:00
Henning Andersen
a0d1c5bebf
Autoscaling frozen shards docs (#71583)
Added documentation for the frozen shards decider.

Relates #71042
2021-04-15 15:35:12 +02:00
James Rodewig
bd4439be24
[DOCS] Replace hard-coded admons with cloud-only attribute (#70864) 2021-03-25 09:21:35 -04:00
James Rodewig
5c75d004fa
[DOCS] Replace put with create or update in API names (#70330)
Co-authored-by: debadair <debadair@elastic.co>
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2021-03-15 14:49:44 -04:00
James Rodewig
d51a04cd8c
[DOCS] Add operator privileges to APIs and settings (#69903) 2021-03-15 09:20:09 -04:00
István Zoltán Szabó
88bc27592d
[DOCS] Reviews ML decider conceptual docs (#69524)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2021-03-01 09:56:39 +01:00
Henning Andersen
d4a7aa26c1
Autoscaling test scale from empty with node attrs (#68730)
Autoscaling expects data tiers to be used exclusively both for node
roles and in ILM policies. This commit adds a test demonstrating that
as well as documentation for the behavior.
2021-02-22 15:47:15 +01:00
István Zoltán Szabó
d8de8f2d73
[DOCS] Fixes typo in decider docs. (#67743) 2021-01-20 10:51:17 +01:00
Henning Andersen
82726b3939
Autoscaling hide test setup in docs (#67570)
Two APIs showed the test setup in docs, now hidden.
2021-01-17 18:22:27 +01:00
Thibault Richard
59d5a91c5a
Fix typo in autoscaling policy doc (#67575) 2021-01-15 15:21:39 +01:00
Benjamin Trent
5ac364e4e7
[ML] [DOCS] expounding on ml autoscaling decider docs (#67463)
This commit adds more details and clarifications to the machine learning autoscaling decider documentation.
2021-01-15 08:15:43 -05:00
Henning Andersen
cc30ae8c16
Autoscaling APIs not experimental (#67202)
We no longer regard the autoscaling APIs experimental though they are
only intended for use by ESS/ECE/ECK. This commit updates the docs
to reflect this and adds a minimal set of documentation for the
feature.

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2021-01-12 22:03:18 +01:00
Henning Andersen
c91a4d8d2b
Autoscaling remove feature flags (#65973)
Removed the autoscaling feature flags, autoscaling is now on by default
(though it requires an external system to handle the autoscaling
events). Added experimental notice to all autoscaling related
documentation pages.

Relates #51191
2020-12-14 19:06:09 +01:00
Henning Andersen
be9725245d
Autoscaling delete policy by simple pattern (#64739)
Added the capability to delete autoscaling policies by pattern, allowing
to for instance do:
```
DELETE _autoscaling/policy/*
```
to delete all autoscaling policies. If a wildcard is involved, no
matches are required.
2020-11-09 15:44:33 +01:00
Henning Andersen
54911ace97
Autoscaling policy roles specification (#64222)
Add a roles specification to autoscaling policies. This is used to map
the policy to a set of nodes governed by the policy. The list of roles
is mandatory when adding a policy, optional on updates.

This commit also removes the outer level "policy" element from autoscaling
policy PUT and GET requests.
2020-11-02 07:30:31 +01:00
Henning Andersen
d573fdefd3
Autoscaling capacity API and structure (#63905)
Renamed decision API to capacity. Responses now prefer objects/maps over
arrays. Removed mention of tier, using policies as the outer map and
total for the policy-wide total capacity.
2020-10-21 11:57:11 +02:00
Henning Andersen
d8dd6e38a7
Autoscaling decision return absolute capacity (#61575)
The autoscaling decision API now returns an absolute capacity,
and leaves the actual decision of whether a scale up or down
is needed to the orchestration system.

The decision API now returns both a tier and node level required
and current capacity as wells as a decider level breakdown of the
same though with in particular current memory still not populated.
2020-09-18 20:44:20 +02:00
Henning Andersen
92d70534ef
Autoscaling decider and decision service (#59005)
Split the autoscaling decider into a service and configuration
in order to enable having additional context information available
in the service. Added AutoscalingDeciderContext holding generic
information all deciders are expected to need. Implemented GET
_autoscaling/decision
2020-08-10 12:02:25 +02:00
James Rodewig
2774cd6938
[DOCS] Swap [float] for [discrete] (#60124)
Changes instances of `[float]` in our docs for `[discrete]`.

Asciidoctor prefers the `[discrete]` tag for floating headings:
https://asciidoctor.org/docs/asciidoc-asciidoctor-diffs/#blocks
2020-07-23 11:48:22 -04:00
Jason Tedor
48b314a806
Add get autoscaling policy API (#54762)
This commit adds the get autoscaling policy API.
2020-04-04 17:52:54 -04:00
Jason Tedor
6d0bd25545
Add delete autoscaling policy API (#54601)
This commit adds an API for deleting autoscaling policies.
2020-04-02 08:57:40 -04:00
Jason Tedor
b82618d4a6
Rename the policy in put autoscaling policy docs
The put autoscaling policy docs use a "hot" policy as an
example. Instead, this commit changes the name of this policy to
"my_autoscaling_policy".
2020-04-01 16:30:26 -04:00
Jason Tedor
6e35354f8e
Introduce autoscaling policies (#54473)
This commit is the first in a series of commits that introduces
autoscaling policies, and APIs for working with them. For now, we
introduce the basic infrastructure, and a single API for putting an
autoscaling policy. We will follow in rapid succession with APIs for
getting, and deleting autoscaling policies.
2020-04-01 07:35:45 -04:00
Jason Tedor
94e81b0aa0
Introduce autoscaling decisions (#53934)
This is the first in a series of commits that will introduce the
autoscaling deciders framework. This commit introduces the basic
framework for representing autoscaling decisions.
2020-03-23 22:53:51 -04:00
Jason Tedor
5a12e5856a
Add autoscaling API skelton (#51564)
The main purpose of this commit is to add a single autoscaling REST
endpoint skeleton, for the purpose of starting to build out the build
and testing infrastructure that will surround it. For example, rather
than commiting a fully-functioning autoscaling API, we introduce here
the skeleton so that we can start wiring up the build and testing
infrastructure, establish security roles/permissions, an so on. This
way, in a forthcoming PR that introduces actual functionality, that PR
will be smaller and have less distractions around that sort of
infrastructure.
2020-02-06 19:15:17 -05:00
Jason Tedor
d96038eca8
Initial autoscaling commit (#51161)
This commit merely adds the skeleton for the autoscaling project, adding
the basics to include the autoscaling module in the default
distribution, opt-in to code formatting, and a placeholder for the docs.
2020-01-17 14:54:53 -05:00