-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Stats API to identify which indices (and shards?) are getting updates #10766
Copy link
Copy link
Closed
Labels
Indexing & SearchenhancementEnhancement or improvement to existing feature or requestEnhancement or improvement to existing feature or request
Description
Is your feature request related to a problem? Please describe.
During a recent on-call shift I realized that we don't seem to have a decent API to quickly determine what indices/shards are getting updates. When a cluster is processing lots of updates and you want to see how those updates are balanced across nodes, it would be helpful to at least know what shards are receiving updates, then can check how those shards are assigned to nodes.
Describe the solution you'd like
I think we could add a field to ShardsStats and maybe IndexStats with the timestamp of the last processed IndexRequest.
Something like /_cat/indices could add a column for it.
Describe alternatives you've considered
Quick and dirty solution:
GET /_cat/indices-> output to a file called t1cat t1 | sort > t1-sorted2- Wait a minute
GET /_cat/indices-> output to a file called t2cat t2 | sort > t2-sorteddiff t1-sorted t2-sorted
Additional context
N/A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Indexing & SearchenhancementEnhancement or improvement to existing feature or requestEnhancement or improvement to existing feature or request
Type
Projects
Status
✅ Done