实时警报通知:微信告警通知的重要性解析
1070
2022-10-04
0061.O OB集群启动失败fs.aio-max-nr must not be less than-open files nu
oceanbase集群部署成功后,启动集群失败,报错Cluster bootstrap x、Cluster init failed,并同时带有两个WARN。
[root@oceanbase ~]# obd cluster start rundbaGet local repositories and plugins ok[WARN] (192.168.80.20) fs.aio-max-nr must not be less than 1048576 (Current value: 65536)[WARN] (192.168.80.20) open files number must not be less than 655350 (Current value: 1024)Start observer okobserver program health check okConnect to observer okInitialize clusterCluster bootstrap xCluster init failed
相关参数未设置。
消除告警,修改配置文件,增加参数。
1)sysctl.conf添加内容
echo "fs.aio-max-nr=1048576" >> /etc/sysctl.conf
配置生效
sysctl -p
2) open files参数修改
vim etc/security/limits.conf #添加内容* soft nofile 655350* hard nofile 655350
退出会话,重新登录,再次运行即可。
open files限制已生效。
[root@oceanbase ~]# ulimit -n655350
[oceanbase@oceanbase ~]$ obd cluster start rundbaGet local repositories and plugins okStart observer okobserver program health check okConnect to observer okInitialize clusterCluster bootstrap okWait for observer init ok+---------------------------------------------+| observer |+-----------+---------+------+-------+--------+| ip | version | port | zone | status |+-----------+---------+------+-------+--------+| 127.0.0.1 | 3.1.0 | 2881 | zone1 | active |+-----------+---------+------+-------+--------+rundba running
5. 相关优化参数
本次未涉及。
发表评论
暂时没有评论,来抢沙发吧~