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

[ILM] Create API to view the steps of a policy #35404

Closed
talevy opened this Issue Nov 9, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@talevy
Contributor

talevy commented Nov 9, 2018

Problem Statement

We have a Move-To-Step API that allows an advanced administrator to manually override the policy execution plan. It allows overriding which step in the policy is to be executed.

Without reading the code, it is almost impossible to know all the available steps one can move to.

Proposed Solution
Introduce a new API, maybe called Get Steps API.

GET _ilm/steps/<policy-id>

This will return something that shows the compiled view of the policy

{
  "policy": {
    "phases": {
      "hot": {
        "steps": [ "attempt_rollover", "complete" ]
      },
      "warm": {
        "steps": [ "readonly", "forcemerge", "segment-count", "readonly", "set-single-node-allocation", "check-shrink-allocation", "shrink", "shrunk-shards-allocated", "copy_execution_state", "aliases", "is-shrunken-index", "allocate", "check-allocation"  ]
        }
      },
   }  
}

other issues: Knowing step keys is useful for working with the API, but it isn't useful in understanding why one would want to move to that step. What does that step do?

@talevy talevy added the :Core/ILM label Nov 9, 2018

@elasticmachine

This comment has been minimized.

elasticmachine commented Nov 9, 2018

@talevy

This comment has been minimized.

Contributor

talevy commented Nov 16, 2018

Closing because this type of visibility into the underlying code may do more harm than good

@talevy talevy closed this Nov 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment