You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
741 B
28 lines
741 B
# 集群名称 |
|
cluster.name: es-cluster |
|
# 节点名称 |
|
node.name: es-slave2 |
|
# 是否可以成为master节点 |
|
node.master: true |
|
# 是否允许该节点存储数据,默认开启 |
|
node.data: true |
|
# 网络绑定 |
|
network.host: 0.0.0.0 |
|
# 设置对外服务的http端口 |
|
http.port: 9202 |
|
# 设置节点间交互的tcp端口 |
|
#transport.port: 9302 |
|
# 集群发现 |
|
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"
|
|
|