Updated on 2024-05-09 GMT+08:00

Installing the Proxy Client

Scenarios

Asynchronous replication provides server-level protection if production site applications cannot be recovered within a short period of time due to force majeure (fire and earthquake) or device faults (faulty software and hardware). You can quickly recover services at the disaster recovery site with simple configurations.

Prerequisites

  • To ensure that the service can run properly, make sure that the ports described in section "Port Description (Asynchronous Replication)" are not used.
  • If the firewall is enabled on the ECS where you want to deploy the proxy client, enable port 59526 on the firewall.
  • It is recommended that you deploy the disaster recovery gateway and proxy client in the same security group and only allow ECSs within the security group to communication with each other. For details, see Security Group Configuration Examples.

Procedure

Linux

In the following example, sdrs_linux_amd64_24.3.0.20240329230906.tar.gz is the package (24.3.0) used to install the proxy client on CentOS.

  1. Obtain the proxy client package and upload it to a directory on the target server. Ensure the package integrity by comparing the sha256 value in advance.

    • IDC-to-cloud: Click the link on the console to download the package and upload it to the target server.

    • Cross-region and Cross-AZ: Select the OS type and version of your production server on the console and copy the command provided. Then, log in to the production server, go to the desired directory, and paste and run the command to obtain the package.

  2. In the directory containing the package, and run the following command as user root to decompress the package:

    tar -zxvf sdrs_linux_amd64_24.3.0.20240329230906.tar.gz

  3. Go to the directory containing the installation script.

    cd sdrs_linux_amd64_24.3.0.20240329230906

  4. Install the proxy client.

    sh install.sh --hostagent-ip=hostagent ip --drm-ip=drm ip --role=all

    In the preceding command, hostagent ip indicates the IP address of the proxy client. Set it to the IP address of the primary NIC of the server you want to install the proxy client. drm ip indicates the IP address of the cloud disaster recovery gateway.

    If the command output contains the following information, the proxy client has been installed:
    ...
    Installed SDRS successfully.
    ...

  5. After the installation is complete, delete the installation package and decompressed files.

Windows

In the following example, sdrs_win_24.3.0.20240329230913.zip is the package (24.3.0) used to install the proxy client on Windows Server 2019.

  1. Obtain the proxy client package and upload it to a directory on the target server. Ensure the package integrity by comparing the sha256 value in advance.

    • IDC-to-cloud: Click the link on the console to download the package and upload it to the target server.

    • Cross-region and Cross-AZ: Select the OS type and version of your production server on the console and copy the command provided. Then, log in to the production server, go to the desired directory, and paste and run the command to obtain the package.

  2. In the directory containing the package, right-click the package to decompress it.
  3. Double-click the decompressed directory to go to the directory containing the installation script.

  4. If the JDK is not installed on the production server, go to the drm\tools\jre directory, double-click the JDK installation program, and install JDK as prompted.

    SDRS requires that the JDK version is jdk.8u261 or later. If the installed version is earlier than jdk.8u261, upgrade JDK.

  5. Double-click install.bat to run the script.

    Enter the parameters as prompted.

    1. Select all for role.
    2. Enter the gateway IP address for DRM IP Address.
    3. If the production server has multiple NICs, all the IP addresses bound by Nginx will be displayed, enter the serial number of the IP address you required.
    Figure 1 Proxy client installation example

  6. The proxy client is installed in the C:\cloud\sdrs directory. After the installation is complete, manually delete the installation package and decompressed files.