I have a Rails application and a CGI script which uses this application models (api script). The application makes http requests to the api script and shows result.
It works really slow... I have found some good topics about speeding up the Rails, but some are old, and others are about changes in the code.
Currently I'm looking for good articles about _software_ optimization, so I can configure my server correctly for better Rails work.
Could you advice some?
My configuration:
FreeBSD 6.2
Apache 2.2 + the latest Phusion Passenger + the latest Ruby Enterprise
Ruby 1.8.6
Rails 2.1.0
the latest MySQL
sessions in cookies
I have a Rails application and a CGI script which uses this
application
models (api script). The application makes http requests to the api
script and shows result.
That sounds a bit odd. The application is making http requests to
another script on the same machine? Is that other script reloading
rails each time it runs?
That sounds a bit odd. The application is making http requests to
another script on the same machine? Is that other script reloading
rails each time it runs?
Yes, currently it's odd Both cgi script and Rails app are on the
same machine, and of course I can include the script without making
http requests to it.
But in the nearest future other applications from other sites will
make these requests, so I need to be sure that it works fast exactly
in this way.
And unfortunately I see that it works very slow now... A simple page
is loading about 60-90 seconds.
Actually it's just a question to all experinced Rails developers: what
kind of configuration do you have on your production servers? Pros/
cons of some software?
It will be great if you can share some of your knowledge.