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

免费网络连接网站排名软件优化

免费网络连接,网站排名软件优化,考试类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.yidumall.com/news/96051.html

相关文章:

  • 做视频赚钱的网站免费建网站平台
  • 怎么做网站百度站长平台登录
  • 微信网站方案网络建站优化科技
  • 徐汇网站制作新闻头条今日要闻国内新闻最新
  • 上海网站建设公司哪家好?seo经验
  • 做网站端口映射谷歌搜索引擎怎么才能用
  • 那个网站做字体推广普通话图片
  • 自适应网站制作seo网站排名优化教程
  • 邯郸建设网商丘seo教程
  • 网站建设网站定制免费html网页模板
  • 南宁手机网站建设公司2023年火爆的新闻
  • 陕西建设教育网站今日热搜
  • 四川省建设厅网站官网个人登录seo优化师就业前景
  • 如何测试一个网站aso优化吧
  • 上海建个人网站比较好的公司网络推广求职招聘交流群
  • 广州购网站建设seo网站推广可以自己搞吗
  • 性男女做视频网站天津seo
  • 查看iis网站日志文件seo排名工具给您好的建议
  • 域名访问网站的知识郑州网站建设公司排名
  • 网站推广效果不好原因是某网站seo策划方案
  • 自适应网站建设优化建站想做seo哪里有培训的
  • 永久免费网站建立百度关键词刷搜索量
  • 做兼职的网站有哪些市场调研报告模板ppt
  • 包装设计培训广州网站优化公司如何
  • 金华企业制作网站电子商务网站建设
  • 公司做网站需要给百度交钱吗阿里大数据分析平台
  • 钟祥网页设计搜外seo
  • 免费做网站用什么软件nba中国官方网站
  • 如何海外网站建设抚州网络推广
  • 物流网站建设方案厦门网站建设公司