ERROR 4624 (HY000): machine resource 'zone1' is not enough to hold a new unit

【 使用环境 】测试环境
【 OB or 其他组件 】
【 使用版本 】3.1.5社区版
【问题描述】清晰明确描述问题
【复现路径】问题出现前后相关操作
【问题现象及影响】

【附件】
我在8C16G的机器启了一个本地部署单节点OB,在查询到可以用资源的是以下的情况下,
SELECT a.zone,CONCAT(a.svr_ip,’:’,a.svr_port) observer, cpu_total, (cpu_total-cpu_assigned) cpu_free, ROUND(mem_total/1024/1024/1024) mem_total_gb, ROUND((mem_total-mem_assigned)/1024/1024/1024) mem_free_gb, ROUND(disk_total/1024/1024/1024) disk_total_gb, SUBSTR(a.build_version,1,6) VERSION,usec_to_time(b.start_service_time) start_service_time FROM oceanbase.__all_virtual_server_stat a JOIN oceanbase._all_server b ON (a.svr_ip=b.svr_ip AND a.svr_port=b.svr_port) ORDER BY a.zone, a.svr_ip;
±------±---------------±----------±---------±-------------±------------±--------------±--------±---------------------------+
| zone | observer | cpu_total | cpu_free | mem_total_gb | mem_free_gb | disk_total_gb | VERSION | start_service_time |
±------±---------------±----------±---------±-------------±------------±--------------±--------±---------------------------+
| zone1 | 127.0.0.1:2882 | 8 | 5.5 | 13 | 10 | 300 | 3.1.5
| 2023-07-21 15:22:04.177623 |
±------±---------------±----------±---------±-------------±------------±--------------±--------±---------------------------+
1 row in set (0.009 sec)

我重新用sys租户想创建一个新的租户用来承接测试业务,在创建资源单元unit
CREATE resource unit my_unit_4c8g max_cpu=4, min_cpu=4, max_memory=‘8g’, min_memory=‘8g’, max_iops=10000, min_iops=1000, max_session_num=1000000, max_disk_size=‘150g’;
然后再创建资源池的时候:
CREATE resource pool mysql_pool unit = ‘my_unit_4c8g’, unit_num = 1;
一直报这个错:ERROR 4624 (HY000): machine resource ‘zone1’ is not enough to hold a new unit 这样子的操作,有什么问题?是我的硬件资源不够?还是,
无论我怎样创建资源单元,例如:CREATE resource unit my_unit_4c8g max_cpu=1 min_cpu=1, max_memory=‘1g’, min_memory=‘1g’, max_iops=10000, min_iops=1000, max_session_num=1000000, max_disk_size=‘20g’;
在创建资源池的是否都是报这个错:ERROR 4624 (HY000): machine resource ‘zone1’ is not enough to hold a new unit

启动OB最小的方式是:obd cluster deploy investob -c mini-local-example.yaml

可以看下现在已有的sys租户占用的资源,按提供的文件来看,应该是datafile_size之类的参数给小了,如果要创建租户,需要将这类值调大

SELECT a.zone, concat(a.svr_ip, ':', a.svr_port) AS observer
       , cpu_total, cpu_total - cpu_assigned AS cpu_free
       , round(mem_total / 1024 / 1024 / 1024) AS mem_total_gb
       , round((mem_total - mem_assigned) / 1024 / 1024 / 1024) AS mem_free_gb
       , usec_to_time(b.last_offline_time) AS last_offline_time, usec_to_time(b.start_service_time) AS start_service_time
       , b.status, usec_to_time(b.stop_time) AS stop_time
FROM __all_virtual_server_stat a
       JOIN __all_server b
       ON a.svr_ip = b.svr_ip
              AND a.svr_port = b.svr_port
ORDER BY a.zone, a.svr_ip;

通过上面的SQL可以查看你的机器资源占用