PUT _cluster/settings
{
"transient" : {
"cluster.routing.allocation.node_concurrent_recoveries":4,
"cluster.routing.allocation.cluster_concurrent_rebalance":4,
"cluster.routing.allocation.node_initial_primaries_recoveries":5,
"indices.recovery.max_bytes_per_sec" : "400mb"
}
}
参数说明:
cluster.routing.allocation.node_concurrent_recoveries: 每个node上允许rebalance的片数量。
cluster.routing.allocation.cluster_concurrent_rebalance: 用来控制均衡力度,允许集群内并发分片的rebalance数量,默认为2。
cluster.routing.allocation.node_initial_primaries_recoveries: 该参数用来控制节点重启时,允许同时恢复几个主分片。默认是 4 个。如果节点是多磁盘,且 IO 压力不大,可以适当加大。
indices.recovery.max_bytes_per_sec: 该参数用来控制节点恢复时的速率。默认是 40MB。显然是比较小的,建议加大
查看哪些index是yellow状态
GET _cat/indices
状态
green open delta_notification_2023.08.29 MX6DKLfRRRCFEKYjG0Ed1A 20 1 2151 0 15.5mb 7.9mb
green open .jd_es_auth CQUXQeKjS8OG5xnDJlfkMA 1 1 4 0 20.5kb 10.2kb
green open delta_notification_2023.08.28 Mn2x_us7RCaqjutxtj1qtg 20 1 5410 0 29.9mb 14.9mb
green open delta_notification_2023.08.27 JXqmuFXqQIqiFQMPdjGN0Q 20 1 8017 0 40.3mb 20.2mb
green open delta_notification_2023.08.26 XV9t8LC3RgafI1rj_sZKlA 20 1 6869 0 35.7mb 17.8mb
green open delta_notification_2023.08.25 Wot0nIYxRQaNygB8m0r7pA 20 1 4969 0 29.7mb 14.7mb
green open delta_notification_2023.08.24 ZOSzyLpkSiKN-WdiECHLtA 20 1 1966 0 15.9mb 8mb
green open delta_notification_2023.08.23 Q8FQvCT8RVyiCoYzmc88JQ 20 1 1987 0 15.8mb 8.1mb
green open delta_notification_2023.08.22 R31vNaR8So-ecErBsOVn-g 20 1 1919 0 15.1mb 7.4mb
green open delta_notification_2023.08.21 uAJXxKRwRKKJNGejAibrKQ 20 1 1640 0 13.9mb 6.8mb
green open delta_notification_2023.08.20 p7_mZk1sTyeSXreoQOiXmw 20 1 1632 0 13.4mb 6.7mb
green open delta_notification_2023.08.31 ApUKbz4vS-iTDS3v6TaiXQ 20 1 4322 0 26.1mb 12.9mb
green open delta_notification_2023.08.30 zJcLDS0RST2a0aS_OP7MGQ 20 1 2341 0 17.8mb 9mb
green open delta_warning_2022.06.27 QhfplpzxTi-cx2Mp4TwERg 10 1 6 0 88.5kb 44.2kb
green open .apm-agent-configuration 2EcSsHDnQDiEv3zmNLCJmw 1 1 0 0 416b 208b
green open delta_warning_2022.06.03 JyOoMw8FSwWA8uBvn5YHhQ 10 1 14 0 207kb 103.5kb
green open delta-monitor-2023.06.01 rMCTSsmBQz6ZxAd_HYp8Eg 20 1 129492070 0 134.4gb 67.2gb
green open delta_notification_2023.08.09 Crw34HOPTBKlJg5NHz4vAA 20 1 5362 0 29.2mb 14.3mb
green open delta_notification_2023.08.08 7WfSnvPFTGimzaxraADtJA 20 1 2283 0 16.2mb 8mb
green open delta_notification_2023.08.07 301jnQjMRYqVN4ak6yWvGQ 20 1 1702 0 13.1mb 6.5mb
green open delta_notification_2023.08.06 GBKjsPm3SKaJONUP35PVrw 20 1 2753 0 17.2mb 8.6mb
green open delta_notification_2023.08.05 EbAs3jLKSBaTsDCoJtUJSQ 20 1 2714 0 17.2mb 8.6mb
通过判断索引的状态是否都是green,来判断是否还分片是否就没有被均衡
标签:20,mb,notification,delta,新加,green,分片,open,节点 From: https://www.cnblogs.com/PythonOrg/p/17775103.html