当前位置: 首页 > news >正文

wordpress视频网站采集器网络服务有限公司

wordpress视频网站采集器,网络服务有限公司,中山高端网站建设,企业门户网站建设与发展趋势一、创建 elasticsearch-cluster 文件夹 创建 elasticsearch-7.8.0-cluster 文件夹,在内部复制三个 elasticsearch 服务。 然后每个文件目录中每个节点的 config/elasticsearch.yml 配置文件 node-1001 节点 #节点 1 的配置信息: #集群名称&#xff0…

一、创建 elasticsearch-cluster 文件夹

创建 elasticsearch-7.8.0-cluster 文件夹,在内部复制三个 elasticsearch 服务。

 然后每个文件目录中每个节点的 config/elasticsearch.yml 配置文件

node-1001 节点

#节点 1 的配置信息:
#集群名称,节点之间要保持一致
cluster.name: my-elasticsearch
#节点名称,集群内要唯一
node.name: node-1001
node.master: true
node.data: true
#ip 地址
network.host: localhost
#http 端口
http.port: 1001
#tcp 监听端口
transport.tcp.port: 9301
#discovery.seed_hosts: ["localhost:9301", "localhost:9302","localhost:9303"]
#discovery.zen.fd.ping_timeout: 1m
#discovery.zen.fd.ping_retries: 5
#集群内的可以被选为主节点的节点列表
#cluster.initial_master_nodes: ["node-1", "node-2","node-3"]
#跨域配置
#action.destructive_requires_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"

node-1002 节点

#节点 2 的配置信息:
#集群名称,节点之间要保持一致
cluster.name: my-elasticsearch
#节点名称,集群内要唯一
node.name: node-1002
node.master: true
node.data: true
#ip 地址
network.host: localhost
#http 端口
http.port: 1002
#tcp 监听端口
transport.tcp.port: 9302
discovery.seed_hosts: ["localhost:9301"]
discovery.zen.fd.ping_timeout: 1m
discovery.zen.fd.ping_retries: 5
#集群内的可以被选为主节点的节点列表
#cluster.initial_master_nodes: ["node-1", "node-2","node-3"]
#跨域配置
#action.destructive_requires_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"

node-1003 节点

#节点 3 的配置信息:
#集群名称,节点之间要保持一致
cluster.name: my-elasticsearch
#节点名称,集群内要唯一
node.name: node-1003
node.master: true
node.data: true
#ip 地址
network.host: localhost
#http 端口
http.port: 1003
#tcp 监听端口
transport.tcp.port: 9303
#候选主节点的地址,在开启服务后可以被选为主节点
discovery.seed_hosts: ["localhost:9301", "localhost:9302"]
discovery.zen.fd.ping_timeout: 1m
discovery.zen.fd.ping_retries: 5
#集群内的可以被选为主节点的节点列表
#cluster.initial_master_nodes: ["node-1", "node-2","node-3"]
#跨域配置
#action.destructive_requires_name: true
http.cors.enabled: true
http.cors.allow-origin: "*"

启动集群
分别依次双击执行节点的bin/elasticsearch.bat, 启动节点服务器(可以编写一个脚本启动),启动后,会自动加入指定名称的集群。

测试集群
一、用Postman,查看集群状态

GET http://127.0.0.1:1001/_cluster/health
GET http://127.0.0.1:1002/_cluster/health
GET http://127.0.0.1:1003/_cluster/health
 返回结果皆为如下:

{"cluster_name": "my-application","status": "green","timed_out": false,"number_of_nodes": 3,"number_of_data_nodes": 3,"active_primary_shards": 0,"active_shards": 0,"relocating_shards": 0,"initializing_shards": 0,"unassigned_shards": 0,"delayed_unassigned_shards": 0,"number_of_pending_tasks": 0,"number_of_in_flight_fetch": 0,"task_max_waiting_in_queue_millis": 0,"active_shards_percent_as_number": 100.0
}

status字段指示着当前集群在总体上是否工作正常。它的三种颜色含义如下:

  1. green:所有的主分片和副本分片都正常运行。
  2. yellow:所有的主分片都正常运行,但不是所有的副本分片都正常运行。
  3. red:有主分片没能正常运行。
http://www.qdjiajiao.com/news/7902.html

相关文章:

  • 写软文推广正规seo关键词排名网络公司
  • wordpress能仿站吗企业网站建设门户
  • 金华建设局网站大数据营销平台那么多
  • wordpress 底部按钮网站文章优化技巧
  • 网站的建设寻找客户资源的网站
  • 广东专业网站建设怎么创建网站链接
  • 网站海外推广谷歌seo方案推广普通话手抄报内容简短
  • 国外做的好的电商网站推荐微信公众号怎么创建
  • 大庆做网站公司网站运营及推广方案
  • 营销网站创建抖音seo排名软件哪个好
  • 做网站 属于电子商务快推达seo
  • 手工做的网站优化是什么梗
  • 上海住房与建设委员会网站app开发平台
  • 网站细节kj6699的seo综合查询
  • 阿里百川 网站开发上海百度推广优化公司
  • 网站源码偷取工具河北seo技术
  • .net和php哪个做网站好下载百度网盘app
  • 道滘网站仿做郑州百度seo网站优化
  • 能够做二维码网站百度推广合作
  • 沈阳网站设计开发如何做公司网站推广
  • 陕西省住房和城乡建设部网站湘潭seo快速排名
  • 免费平面设计模板网站公司网站建设公司
  • 无锡开发网站建设宽带营销策略
  • 网站功能插件2345浏览器网站进入
  • b2b网站想申请支付宝借口网络营销策划的目的
  • 南雄做网站网站制作软件免费下载
  • 做社区网站用什么程序好志鸿优化网
  • 做网站广告多少钱关键词搜索量怎么查
  • 深圳最好seo长安网站优化公司
  • 网站建设合同内容海淀seo搜索引擎优化公司