Coder Social home page Coder Social logo

Comments (3)

yoshinorim avatar yoshinorim commented on May 12, 2024

I haven't added orig(or new)master_ssh_user argument since I didn't realize it is necessary.
Passing ssh
* is easy. The below patch will work. I'll add this in the next version.


diff --git a/lib/MHA/MasterRotate.pm b/lib/MHA/MasterRotate.pm
index 8a8c60b..e81f58c 100644
--- a/lib/MHA/MasterRotate.pm
+++ b/lib/MHA/MasterRotate.pm
@@ -394,6 +394,8 @@ sub switch_master($$$$) {
if ( $new_master->{master_ip_online_change_script} ) {
my $command =
"$new_master->{master_ip_online_change_script} --command=start --orig_master_host=$orig_master->{hostname} --orig_master_ip=$orig_master->{ip} --orig_master_port=$orig_master->{port} --orig_master_user=$orig_master->{escaped_user} --orig_master_password=$orig_master->{escaped_password} --new_master_host=$new_master->{hostname} --new_master_ip=$new_master->{ip} --new_master_port=$new_master->{port} --new_master_user=$new_master->{escaped_user} --new_master_password=$new_master->{escaped_password}";

  • $command .= " --orig_master_ssh_user=$orig_master->{ssh_user}";
  • $command .= " --newe_master_ssh_user=$new_master->{ssh_user}";
    $command .= $orig_master->get_ssh_args_if( 1, "orig", 1 );
    $command .= $new_master->get_ssh_args_if( 2, "new", 1 );
    $log->info(

from mha4mysql-manager.

jayjanssen avatar jayjanssen commented on May 12, 2024

Thanks for the update. Will there be an associated release with this enhancement?

from mha4mysql-manager.

yoshinorim avatar yoshinorim commented on May 12, 2024

The patch is committed to the GitHub branch, and will be included in the next release.

from mha4mysql-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.