Image Pull Time - CI/CD用語集の定義
image pull timeとは、jobがコンテナイメージ内で実行できるようになる前に、そのイメージのダウンロードと展開に費やされるwall-clockの時間です。コンテナベースのCIでは、cold なイメージcacheで始まるすべてのjobに追加される純粋なオーバーヘッドです。
削減する方法
大きなベースイメージがpull timeの大部分を占めるため、イメージのスリム化(multi-stage build、distrolessまたはalpineベース、runtimeレイヤーからのbuildツールの削除)が最も効果的です。runnerと同じ場所に配置されたregistryのpull-through cacheは同じレイヤーの再ダウンロードを回避し、人気のあるイメージをwarm poolに事前pullすると待ち時間が完全になくなります。
関連ガイド
Cache (CI) - CI/CD Glossary DefinitionCache (CI): A **cache** stores dependencies or build outputs between runs so they are restored instead of rec…
Network Egress Cost - CI/CD Glossary DefinitionNetwork Egress Cost: Network egress cost is the per-gigabyte fee cloud providers charge for data leaving thei…
Cold Cache - CI/CD Glossary DefinitionCold Cache: A cold cache is a cache with no useful entries for the current run, so every lookup misses and th…