7

ELK-学习笔记–elasticsearch的日常维护参数 |坐而言不如起而行! 二丫讲梵

 3 years ago
source link: http://www.eryajf.net/5132.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
ELK-学习笔记–elasticsearch的日常维护参数 |坐而言不如起而行! 二丫讲梵
> 日志管理 > ELK > <十九>ELK-学习笔记–elasticsearch的日常维护参数
本文预计阅读时间 1 分钟
  • 将副本重置为0,如果数据重要性不是特别大,可以采用这个配置,以释放es写的压力。
  1. PUT /test-index*/_settings
  2. {
  3. "settings" : {
  4. "number_of_replicas" : 0
  5. }
  6. }
  • 设置分片在每个节点上都有,
  1. PUT /test-index/_settings
  2. {
  3. "index.routing.allocation.total_shards_per_node":1
  4. }

71cfeb93ly1gf8j90jub3j20no0zk432.jpg


weinxin


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK