elastic/elasticsearch

Record shard movements over time

Open

#60,747 创建于 2020年8月5日

在 GitHub 查看
 (7 评论) (3 反应) (1 负责人)Java (25,882 fork)batch import
:Distributed/Allocation>enhancementTeam:Distributedhelp wanted

仓库指标

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.

贡献者指南