首页
找靠谱产品
找解决方案
找靠谱公司
找案例
找对的人
专家智库
悬赏任务
SAAS
ToB门户
了解全球最新的ToB事件
论坛
潜水/灌水快乐,沉淀知识,认识更多同行。
ToB圈子
加入IT圈,遇到更多同好之人。
微博
Follow
记录
Doing
博客
Blog
文库
业界最专业的IT文库,上传资料也可以赚钱
下载
分享
Share
排行榜
Ranklist
相册
Album
应用中心
qidao123.com ToB IT社区-企服评测·应用市场
»
论坛
›
数据库
›
Oracle
›
Centos 7 部署 openGauss 3.1.0 级联备库集群及集群缩容 ...
返回列表
发新帖
Centos 7 部署 openGauss 3.1.0 级联备库集群及集群缩容删除节点-运维指南
[复制链接]
发表于 2022-11-18 19:33:45
|
显示全部楼层
|
阅读模式
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要
登录
才可以下载或查看,没有账号?
立即注册
×
一、安装环境设置
1.1 硬件环境
名称最低
配置
建议
配置
测试
配置
服务器
数量3略略硬盘* 至少1GB用于安装openGauss的应用程序。
* 每个主机需大约300MB用于元数据
存储
。
* 预留70%以上的磁盘剩余空间用于数据
存储
。略略内存>=2G略略CPU
功能
调试最小1×8核,2.0GHz略略网络300兆以上以太网,生产建议采用bond略略
1.2 软件环境
软件类型信息描述操作系统Centos 7.6Linux文件系统剩余inode个数 > 15亿(推荐)工具bzip2Python* oepnEuler:支持Python 3.7.x
* Centos 7.6: 支持Python 3.6.x
数据库
版本
opengauss 3.1.0 企业版
数据库
软件包名称openGauss-3.1.0-CentOS-64bit-all.tar.gz
1.2.1 安装python
-- root用户【所有节点】
# 本次选择安装python 3.6.5
版本
mkdir /usr/local/python3
cd /usr/local/python3
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
tar -zxf Python-3.6.5.tgz
cd /usr/local/python3/Python-3.6.5
./configure --prefix=/usr/local/python3 --enable-shared CFLAGS=-fPIC
make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
-- 设置环境变量
cat >>/etc/profile<<EOF
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/python3/bin
EOF
source /etc/profile
echo "/usr/local/python3/lib/" >> /etc/ld.so.conf
ldconfig
-- 如遇如下报错
python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
可执行 cp /usr/local/python3/Python-3.6.5/libpython3.6m.so.1.0 /usr/lib64/
复制
代码
1.2.2 安装软件依赖包
1.2.2.1 软件依赖要求
所需软件建议
版本
libaio-devel建议版本:0.3.109-13flex要求版本:2.5.31 以上bison建议版本:2.7-4ncurses-devel建议版本:5.9-13.20130511glibc-devel建议版本:2.17-111patch建议版本:2.7.1-10redhat-lsb-core建议版本:4.1readline-devel建议版本 :7.0-13libnsl(openeuler+x86环境中)建议版本 :2.28-36
1.2.2.2 安装软件依赖包
-- root用户 【所有节点】
-- 安装依赖包
yum install -y libaio-devel flex bison ncurses-devel glibc-devel patch redhat-lsb-core readline-devel zlib readline gcc perl-ExtUtils-Embed readline-devel zlib-devel expect
-- 检查是否已安装
rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep -E "libaio-devel|flex|bison|ncurses-devel|glibc-devel|patch|redhat-lsb-core|readline-devel|zlib|readline|gcc|python|python-devel|perl-ExtUtils-Embed|readline-devel|zlib-devel|expect"
复制
代码
1.2.3 操作系统配置
1.2.3.1 修改操作系统参数
-- root用户 【所有节点】
-- 添加如下参数:
cat>>/etc/sysctl.conf <<EOF
net.ipv4.tcp_fin_timeout=60
net.ipv4.tcp_retries1=5
net.ipv4.tcp_syn_retries=5
net.sctp.path_max_retrans=10
net.sctp.max_init_retransmits=10
EOF
-- 生效参数
sysctl -p
## 执行sysctl -p 时有如下报错,此处选择忽略
sysctl: cannot stat /proc/sys/net/sctp/path_max_retrans: No such file or directory
sysctl: cannot stat /proc/sys/net/sctp/max_init_retransmits: No such file or directory
# 预安装过程根据系统参数配置会有相应提示,请按照提示对应系统参数
复制
代码
1.2.3.3 关闭透明大页
-- root用户 【所有节点】
echo "* soft stack 3072" >> /etc/security/limits.conf
echo "* hard stack 3072" >> /etc/security/limits.conf
echo "* soft nofile 1000000" >> /etc/security/limits.conf
echo "* hard nofile 1000000" >> /etc/security/limits.conf
echo "* soft nproc unlimited" >> /etc/security/limits.d/90-nproc.conf
tail -n 4 /etc/security/limits.conf
tail -n 1 /etc/security/limits.d/90-nproc.conf
复制代码
1.2.3.4 关闭
防火墙
-- root用户 【所有节点】
-- openGauss默认关闭使用transparent_hugepage服务,并将关闭命令写入操作系统启动文件
cat >> /etc/rc.d/rc.local<<EOF
if test -f /sys/kernel/mm/transparent_hugepage/enabled;
then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
if test -f /sys/kernel/mm/transparent_hugepage/defrag;
then
echo never > /sys/kernel/mm/transparent_hugepage/defrag
fi
EOF
-- 查看是否关闭:
cat /sys/kernel/mm/transparent_hugepage/enabled
cat /sys/kernel/mm/transparent_hugepage/defrag
复制代码
1.2.3.5 关闭selinux
-- root用户 【所有节点】
systemctl disable firewalld.service
systemctl stop firewalld.service
复制代码
1.2.3.6 修改字符集
-- root用户 【所有节点】
sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config
-- 检查
cat /etc/selinux/config | grep disabled
复制代码
1.2.3.12 修改DNS配置
[code]-- root用户 【所有节点】-- 节点一cat >>/etc/resolv.conf/etc/resolv.conf/etc/resolv.conf/etc/resolv.conf /etc/hosts
回复
使用道具
举报
返回列表
浏览过的版块
开源技术
数据仓库与分析
IOS
物联网
DevOps与敏捷开发
Java
人工智能
SQL-Server
容器及微服务
用多少眼泪才能让你相信
+ 我要发帖
登录后关闭弹窗
登录参与点评抽奖 加入IT实名职场社区
去登录
微信订阅号
微信服务号
微信客服(加群)
H5
小程序
快速回复
返回顶部
返回列表