logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

masterha_conf_host - Adding new host entry to, or removing existing host entry from a config file

Description

       See online reference (http://code.google.com/p/mysql-master-ha/wiki/masterha_conf_host) for details.

perl v5.36.0                                       2023-10-03                             MASTERHA_CONF_HOST(1p)

Name

       masterha_conf_host - Adding new host entry to, or removing existing host entry from a config file

Synopsis

       masterha_conf_host --command=add --conf=/etc/conf/masterha/app1.cnf --hostname=db101

        The following lines will be added to the conf file.
        [server_db101]
        hostname=db101

       masterha_conf_host --command=add --conf=/etc/conf/masterha/app1.cnf --hostname=db101 --block=100
       --params="no_master=1;ignore_fail=1"

        The following lines will be added to the conf file.
        [server_100]
        hostname=db101
        no_master=1
        ignore_fail=1

       masterha_conf_host --command=delete --conf=/etc/conf/masterha/app1.cnf --block=server100

        Then entire block [server100] will be removed.

       See online reference (http://code.google.com/p/mysql-master-ha/wiki/masterha_conf_host) for details.

return

See Also