如何使用vitess仅对特定表进行分片 [英] How to shard only specific tables using vitess

查看:45
本文介绍了如何使用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.

这是怎么做到的?Vitess 文档不包含任何关于此的信息或示例.请帮忙.

How can this be done? Vitess documentation does not contain any info or example regarding this. Please help.

谢谢!

推荐答案

vitess 中的垂直分片类似于水平分片.您应该使用 vtworker VerticalSplitClone 命令而不是 SplitClone.

Vertical sharding in vitess is similar to horizontal sharding. You should use the vtworker VerticalSplitClone command instead of SplitClone.

我们计划修复文档以解释这一点,希望很快.

We plan to fix the documentation to explain this, hopefully soon.

这篇关于如何使用vitess仅对特定表进行分片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆