This topic describes how to add or delete components in the graphical interface.
Prerequisites
Before you start, make sure that you have met the following conditions:
You have installed obd V2.10.0 or later. We recommend that you install the latest version. For more information, see Install obd.
obd manages at least one running OceanBase cluster.
You can log in to the node where the component to be added is located by using password-free SSH.
Install the component
Step 1: Start the graphical interface
Start the graphical interface
Run the
obd webcommand in the command line to start the graphical interface, and click the provided address to access it.[admin@test001 ~]$ obd web start OBD WEB in 0.0.0.0:8680 please open http://10.10.10.1:8680Note
The graphical interface by default uses port 8680. You can use the
obd web -p <PORT>command to specify the port, which must be in the range [1025, 65535].In Alibaba Cloud or other cloud environments, the program may fail to obtain a public IP address and instead output an internal IP address. This IP address is not a public IP address, so you need to use the correct IP address to access the graphical interface.
The
obd webcommand is bound to 0.0.0.0. In a multi-network card deployment, you can access the graphical interface using any accessible IP address.You can use the nohup or screen command to run the
obd webcommand in the background.
(Optional) Place the cursor on the Chinese character in the upper-right corner of the graphical interface and click to switch between Chinese and English interfaces based on the displayed language.
Click Start Your Trial on the interface, and in the Welcome to the OceanBase Deployment Wizard window, select the Component Management module. Place the cursor on the Manage button and select the corresponding component management method. In this case, select Component Installation.
Step 2: Deployment configuration
You can select the components to be installed on the Deployment Configuration page. The Deployment Configuration page contains the following information.
Module |
Description |
|---|---|
| Deployment Object | Select the cluster to add the component. Click the dropdown list below Cluster to display all running clusters managed by obd. Click the name of the corresponding cluster to add the component to it. |
| Select Deployment Components | After you select a cluster, this section displays the components deployed in the cluster and the components that can be added. Click the checkbox before the corresponding component to select whether to install it. The component version is fixed to the latest version. Click Learn More after the corresponding component to view its documentation. |
After you select the deployment components, click Next in the lower-right corner to go to the Component Configuration page.
Step 3: Component configuration
You can configure the nodes, ports, and other related settings for the components to be deployed on the Component Configuration page. The component deployment page contains the following information.
Module |
Description |
|---|---|
| Component Node Configuration | You can configure the IP address of the selected component in this section. After you enter an IP address, press Enter to configure multiple node IP addresses. We recommend that you use an IP address other than 127.0.0.1.
NoteThe AlertManager node supports only a single IP address. |
| Deployment User | The username is the username used to deploy the current cluster and cannot be modified. Ensure that the user exists on each host and has the corresponding directory permissions. |
| Software Path Configuration | The default value is the installation directory of the current cluster. You can customize the software path, which must be an absolute path starting with / and can contain only letters, numbers, and special characters (-_:@/.). |
| Component Configuration | Configure the port and password of the selected component. For more information about the ports and passwords, see Step 4: Cluster configuration in Deploy an OceanBase cluster by using the graphical interface. |
| More Configurations | You can click the expand icon before More Settings to view the corresponding component parameters. You can use the automatically assigned values or customize the parameters.
NoteIf you configure multiple nodes for the obconfigserver node in the Component Node Configuration section, you must configure the load balancer in advance and click More Configurations on this page to configure |
After you configure all the parameters, click Next in the lower-right corner to go to the Precheck page.
Step 4: Precheck
On the Precheck page, view all the configuration information. If you find any issues, click Previous to modify them. After you confirm that all the configurations are correct, click Precheck to start the precheck.
If the precheck fails, you can click Auto Repair (for check items that can be automatically repaired) or click View More Solutions to go to the error code documentation and modify the configurations based on the documentation. After you modify all the errors, click Recheck to start the precheck again.
After the precheck passes, click Deploy to start the deployment of the component.
Step 5: Deploy
Where:
If you deployed the OBProxy component, after the deployment is successful, you can copy the displayed connection string and execute it in the CLI to connect to ODP as the root@proxysys user.
If you deployed a component with a graphical interface, such as Prometheus, Grafana, or Alertmanager, you can click the corresponding connection string to jump to the login page of the component. You can use the account and password displayed on the deployment page to log in.
Note
In an Alibaba Cloud or other cloud environment, the program may fail to obtain the public IP address and instead output the internal IP address. This IP address is not a public IP address. You need to use the correct IP address to access the graphical interface.
In the Deployment Report, click the expand icon before the corresponding component to view the deployment logs. When you hover over View Details in the component list, the command to view the component logs is displayed. Click the copy icon next to the command to copy it. After copying, you can execute the command on the central control node to view the log location of the component.
Click Copy Information to copy and save the account and password of all deployed components. Then, click Complete to exit the deployment program.
Uninstall a component
Step 1: Start the graphical interface
Start the graphical interface
Run the
obd webcommand in the CLI to start the graphical interface. Click the displayed address to access the graphical interface.[admin@test001 ~]$ obd web start OBD WEB in 0.0.0.0:8680 please open http://10.10.10.1:8680Note
The graphical interface uses port 8680 by default. You can use the
obd web -p <PORT>command to specify the port. The port value must be in the range [1025, 65535].In Alibaba Cloud or other cloud environments, the program may fail to obtain the public IP address and output the internal IP address. In this case, you must use the correct IP address to access the graphical interface.
The
obd webcommand is bound to 0.0.0.0. In a multi-network interface deployment, you can access the graphical interface through any accessible IP address.You can use the nohup or screen command to set the
obd webcommand to run in the background.
(Optional) Move the cursor to the Chinese character in the upper-right corner of the graphical interface and click the displayed language to switch between the Chinese and English interfaces.
Click Start the Experience in the operation interface. In the displayed Welcome to OceanBase Deployment Wizard interface, select the Component Management module. Move the cursor to the Manage button and select the component management method based on the displayed options. Here, select Component Uninstallation.
Step 2: Uninstall the component
You can select the component to be uninstalled in the Uninstall Configuration interface. The content of the Deployment Configuration interface is as follows.
Module |
Description |
|---|---|
| Uninstall Object | Select the cluster from which you want to uninstall the component. Click the drop-down arrow below Cluster to display all running clusters managed by obd. Click the name of the target cluster to uninstall the component from the cluster. |
| Select Uninstall Component | After you select the cluster, the components that can be uninstalled from the cluster are displayed here. Click the check box before the component name to select whether to uninstall the component. By default, all components are selected. Click Learn More after the component name to view the documentation of the component.
NoteCurrently, you cannot uninstall obconfigserver. |
After you select the component to be uninstalled, click Uninstall in the lower-right corner. In the confirmation dialog box that appears, click OK to enter the Uninstall interface.
Step 3: Uninstall
The uninstall interface displays the progress and result of the component uninstallation. You can view the Uninstall Status column of the component to determine whether the uninstallation is successful. Move the cursor to the View Running Log option in the Actions column of the component to view the uninstallation log.
The uninstallation result may be in one of the following states. You can perform the corresponding operation based on the displayed result.
Connectivity |
Uninstall Status |
Action |
|---|---|---|
| Checking | Not Uninstalled | No action is required. Wait for the uninstallation to complete. |
| Normal | Uninstalling | The system is uninstalling the component. Move the cursor to the View Running Log option in the Actions column to view the uninstallation log. |
| Uninstall Failed | Move the cursor to the icon next to Uninstall Failed to view the reason for the uninstallation failure. You can perform the following operations:
|
|
| Uninstalled | Move the cursor to the View Running Log option in the Actions column to view the uninstallation log. | |
| Not Connected | Uninstallable | Move the cursor to the icon next to Uninstallable to view the reason for the uninstallation failure. You can click Force Remove in the Actions column to confirm the operation and forcibly uninstall the component. Note that the Force Remove operation only removes the dependency between OceanBase Database and the component, but does not uninstall the component from the host. |
| Removing | No action is required. Wait for the system to remove the component. | |
| Removed | No action is required. |
Click Complete in the lower-right corner. In the confirmation dialog box that appears, click Exit to exit the graphical interface.
