APPLY_...AY_LOGS(1p)

📦
version 0.58 · 3 versions
, in debian trixie, ubuntu noble, ubuntu questing

✨ NAME ✨

apply_diff_relay_logs — bestie, this one generates differential relay logs between the latest slave and the target slave, and applies all binlog/relay log files. 💖

Okay so real talk: this command gets run automatically from MHA Manager on failover, so you should not normally need to run it by hand. Like, at all. It's the girl who does her job behind the scenes and doesn't need you hovering. 👑


💫 SYNOPSIS 💫

Three moods, three modes. Pick your fighter:

Mode 1 — just checking (peek at it, don't touch anything):

# For checking apply_diff_relay_logs --command=test
--target_version=5.1.56 --relay_log_info=s --slave_user=s --slave_host=s
--slave_ip=s --slave_port=i --workdir=s

Mode 2 — generating the differential log events:

# For generating differential log events apply_diff_relay_logs
--command=generate_and_send --target_version=5.1.56 --scp_user=s
--scp_host=s --latest_mlf=s --target_mlf=s --target_rmlp=i
--relay_log_info=s --server_id=i --diff_file_readtolatest=s
--target_version=s --workdir=s --timestamp=s

Mode 3 — actually applying the log files:

# For applying log files apply_diff_relay_logs --command=apply
--target_version=5.1.56 --slave_user=s --slave_host=s --slave_ip=s
--slave_port=i --apply_files=file1,file2.. --workdir=s --timestamp=s
--slave_pass=xxx
Heads up bestie: notice how --target_version shows up in more than one of these? Yeah. Copy the lines exactly as they're written up there — no freestyling, no ✨creative✨ reordering. 🫶

That's the whole page, fr fr. Nothing else hiding in here — no OPTIONS section, no SEE ALSO, no little bonus lore. What you see is what you get, and what you get is the vibe. 💅

This one lives in the User Contributed Perl Documentation corner of the manual set, and it's riding on perl v5.36.0, dated 2023-10-03. Slay, go forth, and let MHA Manager handle it like the main character it is. 🦋🌸💜

📦 where this page comes from