-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heartbeat Lag with Aurora blocking cutover. #1081
Comments
hello,i have same issue ,the question is saved? |
Nope. |
Bump. I am testing gh-ost and observed very similar issue. In my case it was CloudSQL MySQL (MySQL in GCP). I executed gh-ost on DB host without replica. Migration was long ~20 hours and was throttled a few times and connection was lost and recovered a few times. At some point "Lag" and "HeartbeatLag" drifted and never went down. Ultimately all rows were copied and all binglogs changes applied but gh-ost was forever applying binglogs events (the only ones left were the ones it itself generated, there was no more traffic on this DB host anymore). |
Finally, I dealt with this problem by using online ddl.
------------------------------------------------------------------
发件人:Dasiu ***@***.***>
发送时间:2024年11月21日(星期四) 17:57
收件人:github/gh-ost ***@***.***>
抄 送:zhang17310521020 ***@***.***>; Comment ***@***.***>
主 题:Re: [github/gh-ost] Heartbeat Lag with Aurora blocking cutover. (Issue #1081)
Bump.
I am testing gh-ost and observed very similar issue. In my case it was CloudSQL MySQL (MySQL in GCP). I executed gh-ost on DB host without replica. Migration was long ~20 hours and was throttled a few times and connection was lost and recovered a few times. At some point "Lag" and "HeartbeatLag" drifted and never went down. Ultimately all rows were copied and all binglogs changes applied but gh-ost was forever applying binglogs events (the only ones left were the ones it itself generated, there was no more traffic on this DB host anymore).
—
Reply to this email directly, view it on GitHub <#1081 (comment) >, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AYWCVYN6XKXERUB4BZI7XSD2BWVBLAVCNFSM6AAAAABSGSUOI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJQGYZDCOBYGA >.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hello everyone!
I am currently running a long running migration on Aurora MySQL 5.7. I running it on a copy of my production database. With Aurora style replication (meaning not actual replication) I have successfully run it on smaller tables, but when I run a migration on the scale of 20-24 hours I keep running into
HeartbeatLag
that always increases and never returns once it starts to drift.Here is a sample output from a recent run.
I have completed this same migration up until the cut over phase and it was just blocked there due to
HeartbeatLag
being so high by the time the migration completed. If really odd when theHeartbeatLag
kicks in and simply doesn't return to lower values ever increasing from then on out.I have also set the binlog retention to 72 hours.
I even tried to forcibly trigger the cutover and it replied with nothing is blocking the cutover.
I have followed all the recommended Aurora settings aside from running the migration on master directly.
aurora_enable_repl_bin_log_filtering
is set to 0Here is the command I ran.
Any guidance from other aurora users would be appreciated.
The text was updated successfully, but these errors were encountered: