elasticsearch8 添加数据节点--hot--warm
基础服务器信息--节点角色规划
10.4.2.101 8C16G64G data-hot client centos8 16C48G(JVM24G)
10.4.2.102 8C16G64G data-hot client centos8 16C48G(JVM24G)
10.4.2.103 8C16G64G data-hot client centos8 16C48G(JVM24G)
10.4.2.104 8C16G64G data-warm centos8 16C48G(JVM24G)
10.4.2.105 8C16G64G data-warm centos8 16C48G(JVM24G)
10.4.2.106 8C16G64G data-warm centos8 16C48G(JVM24G)
10.4.2.107 8C16G64G master centos8 8C16G(JVM8G) 临时data
10.4.2.108 8C16G64G master centos8 8C16G(JVM8G)
10.4.2.109 8C16G64G master centos8 8C16G(JVM8G)
一、基础配置----10.4.2.101-106
基础配置-略
关闭selinux
关闭防火墙自启
修改主机名
hostnamectl set-hostname elasticsearch-secure101
hostnamectl set-hostname elasticsearch-secure102
hostnamectl set-hostname elasticsearch-secure103
基础配置优化
修改/etc/security/limits.conf,做以下配置,*表示所有用户,也可以指定用户elastic
~]# vi /etc/security/limits.conf
* soft nproc 65536
* hard nproc 65536
* soft nofile 65536
* hard nofile 65536
退出bash,重新bash,然后命令 ulimit -Hn 即显示 65536
~]# ulimit -Hn
65536
2、
~]# echo "vm.max_map_count=262144" >>/etc/sysctl.conf
~]# sysctl -p
安装基本工具
yum -y install vim net-tools
时间同步
~]# yum -y install chrony
~]# systemctl restart chronyd
二、添加yum,安装软件,添加阿里云的yum即可
添加dns,然后
~]# rm -rf /etc/yum.repos.d/*
~]# echo "nameserver 119.29.29.29" >/etc/resolv.conf
华为源
~]# curl -o /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-8-reg.repo
[root@localhost yum.repos.d]# ls
bak Ce