适用版本
OAT 各个版本
问题现象
通过 OAT 添加并初始化服务器时在 precheck 或 precheck_remote 这一步遇到报错。
[2023-02-20 11:35:23,483] {precheck_remote_operator.py:77} INFO - ### SUMMARY OF ISSUES IN PRE-CHECK ###[2023-02-20 11:35:23,483] {precheck_remote_operator.py:77} INFO - check total MEM: 125 GB < 128 GB ... EXPECT >= 128 GB ... FAIL [2023-02-20 11:35:23,483] {precheck_remote_operator.py:77} INFO - TIPS: replace another machine with more MEM[2023-02-20 11:35:23,483] {precheck_remote_operator.py:77} INFO - check /data/log1 avail disk usage 466 GB < MEM * 4 (502 GB) ... EXPECT > MEM * 3 (377 GB) in test and >= MEM * 4 (502 GB) in prod ... WARN [2023-02-20 11:35:23,483] {precheck_remote_operator.py:77} INFO - TIPS: expand disk of /data/log1, must > MEM * 3 (377 GB) in test and >= MEM * 4 (502 GB) in prod[2023-02-20 11:35:23,489] {precheck_remote_operator.py:81} INFO - Command exited with return code 1[2023-02-20 11:35:23,497] {taskinstance.py:1501} ERROR - Task failed with exceptionTraceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/airflow/models/taskinstance.py", line 1157, in _run_raw_task self._prepare_and_execute_task_with_callbacks(context, task) File "/usr/local/lib/python3.6/site-packages/airflow/models/taskinstance.py", line 1331, in _prepare_and_execute_task_with_callbacks result = self._execute_task(context, task_copy) File "/usr/local/lib/python3.6/site-packages/airflow/models/taskinstance.py", line 1361, in _execute_task result = task_copy.execute(context=context) File "/oat/task_engine/plugins/operators/precheck_remote_operator.py", line 85, in execute raise AirflowException("Bash command failed")airflow.exceptions.AirflowException: Bash command failed[2023-02-20 11:35:23,499] {taskinstance.py:1551} INFO - Marking task as FAILED. dag_id=init_server, task_id=precheck_remote, execution_date=20230220T033444, start_date=20230220T033518, end_date=20230220T033523[2023-02-20 11:35:23,521] {local_task_job.py:149} INFO - Task exited with return code 1
问题原因
通过 OAT 添加并初始化 OceanBase 服务器时,生产环境要求服务器硬件不低于以下配置:32 核 CPU、128GB 内存,日志盘要求空闲容量至少是内存的 3~4 倍(测试环境要求是内存大小的 3 倍及以上,正式生产环境要求是内存大小的 4 倍及以上),当服务器硬件配置不满足该要求时,就会产生上述报错。
解决方法
如果只是测试环境,可以暂时先忽略该报错,将失败的这一步手工标记为成功即可。
如果是正式生产环境,强烈建议调整服务器硬件配置以满足需求或者更换配置更高的服务器来安装 OceanBase 数据库。