Forum: Ruby on Rails mysql_replication_adapter for Rails 2.2 available

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3e50edec642d6b3ed1dec90c7b91a25c?d=identicon&s=25 chris johnson (Guest)
on 2009-02-20 00:30
(Received via mailing list)
Hi there.

We use the mysql_replication_adapter gem for our Rails app (1 master,
4 slaves).  It was incompatible with Rails 2.2, so I updated it and
put it on github to share.  If you have a database cluster and aren't
using mysql_replication_adapter, what are you using?

Read about the update here:
http://www.foundchris.com/2009/02/12/rails-plugin-...

Hope this helps someone.
-Chris
A91bd6cef23eb3516245a092e196c4da?d=identicon&s=25 Maurício Linhares (mauricio)
on 2009-02-20 03:02
(Received via mailing list)
Hi Chris,

I rolled my own solution after Masochism stopped working, much like
what you did, but with only one slave config, sharing between slaves
would be done by using a round-robin dns update.

Also, does it really needs to be done MySQL specific? Your database
adapter could just use the "mysql_connection" method to create a
connection instead of using database specific code.

-
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)
3e50edec642d6b3ed1dec90c7b91a25c?d=identicon&s=25 ujohnc00 (Guest)
on 2009-03-06 08:47
(Received via mailing list)
Hi Mauricio.

Thanks for your reply.  I only needed a mysql adapter.

Feel free to fork the repos to work on abstracting it, and I'll gladly
accept pull requests.

-Chris

On Feb 19, 6:02 pm, Maurício Linhares <mauricio.linha...@gmail.com>
This topic is locked and can not be replied to.