Re: [Mongrel] mongrel thread safety and global variables

2006-09-01 Thread Luis Lavena
On 9/1/06, hemant <[EMAIL PROTECTED]> wrote: > > We initially chose UNIXSocket over TCPSockets, because of performance > reasons. > > As it turns out, its not so scalabale..so we may scrap it. Ok, is your UNIXServer implemented in a multithread fashion? (so it could hadle multiple clients to conne

[Mongrel] Another site running mongrel went live

2006-09-01 Thread kigsteronline
Wanted to throw out there that we just launched our Rails application running on Apache 2.2/Mongrel. We've been working on it for a few months and it's finally up and running - check out http://www.blurb.com/ Blurb allows people to create, publish and sell professionally looking books online

Re: [Mongrel] mongrel thread safety and global variables

2006-09-01 Thread hemant
We initially chose UNIXSocket over TCPSockets, because of performance reasons.   As it turns out, its not so scalabale..so we may scrap it.  On 9/2/06, Luis Lavena <[EMAIL PROTECTED]> wrote: On 9/1/06, hemant <[EMAIL PROTECTED]> wrote:[snip] > So, can't be a issue with my ConnectionClass, right?>>

Re: [Mongrel] mongrel thread safety and global variables

2006-09-01 Thread Luis Lavena
On 9/1/06, hemant <[EMAIL PROTECTED]> wrote: [snip] > So, can't be a issue with my ConnectionClass, right? > > Basically this UNIXSocket that i connect(sorry for confusion, its actually a > UNIXSocket ) , is a proxy between actual data vending servers and rails.It > serves multiple clients(not only

Re: [Mongrel] mongrel thread safety and global variables

2006-09-01 Thread hemant
Well, Mongrel locks Rails with a Sync (Mutex caused leaks on someplatforms) so there should be only one user of your global variable at any one time.  Also, the threads aren't using your global after therequest is finished and the lock is released since rails is donedispatching.But, if you're runni

Re: [Mongrel] Application performance

2006-09-01 Thread Zed Shaw
On Fri, 2006-09-01 at 12:54 +0100, Tim Perrett wrote: > Hey all > > Im working on improving the speed of my application. Ive taken on board > everything that has been said on this forum so far, im using httperf to > benchmark and try to improve performance. However, I have some question > marks o

Re: [Mongrel] mongrel thread safety and global variables

2006-09-01 Thread Zed Shaw
On Fri, 2006-09-01 at 17:36 +0530, hemant wrote: > > In environment.rb file, I initialize a connection to some data vending > servers, through TCP sockets. > > As i know, mongrel serves requests on new threads, so what happens to > this global variable that is shared among the threads.Is there

Re: [Mongrel] Making Mongrel play well with Monit

2006-09-01 Thread Zed Shaw
On Fri, 2006-09-01 at 19:54 +0530, Vishnu Gopal wrote: > Hi! > > I'm aware this is a more 'monit question', but Zed had suggested on > the list sometime back that we do monitoring this way. It's definitely your path, but you can get around it by simply running the mongrel_rails script with ruby

Re: [Mongrel] Setup with Apache 2.2 proxy balancer : timeout during uploads

2006-09-01 Thread Zed Shaw
On Fri, 2006-09-01 at 14:42 +0200, Philippe Jayet wrote: > > Yes, Mongrel processes the full request, including uploaded body before > > calling rails (and locking it). If the request is large then it also > > streams the result to a tmpfile in order to not use up ram. > > You're doing an amazing

Re: [Mongrel] Mongrel without rails

2006-09-01 Thread Matt Pelletier
Hi Jim, On Sep 1, 2006, at 5:58 PM, Jim Hogue wrote: > Can I run mongrel without rails? > Yes, since it's just Ruby you can run any Ruby code. Depending on what you're doing you can write a handler to have Mongrel load your app and send it the request. It runs with Og+Nitro and Camping in

[Mongrel] Mongrel without rails

2006-09-01 Thread Jim Hogue
Can I run mongrel without rails? - Jim ___ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Configuring Mongrel logging

2006-09-01 Thread Zed Shaw
On Fri, 2006-09-01 at 10:53 +0100, Paul Butcher wrote: > Is there any way to configure Mongrel's logging? Specifically, I'd like to > get it to output to syslog. Our Rails apps already do this (via > SyslogLogger) - is there any way to persuade Mongrel to do the same? No, sorry Paul. Mongrel's lo

Re: [Mongrel] Application performance

2006-09-01 Thread Ezra Zygmuntowicz
On Sep 1, 2006, at 8:58 AM, Ezra Zygmuntowicz wrote: > HI~ > > On Sep 1, 2006, at 7:07 AM, Kirk Haines wrote: > >> On 9/1/06, Tim Perrett <[EMAIL PROTECTED]> wrote: >> >>> If im needing to boost performance how might one go about doing it? >> >> 35-38/second can move a lot of traffic, as has been

Re: [Mongrel] Application performance

2006-09-01 Thread Ezra Zygmuntowicz
HI~ On Sep 1, 2006, at 7:07 AM, Kirk Haines wrote: > On 9/1/06, Tim Perrett <[EMAIL PROTECTED]> wrote: > >> If im needing to boost performance how might one go about doing it? > > 35-38/second can move a lot of traffic, as has been mentioned, so long > as it's 35-38/second for your dynamic traffi

Re: [Mongrel] Making Mongrel play well with Monit

2006-09-01 Thread Joshua Sierles
We're using monit successfully with mongrel, just as you have it configured here. The only different is that we specify the document root explicitly with the -r option to mongrel_start (-r /home/app/public ). Perhaps when running from the command ilne, you did so from the root directory. Josh On

[Mongrel] Making Mongrel play well with Monit

2006-09-01 Thread Vishnu Gopal
Hi!I run a mongrel cluster with 6 mongrels in it. I want to monitor them individually for process hangs (and then restart them) and this is the solution I came up with:Here's my configuration file for monit (/usr/local/etc/monitrc): [snipped relevant bits]--#check lighttpd process check process

Re: [Mongrel] Application performance

2006-09-01 Thread Kirk Haines
On 9/1/06, Tim Perrett <[EMAIL PROTECTED]> wrote: > If im needing to boost performance how might one go about doing it? 35-38/second can move a lot of traffic, as has been mentioned, so long as it's 35-38/second for your dynamic traffic, and your static files are much, much faster. However, when

Re: [Mongrel] mongrel thread safety and global variables

2006-09-01 Thread hemant
Will, mutex solve the problem?I tried using them and seem to work.But as i said, the problem occurs very less often.There is another problem, if i use Mutex to synchronize, calls, then some calls would take long and time and some would return immediately.so, a request that takes long time, will bl

Re: [Mongrel] Application performance

2006-09-01 Thread Tim Perrett
Ok that's useful!! Its less the bandwidth im worried about (however you do make a very very good point regarding that!) - im more concerned that the application seems really really quick on my internal network, but is quite slow when accessed internally. I just made the assumption that the more req

Re: [Mongrel] mongrel thread safety and global variables

2006-09-01 Thread hemant
On 9/1/06, hemant <[EMAIL PROTECTED]> wrote: In environment.rb file, I initialize a connection to some data vending servers, through TCP sockets.The connection object is global and hence the code: #environment.rb$generic_connection = ConnectionClass.instance (singleton class) $generic_connection.

Re: [Mongrel] Setup with Apache 2.2 proxy balancer : timeout during uploads

2006-09-01 Thread Philippe Jayet
> Yes, Mongrel processes the full request, including uploaded body before > calling rails (and locking it). If the request is large then it also > streams the result to a tmpfile in order to not use up ram. You're doing an amazing job Zed :) > The response Rails generates is placed into an inte

Re: [Mongrel] Application performance

2006-09-01 Thread Jason A. Hoffman
Actually that math is a bit off because it's equating a "page view"/ sec to a request/sec. A page might request 20 things. - Jason On Sep 1, 2006, at 5:08 AM, Jason A. Hoffman wrote: > On Sep 1, 2006, at 4:54 AM, Tim Perrett wrote: >> Hey all >> >> Im working on improving the speed of my applica

Re: [Mongrel] Application performance

2006-09-01 Thread Jason A. Hoffman
On Sep 1, 2006, at 4:54 AM, Tim Perrett wrote: > Hey all > > Im working on improving the speed of my application. Ive taken on > board > everything that has been said on this forum so far, im using > httperf to > benchmark and try to improve performance. However, I have some > question > mar

[Mongrel] mongrel thread safety and global variables

2006-09-01 Thread hemant
In environment.rb file, I initialize a connection to some data vending servers, through TCP sockets.The connection object is global and hence the code: #environment.rb$generic_connection = ConnectionClass.instance (singleton class) $generic_connection.connect_me( this call will make the connection)

[Mongrel] Application performance

2006-09-01 Thread Tim Perrett
Hey all Im working on improving the speed of my application. Ive taken on board everything that has been said on this forum so far, im using httperf to benchmark and try to improve performance. However, I have some question marks over how best to go about improving performance in certain areas...

[Mongrel] Configuring Mongrel logging

2006-09-01 Thread Paul Butcher
Is there any way to configure Mongrel's logging? Specifically, I'd like to get it to output to syslog. Our Rails apps already do this (via SyslogLogger) - is there any way to persuade Mongrel to do the same? Thanks! -- paul.butcher->msgCount++ Snetterton, Castle Combe, Cadwell Park... Who says I

Re: [Mongrel] Rails Deployment Book

2006-09-01 Thread philippe lachaise
>> What you need to know from a tool is: could I start form zero? I mean,>> with small things?>> It could be adaptable/scalable for greater things later during the process?>> Maybe 1 year from now, it could be maintainable? could be bug fixed? >> feature enhanced?This entirely describes my own expe