Network Egress Cost - CI/CD用語集の定義
network egress costとは、データがネットワークからインターネットや別のリージョンへ出ていく際に、クラウドプロバイダーがギガバイトあたりに課金する料金です。受信(ingress)は通常無料ですが、送信(egress: ダウンロード、リージョン間トラフィック、外部registryへのイメージのpush)は計測されます。
CIで発生する理由
大きなコンテナイメージをpullしたり、外部ミラーから依存関係をダウンロードしたり、buildのartifactを別リージョンのregistryにpushするself-hosted runnerは、egressを蓄積します。AWS、GCP、Azureはいずれも、わずかな無料枠の後、GBあたり約$0.05から$0.12の範囲でegressを課金します。
削減する方法
runner、registry、cacheを同じリージョンとクラウドに配置し、イメージとパッケージにはpull-through cacheまたはローカルミラーを使用し、egressレートが低いかゼロであることが多いプライベートエンドポイント(VPC、Private Service Connect)を優先しましょう。
関連ガイド
Build Minutes Overage - CI/CD Glossary DefinitionBuild Minutes Overage: Build minutes overage is the usage beyond your plan included allotment, charged at the…
Image Pull Time - CI/CD Glossary DefinitionImage Pull Time: Image pull time is the wall-clock duration spent downloading and extracting a container imag…