仓库指标
- Star
- (76,700 star)
- PR 合并指标
- (平均合并 2天) (30 天内合并 1,000 个 PR)
描述
Sometimes it is useful to know how shards have moved around the cluster on the way to their current locations. Today there is no simple way to obtain this information, even with DEBUG-level logging.
We (the @elastic/es-distributed team) discussed this today and we propose introducing a new logger for shard movements in order to expose this information in the logs. This need only look at the cluster state and therefore runs only on the elected master, and should log shard-by-shard changes to the routing table.
I'm marking this as help wanted to invite external contributions since this isn't a priority for us right now, but note that it may not be a straightforward task to implement this correctly and efficiently.