ES2.2.1集群环境搭建 备忘

本文详细介绍了如何在三个节点上部署Elasticsearch集群的过程,包括软件下载、用户创建、配置文件调整、节点间同步及后台启动等关键步骤。

集群节点:119.120.121

119节点

下载elasticsearch-2.2.1.tar.gz

解压 tar -xzvf elasticsearch-2.2.1.tar.gz

创建es用户:

adduser esuser

passwd esuser

chown -R esuser/usr/elasticsearch-2.2.1

su esuser


vim config/elasticsearch.yml

 cluster.name: esdevtest
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
 node.name: node119
 node.master: true
 node.data: true
 index.number_of_shards: 3
 index.number_of_replicas: 0
 index.translog.flush_threshold_ops:50000
  index.cache.field.max_size: 50000
 index.cache.field.expire: 10m
  index.cache.field.type: soft
  indices.breaker.fielddata.limit: 40%
  indices.fielddata.cache.size:  20%
 indices.breaker.total.limit: 60%
 indices.ttl.interval :10m
 index.refresh_interval: 60s
 bootstrap.mlockall: true
 network.host: 10.20.26.119
 http.port: 9200
 transport.tcp.compress: true
 discovery.zen.ping.multicast.enabled: false
 discovery.zen.ping.unicast.hosts: ["10.20.26.119", "10.20.26.120:9300", "10.20.26.121:9300"]

scp -r 到120,121节点。并都创建esuser赋权


每个节点以esuser启动 ./bin/elasticsearch -Delasticsearch-Des.max-open-files=true -d 后台启动。

查看节点情况:http://10.20.26.119:9200/_cat/nodes?v



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值