Online Schema Change - CI/CD用語集の定義
オンラインスキーマ変更は、通常は新しい構造を持つシャドウコピーを構築して入れ替えることで、読み取りと書き込みをブロックせずに大きなテーブルを変更します。ツールには gh-ost や pt-online-schema-change があります。
なぜ重要か
大きなテーブルに対する単純な ALTER TABLE は、数分間ロックを保持してアプリケーションを停止させることがあります。オンラインツールはバックグラウンドで行をコピーし、アトミックにカットオーバーします。これが MySQL でゼロダウンタイムのマイグレーションを可能にする仕組みです。
関連ガイド
Zero-Downtime Migration - CI/CD Glossary DefinitionZero-Downtime Migration: A zero-downtime migration changes the schema without taking the application offline,…
Database Index - CI/CD Glossary DefinitionDatabase Index: A database index is an auxiliary data structure (usually a B-tree) that lets the database fin…
Schema Migration - CI/CD Glossary DefinitionSchema Migration: A schema migration changes the structure of a database (tables, columns, indexes, constrain…