使用Heroku free rails生产低流量的网站 [英] Using Heroku free tier for rails production low traffic website

查看:85
本文介绍了使用Heroku free rails生产低流量的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Rails应用程序,我期望这个应用程序的流量很低,它现在可以正常工作在heroku免费套餐中。



我可以使用Heroku free我的自定义域作为我的生产环境?截至目前,我看到750个测试小时对我的网站来说可以继续工作,但我想知道是否有任何使用免费的网站生产的缺点。



对于上传,我已经在使用亚马逊S3。



谢谢,

解决方案

是的,你可以在Heroku上为你的制作环境使用自定义域名。

Heroku对免费套餐有数据库行限制;它会带走 INSERT 特权,如果超出限额并且让您至少购买基本(9美元/月)数据库计划(1000万行)。
我的服务由于同样的原因而被关闭;我收到了以下电子邮件:


Heroku app [隐藏]上的数据库HEROKU_ [hidden]有
超过其分配的存储空间容量。立即采取行动。



数据库包含129,970行,超过开发计划限制
10,000。对数据库的INSERT权限将自动在7天内被吊销
。这会导致大多数
应用程序的服务依赖于此数据库。



为避免服务中断,请将数据库迁移到基本
($ 9 /月)或生产计划:

Heroku免费服务对于轻量化生产来说非常棒。通过购买足够的dynos和数据库来升级性能。当有更多传入请求被排队时,您可能需要它们;从而导致偶尔超时。约翰在您可能需要更多动态码时充分回答 - https://stackoverflow.com/a/8428998/1376448

你会完全喜欢它!


I've a rails application which I am expecting to be low traffic, it is working fine on heroku free tier as of now.

Can I use Heroku free tier with my custom domain as my production environment? As of now I see 750 dyno hours will be fine for my website to work continuously but I want to know if there are any drawback of using free tier for production website.

For uploads I am already using amazon S3.

Thanks,

解决方案

Yes, you can use custom domain for your production env on Heroku.

Heroku has database rows limitation for free tier; it takes away the INSERT privilege, if that limit is crossed and offers you to buy atleast basic (9$/month) database plan (10 million rows).
My service was shut down for same reason a while back; I got following email from them:

The database HEROKU_[hidden] on Heroku app [hidden] has exceeded its allocated storage capacity. Immediate action is required.

The database contains 129,970 rows, exceeding the Dev plan limit of 10,000. INSERT privileges to the database will be automatically revoked in 7 days. This will cause service failures in most applications dependent on this database.

To avoid a disruption to your service, migrate the database to a Basic ($9/month) or Production plan:

Heroku free service is totally awesome for light production. Upgrade the performance by buying adequate dynos and database. You may need them when there are more incoming requests that they are getting queued up; consequently leading to occasional timeouts. John sufficiently answers when you may need more dynos here - https://stackoverflow.com/a/8428998/1376448

You will totally love it!

这篇关于使用Heroku free rails生产低流量的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆