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.
我试图理解Heroku的定价系统。免费账户接收1000 dyno/小时。dyno/hour的确切含义是什么?这取决于什么?请求/秒?用户数量?如果我想换到不睡觉的工作,我得付每台7美元。所以1000个免费的dynos每月要花费7000美元?大约有多少用户支持1000个dyno/月?谢谢。
1 个解决方案
#1
11
Assuming you verify your account with a credit card, you have 1000 free dyno hours per month to play with.
假设你用信用卡核实你的帐户,你每月有1000个免费的dyno小时玩。
A "dyno hour" is simply one hour of a dyno running.
“dyno hour”就是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.
如果你只有一个应用程序运行1 dyno,那么dyno可能会永远24/7运行,因为即使是一个31天的月也包含31 x 24 = 744小时,这比你拥有的1000个免费dyno小时要少。
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").
然而,如果你的一个应用程序上的dyno是一个“web dyno”(即web服务器),那么请注意,在30分钟的不活动之后,免费的web dynos睡眠(在这种情况下,下一个请求web dyno“唤醒它”)。
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).
睡眠是一把双刃剑。一方面,当网络不正常睡眠时,它不会消耗你的任何空闲时间(所以你可以根据你的需要得到更多的1000个免费的dyno小时)。如果您可以容忍对web客户端响应缓慢,以响应任何查询,而这些查询碰巧唤醒了睡眠动态——那就可以了。如果没有,您需要确保您的web dyno保持忙碌(例如,确保它不会在没有收到任何请求的情况下运行30分钟)。
For further details see Free Dyno Hours.
有关详细信息,请参阅免费的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.
注意,dyno基本上就是一个虚拟机。这是你的“服务器”。一个dyno当然可以支持很多用户,这取决于你的应用程序的复杂性和性能要求。你可以“垂直地”扩展你的应用程序(意味着每个dyno增加计算能力)和“水平地”(意味着运行多个dyno实例来平衡你的应用程序的流量)。看到什么是大力神"Dyno"了吗?。你的应用程序需要处理大量的流量才能将dyno扩展到1000个实例。如果你真的需要扩展你的dynos(非常不可能,如果你刚刚开始构建你的应用),你需要使用付费的dynos。
#1
11
Assuming you verify your account with a credit card, you have 1000 free dyno hours per month to play with.
假设你用信用卡核实你的帐户,你每月有1000个免费的dyno小时玩。
A "dyno hour" is simply one hour of a dyno running.
“dyno hour”就是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.
如果你只有一个应用程序运行1 dyno,那么dyno可能会永远24/7运行,因为即使是一个31天的月也包含31 x 24 = 744小时,这比你拥有的1000个免费dyno小时要少。
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").
然而,如果你的一个应用程序上的dyno是一个“web dyno”(即web服务器),那么请注意,在30分钟的不活动之后,免费的web dynos睡眠(在这种情况下,下一个请求web dyno“唤醒它”)。
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).
睡眠是一把双刃剑。一方面,当网络不正常睡眠时,它不会消耗你的任何空闲时间(所以你可以根据你的需要得到更多的1000个免费的dyno小时)。如果您可以容忍对web客户端响应缓慢,以响应任何查询,而这些查询碰巧唤醒了睡眠动态——那就可以了。如果没有,您需要确保您的web dyno保持忙碌(例如,确保它不会在没有收到任何请求的情况下运行30分钟)。
For further details see Free Dyno Hours.
有关详细信息,请参阅免费的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.
注意,dyno基本上就是一个虚拟机。这是你的“服务器”。一个dyno当然可以支持很多用户,这取决于你的应用程序的复杂性和性能要求。你可以“垂直地”扩展你的应用程序(意味着每个dyno增加计算能力)和“水平地”(意味着运行多个dyno实例来平衡你的应用程序的流量)。看到什么是大力神"Dyno"了吗?。你的应用程序需要处理大量的流量才能将dyno扩展到1000个实例。如果你真的需要扩展你的dynos(非常不可能,如果你刚刚开始构建你的应用),你需要使用付费的dynos。