ElasticSearch(7.16)集群配置

*****************************************************************

cluster.name: my-application

#该节点的名字

node.name: node-1

#该参数用于同时设置bind_host和publish_host

network.host: 0.0.0.0

#设置对外服务的http端口号

http.port: 9200

transport.port: 9300

discovery.seed_hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302"]

cluster.initial_master_nodes: ["node-1"]

#开启x-pack安全验证

#xpack.security.enabled: true

#xpack.security.authc.api_key.enabled: true

**********************************************************************

cluster.name: my-application

#该节点的名字

node.name: node-2

#该参数用于同时设置bind_host和publish_host

network.host: 0.0.0.0

#设置对外服务的http端口号

http.port: 9201

transport.port: 9301

discovery.seed_hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302"]

#开启x-pack安全验证

#xpack.security.enabled: true

#xpack.security.authc.api_key.enabled: true

**********************************************************************

cluster.name: my-application

#该节点的名字

node.name: node-3

#该参数用于同时设置bind_host和publish_host

network.host: 0.0.0.0

#设置对外服务的http端口号

http.port: 9202

transport.port: 9302

discovery.seed_hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302"]

#开启x-pack安全验证

#xpack.security.enabled: true

#xpack.security.authc.api_key.enabled: true

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容