ob tenant

 

 

CREATE RESOURCE UNIT unit1 MAX_CPU 1, MAX_MEMORY '1G', MAX_IOPS 128,MAX_DISK_SIZE '10G', MAX_SESSION_NUM 64, MIN_CPU=1, MIN_MEMORY='1G', MIN_IOPS=128;
CREATE RESOURCE POOL pool1 unit='unit1', unit_num=1, zone_list=('zone1','zone2','zone3');


create tenant test_mysql_tenant resource_pool_list=('pool1'), primary_zone='RANDOM',comment 'mysql tenant/instance' set ob_tcp_invited_nodes='%', ob_compatibility_mode='mysql';

 

obclient -h 127.0.0.1 -uroot@test_mysql_tenant#cluster_1 -P3306 -pWjb123 -c -A oceanbase

 

 

https://open.oceanbase.com/blog/10900188?currentPage=1

https://open.oceanbase.com/blog/10900189?currentPage=1

posted @ 2022-01-26 16:05  sam_wang10  阅读(31)  评论(0编辑  收藏  举报