I need to host a JRuby on Rails app on Mongrel. The problem is that I need to support mutual authentication. I know that I could just host it behind a Apache with mod_proxy use mod_ssl to pass the cred or part of the cred as a request header to rails. But I want the whole stack to be Java. Is there a Java application server that can do m...
I have a Apache + Haproxy + Mongrel Cluster setup. I want to receive alerts whenever my Mongrel queue length gets too high.
How to I get the current Mongrel Queue length and make it available for alerting tools such as Monit and Nagios?
I know that Haproxy has the information about Mongrel queue as it intelligently sends requests to l...
Hi Folks,
I'm fairly new to ruby on rails and web development. Here is my setup which I followed from this link http://tonyrose023.blogspot.com/2007/01/multiple-rails-apps-with-mongrel.html
I run multiple rails applications on Apache2 with Mongrel clusters.
http://services.abc.edu/app1
http://services.abc.edu/app2
http://services.abc.ed...
I'm writing a web application to monitor a furniture factory production flow. It has thousand of data to handle. So far, I run RoR on Mongrel + MySQL and it's really really slow (2-4min for some views). When I look at RoR logs, it seems that database queries aren't slow (0-10ms).
Is RoR slow when it converts database data to object ? Is...
In my Rails app I am attempting to create a form that allows users to create a bookmark.
<% form_tag( contents_path ) do %>
<input name='item_type' value="Bookmark" type="hidden" /></p>
<h3>Create New Bookmark</h3>
<p>Title:<input name='item[title]' type="text" /></p>
<p>URL:<input name='item[url]' type="text" /></p>
<%= submi...
I get the following error when restarting my rails app. I've had this problem before, on another server with another app, but can't remember what the problem was, or how I solved it.
Rails Error: Unable to access log file. Please ensure that /apps/staging/releases/20090310162127/log/staging.log exists and is chmod 0666. The log level ha...
There is a good chance that we will be tech crunched in the next few days. Unfortunately, we have not gone live yet so we don't have a good estimation of how our system handles a production audience.
Our production setup consists of 2 EngineYard slices each with 3 mongrel instances, using Postgres as the database server.
Obviously a hu...
My server was doing just fine up until yesterday. It was running Redmine (a ruby development tracking application), and it was the happiest little server until my "friend" imported a sql table that my little guy couldn't take. Unfortunately after an hour of trying to get the lil guy to respond, we had to power cycle him.
Now after res...
Ok, so I would like to create an action in Rails to restart itself. I did a little searching and found:
http://snippets.dzone.com/posts/show/5002
Which suggests 2 commands, one to stop and another to restart. The following kills:
ps -a|grep "/usr/local/bin/ruby script/server"|grep -v "grep /usr"|cut -d " " -f1|xargs -n 1 kill -KILL ...
Is there a realtime apache/php console similar to webrick or mongrel with ruby on rails?
I want to be able to monitor what the heck my server is doing.
edit:
but I don't want to grep the log
Thanks!
...
I have a Apache + Haproxy + Mongrel setup for my rails application. When I hit a particular server page, mongrel takes around 100ms to process the request and I get the page in around 5 secs due to data transmission time on my slow home connection.
Now I see that during these 5 secs of data transmission, mongrel does not serve any ot...
Hi
I've recently upgraded to Rails 2.3.2 with Ruby 1.8.7. Whenever I start the server like this:
cd /myproject
script/server
It hangs. After I cancel it the only error information that I see is:
^C/Users/timstephenson/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/load_error.rb:32:in `new': Interrupt
The error ...
My rails sites run Mongrel, I am having a problem with the amount of memory being used. My ruby-bin processes are using up about 66 MB of resident memory. How can I reduce the amount of memory used by rails?
It is not very economical to have many rails servers running on a single machine if they are eating memory at this rate. My php...
I've jus saw that mongrel's last updat was about one year ago...
http://mongrel.rubyforge.org/wiki/WikiStart?action=diff&version=35
has it been disontinued?
is there any other lightweight alternative for a windows development box?
...
I'm sorry if this sounds like a stupid question, because it seems to be one of those "no duh" things, but can someone explain to me why Rails needs its own server (Mongrel, WEBrick, mod_rails, etc) and can't simply use mod_ruby?
...
Hello,
always the first request (of a working session) to my Rails app is lagging. Switching to production mode
doesn't help.
I use mongrel and the other requests are handled with acceptable speed.
How do I make it faster?
Regards
...
Let's say I have a Rails 2.3.2 application fronted by nginx and served by mongrel in which I need to serve a large static file through Rails (to control access to it). I want the Rails app to delegate the transfer of the file to nginx, to avoid blocking the mongrel instance.
The available information seems contradictory and incomplete. ...
I understand that this is not the perfect environment for doing this but please stick with me and help if you can...
The set up I want to achieve is to have my rails application running on a windows 2003 server, using a pack of mongrels with lighttpd acting as the load balancer and IIS in front of it all passing client requests to light...
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...
I initiated myself into rails development yesterday.
I installed ruby 1.9.1, rubygems and rails.
Running gem install mongrel worked fine and ostensibly installed mongrel too. I am slightly puzzled because:
script/server starts webrick by default
which mongrel returns nothing
locate mongrel returns lots of entries like
/Developer/SDK...