Skip to content
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

[FEATURE] Stats Framework for Index Management - Phase II #1154

Open
sarthakaggarwal97 opened this issue Apr 9, 2024 · 0 comments
Open

[FEATURE] Stats Framework for Index Management - Phase II #1154

sarthakaggarwal97 opened this issue Apr 9, 2024 · 0 comments
Assignees
Labels
enhancement New request

Comments

@sarthakaggarwal97
Copy link
Contributor

sarthakaggarwal97 commented Apr 9, 2024

Granular Index Management Stats

In continuation from #1153, this issue is to additionally support indices and policies as dimensions.

GET _plugins/_ism/stats/<dimension>/<target>/<action>/statName1,statName2?pretty
{
  "cumulative": {
    "actions": {
        "rollover": {
          "total_executions": 100,
          "total_successes": 190,
          "total_failures": 5,
          "total_execution_time": "5ms"
      },
  },
  "indices": {
    "<index_name>": {
      "policy_name": "<policy_name>",
      "actions": {
        "rollover": {
          "total_executions": 100,
          "total_successes": 190,
          "total_failures": 5,
          "last_execution_time": "2024-03-20T12:00:00Z",
          "total_execution_time": "5ms"
        }
        // Other ISM actions and their statistics
      }
    },
    // Other indices and their statistics
  },
  "policies": {
    "<policy_name>": {
      "indices_managed": 10,
      "total_executions": 200,
      "total_successes": 190,
      "total_failures": 10,
      "total_execution_time": "7ms"
    },
    // Other policies and their statistics
  }
}

Note:

  1. Dimension: Cluster, nodes, indices, policies
  2. Target: cumulative or _all, node ids, index names, policy IDs (comma separated values for multiple values)

Pros:

  1. Provides stats at a much more granular level.
  2. We can maybe segregate the levels as policy, indices, cumulative stats to different levels of granularity, alongside the feasibility of _all to return all the stats.

Cons:

  1. The response of this stats framework, if implemented without the levels of granularity, could be huge to process. Might have some unintended affects on the memory of the nodes if the API is not polled judiciously.
  2. We would need to handle scenarios were policies or indices are deleted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New request
Projects
None yet
Development

No branches or pull requests

2 participants