简体   繁体   English

如何使用vitess仅对特定表进行分片

[英]How to shard only specific tables using vitess

I have created an unsharded keyspace with three tables.我用三个表创建了一个未分片的键空间。 Now I would like to shard my keyspace for first two tables but don't want to shard the third table.现在我想为前两个表分片我的键空间,但不想分片第三个表。

How can this be done?如何才能做到这一点? Vitess documentation does not contain any info or example regarding this. Vitess 文档不包含任何关于此的信息或示例。 Please help.请帮忙。

Thanks!谢谢!

Vertical sharding in vitess is similar to horizontal sharding. Vitess 中的垂直分片类似于水平分片。 You should use the vtworker VerticalSplitClone command instead of SplitClone.您应该使用 vtworker VerticalSplitClone 命令而不是 SplitClone。

We plan to fix the documentation to explain this, hopefully soon.我们计划修复文档来解释这一点,希望很快。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM