Skip to content

Separate SLM stop/start/status API from ILM#47710

Merged
dakrone merged 6 commits intoelastic:masterfrom
dakrone:slm-separate-run-status
Oct 8, 2019
Merged

Separate SLM stop/start/status API from ILM#47710
dakrone merged 6 commits intoelastic:masterfrom
dakrone:slm-separate-run-status

Conversation

@dakrone
Copy link
Copy Markdown
Member

@dakrone dakrone commented Oct 7, 2019

This separates a start/stop/status API for SLM from being tied to ILM's
operation mode. These APIs look like:

POST /_slm/stop
POST /_slm/start
GET /_slm/status

This allows administrators to have fine-grained control over preventing
periodic snapshots and deletions while performing cluster maintenance.

Relates to #43663

This separates a start/stop/status API for SLM from being tied to ILM's
operation mode. These APIs look like:

```
POST /_slm/stop
POST /_slm/start
GET /_slm/status
```

This allows administrators to have fine-grained control over preventing
periodic snapshots and deletions while performing cluster maintenance.

Relates to elastic#43663
@dakrone dakrone added :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. v8.0.0 v7.5.0 labels Oct 7, 2019
@dakrone dakrone requested a review from AthenaEryma October 7, 2019 22:36
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (:Core/Features/ILM+SLM)

@AthenaEryma
Copy link
Copy Markdown
Contributor

I'll do a full review of this very soon - are we concerned that this changes the behavior of the ILM start/stop API from 7.4, in that it no longer starts/stops both ILM and SLM?

@dakrone
Copy link
Copy Markdown
Member Author

dakrone commented Oct 8, 2019

@gwbrown I'm not really sure, I'm not too concerned, but it does mean that we should probably put a notice about this into the migration guide, what are your thoughts?

Copy link
Copy Markdown
Contributor

@AthenaEryma AthenaEryma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a couple minor comments, LGTM otherwise - no need for another round of review.

The new APIs need HLRC support, but I can add that in a follow-up PR.

@dakrone
Copy link
Copy Markdown
Member Author

dakrone commented Oct 8, 2019

I opened #47749 for the test failure (unrelated)

@elasticmachine run elasticsearch-ci/2

@dakrone dakrone merged commit 4aa6a9e into elastic:master Oct 8, 2019
@dakrone dakrone deleted the slm-separate-run-status branch October 8, 2019 23:15
dakrone added a commit that referenced this pull request Oct 8, 2019
* Separate SLM stop/start/status API from ILM

This separates a start/stop/status API for SLM from being tied to ILM's
operation mode. These APIs look like:

```
POST /_slm/stop
POST /_slm/start
GET /_slm/status
```

This allows administrators to have fine-grained control over preventing
periodic snapshots and deletions while performing cluster maintenance.

Relates to #43663

* Allow going from RUNNING to STOPPED

* Align with the OperationMode rules

* Fix slmStopping method

* Make OperationModeUpdateTask constructor private

* Wipe snapshots better in test
@Mpdreamz
Copy link
Copy Markdown
Member

Hi @dakrone @gwbrown it appears the rest api specification files are missing for these API's

https://github.com/elastic/elasticsearch/tree/master/x-pack/plugin/src/test/resources/rest-api-spec/api

cc @elastic/es-clients

@codebrain
Copy link
Copy Markdown
Contributor

@Mpdreamz I've implemented the specs locally for the .NET client:

elastic/elasticsearch-net@a02bfa9

codebrain added a commit to codebrain/elasticsearch that referenced this pull request Dec 2, 2019
codebrain added a commit that referenced this pull request Dec 11, 2019
codebrain added a commit that referenced this pull request Dec 11, 2019
…ts. (#49759)

Was originally missed in PR #47710

(cherry picked from commit 133b34c)
codebrain added a commit that referenced this pull request Dec 11, 2019
…ts. (#49759)

Was originally missed in PR #47710

(cherry picked from commit 133b34c)
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. >enhancement v7.5.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants