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

心已入冬 提交于 2019-12-02 17:59:49

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.

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. ^^

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