alibaba / cobar

a proxy for sharding databases and tables
Apache License 2.0
3.21k stars 1.22k forks source link

rule的路由函数有详细说明吗? #22

Closed aeroyu closed 10 years ago

aeroyu commented 10 years ago

求下文档

aeroyu commented 10 years ago

能否支持以下的情景 一开始使用4个分片,后面需要扩容时,再加4个分片,那么原来的路由不改的话,还会按8个分片平均分,能否再按id区域进行不同的分片,如0~1000000 在 1-4分片, 1000001-2000000 在5-8分片这样

fishwasser commented 10 years ago

同求,没有详细的介绍文档? 谢谢

fishwasser commented 10 years ago

还有怎么扩容的?

evenX86 commented 10 years ago

可以参考下这篇文章 http://blog.csdn.net/cqlf__/article/details/38116009

hexianmao commented 10 years ago

https://github.com/alibaba/cobar/tree/master/doc 看这里的部分信息是否能帮到你

hexianmao commented 10 years ago

可以看一下https://github.com/alibaba/cobar/tree/master/doc 下的Cobar_rule - Alibaba Open Sesame.pdf