update elastic docs

This commit is contained in:
2022-12-01 18:05:53 +08:00
parent 42f4851b7f
commit d84c1e7a2b

View File

@@ -0,0 +1,38 @@
# 概述
Elasticsearch 有一个很好的默认配置所以仅需要很小的配置。很多设置都可以通过集群API来控制。
配置文件中有很多节点专用配置,比如 (`node.name` 和路径)
配置文件格式
```yaml
path:
data: /var/lib/elasticsearch
logs: /var/log/elasticsearch
```
```yaml
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
```
```yaml
discovery.seed_hosts:
- 192.168.1.10:9300
- 192.168.1.11
- seeds.mydomain.com
```
环境变量
```
node.name: ${HOSTNAME}
network.host: ${ES_NETWORK_HOST}
```