-
Notifications
You must be signed in to change notification settings - Fork 9
Usage and billing
Heroku calculates billing based on wall-clock usage. This article explains the billing calculations, as well as the impact of dyno sleeping, one-off dynos and free dyno-hours on billing.
Herokuはwall-clockの使用率によって料金を計算します。この記事は料金計算について、及び、dynoの休眠が与える影響、一過性のdynos、そしてdynoを無料で使える時間について述べます。
Heroku charges based on usage, which means that in any given month the bill you receive will be for the previous month of use, not the current one (similar to the way phone services work).
Herokuは使用率に応じて課金します。つまり、いずれの月においても、あなたが受け取る請求書は先月の使用分です。 今月のものではなく(電話料金の請求方法と似ています)。
If you wish to see or keep track of your spend for the current month, look for the Current Usage item on your account page. It is updated on a nightly basis, so it will be current to the previous day (up to 00:00:00 UTC time).
もし今月の経費を見たい場合は、Current Usage item on your account pageを見て下さい。これは毎晩更新されていますので、前日分までの計算が行われたものになります( 00:00:00 UTC time に基づいています)。
Heroku usage is computed from wall-clock time, not CPU time. This means that usage accumulates over time as long as dynos are enabled, regardless of traffic or activity.
Herokuの使用率は wall-clock timeによって計算されています。** CPU timeではありません ** 。これは使用率が、dynosが使用可能になっている時間に応じて計算される事を意味しています。トラフィックやアクティビティは考慮しません。
For example, if you scaled your web dynos to one 1X dyno on 2012-01-01 00:00:00 and then scaled your web dynos to zero on 2012-01-01 01:15:30 you would have accrued 01:15:30 dyno hours of usage, represented as 1.2583 once converted to a decimal value.
- 1X dynos: $0.05 / hour
- 2X dynos: $0.10 / hour
All costs are prorated to the second.
An app with four 1X dynos is charged $0.20 per hour for each hour that the four dynos are running. The same app with four 2X dynos is charged $0.40 per hour. However, see how free dynos affect this calculation.
All dynos in your application that are scaled above 0 will accrue usage–regardless of whether they’re actually receiving or processing requests.
Databases and add-ons are prorated to the second based on their applicable monthly fee.
When executing a one-off dyno with heroku run
, a dyno will be provisioned for your command, and the time spent executing the command will accrue usage.
A web dyno that is asleep continues to accrue usage. To stop accruing usage, you must scale the web dyno to 0.
$ heroku ps:scale web=0
Heroku automatically credits each app with 750 free dyno-hours per month, which are clearly identified on your invoice. This allotment can be used for any type of dyno. (i.e. web, worker, console). Your free dyno-hours will allow you to run one 1X dyno for an entire month free of charge–although you may choose to run two 1X dynos for 1/2 of a month instead.
Note that 2X dynos consume twice as many free dyno-hours per hour as 1X dynos. For example, one 2X dyno app will run for free for 375 hours compared to 750 hours for one 1X dyno app.