es-slave1.yml 741 B

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