1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| # 集群名称
| cluster.name: es-cluster
| # 节点名称
| node.name: es-master
| # 是否可以成为master节点
| node.master: true
| # 是否允许该节点存储数据,默认开启
| node.data: false
| # 网络绑定
| network.host: 0.0.0.0
| # 设置对外服务的http端口
| http.port: 9200
| # 设置节点间交互的tcp端口
| transport.port: 9300
| # 集群发现
| discovery.seed_hosts:
| - es-master
| - es-slave1
| - es-slave2
| # 手动指定可以成为 mater 的所有节点的 name 或者 ip,这些配置将会在第一次选举中进行计算
| cluster.initial_master_nodes:
| - es-master
| # 支持跨域访问
| http.cors.enabled: true
| http.cors.allow-origin: "*"
| # 安全认证
| xpack.security.enabled: false
| #http.cors.allow-headers: "Authorization"
|
|