Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 8, 2019

Conversation

dakrone
Copy link
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 Index and Snapshot lifecycle management v8.0.0 v7.5.0 labels Oct 7, 2019
@dakrone dakrone requested a review from gwbrown October 7, 2019 22:36
@elasticmachine
Copy link
Collaborator

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

@gwbrown
Copy link
Contributor

gwbrown commented Oct 7, 2019

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
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
Contributor

@gwbrown gwbrown 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
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
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
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants