标签:elastic tran sha dex out 节点 local nbsp rac
1.打开集群transport请求日志
高版本
curl -H "Content-Type: application/json" -XPUT ‘http://localhost:9200/_cluster/settings‘ -d ‘{ "transient" : { "logger.org.elasticsearch.transport.TransportService.tracer" : "TRACE" }}‘
低版本
curl -XPUT ‘http://localhost:9200/_cluster/settings‘ -d ‘{ "transient" : { "logger.org.elasticsearch.transport.TransportService.tracer" : "TRACE" }}‘
2.分片迁移节点命令
高版本
curl -H "Content-Type: application/json" -XPOST ‘http://localhost:9200/_cluster/reroute‘ -d ‘{
"commands":[{
"move":{
"index":"index_name",
"shard":0,
"from_node":"es-1",
"to_node":"es-8"
}}]}‘
标签:elastic tran sha dex out 节点 local nbsp rac
原文地址:https://www.cnblogs.com/supermanwx/p/11513153.html