美文网首页
elasticsearch 调整参数 调参 -- 副本 分片 读

elasticsearch 调整参数 调参 -- 副本 分片 读

作者: 长孙俊明 | 来源:发表于2020-12-27 23:18 被阅读0次

    数据模型
    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 } } ' 
    

    用一个例子来演示会更加清晰

    相关文章

      网友评论

          本文标题:elasticsearch 调整参数 调参 -- 副本 分片 读

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