This topic describes how to install, upgrade, and uninstall Network Load Balancer (NLB) in the OceanBase Admin Toolkit (OAT) console.
Prerequisites
Before you install NLB, make sure that the following conditions are met:
- You have installed OAT and logged in as a super administrator or an O&M engineer. For more information, see Install OAT.
- You have added a server to install NLB. For more information, see Add a server.
- You have added an NLB image file.
- The server meets the requirements for installing NLB.
Install NLB
To install NLB, perform the following steps:
In the left-side navigation pane, choose Product Service > Components.
On the Components page, click Create Component in the upper-right corner and choose Create NLB.
On the Create NLB page, configure the parameters.
The following table describes the basic parameters of NLB.
ParameterDescriptionNLB Image The Docker image of NLB. Component Name The name of the component, which must be unique. Default value: NLB.Server The IP address of the server on which you want to install NLB. CPU The number of CPU cores available to NLB. Default value: 4. Memory The size of memory available to NLB, in GB. Default value: 8. VIP NIC The network interface controller (NIC) that provides the IP address for accessing NLB. VIP Address The IP address for accessing NLB. ETCD Peer Port The peer port of the internal etcd. ETCD Client Port The client port of the internal etcd. After you configure the parameters, click Submit.
You can also click Reset to restore to the default configurations.
Upgrade NLB
Starting from OAT V4.6.0, NLB supports rolling upgrade. During a rolling upgrade, business connections can be restored within the node switchover window, preventing all nodes from becoming unavailable simultaneously.
Prerequisites
- The current number of NLB nodes is between 1 and 3. Upgrading is not supported when the number exceeds 3.
- The target version has been uploaded to the image repository and scanned.
- There is a valid upgrade path between the current and target NLB versions. The default valid path is from
4.0.0to4.2.1. Other paths require configuration by an administrator.
Procedure
To upgrade NLB, perform the following steps:
In the left-side navigation pane, choose Product Service > Components.
Find the NLB service you want to upgrade and click its name in the Name column to go to the details page.
Note
You can search for the component by name at the top of the page.
In the upper-right corner of the details page, click Upgrade.
In the Upgrade dialog box that appears, enter the required information.
FieldDescriptionUpgrade Method Only Rolling is supported. Rolling upgrade replaces nodes one by one, with the node hosting the VIP being upgraded last to prevent VIP ownership loss during the upgrade. Please select the image file for upgrade The target upgrade image file. Only the target versions in the valid upgrade path are displayed. Click Confirm.
Note
- If any node fails during the upgrade, the upgrade for subsequent nodes will stop immediately. Monitor the task center closely.
- The system performs a precheck before the upgrade, including items such as the number of nodes, etcd health status, and VIP ownership. If the precheck fails, the upgrade cannot proceed.
Uninstall NLB
To uninstall NLB, perform the following steps:
In the left-side navigation pane, choose Product Service > Components.
Find the NLB component that you want to uninstall and click Uninstall in the Actions column.
Note
You can also search for the required NLB component by name at the top of the page.
In the message that appears, click OK.
Then, OAT displays a message indicating that the component is being uninstalled and creates an uninstallation task. You can click the task ID in the message to view the task progress.
Note
If the NLB component is associated with another service, the uninstallation fails.
What to do next
After you install or upgrade NLB, you can install other OceanBase services.