Help Center> GaussDB> User Guide> Instance Modifications> Changing Failover Priority
Updated on 2024-05-07 GMT+08:00

Changing Failover Priority

Scenarios

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

To apply for the permissions needed, submit an application by choosing Service Tickets > Create Service Ticket in the upper right corner of the management console.

Precautions

This function is available only to distributed instances.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.

  3. Click in the upper left corner of the page and choose Databases > GaussDB.
  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.
    In availability scenarios, 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.