Rails 关于 rails 3 读写分离 otcopus

shangrenzhidao · July 29, 2014 · 1759 hits

不知大家有没有用过 otcopus 这个 gem 配置 rails 程序的读写分离,官方文档https://github.com/tchandy/octopus/wiki/config-file 中要求新建一个 shards.yml 进行配置,我按其要求配置,可是怎么都是从主库里面读取的数据,是不是我的配置有问题?需不需要在 dabatase.yml 中引用这个文件?官方文档中好像并没有这么说明。求教,谢谢大家。

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.