Heroku计费dynos如何正确工作? [英] How does Heroku billing dynos work exactly?

查看:186
本文介绍了Heroku计费dynos如何正确工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解Heroku的定价系统。
好​​吧,免费账户可以获得1000次测试/小时。测功机/小时的确切含义是什么?这取决于什么?每秒请求数?用户数量?
如果我想切换到非睡眠优惠,我将不得不支付7美元/码。那么1000个免费的dynos会花费我每月7000美元?
大约有1000个用户支持1000个测功机吗?
Thanks。

解决方案

假设您使用信用卡验证您的帐户,您每个月有1000免费探戈小时一起玩。



一个动态小时只是运行一个小时的测功机。

如果您只有1个应用运行1个测功机,那么该测功机可以永远24/7可用,因为即使是31天的月份也包含31 x 24 = 744小时,这是少于1000免费的小时你可以支配。



然而,如果你的一个应用程序的测功机是网络测试仪(即一个Web服务器),然后请注意,免费的网页dynos在闲置30分钟后睡眠(在这种情况下,web dyno的下一个请求会唤醒)。

免费web-dyno睡觉是一把双刃剑。一方面,当网络测试者睡觉时,它不会消耗任何免费的动态时间(因此根据您的需要,您可能可以获得更多的免费测试时间)。如果您可以容忍对您的Web客户端的响应缓慢,以回应任何碰巧唤醒睡眠探测器的查询 - 那可以。如果没有,你将需要确保你的网络动态变得忙碌(即确保它没有收到任何请求30分钟)。



欲了解更多详情,请参阅免费的Dyno Hours



<请注意,dyno基本上只是一个虚拟机。这是你的服务器。根据应用程序的复杂性/性能要求,一个dyno肯定可以支持许多用户。
您可以垂直(意味着增加每个动态计算能力)和水平(意思是运行负载平衡应用流量的多个动态实例)扩展您的应用。
请参阅什么是HerokuDyno?
您的应用需要完全处理GIGANTIC流量,才能将动态范围调整为1000个实例。
如果您确实需要扩展您的dynos(如果您刚刚开始构建应用程序的可能性很小),则需要使用付费dynos。


I was trying to understand the Heroku pricing system. Okay so the free account receives 1000 dyno/hour. What's the exact meaning of a dyno/hour? It depends on what? Requests per seconds? Number of users? If i want to switch to the non sleeping offer, i'll have to pay 7$ per dyno. So the 1000 free dynos will cost me 7000$ per month? How many users approximately does 1000 dyno/month support? Thanks.

解决方案

Assuming you verify your account with a credit card, you have 1000 free dyno hours per month to play with.

A "dyno hour" is simply one hour of a dyno running.

If you have just 1 app running just 1 dyno, that dyno could be available 24/7 forever, since even a 31 day month consists of 31 x 24 = 744 hours, which is less than the 1000 free dyno hours you have at your disposal.

However, if your one dyno on your one app is a "web dyno" (i.e. a web server), then note that free web dynos sleep after 30 minutes of inactivity (in which case the next request to the web dyno "wakes it up").

Free web-dyno sleeping is a two-edged sword. On the one hand, when a web dyno sleeps, it does not consume any of your free dyno-hours (so you might be able to get more for your 1000 free dyno hours, depending on your needs). If you can tolerate slow response to your web clients in response to any queries that happen to wake up a sleeping dyno - that can be OK. If not, you will need to make sure to keep your web dyno busy (i.e. make sure it does not go 30 minutes without receiving any requests).

For further details see Free Dyno Hours.

Note that a dyno is basically just a virtual machine. It is your "server". One dyno can certainly support many many users, depending on the complexity / performance requirements of your app. You can "scale" your app both "vertically" (meaning increased computing capabilities per dyno) and "horizontally" (meaning running multiple dyno instances that load balance your app's traffic). See What is a Heroku "Dyno"?. Your app would need to be processing absolutely GIGANTIC amounts of traffic to justify scaling a dyno to 1000 instances. If you really need to scale your dynos (highly unlikely if you're only just starting to build your app), you will need to use paid dynos.

这篇关于Heroku计费dynos如何正确工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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