Scale-to-Zero - CI/CD用語集の定義
scale-to-zeroとは、作業がないときにすべてのrunnerを削除するautoscalingの動作であり、アイドルなcomputeに対して料金を支払いません。再びjobがキューに入ると、autoscalerはゼロから新しいrunnerを起動し、アイドルコストゼロと引き換えにcold-startの遅延を受け入れます。
トレードオフ
scale-to-zeroは、アイドルなrunnerが常時お金を浪費してしまうようなスパイクの多いワークロード(夜間バッチ、コミットが散発的なリポジトリ)に理想的です。コストは、runnerがcold-startする間、閑散期の後の最初のjobに追加されるレイテンシです。小さなwarm poolはそのレイテンシを和らげつつ、節約の大部分を維持できます。Latchkeyのようなマネージドプラットフォームは、ゼロにスケールしつつwarmなリザーブを維持できるため、最初のjobでも素早く開始できます。
関連ガイド
Autoscaling Policy - CI/CD Glossary DefinitionAutoscaling Policy: An autoscaling policy is the rule set that decides when to add or remove runners based on…
Cold Start - CI/CD Glossary DefinitionCold Start: A **cold start** is the delay while a fresh runner boots and sets up before a job begins. Warm po…
Warm Pool - CI/CD Glossary DefinitionWarm Pool: A **warm pool** is a set of pre-booted runners kept ready so jobs start almost instantly instead o…