mongrel-cluster

Running mongrel_rails cluster::start on Windows

I have managed to get mongrel_cluster running on my Windows server (v 1.0.5) ok, but I am having trouble trying to get it to spawning all of the (4) mongrel instances. It launches the first one ok, but then does no more. That one instance serves just fine, but the others are not launched. I assume that this is becasue of: "** WARNING...

How can I be sure each process in my mongrel_cluster is handling requests?

I have a rails application that takes a while to process certain requests (as it processes image uploads). I currently have three mongrel processes in a cluster, and I expect one of the other two to handle a second request if the first one is busy. However, this doesn't seem to be happening. If I watch the output from top on the ser...

Cannot start Mongrel Server

Hi everyone, I can't start mongrel server. When I have a look at log file, it tells me that the address that I wanted to use is not available. I tried to check if there were some services using that address, but I could not find any. The error message in log file: `initialize_without_backlog': Cannot assign requested address - bind(2)...

Does Mongrel do IPv6 well?

I'm using mongrel + apache 2.2 + mod_proxy_balancer. apache2.2 is IPv6 well http://httpd.apache.org/docs/2.2/en/bind.html#ipv6 Does Mongrel do IPv6 well? Platform:RHEL ruby:1.8.6 ...

Sending USR2 to mongrel_rails sometimes results in an "Address already in use" on the restart

We have a rolling-restart mode for our mongrel cluster that sends a USR2 signal to each running process. This works great, most of the time. But very occasionally the mongrel process will shutdown, and then fail to restart, with the following error: /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/tcphack.rb:12:in `...

Ruby on Rails: How do I detect a specific mongrel instance in a cluster during startup?

We run an application with a half dozen mongrels. A new feature that we've added is a scheduler (rufus-scheduler) that runs within a mongrel and provides cron-like background task processing. We want ot run this scheduler on only one of our mongrels but we can't figure out how -- during startup (environment.rb) -- to identify the speci...

Most Resource-Efficient Way to Deploy Multiple Rails Apps on a Single Server

I have a Virtual Dedicated Server that I use to host small websites that aren't large enough to justify their own dedicated slice. I am a Rails developer and am currently using an Ubuntu/Nginx/Mongrel Cluster/SQLite stack to deploy these applications. I feel that the memory being consumed by each Mongrel instance is too high. I am won...

Getting 500 Error when trying to access Rails application through Apache2

Hey, I'm using Apache2 as proxy and mongrel_cluster as server for my Rails applications. When I try to access it by typing in the url I get a 500 "Internal Server Error" but when try to locally access the website with "lynx http://localhost:8200" it works. This is my config: <Proxy balancer://sportfreundewitold_cluster> BalancerMember...

How to balance load in a Apache + Mongrel application

I was wondering if someone can explain how can a rails application be balanced. Two questions: Does it even help having separate rails applications reading from the same database in the same dedicated server? I understand Apache can balance load installing some extra modules? am i right? how can we accomplish this? (please provide exp...

Mongrel not detecting changes in Rails classes?

I have a Rails app installed on a Slicehost server running Apache 2 and Ubuntu LTC 10.04. Things have worked beautifully up until now: I edit a file, do a quick mongrel_rails cluster::restart, and the changes are reflected in production. However, suddenly this process has broken down. For example, I have a class called Master located i...

Mongrel cluster does not start on Snow Leopard

Hi, I fail to deploy my ruby (v1.8.7) rails (v2.3.5) application on Snow Leopard (10.6.3). After "cap deploy", the Mongrel-cluster (v1.1.5) fails to start up with the following output in mongrel.*.log: ** Daemonized, any open files are closed. Look at tmp/pids/mongrel.8000.pid and log/mongrel.8000.log for info. ** Starting Mongrel l...

nginx + SslRequirement + mongrel cluster = infinite redirect loop

I'm getting an infinite redirect loop after adding SSL support to my site. I'm using the "SslRequirement" plugin. The symptoms I'm seeing are, any action that has "ssl_required" enabled, and any URL I type in manually that has https at the front, goes into an infinite loop, with the following in the development.log file, over and over u...

Apache + Mongrel Cluster = Wrong server config!

Hi! I'm trying to get Ruby on Rails going on a Windows 2003 Server. I've installed the Mongrel service and Apache (and RoR, etc). When I serve an app using just Mongrel, everything comes up perfectly. So, now I am down to the Apache configuration... Apparently I can't seem to get that right. When I visit my pages, I am returned the...

Mongrel Cluster fails to start

Hello, I have an issue with Mongrel cluster start-up, when I start the cluster I am getting the following error: /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 'gem_original_require': no such file to load -- /home/admin/test-project/test-app/config/environment (LoadError) log file link I am using this command to st...

Does creating more mongrel clusters improves application performance/response?

Hi I have currently 10 instances of mongrel cluster running. But at rush hour my avg response time goes up. See bellow Average db time 0.00 sec Average request length 24.92 sec Average view time 24.73 sec Requests 8.10 req/min Slow Requests 5.40 req/min Slow requests percentage 67% HOw can I improve avg response time? How...

Error calling Dispatcher.dispatch #<NameError: uninitialized constant ActionController::CgiRequest

I'm getting the following error on log/mongrel.6001.log I'm using mongrel_cluster , rails 3 and ruby 1.8.7 I start mongrel_cluster using mongrel_rails cluster::start But when I try to access the page on browser I get the error bellow "Error calling Dispatcher.dispatch # Mon Oct 11 00:26:04 -0500 2010: Error calling Dispatcher.dispat...

Do I really need to setup a mongrel cluster to handle this ?

So my father runs a rather small business. I'm going to set him up with a website using RefineryCMS (that's a ror-based cms).. He will probably get less than 500 hits a month. Do I really need to set up mongrel cluster for this as about every tutorial on the web suggests? Does anyone some good reading material for setting up a simple, ...