国内优秀网站设计师,wordpress页面多打开空白页,全面的手机网站建设,课程开发公司如果想修改doris#xff08;也就是selectdb数据库#xff09;表的副本数需要首先确定是否分区表#xff0c;当前没有数据字典得知哪个表是分区的#xff0c;只能先show partitions看结果
首先#xff0c;副本数不应该大于be节点数 其次#xff0c;修改期间最好不要跑业务…如果想修改doris也就是selectdb数据库表的副本数需要首先确定是否分区表当前没有数据字典得知哪个表是分区的只能先show partitions看结果
首先副本数不应该大于be节点数 其次修改期间最好不要跑业务
show partitions from test.table1;--如果是普通表 将副本数修改为3
ALTER TABLE test.table1 SET (replication_num 3);--如果是分区表
alter table test.part_table1 set (default.replication_num 3);
alter table test.part_table1 modify partition(*) set (replication_num 3);--确认副本数修改正确
show create table test.part_table1\G --查看内部创建副本过程如果1分钟内多次执行 无输出说明结束了
show proc /cluster_balance/running_tablets;
速度大概是1分钟10G
官方参考 修改属性 补充说明可以指定某个分区为多个副本其他分区为单副本。