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-mysql_replication_adapter-for-rails-22/ Hope this helps someone. -Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Maurício Linhares
2009-Feb-20 02:02 UTC
Re: mysql_replication_adapter for Rails 2.2 available
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) On Thu, Feb 19, 2009 at 8:29 PM, chris johnson <findchris-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > 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-mysql_replication_adapter-for-rails-22/ > > Hope this helps someone. > -Chris > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 Linhareshttp://alinhavado.wordpress.com/(pt-br) |http://blog.codevader.com/(en) > > On Thu, Feb 19, 2009 at 8:29 PM, chris johnson <findch...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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-mysql_replication_a... > > > Hope this helps someone. > > -Chris > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---