elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.15k stars 24.84k forks source link

enhance _features by adding indices in the response #108048

Open TomonoriSoejima opened 6 months ago

TomonoriSoejima commented 6 months ago

Description

Currently a response from GET _features/ does not include associated indices

{
  "features": [
    {
      "name": "inference_plugin",
      "description": "Inference plugin for managing inference services and inference"
    },
    {
      "name": "enrich",
      "description": "Manages data related to Enrich policies"
    },
    {
      "name": "fleet",
      "description": "Manages configuration for Fleet"
    }
  ]
}

It would be great if the response can include a matching indexes as it is done in snapshot creation time.

https://github.com/elastic/elasticsearch/blob/55cf37cedd81b2b452f3ca2240ec78b7374e089d/server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java#L3768-L3799

elasticsearchmachine commented 6 months ago

Pinging @elastic/es-distributed (Team:Distributed)

pxsalehi commented 6 months ago

What is the use case for knowing the list of indices in a feature? My understanding is that the feature itself should know which matching indices to snapshot/restore, i.e., this is internal to the feature.

TomonoriSoejima commented 6 months ago

In my users's particular case, knowing what indices get included allows them to do proper sizing for the disk required for this snapshot.

elasticsearchmachine commented 5 months ago

Pinging @elastic/es-core-infra (Team:Core/Infra)

ywangd commented 5 months ago

I am routing this to core-infra since the GetFeatures API is owned by them.