On 5/23/06, Walter <[EMAIL PROTECTED]> wrote:
[...]
> I realize that mongrel is not thread safe, I was hoping mongrel might spawn a 
> few processes and serve them in the background to emulate what I wanted.
>

Rails is not thread-safe.

> I have looked at the backgrounddrb plug-in and will use that for things like 
> statement generation, and very long running tasks.  The problem is I am 
> accessing a system that I cannot change (for the time being) and the length 
> of time for the queries are directly proportional to how much data each 
> customer may have.  So most queries are fast enough, but some customers have 
> so much data that they bog things down.  I would have to make everything a 
> remote call, more work and overhead than I am looking for.
>
> On top of that I cannot change the indexes or table structure (we are 
> accessing tables that another program accesses).  At some point we will build 
> a new system from scratch to address these issues, but for the time being I 
> am stuck with what I have.
>

The idea of the BackgroundDrb is that you perform these task
out-of-bound from the webserver/dispatcher/rails, so it could handle
other request and also you could "query" the status of the bulk
process.

No matter how many processors you spawn (even if the -n param was
available in win32 service)... 1 Controller call would hang the whole
server until it return, thats why the suggestion of using
BackgroundDRb.

If your lengthly process need parse or perform actions using the
model, I will comment that something isn't in the right place.

Using Apache or Lighttpd will require you use FCGI, which also mean
that you will need to "synchronize" your transactions to the DB to
avoid corrupt data.

> Anyone know of a simple win32 web proxy that can deal with multiple mongrel 
> servers?

Couldn't find one, thats why start working on it, but still a lot of work to do.


Regards,

-- 
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi

_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to