Walter
2006-May-23 15:27 UTC
[Mongrel] Can Win32 service more than one rails request at atime?
> On 5/23/06, Walter <Walter at mwsewall.com> 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. >Yes, that?s what I meant. <snip>> > 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. >Yes I am familiar with it, I was just trying to avoid it for simple tasks, like getting a list of all invoices for a customer. Yes this can take 6+ seconds to get.> 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. >Ahh I see.> 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. >The problem is we are using an application that is 20+ years old, and was never intended to be accessed via and ODBC driver (luckily we found one, it may be buggy but it works). Some parts of the company need to use the original application, other parts we access through our own data-access system (similar to AR but simpler). We currently have an internal web-application that piggy backs on to the original DB, but need to change some significant things (will add new tables), and the future plans are to rewrite it so it no longer uses the original DB. This would be done subsection by subsection and converted to Rails, so we are starting now. We have all of the data access working fine, its just some transactions are slow for a subset of the data being accessed. The database itself is non transactional file based system. The app is written in Dataflex which is/was a sort of 4GL RAD builder that had its own DB built in.> > 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. >Very nice. Thanks, Walt -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006
Will_Green at URSCorp.com
2006-May-23 16:23 UTC
[Mongrel] Can Win32 service more than one rails request at atime?
> Anyone know of a simple win32 web proxy that can deal with multiple > mongrel servers?Apache 2.2 with mod_proxy_balancer. I know this link has appeared on this list before, but here it is again: Scaling Rails with Apache 2.2, mod_proxy_balancer and Mongrel http://blog.innerewut.de/articles/2006/04/21/scaling-rails-with-apache-2-2-mod_proxy_balancer-and-mongrel =Will Green Web Developer & IT Coordinator, URS Creative Imaging http://www.urscreativeimaging.com/ 7650 West Courtney Campbell Causeway Suite 700 Tampa, FL 33607 813.675.6849 (direct) 813.286.1711 (main) This e-mail and any attachments are confidential. If you receive this message in error or are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy the e-mail and any attachments or copies.
Kevin Williams
2006-May-23 16:59 UTC
[Mongrel] Can Win32 service more than one rails request at atime?
Yes, there is a 2.2.2 binary build for win32 up on the Apache web site. On 5/23/06, Will_Green at urscorp.com <Will_Green at urscorp.com> wrote:> > Anyone know of a simple win32 web proxy that can deal with multiple> > mongrel servers?>> Apache 2.2 with mod_proxy_balancer.>> I know this link has appeared on this list before, but here it is again:>> Scaling Rails with Apache 2.2, mod_proxy_balancer and Mongrel> http://blog.innerewut.de/articles/2006/04/21/scaling-rails-with-apache-2-2-mod_proxy_balancer-and-mongrel>> ==> Will Green> Web Developer & IT Coordinator, URS Creative Imaging> http://www.urscreativeimaging.com/> 7650 West Courtney Campbell Causeway> Suite 700> Tampa, FL 33607> 813.675.6849 (direct)> 813.286.1711 (main)>>> This e-mail and any attachments are confidential. If you receive this> message in error or are not the intended recipient, you should not retain,> distribute, disclose or use any of this information and you should destroy> the e-mail and any attachments or copies.>>>>>>> _______________________________________________> Mongrel-users mailing list> Mongrel-users at rubyforge.org> http://rubyforge.org/mailman/listinfo/mongrel-users> -- Cheers, Kevin