Articles in this section

How to change the cluster-name dynamically?

Context

cluster-name setting can be dynamically changed on a cluster.

Method

Changing the cluster-name can be changed dynamically through asadm using the following command:
 
manage config service param cluster-name to <NEWCLUSTERNAME>

This will need to be followed up with a recluster command:
 
manage recluster



example:
 
Admin+> show config like cluster-name                                                                                                                                                           
~Service Configuration (2024-03-18 17:56:15 UTC)~
Node        |localhost:3104
cluster-name|xdc2          
Number of rows: 2

Admin+> enable                                                                                                                                                                                  
Admin+> manage config service param cluster-name to mycluster                                                                                                                                   
~Set Service Param cluster-name to mycluster~
          Node|Response
localhost:3104|ok      
Number of rows: 1

Run "manage recluster" for your changes to cluster-name to take affect.
Admin+> manage recluster                                                                                                                                                                        
Successfully started recluster
Admin+> show config like cluster-name                                                                                                                                                           
~Service Configuration (2024-03-18 17:56:38 UTC)~
Node        |localhost:3104
cluster-name|mycluster     
Number of rows: 2

 

Applies To Earliest Version

5.0

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful