OCP在创建租户的时候屏蔽了resource unit、resource pool创建的细节,OCP创建租户对应的资源池是每个zone有一个资源池, 相对一个租户有1个资源池这种方式,有什么优势吗?纯方案层面的讨论
OCP创建租户对应的资源池是每个zone有一个资源池的方式:
create resource unit config_tenant_obtest_zone2_S1_kiq max_cpu=2, max_memory=‘1G’, max_iops=10000, max_disk_size=‘10G’, max_session_num=1000000;
create resource unit config_tenant_obtest_zone1_S1_wfr max_cpu=2, max_memory=‘1G’, max_iops=10000, max_disk_size=‘10G’, max_session_num=1000000;
create resource unit config_tenant_obtest_zone3_S1_evo max_cpu=2, max_memory=‘1G’, max_iops=10000, max_disk_size=‘10G’, max_session_num=1000000;
create resource pool pool_tenant_obtest_zone1_wfr unit=config_tenant_obtest_zone2_S1_kiq, unit_num=1, ZONE_LIST=(‘zone1’);
create resource pool pool_tenant_obtest_zone3_evo unit=config_tenant_obtest_zone1_S1_wfr, unit_num=1, ZONE_LIST=(‘zone2’);
create resource pool pool_tenant_obtest_zone2_kiq unit=config_tenant_obtest_zone3_S1_evo, unit_num=1, ZONE_LIST=(‘zone3’);
create tenant obcp_t1 charset=‘utf8mb4’, zone_list=(‘zone1,zone2,zone3’),primary_zone=‘zone1,zone2,zone3’, resource_pool_list=(‘pool_tenant_obtest_zone1_wfr’,‘pool_tenant_obtest_zone3_evo’,‘pool_tenant_obtest_zone2_kiq’) set ob_tcp_invited_nodes=’%’;
一个租户仅有1个资源池的方式:
create resource unit ut_5c2g max_cpu=2, max_memory=‘1G’, max_iops=10000,
max_disk_size=‘10G’, max_session_num=1000000;
create resource pool pl_5c2g unit=ut_2c2g, unit_num=1;
create tenant obcp_t1 charset=‘utf8mb4’, zone_list=(‘zone1,zone2,zone3’),
primary_zone=‘zone1,zone2,zone3’, resource_pool_list=(‘pl_5c2g’) set
ob_tcp_invited_nodes=’%’;