是时候用 ES 拯救发际线啦

Relocation很慢很慢

Elasticsearch | 作者 famoss | 发布于2016年12月07日 | 阅读数:8127

今天准备做hot-warm结构,ssd抗住写入以后,定时将索引从hot服务器(ssd)切到warm服务器(sata大硬盘),但是发现relocation特别特别慢,比如我一个小时的索引,切换一次可能需要3个小时。
 
请问有什么办法优化么?
 
尝试过
"cluster.routing.allocation.node_concurrent_outgoing_recoveries": 6,
"cluster.routing.allocation.node_concurrent_incoming_recoveries": 6
这两个设置,想将relocation并发转2个shard改为6个但是没生效。
 

EDIT
好吧,参数找错了,cluster.routing.allocation.cluster_concurrent_rebalance 这个参数解决了并发问题
已邀请:

tianqi

赞同来自:

楼主设置cluster.routing.allocation.cluster_concurrent_rebalance多大。我这边设置5,还是很慢,而且我发现在relocating时是无法删除任意一个索引的,删除会超时报错,不知道为什么。

要回复问题请先登录注册