Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section


Column

Depending on the user's intentions, heartbeat of the node can be changed.
Below is the instruction of how to edit heartbeat.  


Column
width350px


Panel

Table of Contents

Table of Contents
maxLevel4

 




How to edit heartbeat

  1. After selecting a cluster in the console, go to the "Menu" and select "Edit(E)"  → "Edit HB Config".  
    Image Removed Image Added 
    [Figure] Edit Heartbeat Configuration View

  2. It shows heartbeat configuration setting. 
    Image Removed Image Added 
    [Figure] Heartbeat Configuration Edit Initial View


  3. Edit heartbeat and check connection state by clicking the "test" button. 

    Image Removed Image Added 
    [Figure] Test Connection State after changing heartbeat


  4. Click the "Yes" button to apply heartbeat changes. 

    [Figure] Check heartbeat changes View
    After applying heartbeat, wait for restart. 
    Image Removed

  5. [Figure] After Restart Engine and Waiting View
    When the engine is restarted, a message will appear. 

    [Figure] Restart Engine Completed Message

 

...



CLI Use(mchb command)

mchb command

...

Info

 When you install MCCS, the initial user account ID is set to 'admin' and the password is set to 'password'.
When you run the CLI command, you need to enter the ID and the password. Otherwise, the above initial ID and password will be used.
Thus, when you change the initial user password, you must enter the ID/password in the CLI command as options.

...


Syntax

...


mchb [-u userid] [-pw password] -options [-c newClustername ] [ -hbport port ] [ -node nodeName]
 


 

Options

OptionDescription

-h

Display Help.

-uDesignate the user ID.
-pw

Enter the user password with the -u option.

-show

It shows the currently configured heartbeat information.

-clustermodify

Enter the new cluster name to switch.

-hbport

Enter the new heartbeat port to switch.

-hbmodify

Change the heartbeat configuration.

-newconfigUsed when you configure the heartbeat for the first time.

...

You can see the heartbeat information configured.

...


mchb -u admin -pw password -show
 


clustermodify

The testCluster cluster name is changed to newCluster.


 

mchb -u admin -pw password -clustermodify -c newCluster
 


hbport

Change the heartbeat port to 12345.

...


mchb -u admin -pw password -hbport 12345
 


hbmodify

In the heartbeat lines, the Primary1 heartbeat is changed to 200.200.200.1 and 200.200.200.2.


 

mchb -u admin -pw password -hbmodify -node Active 200.200.200.1,100.100.100.1,10.10.7.71 -node -StandBy 200.200.200.2,100.100.100.2,10.10.7.72
 


newcofig

Configure the heartbeat.
Cluster name: MCCS_Cluster
Heartbeat port: 14321 , network address of other node: 10.10.7.72
Node name: Active , StandBy


 

mchb -u admin -pw password -newcofig -clustername MCCS_Cluster -hbport 14321 -remote 10.10.7.72 -node Active 100.100.100.1,200.200.200.1,10.10.7.71 -node StandBy 100.100.100.2,200.200.200.2,10.10.7.72