elasticsearch 调整参数 调参 -- 副本 分片 读写流程 -- elasticsearch配置

0.读写原理

https://www.jianshu.com/p/e8226138485d   

数据模型

1.副本

curl -H 'Content-type:application/json' -XPUT '10.0.0.205:9200/*/_settings' -d ' { "index" : { "number_of_replicas" : 0 } } '

2.分片

curl -H 'Content-type:application/json' -XPUT '10.0.0.205:9200/*/_settings' -d ' { "index" : { "number_of_shards" : 2 } } '    
posted @ 2020-01-14 10:41  littlevigra  阅读(552)  评论(5编辑  收藏  举报