非RDSのMySQLをRDSに移行する方法としてまず思い浮かぶのが 移行先のRDSを用意 メンテナンスを入れて非RDSへの書き込みがなくなるようにする 非RDSからmysqldump mysqldumpしたデータをRDSへ投入 利用するDBをRDSに切り替え 動作確認 メンテナンス解除 といった具合ですが、データベースに格納されているデータが大きいとメンテナンス時間は長時間に及びます mysqldumpした後のデータサイズが約40GBの状態で試算してみると mysqldumpに1時間、投入に3時間ぐらいは掛かりそうな雰囲気でした これだけ長時間になるとサービスに与える影響が大きいなぁということで、いろいろと調べていてたどり着いたのがこの方法 非RDSからmysqldump 移行先のRDSを用意 mysqldumpしたデータをRDSへ投入 RDSを非RDSをマスターとしてレプリケーションする