Displaying 20 results from an estimated 10000 matches similar to: "Cluster 3 mongrel servers residing in different machines (Windows)"
2008 Nov 21
15
Switching the version of Rails that an app uses
Hi All,
I’ve got a few versions or Rails installed and I''d like to run an App
I’m developing with various versions of Rails. I heard of two ways to
switch the version of Rails that an app uses:
1. Use GitHub as described by http://kylecordes.com/2008/04/30/git-windows-go/
. But that requires using Bash in a Command Window and more steps
than I want to go through.
2. Alter
2007 Mar 13
7
Form with subforms
Hi,
I''m looking for a way to implement subforms. For example, a form where
you can add clients, and at the same time enter contactpersons for
this client.
I''ve been looking around, reading ebooks, etc, but can''t seem to find
a good example/tutorial for something like this. So I would be very
thankful if someone could point me in the right direction.
Thanks,
Sven
2007 Jan 31
6
Using hash.keys - why doesn't it display in order created
I am using .keys on a hash to create an array that is than displayed
in a view with .each - why does it not display the keys in the order
added to the hash?
I would like to controll how the array is displayed - I want the
checkboxes to display like I added them to the hash, but it doesn''t -
I can''t figure out how it is displayed, when I change the order of the
hash it
2007 Mar 23
11
Is there such a thing as button_to_remote?
I''ve changed my destructive link_to statements in favor of button_to.
But what if I want to make an .rjs call with that button?
Seems like we need something equivalent to link_to_remote, so that the
button can make an ajax request instead submitting the form.
Or am I missing the point entirely?
Jeff
--~--~---------~--~----~------------~-------~--~----~
You received this message
2007 May 01
5
Development on nfs share
Is there any way to end up somewhere in between the development
environment and production environment as far as refreshing the
source on every request.
Our setup is that we work off of nfs shares which makes it extremely
slow for a page load in development since it has to pull in the whole
app on each request.
I''m used to it by now and only get a few changes in an hour :).
Just curious
2007 Feb 27
2
Dynamically add radio buttons to forms?
Good afternoon all
I''m trying to implement a form that dynamically inserts radio buttons
into a form. The user selects options from a drop-down menu. I use
observe_field to watch for a change and call back to render the
appropriate partial tha contains the radio options. All works nicely
but I''m tripped up on one thing:
When rendering a form using form_for how do I link those
2007 Jun 15
3
Error when running functional test - Errno::ENOENT
Hello,
I''m getting an error when running functional tests as follows, using
Mac OSX 10.4.9, Rails 1.2.3 .
When I run:
ruby test/functional/campaign_controller_test.rb
I get this error:
Started
E
Finished in 0.027402 seconds.
1) Error:
test_should_get_icon_data(CampaignControllerTest):
Errno::ENOENT: No such file or directory - /usr/src/projects/myproject/
2008 Jun 23
12
From Instant Rails 2.0 to Rails 2.1.0
hi,
I have installed Instant Rails 2.0 on my machine which comes with
Rails 2.0.2. Now I want to update my Rails to version 2.1.0. So I do
gem update rails and It seems to be fine. But when I check the version
of my Rails I get the following message:
>rails -v
C:/RoR/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:578:in
`report_activate_error'': RubyGem version error: activesupport(2.0.2
not
2008 Oct 07
7
Rails production version not accessible from other machines
Hi,
I just deployed my first rails application in production mode using
Capistrano and mongrel clusters. Here are the lines in my
mongrel_cluster.yml file.
cwd: /myrailsdeploymath/current
log_file: log/mongrel.log
port: "8000"
environment: production
address: myserver.mydomain.org
id_file: tmp/pids/mongrel.pid
servers: 3
My development and production machine are the same.
When I run
2007 Oct 27
7
load balancers and mongrel
We have a load balancer sending requests to one of X boxes and one of
N mongrel processes on that box.
Since each mongrel processes is multi-threaded but it has a mutex
around the section that calls rails, we end up with several requests
queued up waiting when they could have gone to another box with a
free process.
For example, boxA, and boxB.
boxA has mongrels 1 through 10
boxB has
2007 Jan 02
10
problems with apache 2.2 proxying to mongrel cluster
Hi all,
I''ve been having problems with the apache 2.2-mod_proxy_balancer-
mongrel setup.
My setup is:
CentOS 4.3
apache 2.2.3 (compiled from source) with mod_proxy_balancer
mysql 4.1
ruby 1.8.4
mongrel 0.3.14 (I know I need to update but I think this problem is
independent of the mongrel version)
mongrel_cluster 0.2.0
rails_machine 0.1.1
I have apache setup as per Coda''s
2006 Nov 05
2
logrotate, mongrel cluster and monit
While I could figure this out, I''m asking here first to see if anyone
has already dealt with/created this. I''m running a mongrel cluster,
running 4 mongrels on ports 8001-4. I''m using capistrano to deploy.
And I''d like to use monit to check to make sure everything is running
nice.
I''d like to have monit restart only single mongrels if they fail, and
2006 Nov 28
15
Determining ideal number of Mongrels for an app?
What''s a rule of thumb for guesstimating how many
Mongrels to use in a cluster for an app? I have an app
that gets about 5000 unique visitors per day. I
figured I''d give it plenty of Mongrels -- twenty to be
specific. After running out of memory and hitting the
swap periodically, I scaled it back to five and it
still seems to serve up visitors fine. So, is there
some super-secret
2006 Dec 29
3
production-izing a popular site
Lets say you have a site that is serving, oh, around 100k unique
visitors a day (plain ole'' browser requests) - plus probably ~ 40k
uniques to feeds. Assume this site is 90% read like most of the web,
so the traffic looks like your typical news or portal site. There are
two web boxes behind a hardware load balancer, each doing apache 2.2.3
-> mongrel_proxy_balancer -> mongrel
2007 Feb 27
15
Deployement options
After reading the digital shortcut and the
documentation on the web site I''m confused.
Which one should I use? pen, balance or nginx ?
I don''t want to use a behemoth like appache and ssl is
not needed so it reduces my choice to those three
only....
What are the pros and cons of each? I don''t have much
money, so the less ressources I use the better it is
for me....
As
2008 Feb 24
6
ANNC: qrp - queueing reverse proxy
Hi, I''ve started a new project that uses Mongrel. It basically
lets you defer requests to it until other Mongrels in your (Rails)
pool becomes free.
Rubyforge project page:
http://rubyforge.org/projects/qrp/
gems, tarballs and git repo in case they haven''t hit the mirrors yet:
http://bogomips.org/ruby/
I should also add that nginx 0.6.7 or later is required for the
2007 Mar 13
3
dropping lighty+fastcgi and moving to apache+mongrel in production
Most of my machines have apache+mongrel running but the mongrels are using
the localhost.
In my production environment, I have 4 boxes. I have setup 2 http servers (
apache 2.2.4 ) and 2 app servers. They are currently using lighttpd+fastcgi.
Which I am changing this week.
I want to get advice from you guys before I actually do this since this is
my production env.
I have installed apache on the
2007 Aug 10
9
Problems monitoring Mongrel with F5 BigIP
If this has already been covered, please point me to that (I didn''t find
anything in my searches)...
We are using F5 BigIP LTM load balancers. They have many pools of Mongrels
they load balance across, and I of course want the F5 to know when a Mongrel
goes down or is unavailable, etc. To do that, I need to have an F5 health
monitor for HTTP make a request to the Mongrel. We do this
2007 Jul 06
5
503 Errors While Cluster Is Still Active
I''ve setup a new mongrel cluster on my VPS, and am noticing a lot if
503 errors if I try to hit the server too many times in succession in
a few seconds. I''ve read that this is usually caused by the cluster
crashing, but I haven''t been seen the cluster crash when I do this.
Does anyone have any other ideas what might cause this? I have my
server configured how
2008 Feb 21
9
Difference between nginx and mongrel
Hi,
I could never find out what''s the difference between nginx and
mongrel. All my searches say "nginx is a HTTP server ..." and "Mongrel
is a fast HTTP library and server for Ruby....". For me they both mean
"...HTTP server...".
I kept up with this question for some time till I came across this
santence from the guys at Friend for Sale:
-----------------