启动 ob 集群时,如何跳过系统参数检查

【 使用环境 】生产环境 or 测试环境
测试环境
【 OB or 其他组件 】
OB
【 使用版本 】
4.5.0.0
【问题描述】清晰明确描述问题
使用命令 obd cluster start obcluter 启动集群后,终端输出日志信息如下:

[WARN] OBD-1011: (10.252.243.162) The recommended value of fs.aio-max-nr is 1048576 (Current value: 65536)
[ERROR] OBD-1007: (10.252.243.162) The value of the ulimit parameter “open files” must not be less than 20000 (Current value: 1024), Please execute echo -e "* soft nofile 20000\n* hard nofile 20000" >> /etc/security/limits.d/nofile.conf as root in 10.252.243.162. if it dosen’t work, please check whether UsePAM is yes in /etc/ssh/sshd_config.
[WARN] OBD-1007: (10.252.243.162) The recommended number of stack size is unlimited (Current value: 8192)
[WARN] OBD-1017: (10.252.243.162) The value of the “vm.max_map_count” must be within [327600, 1310720] (Current value: 165530, Recommended value: 655360)
[WARN] OBD-1017: (10.252.243.162) The value of the “vm.overcommit_memory” must be 0 (Current value: 1, Recommended value: 0)
[WARN] OBD-1012: (10.252.243.162) clog and data use the same disk (/mnt/workspace)

我认为 “must be” 要求系统参数必须按照规范设置,否则导致集群不能正常启动,集群当前状态如下:

root@aaa:/mnt/workspace/script# obd cluster display obcluster
Deploy “obcluster” is deployed
Trace ID: 4eb123de-1e83-11f1-a10b-2eb93d22d9d0
If you want to view detailed obd logs, please run: obd display-trace 4eb123de-1e83-11f1-a10b-2eb93d22d9d0

已知某些原因我不能修改 limits.conf 和 sysctl.conf,且我当前只是搭建一个功能验证环境,有什么办法可以让 ob 正常启动吗?
@论坛小助手

2 个赞

yaml参数文件配置production_mode: false试试如果还不行
https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000004475880
使用systemd安装部署试试,obd应该

3 个赞