ELK之es设置默认分片和副本数
                    
                
                
                    ELK之es设置默认分片和副本数
elasticsearch6设置索引的默认分片数和副本数已经不是在elasticsearch.yml文件中了,而是使用了一个索引模板的东西。
linux 命令执行
1  | curl -XPUT 'http://xxxxx:9200/_template/template_http_request_record'  | 
json接口
1  | _template/template_http_request_record  | 
- index_patterns 这个是作用于索引匹配
 - number_of_shards 分片数量
 - number_of_replicas 副本数量
 
head插件查询

             评论
        
        
    评论插件加载失败
    
    
    正在加载评论插件