美文网首页
【elasticsearch】elasticsearch集群分片

【elasticsearch】elasticsearch集群分片

作者: Bogon | 来源:发表于2020-10-28 21:01 被阅读0次

$ curl -X GET -s 127.0.0.1:9200/_cluster/health?pretty

$ curl 127.0.0.1:9200/withdrewmsg/_settings?pretty

应该将分片数设置为 2 

确定主节点

$ curl -X GET -s http://127.0.0.1:9200/_cat/nodes?pretty

$ curl -XPUT 172.16.6.125:9200/withdrewmsg/_settings -d '{"index":{"number_of_replicas":2}}'

参考

https://www.zhangbj.com/p/283.html

相关文章

网友评论

      本文标题:【elasticsearch】elasticsearch集群分片

      本文链接:https://www.haomeiwen.com/subject/quocvktx.html