soundcloud / lhm

Online MySQL schema migrations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

During LHM migration, Table is getting locked for bigger table and all our connections are holding up

vaidhyanathan-ananthakrishnan opened this issue · comments

During LHM migration.

Trigger is getting added and during that time our table is getting locked and all the in that table are also went to wait state for a long time.

Hey, bouncing on this.. No matter the stride and wait time, migrating a very large table (> 200M rows) does lock the table for small amount of time which is causing a lot of deadlock.
It seem like LHM is using INSERT INTO ... SELECT to ensure data cohesion when copy old data to new table, can we tweak any InnoDB settings to avoid lock time? (-> https://dba.stackexchange.com/questions/73540/mysql-consistent-nonlocking-reads-vs-insert-select/73542#73542)

PS: Is anybody still supporting this project?