Patent ID: 11892922
Assignee: HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 17:
18. An electronic device, comprising: a processor and a non-transitory machine-readable storage medium;
wherein the non-transitory machine-readable storage medium stores machine executable instructions that can be executed by the processor; and
the processor is configured to execute the machine executable instructions to perform the following operations:
querying for a connection state of a hot-backup connection between a master application server and a backup application server; and
when a backup application server state indicated by the connection state is inconsistent with a backup application server state recorded by a management server, updating the recorded backup application server state to the backup application server state indicated by the connection state;
wherein the backup application server state indicated by the connection state is inconsistent with the recorded backup application server state comprises at least one of:
when the backup application server state indicated by the connection state is a backup active state, if the recorded backup application server state is a backup ready state, it is determined that the backup application server state indicated by the connection state is inconsistent with the recorded backup application server state; or
when the backup application server state indicated by the connection state is a backup ready state, if the recorded backup application server state is a backup active state, it is determined that the backup application server state indicated by the connection state is inconsistent with the recorded backup application server state;
wherein the backup active state is used to indicate that a backup application server works normally, and when the hot-backup connection is normal, the connection state of the hot-backup connection indicates that the backup application server state is the backup active state; the backup ready state is used to indicate that the hot-backup connection between a backup application server and a master application server is abnormal when the backup application server is not in failure, and when the backup application server is not in failure, if the hot-backup connection is abnormal, the connection state of the hot-backup connection indicates the backup application server state is the backup ready state.