Resource Limits - CI/CD用語集の定義
リソース制限は、コンテナが消費できるCPUとメモリの上限を設定し、cgroupsを通じて適用されます。Kubernetesではコンテナごとのlimits(ハードな上限)とrequests(保証された予約)です。
CIで設定する理由
メモリ制限がないと、1つのbuildが共有runner上の他のbuildのリソースを奪い尽くす可能性があります。制限が低すぎると、カーネルがexit 137でjobをOOMキルします。制限を適切にサイジングすることで、実行を安定させつつコスト効率も保てます。
関連ガイド
cgroups - CI/CD Glossary Definitioncgroups: cgroups (control groups) are a Linux kernel feature that limits and accounts for the resources (CPU,…
OOM Score - CI/CD Glossary DefinitionOOM Score: The OOM score is a per-process value the Linux kernel uses to decide which process to kill first w…
Container Orchestration - CI/CD Glossary DefinitionContainer Orchestration: Container orchestration automates deploying, scaling, networking, and healing of con…