How do I improve app performance on AppHarbor? [closed]

久未见 提交于 2019-12-03 05:38:08

问题


I have an application hosted on AppHarbor that is visited a few times a day with a light load.

The performance experience is a SLOW first page load as the dormant worker process wakes up. Subsequent page loads are fast.

I want to reduce the amount of time for the initial load. Will buying additional instances solve this issue, or should I look towards a dedicated host


回答1:


You app pool will be spun down after 20 minutes of inactivity, this is standard IIS behaviour.

To avoid this, you can upgrade from Canoe to either the Catamaran or Yacht plans. Web apps on those plan don't idle (adding a custom hostname, SSL or running more than one dyno on the Canoe plan will still give you an idling app).

You can also circumvent the idling by using services like Pingdom and StillAlive to generate requests for your site. But upgrading from Canoe is fairer to AppHarbor.




回答2:


The way I do it, is have something like this running locally: https://github.com/haf/Requester

It just queries the web app every nth second and keeps it in memory. It's a hack, but it works and the problems go away when the app becomes more popular. ^^



来源:https://stackoverflow.com/questions/9242676/how-do-i-improve-app-performance-on-appharbor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!