VCM machineID
1.machineID
The unique ID assigned by the BMU to all clusters in the cluster, starting from 2001 and increasing in sequence. The main management class of BMU machineID is ClusterMachineIdMap.
1.1BMU machineID management
BMU saves the list of machineIDs of all nodes in the cluster in
/usr/local/iGET/SRE/SEM/webapps/sem/WEB-INF/classes/ machineId.propertiesConfiguration file,
The file content is the matching relationship between the machineID and ComputeNode_ID.
/usr/local/iGET/config/cluster/clusterConfig.propertiesThe cnSn attribute of the file saves the native machineID
。
1.2 BMU machineID application
1.2.1 Inter-module authentication
When the BMU creates a cluster, all nodes are generated, and the server authentication information of all modules is sent to
/usr/local/iGET/SRE/SEM/webapps/sem/WEB-INF/classes/serveraccount.xml。
The user name for authentication between modules is named "module name_machineID", which is used to store the authentication and authentication information of the specified module on the machine.
<accounts><account><username>sdkservice_2001</username><pwd>zOVcC4nqivKZ2eq0nU5tsA==</pwd><iv>qehLj3NaENRyrexL</iv></account> |
The inter-module authentication authentication client information is maintained by each module and is generally stored in the clientaccount.xml file of the module directory
<username>mp_mcss_MACHINEID</username> |
The initial username username is "module name_MACHINEID", and the MACHINEID is replaced with the native machineID when the service is started.
MP module client file example, 2014 is the machineID of the node where the MP is located.

1.2.2 VCM business
The service saves the correspondence between machineID and IP. The data content stored in some databases is machineID, and then the corresponding IP is queried through the mapping relationship.

1.2.3 CMU&SUBCMU
CMU and SUBCMU message communication NodeID.
1.2.4 zookeeper
Zookeeper uses machineID as the node unique ID (myid)。
1.2.5 Disaster tolerance
To ensure that the machineID is unique, the machine ID 2001 of the disaster recovery production center is incremented, and the machine ID 1001 of the disaster recovery center is incremented.