Even if I have Foreman running with a quite new version of apache and passenger, the speed
is not the first quality of that very good application.
That’s the reason why I tested a plugin written by Ohad Levy which add memcache support.
You can find the repo on github.
I installed it without problem in production on my Foremans 1.2.
I use git checkout to install Foreman, this may need adaptation
for you.
This method is quite similar to all plugin installation in Foreman : this plugin is only
a new gem to install.
You first need to install memcached on the same server :
# apt-get install memcached # service memcached start
By default Foreman use a local memcached server.
# cd ~foreman # echo "gem 'foreman_memcache', :git => \"http://github.com/ohadlevy/foreman_memcache.git\"" > bundler.d/memcache.rb # bundle install --without postgresql sqlite test development --path vendor # you may have to adapt what options do you need with your bundle
Eventualy we need to restart Foreman :
# service apache2 restart
That’s it, Foreman should respond quicker now !