API for the Controller to Synchronize the Master/Slave Status and Abnormal Status to the Coordinator
Function
Synchronizes the master/slave status and abnormal status from the Controller to the Coordinator.
Format
Operation type: POST
URL: https://{ip}:{port}/backup_info
- Preferably set {ip} to {manage_ip} in Starting Coordinator. If the parameter is not configured, set {ip} to the value of the manage_ip parameter in the ms_coordinator.json configuration file.
- Preferably set {port} to {manage_port} in Starting Coordinator. If the parameter is not configured, set {port} to the value of the manage_port parameter in the ms_coordinator.json configuration file.
Request Parameters
Parameter |
Type |
Description |
|---|---|---|
is_master |
Bool |
Mandatory. The Controller determines whether the Coordinator is the master Coordinator. |
is_abnormal |
Bool |
Mandatory. The Controller checks whether both Coordinators receive the request. |
Usage Example
Request example:
POST https://{ip}:{port}/backup_info
Request body:
{"is_master":false,"is_abnormal":false}
Response example:
{"update_successfully": true}
Output Description
None
Parent topic: Intra-cluster Communication APIs