Pergunta

Until I applied caching my Rails app was very slow running it locally on my notebook. Yesterday I deployed the app to my Linode 1024 for the first time and clearly it's too slow.

Now I don't know whether this is due to 1x CPU priority or really a memory issue. The application is not responsive at all, of course after the first request it works more or less okay.

What can I do to optimize this? Precalculated even more values and store them in the database? How does one handle this if there is few CPU priority and even fewer memory?

Foi útil?

Solução

I would strongly suggest switching over to NGINX, there's a great railscast episdoe for deploying to Linode using NGINX, Unicorn and Capistrano (railscasts.com/episodes/335-deploying-to-a-vps) and with this tutorial, I've never had a single issue getting a rails app to run a VPS super efficiently. In my experience running an app with Apache always results in slower query times, especially under higher traffic.

Railscast #335

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top