How to shard only specific tables using vitess

混江龙づ霸主 提交于 2020-01-24 15:04:42

问题


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. Please help.

Thanks!


回答1:


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.



来源:https://stackoverflow.com/questions/47022988/how-to-shard-only-specific-tables-using-vitess

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!