Compute Minutes - CI/CD用語集の定義
compute minutesは、CIプロバイダーが使用量を計測する単位です。1つのrunnerがjobを実行する1分間を指します。GitHub Actionsはプライベートリポジトリにcompute minuteごとに課金し、より大きなrunnerやLinux以外のOSには乗数が適用されます。
乗数の仕組み
GitHubはLinuxを1x、Windowsを2x、macOSを分あたりレートの10xで課金します。20分のmacOS jobは200分の課金対象minutesを消費します。より大きなLinux runnerも乗数が適用され、16 vCPUのrunnerは標準の2 vCPU runnerよりもwall-clock分あたりの課金が高くなります。
削減する方法
依存関係のcache、concurrencyによる置き換えられたrunのキャンセル、冗長なmatrixのレグの回避は、いずれもcompute minutesを削減します。self-hostedおよびマネージドのrunner(Latchkeyなど)は、GitHubの分あたりレートではなく基盤となるクラウドcomputeに課金するため、通常は大量利用時により安価です。
関連ガイド
Build Minutes Overage - CI/CD Glossary DefinitionBuild Minutes Overage: Build minutes overage is the usage beyond your plan included allotment, charged at the…
On-Demand Instance - CI/CD Glossary DefinitionOn-Demand Instance: An on-demand instance is a cloud VM you pay for by the second or hour with no upfront com…
Managed Runner - CI/CD Glossary DefinitionManaged Runner: A **managed runner** is a runner operated by a third party (like Latchkey) - you get self-hos…