更新 Elasticsearch.md

This commit is contained in:
wxin 2025-05-02 10:00:46 +08:00
parent 7aadb56181
commit b68536b75f

View File

@ -533,31 +533,31 @@ Password for the [elastic] user successfully reset.
https://192.168.159.131:9200
![](accents\image-202504300004.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202504300004.png)
![](accents\image-202504300005.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202504300005.png)
### 14. 插件访问
Multi Elasticsearch Heads
![](accents\image-202504300006.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202504300006.png)
Elasticsearch Tools
![](accents\image-202504300007.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202504300007.png)
Elasticvue
![](accents\image-202504300008.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202504300008.png)
![](accents\image-202504300009.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202504300009.png)
![](accents\image-202504300010.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202504300010.png)
![](accents\image-202504300011.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202504300011.png)
![](accents\image-202504300012.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202504300012.png)
## 四:基本概念
@ -633,7 +633,7 @@ PUT /my_index
}
```
![](accents\image-202504300013.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202504300013.png)
这个例子中PUT /my_index是创建名为my_index的索引的请求。在请求体中settings部分指出这个索引将被分成3个主分片并且每个主分片将会有2个副本分片。这意味着总共会有9个分片3个主分片 + 6个副本分片被分布在集群中。
@ -1041,7 +1041,7 @@ Password for the [elastic] user successfully reset.
GET /_cat/nodes
```
![](accents\image-202505020014.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202505020014.png)
### 7. 应用案例
@ -1057,7 +1057,7 @@ PUT kibana_sample_data_logs_ext
}
```
![](accents\image-202505020015.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202505020015.png)
准备索引数据首先你得先确保您索引有wxin
@ -1073,11 +1073,11 @@ POST _reindex
}
```
![](accents\image-202505020016.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202505020016.png)
这是现在的分片情况
![](accents\image-202505020017.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202505020017.png)
设置索引分片信息主要参数index.routing.allocation.include._tier_preference
@ -1094,8 +1094,8 @@ PUT kibana_sample_data_logs_ext/_settings
}
```
![](accents\image-202505020018.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202505020018.png)
在查询就能看到分片都在hot节点上了
![](accents\image-202505020019.png)
![](http://182.92.143.66:40072/directlink/img/es/image-202505020019.png)