[Mongrel] Mongrel cluster with one app and many mysql databases

Alexey Verkhovsky alexey.verkhovsky at gmail.com
Tue Mar 13 08:02:49 EDT 2007

> convince mongrel (or the app) to switch databases on request (maybe with
the rails routing facilities)

10 databases with the same structure but different data? This is doable.
You'd have to hack it yourself, probably by replacing ActiveRecord::
Base.connection with something that will internally hold 10 connections and
switch dynamically.

None of will have anything to do with Mongrel though. Mongrel is not a J2EE
container, it has no notion of database connections.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070313/34d56452/attachment.html 

More information about the Mongrel-users mailing list