主备切换方法、装置、终端设备以及存储介质

By controlling the pre-startup of the standby database during the master-slave switchover process and switching to the new master database after meeting certain conditions, the problem of high latency in quote connection in the foreign exchange quotation system is solved, achieving faster database switching and continuity of external services.

CN117370458BActive Publication Date: 2026-07-17CHINA MERCHANTS BANK

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MERCHANTS BANK
Filing Date
2023-09-26
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In the existing foreign exchange quotation system, there is a high latency in quotation connection when switching between primary and backup databases, resulting in poor switching effect and failure to maintain the consistency and uniqueness of external services.

Method used

At the start of the master-slave switchover, the first quotation data is output through the master database, and the standby database is controlled to perform pre-startup until the preset standby database upgrade conditions are met; then, a new master database is obtained based on the standby database, and the system switches to the new database to output the second quotation data.

Benefits of technology

This reduces the latency of switching between the primary and backup databases for pricing, improves the switching performance of the pricing system, and maintains the continuity and consistency of external services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117370458B_ABST
    Figure CN117370458B_ABST
Patent Text Reader

Abstract

本发明公开了一种主备切换方法、装置、终端设备以及存储介质,所述方法包括当主备切换开始时,通过所述主数据库输出第一报价数据,并控制所述备数据库执行预启动,直至满足预设的备数据库升级条件;基于所述备数据库得到新的主数据库,并切换至所述新的数据库以输出第二报价数据。本发明所提方法在主备切换开始时控制所述备数据库执行预启动,同时保持第一报价数据对外输出,直至满足预设的备数据库升级条件后,才基于所述备数据库得到新的主数据库并切换至所述新的主数据库输出第二报价数据,降低了主数据库与备数据库切换的报价衔接延时,从而改善报价系统主备切换效果。
Need to check novelty before this filing date? Find Prior Art