ログローテーションとは?
ログローテーションとは、肥大化するログファイルを脇へ退避させ、新しいファイルを開始し、古いアーカイブが期限切れになるか一定サイズを超えたら削除または圧縮する運用です。ローテーションツールはスケジュールに従って実行され、多数のログにわたってこれらの上限を課します。ロギングがひそかにディスクを埋め尽くすのを防ぎつつ、有用な履歴の窓を保ちます。
なぜ重要か
ローテーションがないと、長時間稼働する runner 上の冗長なサービスログがディスクを埋め尽くし、後続の build を容量不足エラーで壊すことがあります。ローテーションはその履歴を有限に保ち、ロギングを持続可能にします。
関連ガイド
What Is a System Logger?A system logger is the service that collects log messages from the kernel and programs and routes them to fil…
What Is an Inode?An inode is the on-disk record that stores a file metadata and the location of its data blocks, while the fil…
What Is the Kernel Ring Buffer?The kernel ring buffer is an in-memory log of recent kernel messages, viewed with dmesg, that records events…