HA configuration

For high availability, you can set up a stateful failover system with two hosts for Space Center to prevent hardware or software failure from interrupting services. In the stateful failover system, one host is placed in primary state to provide services, and the other host is placed in backup state as a standby. When the primary host fails, the backup host takes over automatically to ensure service continuity for Space Center.

Prerequisites

Set up a stateful failover system

If the stateful failover system splits because of primary or backup host failure, perform the following tasks to recover the stateful failover system:

  1. Reinstall the H3Linux operating system on the failed host or replacement host. Make sure the IP address of the replacement host is the same as that of the failed host.

  2. Execute the ha_reset.sh script in the /opt/center directory on the host that operates correctly.

  3. Log in to Space Center at the IP address of the host that operates correctly and click Execute.

  1. From the navigation pane, select System Settings > HA Configuration.

  2. Enter the IP address of the backup host and the username and password for logging in to the backup host, and click Check Network Connectivity.

  3. Click Next and configure the following parameters:

    • Primary Host IP: Enter the IP address of the primary host.

    • VIP: Enter the virtual IP address at which Space Center provides service. The virtual IP address must be an available IP address on the same subnet as the IP addresses of the primary and backup hosts.

    • Subnet Mask: Enter the subnet mask for the virtual IP address and the primary and backup host IP addresses.

  4. Click Next.

View stateful failover configuration

  1. From the navigation pane, select System Settings > HA Configuration.

  2. View the stateful failover configuration and the server state.

  3. Click Execute if the stateful failover service is abnormal.