Changing Failover Priority

Scenarios

GaussDB provides failover priority on availability or reliability. You can change the failover priority of a DB instance on the Basic Information page.

Procedure

  1. Log in to the management console.

  2. Click image1 in the upper left corner and select a region and project.

  3. Click image2 in the upper left corner of the page and choose Databases > GaussDB. The GaussDB console is displayed.

  4. Click the name of the target instance to go to the Basic Information page.

  5. In the DB Information area, click Change in the Failover Priority field.

  6. In the displayed dialog box, select Reliability or Availability as required.

    • Reliability: Data consistency is given priority during a failover. This is recommended for applications with highest priority for data consistency.

    • Availability: Database availability is given priority during a failover. This is recommended for applications that require their databases to provide uninterrupted online services.

     
    Important

    If Availability is selected, exercise caution when changing the following database parameters:

    • recovery_time_target: If this parameter is incorrectly changed, the instance will undergo frequent forced failovers. To change this parameter, contact technical support.

    • audit_system_object: If this parameter is incorrectly changed, DDL audit logs will be lost. To change this parameter, contact technical support.

  7. Click OK.

  8. After you change some parameters, manually reboot the instance for the changes to take effect. For details, see Rebooting a DB Instance.

    The failover priority cannot be changed when the DB instance is in the Rebooting state.