栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 云计算 > 云平台

ElasticSearch配置集群

云平台 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ElasticSearch配置集群

elasticsearch.yml配置

注意:集群名称一定要一致,端口号要不同,通信端口要不同

① 节点1
//配置集群名称
cluster.name: elasticSearchCluster
//配置节点名称
node.name: node-elasticSearch1
//配置数据节点
node.master: true
node.data: true
//配置主机
network.host: 10.56.20.20
//配置端口号
http.port: 1001
//配置通信端口
transport.tcp.port: 9301
//跨域配置
http.cors.enabled: true
http.cors.allow-origin: "*"
②节点2
在//配置集群名称
cluster.name: elasticSearchCluster
//配置节点名称
node.name: node-elasticSearch2
//配置数据节点
node.master: true
node.data: true
//配置主机
network.host: 10.56.20.20
//配置端口号
http.port: 1002
//配置通信端口
transport.tcp.port: 9302
//跨域配置
http.cors.enabled: true
http.cors.allow-origin: "*"
//配置节点查找模块
discovery.seed_hosts: ["10.56.20.20:9301"]
discovery.zen.fd.ping_timeout: 1m	//超时时间
discovery.zen.fd.ping_retries: 5	//重试次数
③节点3
在//配置集群名称
cluster.name: elasticSearchCluster
//配置节点名称
node.name: node-elasticSearch3
//配置数据节点
node.master: true
node.data: true
//配置主机
network.host: 10.56.20.20
//配置端口号
http.port: 1003
//配置通信端口
transport.tcp.port: 9303
//跨域配置
http.cors.enabled: true
http.cors.allow-origin: "*"
//配置节点查找模块
discovery.seed_hosts: ["10.56.20.20:9301","10.56.20.20:9302"]
discovery.zen.fd.ping_timeout: 1m	//超时时间
discovery.zen.fd.ping_retries: 5	//重试次数
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/898379.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号