Rails 3 and mysql master-slave replications

2019-04-12 02:37发布

Want to set up mysql master-slave replications in rails app.

Are there plugins/db adapters available for Rails 3? Does the Masochism plugin work properly with rails 3?

2条回答
ら.Afraid
2楼-- · 2019-04-12 03:21

Try Octopus, which supports both rails3 and rails2.3: https://github.com/tchandy/octopus

Masochism, DbCharmer, data_fabric et al will probably never be updated for Rails3 since so many ActiveRecord internals have drastically changed.

查看更多
来,给爷笑一个
3楼-- · 2019-04-12 03:28

data_fabric also now claims support for Rails 3.0.7 https://github.com/mperham/data_fabric

and seamless_database_pool has been patched to support Rails 3 (but looks like it hasn't been updated in awhile): http://www.williambharding.com/blog/rails/rails-3-slave-database-options-there-are-two/

查看更多
登录 后发表回答