[Mongrel] Multiple Processes Spawned from mongrel_rails start ?

2007-02-15 Thread mongrel_users
Hello,

I have mongrel 1.0.1, rails 1.2.2 ruby 1.8.5 running on Centos 4.4.

When I execute the mongrel_rails start -d I see that 3 processes are spawned.  
See below:

[EMAIL PROTECTED] aaa]# mongrel_rails start -d
[EMAIL PROTECTED] aaa]# ps -def |grep mong
root  2743 1  9 07:14 ?00:00:01 /usr/bin/ruby 
/usr/bin/mongrel_rails start -d
root  2744  2743  0 07:14 ?00:00:00 /usr/bin/ruby 
/usr/bin/mongrel_rails start -d
root  2745  2744  0 07:14 ?00:00:00 /usr/bin/ruby 
/usr/bin/mongrel_rails start -d

Is this normal?

When I had mongrel 0.3.13.3, rails 1.1.0, ruby 1.8.4 on rhel 4 only 1 process 
would be spawned.

I realize I changed versions of EVERYTHING so I'm wondering if this is now the 
normal behavior or if something is going wrong.

Regards

___
The FREE service that prevents junk email http://www.mailshell.com
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


[Mongrel] Anyway to Force a start even if the .pid file exists?

2007-02-15 Thread mongrel_users
I'm using monit to restart mongrel processes if they go away.  With mongrel 0.3 
I could issue a start command and the process would start up even if the .pid 
file existed (though a warning would appear).

Now, with mongrel 1.0.1 the warning says I must clear the .pid file and the 
process is not started.  Is there anyway to force it to start without having to 
clear the .pid?

Regards



___
The FREE service that prevents junk email http://www.mailshell.com
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Anyway to Force a start even if the .pid file exists?

2007-02-15 Thread Paul King
Take a look at 
http://rubyforge.org/pipermail/mongrel-users/2007-January/002803.html
- I've been using the version referenced without any problems.

- Paul

On 15/02/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 I'm using monit to restart mongrel processes if they go away.  With mongrel 
 0.3 I could issue a start command and the process would start up even if the 
 .pid file existed (though a warning would appear).

 Now, with mongrel 1.0.1 the warning says I must clear the .pid file and the 
 process is not started.  Is there anyway to force it to start without having 
 to clear the .pid?

 Regards



 ___
 The FREE service that prevents junk email http://www.mailshell.com
 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users

___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] [ANN] fastthread-0.6.4.1 released

2007-02-15 Thread Luis Lavena
On 2/14/07, MenTaLguY [EMAIL PROTECTED] wrote:
 == NOW

 A new version of fastthread, the library providing better
 implementations of the classes in thread.rb, has been released.

 Please note that fastthread is only for Ruby 1.8, not JRuby or any other
 Ruby implementation (most of them don't need it anyway!).

snip
 == WHERE?

 Files are available from Rubyforge:

 http://rubyforge.org/frs/shownotes.php?release_id=9709

Following MenTaLguY release, I compiled and uploaded to rubyforge
win32 gem of fastthread.

Waiting it spread to all gem mirrors.

Later

-- 
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
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Multiple Processes Spawned from mongrel_rails start ?

2007-02-15 Thread Philip Hallstrom
 I have mongrel 1.0.1, rails 1.2.2 ruby 1.8.5 running on Centos 4.4.

 When I execute the mongrel_rails start -d I see that 3 processes are spawned. 
  See below:

 [EMAIL PROTECTED] aaa]# mongrel_rails start -d
 [EMAIL PROTECTED] aaa]# ps -def |grep mong
 root  2743 1  9 07:14 ?00:00:01 /usr/bin/ruby 
 /usr/bin/mongrel_rails start -d
 root  2744  2743  0 07:14 ?00:00:00 /usr/bin/ruby 
 /usr/bin/mongrel_rails start -d
 root  2745  2744  0 07:14 ?00:00:00 /usr/bin/ruby 
 /usr/bin/mongrel_rails start -d

 Is this normal?

 When I had mongrel 0.3.13.3, rails 1.1.0, ruby 1.8.4 on rhel 4 only 1 process 
 would be spawned.

 I realize I changed versions of EVERYTHING so I'm wondering if this is 
 now the normal behavior or if something is going wrong.


Search the list for this issue... I don't remember the particulars other 
than some OS's report three instances via ps even though there really is 
only one running...

-philip
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Mongrel Monitoring...

2007-02-15 Thread Joey Geiger
correct route:
fix the issue that is causing the crashes.

On 2/15/07, Ed Hickey [EMAIL PROTECTED] wrote:
 easy route: monit
 http://www.tildeslash.com/monit/doc/platforms.php

 complicated route: nagios
 http://nagios.org/


 ed



 On 2/15/07, Roy Satterfield [EMAIL PROTECTED] wrote:
 
 
 
 
 
  I have a website that is running Mongrel that is CONSTANTLY going down.
 
  There seems to be no rhyme or reasonā€¦ There must be something in the way
 the site was written.
 
 
 
  Is there a recommended Mongrel monitoring tool that will monitor our sites
 mongrel services and restart mongrel when the site goes down?
 
  The server is a UNIX machineā€¦
 
 
 
  Thanks!!
 
  Roy
  ___
  Mongrel-users mailing list
  Mongrel-users@rubyforge.org
  http://rubyforge.org/mailman/listinfo/mongrel-users
 



 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users

___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Mongrel Monitoring...

2007-02-15 Thread Roy Satterfield
I would try to fix the issue, but I had this issued dropped in my lap.
I work for a company who hired a contract developer that wrote the site
using Ruby On Rails and we have been battling the site crashing ever
since.
We are going to have our sites rewritten - NOT using Ruby... Sorry guys,
but when running a business critical e-commerce site there has to be
dedicated support and available developers.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joey Geiger
Sent: Thursday, February 15, 2007 5:52 PM
To: mongrel-users@rubyforge.org
Subject: Re: [Mongrel] Mongrel Monitoring...

correct route:
fix the issue that is causing the crashes.

On 2/15/07, Ed Hickey [EMAIL PROTECTED] wrote:
 easy route: monit
 http://www.tildeslash.com/monit/doc/platforms.php

 complicated route: nagios
 http://nagios.org/


 ed



 On 2/15/07, Roy Satterfield [EMAIL PROTECTED] wrote:
 
 
 
 
 
  I have a website that is running Mongrel that is CONSTANTLY going
down.
 
  There seems to be no rhyme or reason... There must be something in
the way
 the site was written.
 
 
 
  Is there a recommended Mongrel monitoring tool that will monitor our
sites
 mongrel services and restart mongrel when the site goes down?
 
  The server is a UNIX machine...
 
 
 
  Thanks!!
 
  Roy
  ___
  Mongrel-users mailing list
  Mongrel-users@rubyforge.org
  http://rubyforge.org/mailman/listinfo/mongrel-users
 



 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users

___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Gem install from script

2007-02-15 Thread Graham Miller

Thanks, Wayne, but you're right, that seems a little brittle.  Is there any
other way to do this?  I guess one question is that if it knows that I'm on
an i486-linux platform, why is it giving me the mswin32 option in the
first place?

graham



Date: Wed, 14 Feb 2007 20:27:16 -0500
From: Wayne E. Seguin [EMAIL PROTECTED]
Subject: Re: [Mongrel] Gem install from script
To: mongrel-users@rubyforge.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

One possible method is:

echo 1 | gem install mongrel

The downside to this is if it's not always the first one (eg if ruby/
win32 can get switched at each next release)

~Wayne

On Feb 14, 2007, at 19:16 , Graham Miller wrote:


Hello all,
Apologies if this is not the right place for this question, but I
thought I'd start here.  We're trying to install the latest Mongrel
from inside a script.  Using 'gem install -v 1.0.1 mongrel' causes
a prompt to come up asking whether to install the ruby or
mswin32 variant.

Select which gem to install for your platform (i486-linux)
 1. mongrel 1.0.1 (ruby)
 2. mongrel 1.0.1 (mswin32)
 3. Cancel installation


If I don't want to have to write an expect script or something like
that, is there any way to specify on the command line that I want
the ruby variant so that I don't get this prompt?

Thanks in advance for any help.

graham


--
Marketcetera Trading Platform
download.run.trade.
www.marketcetera.org
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Mongrel Monitoring...

2007-02-15 Thread Josh Ferguson
Oh well now lets be fair, I wrote it and then the company stopped  
returning my calls..:) I'm pretty sure there are available and  
dedicated developers.

As far as the problem goes it's a bit odd because on that machine  
there are two mongel instances running, both being proxied by apache.  
One of the instances runs just a normal RoR application with pretty  
much static views, the other one runs on the radiant CMS. So I didn't  
actually do anything with the radiant one, I just unzipped radiant,  
setup the proxy pass and off it went. I did all the rest in the in- 
browser system. I believe it's the site that is *not* using the CMS  
that is crashing. If that's the case is there any sources other than  
the mongrel logs to look for major problems? Apache and the other  
site remain fine, just mongrel goes down.

Josh
besquared

On Feb 15, 2007, at 6:10 PM, Roy Satterfield wrote:

 I would try to fix the issue, but I had this issued dropped in my lap.
 I work for a company who hired a contract developer that wrote the  
 site
 using Ruby On Rails and we have been battling the site crashing ever
 since.
 We are going to have our sites rewritten - NOT using Ruby... Sorry  
 guys,
 but when running a business critical e-commerce site there has to be
 dedicated support and available developers.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Joey Geiger
 Sent: Thursday, February 15, 2007 5:52 PM
 To: mongrel-users@rubyforge.org
 Subject: Re: [Mongrel] Mongrel Monitoring...

 correct route:
 fix the issue that is causing the crashes.

 On 2/15/07, Ed Hickey [EMAIL PROTECTED] wrote:
 easy route: monit
 http://www.tildeslash.com/monit/doc/platforms.php

 complicated route: nagios
 http://nagios.org/


 ed



 On 2/15/07, Roy Satterfield [EMAIL PROTECTED] wrote:





 I have a website that is running Mongrel that is CONSTANTLY going
 down.

 There seems to be no rhyme or reason... There must be something in
 the way
 the site was written.



 Is there a recommended Mongrel monitoring tool that will monitor our
 sites
 mongrel services and restart mongrel when the site goes down?

 The server is a UNIX machine...



 Thanks!!

 Roy
 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users




 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users

 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users
 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users

___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


[Mongrel] static file serving

2007-02-15 Thread Joe Van Dyk
Hi,

I've got 40 mongrels running across 4 machines with a hardware load
balancer as a proxy.  The mongrels serve everything, even files.

How screwed am I if I have a 2MB file on my site?  Say 40 people are
downloading that file.  Are the mongrels completely locked up?

Joe
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] static file serving

2007-02-15 Thread Ezra Zygmuntowicz

On Feb 15, 2007, at 7:22 PM, Joe Van Dyk wrote:

 Hi,

 I've got 40 mongrels running across 4 machines with a hardware load
 balancer as a proxy.  The mongrels serve everything, even files.

 How screwed am I if I have a 2MB file on my site?  Say 40 people are
 downloading that file.  Are the mongrels completely locked up?

 Joe
 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users



Joe, Mongrel serves static files outside of the mutex lock, this  
means one mongrel can serve concurrent static files. If you are  
sending a file with send_file or send_data it might be a problem, but  
if it's just all the static assets of your site then it will be fine  
if 40 people download the file at once you will still be able to  
serve traffic.

However it is horribly ineficient to serve static files with  
mongrel, since your mongrels will be working hard at serving static  
files at the same time they serve dynamic content. I think you should  
probably run one static file webserver on one of your boxes and use  
rails asset_host feature to send static content to a static server.  
Or you could ask for rewrite rules to be put in place on the load  
balancer to rewrite anything with /images/, /stylesheets/ and / 
javascripts/ in the url to be served by the static asset server.


Cheers-
-- Ezra Zygmuntowicz 
-- Lead Rails Evangelist
-- [EMAIL PROTECTED]
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)


___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] mongrel process stopped listening but phantom thread still going

2007-02-15 Thread Zed A. Shaw
On Wed, 14 Feb 2007 17:21:22 -0800
Ben Osheroff [EMAIL PROTECTED] wrote:

 Hi,
 
 I run a medium-sized website that uses mongrel/rails in the following
 configuration:
 
 The problem is, when the mongrel processes are sent a USR2 signal, some
 of them seem to have threads running, that are waiting for data on a
 socket that's been disconnected from the apache balancer long ago.

USR2 restarting isn't reliable for many reasons outside of Mongrel.
You should just do a full stop and full restart.

-- 
Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.zedshaw.com/
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book
http://mongrel.rubyforge.org/
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] mongrel cluster and local gems loading problem

2007-02-15 Thread Zed A. Shaw
On Thu, 08 Feb 2007 14:53:44 +
Rui Lopes [EMAIL PROTECTED] wrote:

 Hello,
 
 I'm trying to augment the GEM_PATH to load gems from ~/.gem/ using this
 at the begging of the rails application config/environment.rb file:
 
   ENV['GEM_PATH'] = File.expand_path('~/.gem')

Hey Rui, I know you were chatting with me on IRC about this.  Did you
ever find a solution?

-- 
Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.zedshaw.com/
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book
http://mongrel.rubyforge.org/
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Apache+Mongrel Redirection Problems

2007-02-15 Thread Zed A. Shaw
On Wed, 7 Feb 2007 08:53:47 -1000
Stan Baptista [EMAIL PROTECTED] wrote:

 Hi folks,
 
 Newbie issues...I'm prototying an Apache/Mongrel configuration setup
 as follows:
 
 * Two Mongrel servers each serving a Rails application.
 * Apache front-end.
 * Linux system (CentOS)
 * The plan is to create two virtual hosts.

Did you get this resolved Stan?

-- 
Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.zedshaw.com/
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book
http://mongrel.rubyforge.org/
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Auto-installing Gems via boot.rb causes errors under Mongrel

2007-02-15 Thread Zed A. Shaw
On Wed, 7 Feb 2007 00:00:29 -0700
Chad Woolley [EMAIL PROTECTED] wrote:

 Hi,
 
 I'm trying to make my Rails app auto-install my required gems, by
 invoking the gem installation in boot.rb.  I'll use the ActionMailer
 gem as an example:

Did you ever figure this out Chad?  My thinking is that if there's
anything messing up gems it'd be GemPlugins.  The easiest way to test
that is open up mongrel_rails, go to the bottom where GemPlugin is run,
and then put that into the webrick script real quick.

If that then blows up webrick then that's the cause.  Otherwise, it
might be some kind of race condition that isn't hit because webrick is
slower.

-- 
Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.zedshaw.com/
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book
http://mongrel.rubyforge.org/
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] mongrel_in_a_tunnel

2007-02-15 Thread Zed A. Shaw
On Wed, 7 Feb 2007 09:35:14 +
Chris Farmiloe [EMAIL PROTECTED] wrote:

 
 
 Hi list:
 
 I started to make a quick GemPlugin command [ssl::start] that sets up  
 an stunnel before calling the normal [start] command.
 
 so
 
 $ mongrel_rails ssl:start
 
 will do everything that start normally does and configure/setup an  
 stunnel.

Hey Chris, this is kind of nice since some folks want an ultra small
setup.

Have you looked at just using the openssl support in Ruby?  Would be
nice if I could continue being lazy and just let you solve that :-)

-- 
Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.zedshaw.com/
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book
http://mongrel.rubyforge.org/
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users