API for the Controller to Obtain Master/Slave Information and Number of Requests from the Coordinator
Function
Queries master/slave information of the Coordinator and the number of requests received by the Coordinator in a specified period.
This API does not need to be called by users. It is a communication API between the Coordinator and Controller.
Format
Operation type: GET
URL: https://{ip}:{port}/recvs_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
None
Usage Example
Request example:
GET https://{ip}:{port}/recvs_info
Response example:
{"is_master":false,"recv_flow":0}
Output Description
Parameter |
Type |
Description |
|---|---|---|
is_master |
Bool |
Mandatory. Whether the queried Coordinator is the active Coordinator. |
recv_flow |
Integer |
Mandatory. Number of requests received by the Coordinator from the last query to the current query. |
Parent topic: Intra-cluster Communication APIs