[Mongrel] Multi apps in one Mongrel instance

snacktime snacktime at gmail.com
Fri Aug 25 17:30:18 EDT 2006


On 8/25/06, Ezra Zygmuntowicz <ezmobius at gmail.com> wrote:

>
>         This is certainly an interesting idea but the problem I see with
> this is ActiveRecord's database connection hates fork. Most of the
> time if you use fork in a rails app you will immediately get the
> "Mysql server has gone away" error. THere is a workaround you can use
> but its not pretty.

Not that it would be worth the effort, but you could create a process
pool and load rails in the children instead of the parent.

Chris


More information about the Mongrel-users mailing list