Monday, February 29, 2016

Turn on Keepalive to Speed Up Rails 4.2.5 App

I am using Moonshine to manage Rails 4.2.5 app RubyPlus on Linode. In Moonshine source code, file apache.rb, change the keep_alive to 'on':

 defaults = {
    :keep_alive => 'on',
 
Linode provides 2 GB of RAM for just $20/month. So, there is no reason not to turn on this setting. Especially for low traffic sites. This setting will keep the connection open so that all assets can be downloaded in one connection. This avoids opening multiple connection to the server by the browser to download the assets.

No comments:

Post a Comment