主节点: http.cors.enabled: true http.cors.allow-origin: “*” http.port: 9200 transport.tcp.port: 9300 cluster.name: my-application node.name: node-1 node.master: true node.data: true network.host: 127.0.0.1 cluster.initial_master_nodes: [“node-1”] discovery.seed_hosts: [“127.0.0.1:9300”,“127.0.0.1:8300”] 子节点: http.port: 8200 transport.tcp.port: 8300 cluster.name: my-application node.name: node-2 node.master: false node.data: true network.host: 127.0.0.1 cluster.initial_master_nodes: [“node-1”] discovery.seed_hosts: [“127.0.0.1:9300”,“127.0.0.1:8300”]
Elasticserach配置
最新推荐文章于 2023-07-03 14:15:35 发布
本文详细介绍了Elasticsearch集群配置,包括主节点与子节点的设置,如http端口、transport端口、集群名称、节点名称、主机地址以及初始主节点和种子主机等关键参数,旨在帮助读者理解如何搭建和配置Elasticsearch集群。
725

被折叠的 条评论
为什么被折叠?



