Klustron Cluster Management
Klustron Cluster Management
Objective
The objective of this article is to provide detailed instructions for testing the creation of a cluster, adding computing nodes, adding storage shard nodes, deleting computing nodes, deleting storage shard nodes, and actively initiating shard master-slave switch in Klustron 1.1.1, all of which are completed through the XPanel console.
The XPanel service is installed on the server with IP address 192.168.56.101. To access XPanel, open a browser on a computer that can access 192.168.56.101 and enter the address: http://192.168.56.101:18080/KunlunXPanel/#/login?redirect=%2Fdashboard
The initial login username and password are super_dba/super_dba, and the super_dba password needs to be changed on the first login. After logging in, the homepage is displayed as follows:
1 Create Cluster
1.1 Click "Cluster Management" and "Cluster List" to go to the cluster list interface, then click the "New" button.
1.2 Add cluster parameters as shown in the figure below:
1.3 Click "Confirm" to check the completion status of creating the cluster.
1.4 Click "shard_1:68" to view the details of shard_1.
1.5 All statuses show "Running", indicating that the cluster creation process is complete.
2 Add Computing Nodes
2.1 In the cluster list, click the "Settings" or "+" button for the cluster that needs to add computing nodes.
2.2 In the "Cluster Settings", click "Computing Node List", and then click the "Add Computing Node" button.
2.3 Add computing node parameters as shown in the figure below.
2.4 Click "Confirm" to check the completion status of adding computing nodes.
2.5 Computing node 192.168.56.102 has been added to the cluster.
3 Add Storage Shard Nodes
3.1 In the cluster list, click the "Settings" or "+" button for the cluster that needs to add storage shard nodes.
3.2 In the "Cluster Settings", click "Shard List", and then click the "Add Shard" button.
3.3 Add shard node parameters as shown in the figure below.
3.4 Click "Confirm" to check the completion status of adding storage shard nodes.
3.5 Click "shard_2:76" to view the detailed information of shard_2.
3.6 Verify that the storage shard node shard_2 has been added to the cluster.
4 Delete Computing Nodes
4.1 In the cluster list, click the "Settings" button for the cluster that needs to delete the computing nodes.
4.2 In "Cluster Settings", click "Computing Node List", and then click the "Delete" button for the computing node that needs to be deleted. In this example, delete computing node 192.168.56.102.
4.3 After clicking the "Delete" button, enter the corresponding code as prompted, as shown in the figure below "3382", and then click the "Confirm" button.
4.4 Click "Confirm" to check the completion status of deleting computing nodes.
4.5 The computing node deletion is completed. The computing node 192.168.56.102 has been deleted.
5 Delete Storage Shard Nodes
5.1 In the cluster list, click the "Settings" button for the cluster that needs to delete the storage shard nodes.
5.2 In "Cluster Settings", click "Shard List", and then click the "Delete" button for the storage shard node that needs to be deleted. In this example, the storage shard node to be deleted is shard_2.
5.3 After clicking the "Delete" button, enter the corresponding code as prompted, as shown in the figure below "6240", and then click the "OK" button.
5.4 Click "Confirm" to check the completion status of deleting the shard nodes.
5.5 The deletion of the shard node is completed. The shard node shard_2 has been deleted.
6 Initiate Master-Slave Switch
6.1 In the cluster list, click the "Settings" button for the cluster that needs to perform a master-slave switch on a storage shard node.
6.2 In the "Cluster Settings" section, click the "Shard List" to view the current master node of the storage shard node. In this example, the current master node of the shard is on 192.168.56.101, as shown below.
6.3 Click the "Master-Slave Switch" button on the master node, and then select the "Slave Node" in the master-slave switch and click the "Confirm" button. In this example, 192.168.56.102(57003) is selected, as shown below.
6.4 Click "Confirm" to check the completion status of the master-slave switch task.
6.5 The master-slave switch of the shard node is completed. The master node of the shard has been switched from the original node 192.168.56.101 to the node 192.168.56.102.