打开地址
https://localhost/app/kibana#/dev_tools
查看节点
GET _cat/nodes?v&s=name
-------------------------------------------------------------------------------------------------------------
ip | heap.percent | ram.percent | cpu | load_1m | load_5m | load_15m | node.role | master | name
172.17.15.1 | 46 | 99 | 28 | 28.20 | 28.70 | 28.12 | mdi | * | node1
172.17.15.2 | 60 | 99 | 24 | 10.89 | 10.93 | 10.48 | di | - | node2
172.17.15.3 | 16 | 99 | 25 | 11.45 | 10.70 | 11.34 | di | - | node3
172.17.15.4 | 49 | 99 | 22 | 12.01 | 11.32 | 11.56 | di | - | node4
172.17.15.5 | 65 | 99 | 21 | 10.70 | 10.22 | 10.30 | di | - | node5
移出集群
将172.17.15.5移出集群置为不包含IP
PUT _cluster/settings
{
"transient": {
"cluster.routing.allocation.exclude._ip": "172.17.15.5"
}
}
监控状态
等待数据自动到达平衡状态
关闭节点
关闭节点服务
置空记录
置空不包含IP列表
PUT _cluster/settings
{
"transient": {
"cluster.routing.allocation.exclude._ip": null
}
}