美文网首页
1.1-1.2 搭建ES集群 ★★★

1.1-1.2 搭建ES集群 ★★★

作者: 秦汉邮侠 | 来源:发表于2020-05-31 00:17 被阅读0次

考点

  • 在满足约束条件下部署和启动ES集群
  • 在满族约束条件下配置节点

启动参数

  • ./bin/elasticsearch -d -p pid
  • 其他参数都可以通过yml文件配置

配置文件说明

# Use a descriptive name for your cluster:
#
cluster.name: application
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
#path.data: /path/to/data
#
# Path to log files:
#
#path.logs: /path/to/logs
#
node.master: true
node.data: false
node.ingest: true
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 192.168.1.100
#
# Set a custom port for HTTP:
#
http.port: 9200

transport.tcp.port: 9300
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["192.168.1.100:9300"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):
#
cluster.initial_master_nodes: ["node-1"]
#
# For more information, consult the zen discovery module documentation.
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3
#
# For more information, consult the gateway module documentation.
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true

关键参数

  • cluster.name:集群名,同一个集群名一样
  • node.name:节点名,同一个集群下是惟一的
  • node.attr.key: node.attr的自定义键值对,定义节点属性,例如冷热分离
  • network.host:绑定的ip,没有什么好说的
  • discovery.seed_hosts:内部通信的种子节点,端口是9300
  • cluster.initial_master_nodes: 候选的主节点

相关文章

  • 1.1-1.2 搭建ES集群 ★★★

    考点 在满足约束条件下部署和启动ES集群 在满族约束条件下配置节点 启动参数 ./bin/elasticsearc...

  • es 5.5.3集群环境搭建

    es 5.5.3集群环境搭建 前提配置 Java version 1.8.0_131+ ES-KIBANA-LOG...

  • elasticsearch5.x集群HA原理(shards、re

    最近在搭建es5.2的高可用集群,在这个过程中加深了对es的原理理解,基本分为四个阶段es单机—>es集群(多台机...

  • elasticsearch8.4.3集群部署

    一、搭建es集群 1、前置操作 如果已有单节点es,想要将其转换升级为集群,必须要删除/data下的node数据,...

  • elk日志搭建

    项目结构 springboot + logback + filebeat + elk 1.安装es,最好集群,搭建...

  • ES 集群搭建

    [TOC] 一、简介 二、集群节点规划 2.1 部署版本说明 ES 版本:7.1.0Kibana: 7.1.0Lo...

  • ES集群搭建

    一、集群搭建 1.前置操作 若克隆已有的es虚拟机,一定要清空一下文件: 2.配置集群,修改elasticsear...

  • 搭建ES集群

    搭建环境 ElasticSearch cluster 实验环境 6台VM, RHEL 7.6。角色分配如下 mas...

  • ES集群搭建

    三台服务器IP x.x.x.226java版本:openjdk version "1.8.0_191"(命令 ja...

  • 搭建es集群

    选择两台服务器搭建最简易集群 cluster01 192.168.0.132 cluster02 19...

网友评论

      本文标题:1.1-1.2 搭建ES集群 ★★★

      本文链接:https://www.haomeiwen.com/subject/joukzhtx.html