CN110348826A - Strange land disaster recovery method, system, equipment and readable storage medium storing program for executing mostly living - Google Patents

Strange land disaster recovery method, system, equipment and readable storage medium storing program for executing mostly living Download PDF

Info

Publication number
CN110348826A
CN110348826A CN201810307619.5A CN201810307619A CN110348826A CN 110348826 A CN110348826 A CN 110348826A CN 201810307619 A CN201810307619 A CN 201810307619A CN 110348826 A CN110348826 A CN 110348826A
Authority
CN
China
Prior art keywords
storage device
main storage
standby
update
cgi
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810307619.5A
Other languages
Chinese (zh)
Inventor
戴洪春
董晓辉
曾明福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tenpay Payment Technology Co Ltd
Original Assignee
Tenpay Payment Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tenpay Payment Technology Co Ltd filed Critical Tenpay Payment Technology Co Ltd
Priority to CN201810307619.5A priority Critical patent/CN110348826A/en
Publication of CN110348826A publication Critical patent/CN110348826A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • G06F11/2028Failover techniques eliminating a faulty processor or activating a spare
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems

Abstract

The embodiment of the invention discloses a kind of strange land disaster recovery method, system, equipment and readable storage medium storing program for executing mostly living, the above method includes: after CGI(Common gateway interface) receives access request, main storage device is accessed based on access request, when CGI(Common gateway interface) access main storage device failure, standby storage equipment is accessed based on access request, above-mentioned main storage device and standby storage equipment are communicated to connect with above-mentioned CGI(Common gateway interface).Compared to existing technologies, the embodiment of the present invention keeps connecting with main storage device and standby storage equipment simultaneously by setting CGI(Common gateway interface), CGI(Common gateway interface) is when accessing main storage device failure, above-mentioned standby storage equipment can directly be accessed, standby storage equipment is visited again after operation without switching between main storage device and standby storage equipment, avoids handover operation bring time loss.

Description

Strange land disaster recovery method, system, equipment and readable storage medium storing program for executing mostly living
Technical field
The present invention relates to field of computer technology more particularly to a kind of strange land disaster recovery method mostly living, system, equipment and readable Storage medium.
Background technique
With the rapid development of Internet technology, mobile payment has penetrated into the various aspects in people's life, in order to It avoids payment system collapse or loss of data and brings huge loss, currently used basis payment platform mostly uses different The Data Security of ground disaster tolerance.
Wherein, long-distance disaster is in addition to dispose a set of accumulator backup system in position separated by a distance, this is spare to deposit Storage system keeps data synchronous with main storage system, and this mode can guarantee that artificial damage, flood has occurred when main storage system It when the uncontrollable incidents such as calamity, fire, earthquake, still is able within the regular hour, payment services is switched to above-mentioned spare deposit Storage system can continue to come into operation after so that payment platform is undergone short interruption, resist respectively to further increase payment platform The redundancy ability of kind unexpected factors.
However, existing long-distance disaster strategy cannot be immediately switched to slack storage when main storage system breaks down System needs to switch over by manual operation, and the operating procedure of required execution is more, causes entire handoff procedure time-consuming It is longer, it inevitably will affect the usage experience of user.
Summary of the invention
The main purpose of the embodiment of the present invention is to provide a kind of strange land disaster recovery method mostly living, system, equipment and readable deposits It is complex and the technical issues of take a long time to can solve long-distance disaster strategy handoff procedure in the prior art for storage media.
To achieve the above object, first aspect of the embodiment of the present invention provides a kind of strange land disaster recovery method mostly living, this method packet It includes:
After CGI(Common gateway interface) receives access request, main storage device is accessed based on the access request;
When the CGI(Common gateway interface) accesses main storage device failure, the CGI(Common gateway interface) is based on the visit It asks and requests access to standby storage equipment, the main storage device and standby storage equipment are communicated to connect with the CGI(Common gateway interface).
To achieve the above object, second aspect of the present invention provides a kind of strange land disaster tolerance system mostly living, which includes: general Gateway interface, main storage device and standby storage equipment, the main storage device and standby storage equipment connect with the universal gateway Port communications connection;
The CGI(Common gateway interface) accesses the primary storage based on the access request and sets for receiving access request It is standby, when accessing main storage device failure, based on the access request access standby storage equipment.
To achieve the above object, third aspect present invention provides a kind of equipment, including memory, processor and is stored in institute The computer program stated on memory and run on the processor, the computer program are strange land disaster tolerance program mostly living, When the processor executes the computer program, realize in strange land disaster recovery method mostly living as described in the first aspect of the invention Each step.
To achieve the above object, fourth aspect present invention provides a kind of readable storage medium storing program for executing, is stored thereon with computer journey Sequence, the computer program are strange land disaster tolerance program mostly living, when the computer program is executed by processor, are realized such as the present invention Each step in the disaster recovery method mostly living of strange land described in first aspect.
The embodiment of the invention provides a kind of strange land disaster recovery methods mostly living, this method comprises: CGI(Common gateway interface) receives After access request, main storage device is accessed based on the access request, when CGI(Common gateway interface) access main storage device failure, base Standby storage equipment is accessed in above-mentioned access request, above-mentioned main storage device and standby storage equipment are logical with above-mentioned CGI(Common gateway interface) Letter connection.Compared to existing technologies, it is set simultaneously with primary storage in the embodiment of the present invention by setting CGI(Common gateway interface) Standby and standby storage equipment keeps connection, and CGI(Common gateway interface) can directly access above-mentioned standby deposit when accessing main storage device failure Equipment is stored up, visits again standby storage equipment after operation without switching between main storage device and standby storage equipment, Handover operation bring time loss is avoided, it is complicated and time-consuming can effectively to solve existing long-distance disaster strategy handoff procedure Longer technical problem.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those skilled in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is the structural schematic diagram of strange land disaster tolerance system mostly living in the embodiment of the present invention;
Fig. 2 is another structural schematic diagram of strange land disaster tolerance system mostly living in the embodiment of the present invention;
Fig. 3 is the step flow diagram of strange land disaster recovery method mostly living in the embodiment of the present invention;
Fig. 4 is in the embodiment of the present invention when the duration that main storage device can not access is greater than preset duration, and strange land is mostly living The operating status schematic diagram of disaster tolerance system;
Fig. 5 is another steps flow chart schematic diagram of strange land disaster recovery method mostly living in the embodiment of the present invention;
Fig. 6 is the another structural schematic diagram of strange land disaster tolerance system mostly living in the embodiment of the present invention;
Fig. 7 is the another structural schematic diagram of strange land disaster tolerance system mostly living in the embodiment of the present invention;
Fig. 8 is the flow diagram that server check data are checked in the embodiment of the present invention;
Fig. 9 is the storage mode schematic diagram that equipment is stored in the embodiment of the present invention;
Figure 10 is the exhibition method schematic diagram of user information in the embodiment of the present invention;
Figure 11 is the structural schematic diagram of equipment 1100 in the embodiment of the present invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, those skilled in the art Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Due to long-distance disaster strategy in the prior art, needing to operate by manual switching could be completed, therefore exists and cut The technical issues of changing process complexity, and taking a long time.
In order to solve the above-mentioned technical problem, the present invention proposes a kind of strange land disaster recovery method mostly living, lives more and holds applied to strange land Calamity system, the CGI(Common gateway interface) in the system keep connecting with main storage device and standby storage equipment simultaneously, and universal gateway connects Mouth is after receiving access request, if access main storage device failure, can directly access above-mentioned standby storage equipment, without It is switched between main storage device and standby storage equipment and visits again standby storage equipment after operating, avoid handover operation band The time loss come, the technical issues of can effectively solving existing long-distance disaster strategy handoff procedure complexity and take a long time.
Fig. 1 is please referred to, Fig. 1 is the structural schematic diagram of strange land disaster tolerance system mostly living in the embodiment of the present invention, and the present invention is implemented In example, above system includes: CGI(Common gateway interface) 110, main storage device 120 and standby storage equipment 130, main storage device 120 And standby storage equipment 130 is communicated to connect with CGI(Common gateway interface) 110.
CGI(Common gateway interface) 110 is CGI (Common Gateway Interface, CGI(Common gateway interface)), can be number Access layer gateway service is provided according to center.Main storage device 120 and standby storage equipment 130 can be all made of CKV (Cloud Key- Value) magnanimity distributed memory system, the storage system have strong low cost, scalability, high-performance, persistent data strong The advantages that.
Wherein, above system keeps setting with primary storage simultaneously using distributed strange land framework mostly living, CGI(Common gateway interface) 110 Standby 120 and standby storage equipment 130 connection, can data in real-time update main storage device 120 and standby storage equipment 130, It and is also real-time perfoming to the access of main storage device 120 and standby storage equipment 130, and in main storage device 120 and standby The amount of access of storage equipment 130 is also consistent substantially.
Wherein, distributed to refer to that data center is soft in computer room infrastructure, geographical space, calculating/storage/Internet resources It is distribution in hardware deployment and decentralized, meets the requirement of calamity standby construction and business relations, multiple data centers are in construction Expansion that can be incremental, keeps certain independence each other;In addition, the scheduling of resource can cross over multiple data centers, And it can be realized combination and resource-sharing between multiple data centers." how living " refers to that the status between multiple data centers is equal Deng, cooperate under normal mode, parallel is that business access provides service, realize and resource made full use of, avoid one Ge Huoliangge data center is in idle state, results in waste of resources.
In embodiments of the present invention, CGI(Common gateway interface) 110 and main storage device 120 are located in " data center 1 ", standby to deposit Equipment 130 is stored up then to be located in " data center 2 ", and " data center 1 " and " data center 2 " is located in same city.Wherein answer When understanding, the active and standby relationship of main storage device 120 and standby storage equipment 130 is relative to general network in " data center 1 " For closing interface 110, for the CGI(Common gateway interface) in " data center 2 ", main storage device 120 is then deposited to be spare Equipment is stored up, and standby storage equipment 130 is then main storage device, for details, reference can be made to Fig. 2, Fig. 2 is that strange land is more in the embodiment of the present invention Another structural schematic diagram of disaster tolerance system living.
In addition, it is to be understood that strange land disaster tolerance system mostly living in embodiment in order to better understand the present invention, Fig. 1 and Fig. 2 The structural schematic diagram of system only describes the disaster recovery backup between Liang Ge data center, in practical applications, also using above-mentioned framework It can be realized the backup disaster tolerance between multiple data centers, such as the disaster recovery backup between 4 or 8 data centers.
Specifically, Fig. 3 is the step flow diagram of strange land disaster recovery method mostly living in the embodiment of the present invention referring to Fig. 3, this In inventive embodiments, the above method includes:
After step 301, CGI(Common gateway interface) receive access request, main storage device is accessed based on the access request;
Step 302, when the CGI(Common gateway interface) access the main storage device failure when, the CGI(Common gateway interface) base Standby storage equipment is accessed in the access request.
In the embodiment of the present invention, by taking the disaster tolerance system mostly living of strange land shown in Fig. 2 as an example, when in any one data center When storage equipment can not access, the storage that the CGI(Common gateway interface) in the data center then directly accesses in another data center is set It is standby, so that it is guaranteed that the continuous normal operation of access business, achievees the purpose that user side " failure unaware ".
The disaster recovery method mostly living of strange land provided by the embodiment of the present invention, CGI(Common gateway interface) simultaneously with main storage device and standby It storing equipment and keeps connection, CGI(Common gateway interface) accesses main storage device after receiving access request, based on the access request, When CGI(Common gateway interface) access main storage device failure, based on the standby storage equipment of above-mentioned access request access, do not need Operation is switched between main storage device and standby storage equipment and visits again standby storage equipment later, is avoided handover operation and is brought Time loss, it is complicated and the technical issues of take a long time can effectively to solve existing long-distance disaster strategy handoff procedure.
Further, based on the above embodiment, in the embodiment of the present invention, CGI(Common gateway interface) is based in above-mentioned steps 301 Access request is further comprising the steps of before accessing main storage device:
When the duration for monitoring that main storage device can not access is less than or equal to preset duration, CGI(Common gateway interface) is based on Access request accesses main storage device;
When the duration for monitoring that main storage device can not access is greater than above-mentioned preset duration, CGI(Common gateway interface) is based on visiting It asks and requests access to standby storage equipment.
It is understood that above-mentioned CGI(Common gateway interface) can be direct when main storage device is in normal operating condition Main storage device is accessed, but when main storage device is in malfunction, above-mentioned CGI(Common gateway interface) is needed in access main memory After storing up equipment failure, standby storage equipment is visited again, therefore access process can have certain delay.
In view of when above-mentioned main storage device catastrophe failure occurs and can not restore in the short time, if above-mentioned general network Pass interface, which is still taken, first accesses main storage device, when accessing main storage device failure, visits again the access of standby storage equipment Strategy then undoubtedly will affect the access experience of user, therefore, in the embodiment of the present invention, if monitoring that main storage device can not When the duration of access is greater than preset duration, then the corresponding data traffic of above-mentioned main storage device can all be switched to above-mentioned standby Equipment is stored, when above-mentioned CGI(Common gateway interface) is after receiving access request, is then directly accessed based on the access request above-mentioned standby Equipment is stored, to ensure the normal of access service when main storage device catastrophe failure occurs and can not restore in the short time Operation.Embodiment in order to better understand the present invention, referring to Fig. 4, Fig. 4 is in the embodiment of the present invention when main storage device can not visit When the duration asked is greater than preset duration, the operating status schematic diagram of strange land disaster tolerance system mostly living.
In addition, in the embodiment of the present invention, after CGI(Common gateway interface) accesses the failure of above-mentioned main storage device, if access is above-mentioned Standby storage equipment still fails, then can obtain dB (Database, database) data from raw data base, utilize the dB number It is checked according to the data stored in above-mentioned main storage device and standby storage equipment, when above-mentioned main storage device and/or above-mentioned When the data and the inconsistent dB data that are stored in standby storage equipment, then based on the dB data to above-mentioned main storage device and/or The data stored in standby storage equipment are repaired, and above-mentioned strange land disaster tolerance system mostly living is made to have certain self-healing ability.
Embodiment in order to better understand the present invention is strange land disaster tolerance side mostly living in the embodiment of the present invention referring to Fig. 5, Fig. 5 Another steps flow chart schematic diagram of method.
In the disaster recovery method mostly living of strange land provided by the embodiment of the present invention, after CGI(Common gateway interface) receives access request, If monitoring that the duration that main storage device can not access is greater than preset duration, based on the above-mentioned standby storage of access request access Device, when so as to avoid accessing the access of service when main storage device catastrophe failure occurs and can not restore in the short time Long the case where being in delaying state for a long time, ensure the normal operation of access service.
Further, based on the above embodiment, in the embodiment of the present invention, the above method is further comprising the steps of:
When update server receives the update message in firewall, which is synchronized to anti-by update server Outside wall with flues;
It updates server and utilizes above-mentioned update message outside above-mentioned firewall, primary storage is updated in the way of asynchronous refresh Equipment and standby storage equipment.
Specifically, the strange land disaster tolerance system mostly living in the embodiment of the present invention further includes updating server, above-mentioned primary storage is set Standby and standby storage equipment is connect with the update server communication.The update server includes level-one CMQ (CFT Message Queue, distributed asynchronous message queue) it is located in firewall with second level CMQ, level-one CMQ, second level CMQ is located at outside firewall Data center is the another structural schematic diagram of strange land disaster tolerance system mostly living in the embodiment of the present invention referring to Fig. 6, Fig. 6.
Wherein, it is supreme to return to relevant parameter after having executed service logic for the original service in firewall (or atomic service) While stating CGI(Common gateway interface), a level-one CMQ updated message in firewall is sent as the producer, by the level-one Above-mentioned update message is synchronized to the second level CMQ outside firewall in data center 2 by CMQ;Second level CMQ in data center 2 is connecing After receiving the update message, which is synchronized to the second level CMQ in data center 1, and utilize the update message, The storage equipment in data center 2 is updated in the way of asynchronous refresh, meanwhile, the second level CMQ in data center 1 is being received After above-mentioned update message, the update message can be also utilized, the storage updated in data center 1 in the way of asynchronous refresh is set It is standby.
It is understood that above-mentioned update message can also be synchronized to outside firewall in data center 1 by above-mentioned level-one CMQ Second level CMQ;The update message is synchronized in data by the second level CMQ in data center 1 after receiving the update message Second level CMQ in the heart 2, then completes subsequent asynchronous refresh.
The disaster recovery method mostly living of strange land provided by the embodiment of the present invention, receives the update in firewall updating server When message, then the update message is synchronized to outside firewall, updates server and utilize above-mentioned update message outside firewall, according to The mode of asynchronous refresh updates main storage device and standby storage equipment, to make in above-mentioned main storage device and standby storage equipment Data are able to maintain unanimously.
Further, based on the above embodiment, in the embodiment of the present invention, the above method further include:
When across city proxy server receives the update message that above-mentioned update server is sent outside above-mentioned firewall, across city Proxy server utilizes the update message, and across city Backup Data center is updated in the way of asynchronous refresh.
Specifically, the strange land disaster tolerance system mostly living in the embodiment of the present invention further includes across city proxy server and across city backup Data center, above-mentioned across city proxy server are connect with above-mentioned update server communication, above-mentioned across city Backup Data center with it is upper State across city proxy server communication connection.
Specifically, Fig. 7 is the another structural schematic diagram of strange land disaster tolerance system mostly living in the embodiment of the present invention referring to Fig. 7.? In Fig. 7, there are two above-mentioned across city proxy server tools, is located at different cities, above-mentioned across city Backup Data center includes Data center 3 and data center 4.
Wherein, above-mentioned update server disappears for the update message in above-mentioned first-level message queue to be synchronized to above-mentioned second level Queue is ceased, and the update message being synchronized in above-mentioned second level message queue is synchronized to above-mentioned across city proxy server;It is above-mentioned Across city proxy server is used for the update message synchronous using above-mentioned second level message queue, updates in the way of asynchronous refresh State across city Backup Data center.
Specifically, the second level CMQ in data center 2 passes through the update message after receiving above-mentioned update message Above-mentioned across city proxy server is synchronized to the second level CMQ in data center 3;Second level CMQ in data center 3 is receiving this more After new information, which is synchronized to the second level CMQ in data center 4, and utilize the update message, according to asynchronous The mode of update updates the storage equipment in data center 3, meanwhile, the second level CMQ in data center 4 is receiving above-mentioned update After message, the update message can be also utilized, the storage equipment in data center 4 is updated in the way of asynchronous refresh.
In addition, above-mentioned level-one CMQ with second level CMQ before synchronous above-mentioned update message, can be according to the source of the update message It is filtered, when receiving the update message sent by itself, the update message is deleted, to prevent update message from going out Existing annular duplication.
The disaster recovery method mostly living of strange land provided by the embodiment of the present invention, across city proxy server receive more outside firewall When the update message that new demand servicing device is sent, using the update message, updated in the way of asynchronous refresh in across city Backup Data The heart so that the data for storing the data center positioned at two different cities are able to maintain unanimously, and passes through above-mentioned level-one CMQ and second level CMQ, can make to decouple between the data center of different cities, and reduce the size of message across city, effective to be promoted State the efficiency of system deployment and operation.
Further, based on the above embodiment, in the embodiment of the present invention, the above method further include:
Server is checked at interval of dB data are obtained in raw data base in preset duration slave firewall, utilizes the dB data The data stored in main storage device and standby storage equipment are checked;It is deposited when in main storage device and/or standby storage equipment When the data of storage and the dB data are inconsistent, verification server is based on dB data in main storage device and/or standby storage equipment The data of storage are repaired.
Specifically, the strange land disaster tolerance system mostly living in the embodiment of the present invention further includes verification server, above-mentioned primary storage is set Standby and standby storage equipment is connect with the verification server communication.
Wherein, above system allows above-mentioned main storage device and standby storage equipment to occur in real-time update or asynchronous refresh Failure, then at interval of in raw data base in preset duration slave firewall obtain dB data, then one by one with above-mentioned primary storage The data stored in equipment and standby storage equipment are checked, if data are inconsistent, above-mentioned DB data of being just subject to are repaired different Regular data, to guarantee that the data stored in above-mentioned main storage device and standby storage equipment can be accurate and consistent.
Embodiment in order to better understand the present invention, please refers to Fig. 8, and Fig. 8 is that server core is checked in the embodiment of the present invention To the flow diagram of data.In fig. 8, the process of above-mentioned reparation abnormal data may comprise steps of:
1, at interval of acquisition dB data in raw data base in preset duration (such as at interval of one minute) slave firewall;
2, the dB data that parsing current time gets, obtain the corresponding index key of the dB data;
3, the corresponding number of above-mentioned dB data is searched from above-mentioned main storage device and standby storage equipment using above-mentioned index key According to;
4, determine whether the data stored in above-mentioned main storage device and/or standby storage equipment and above-mentioned dB data are consistent, If it is inconsistent, being repaired based on above-mentioned dB data to the data stored in above-mentioned main storage device and/or standby storage equipment It is multiple;
5, the dB data that parsing subsequent time is got, execute above-mentioned steps 2 to 4.
The disaster recovery method mostly living of strange land provided by the embodiment of the present invention, checks server at interval of preset duration slave firewall Database dB data are obtained in interior raw data base, using the dB data to the number stored in main storage device and standby storage equipment According to being checked;When the data and the inconsistent dB data stored in main storage device and/or standby storage equipment, verification service Device repairs the data stored in main storage device and/or standby storage equipment based on the dB data, so as to effective Promote the fault-tolerant ability and self-repairing capability of above system.
In order to solve the above-mentioned technical problem, the embodiment of the present invention also provides a kind of strange land disaster tolerance system mostly living, the system packet Include: CGI(Common gateway interface), main storage device and standby storage equipment, the main storage device and standby storage equipment with it is described general Gateway interface communicates to connect (referring to Fig. 1 or Fig. 2);
Above-mentioned CGI(Common gateway interface) accesses above-mentioned main storage device for receiving access request, and based on the access request, When accessing the failure of above-mentioned main storage device, based on the above-mentioned standby storage equipment of above-mentioned access request access.
Wherein, above-mentioned main storage device and standby storage equipment can be used to store the information of user, and such as subscriber data has been tied up The information such as fixed bank card, name, remaining sum.Wherein, in the embodiment of the present invention, the much information of storage can be polymerized to multiple row It is stored in a table, when needing to access the data in above-mentioned main storage device and standby storage equipment, it is only necessary to primary to visit Ask operation, so that it may read all data, it is time-consuming can effectively to reduce access.
In order to better understand the present invention, Fig. 9 is please referred to, Fig. 9 is the storage mode that equipment is stored in the embodiment of the present invention Schematic diagram.In Fig. 9, UID (User Identification, user identity prove) is the corresponding number of registration user, user After payment system registration, payment system can distribute a UID number automatically for the user.
Wherein, by accessing above-mentioned main storage device and standby storage equipment, user information can be got and shown, and opened up Show in client.In order to better understand the present invention, Figure 10 is please referred to, Figure 10 is the displaying of user information in the embodiment of the present invention Schematic diagram.
Strange land provided in an embodiment of the present invention disaster tolerance system mostly living, including CGI(Common gateway interface), main storage device and standby deposit Equipment is stored up, and main storage device and standby storage equipment are communicated to connect with above-mentioned CGI(Common gateway interface);Above-mentioned CGI(Common gateway interface) Above-mentioned main storage device is accessed for receiving access request, and based on the access request, is failed when accessing above-mentioned main storage device When, based on the above-mentioned standby storage equipment of above-mentioned access request access.Compared to existing technologies, by setting in the embodiment of the present invention It sets CGI(Common gateway interface) to keep connecting with main storage device and standby storage equipment simultaneously, so that in access main storage device failure When, above-mentioned CGI(Common gateway interface) can directly access above-mentioned standby storage equipment, without in main storage device and standby storage equipment Between switch over and visit again standby storage equipment after operation, avoid handover operation bring time loss, can effectively solve Certainly existing long-distance disaster strategy handoff procedure is complicated and the technical issues of taking a long time.
Further, based on the above embodiment, in the embodiment of the present invention, above-mentioned CGI(Common gateway interface) is also used to:
After monitoring that duration that the main storage device can not access is greater than preset duration, asked if receiving the access It asks, then the standby memory is accessed based on the access request.
In the disaster tolerance system mostly living of strange land provided by the embodiment of the present invention, CGI(Common gateway interface) is also used to monitoring main memory After the duration that storage equipment can not access is greater than preset duration, if receiving access request, based on described in access request access Standby memory, so as to avoid accessing service when main storage device catastrophe failure occurs and can not restore in the short time Access duration is in delaying state for a long time, ensures the normal operation of access service.
Further, based on the above embodiment, in the embodiment of the present invention, above system further include: server is updated, it is above-mentioned Main storage device and standby storage equipment are connect with the update server communication;
Above-mentioned update server is used for when receiving the update message in firewall, which is synchronized to fire prevention Outside wall, and the update message is utilized outside firewall, above-mentioned main storage device and standby storage are updated in the way of asynchronous refresh Equipment.
The disaster tolerance system mostly living of strange land provided by the embodiment of the present invention, updating server can receive in firewall After update message, which is synchronized to outside firewall, and utilizes the update message outside firewall, according to asynchronous refresh Mode update main storage device and standby storage equipment, to enable the data in above-mentioned main storage device and standby storage equipment It is consistent.
Further, based on the above embodiment, in the embodiment of the present invention, above system further include: across city proxy server And across city Backup Data center, above-mentioned across city proxy server are connect with above-mentioned update server communication, above-mentioned across city backup number It is connect according to center with above-mentioned across city proxy server communication;
Above-mentioned across city proxy server is used to receive the update message that above-mentioned update server is sent, and is disappeared using the update Breath, updates above-mentioned across city Backup Data center in the way of asynchronous refresh.
The disaster tolerance system mostly living of strange land provided by the embodiment of the present invention, across city proxy server, which receives, updates server transmission Update message, and utilize the update message, above-mentioned across city Backup Data center is updated in the way of asynchronous refresh, to make The data that data center positioned at two different cities is stored are able to maintain unanimously, and pass through above-mentioned level-one CMQ and second level CMQ can make to decouple between the data center of different cities, and reduce the size of message across city, effective to promote above system portion The efficiency of administration and operation.
Further, based on the above embodiment, in the embodiment of the present invention, above system further includes verification server, above-mentioned Main storage device and standby storage equipment are connect with the verification server communication;
Above-mentioned verification server is used to utilize at interval of dB data are obtained in raw data base in preset duration slave firewall The dB data check the data stored in above-mentioned main storage device and standby storage equipment;When above-mentioned main storage device and/ Or stored in standby storage equipment data and the inconsistent dB data when, then based on the dB data to above-mentioned main storage device and/ Or the data stored in standby storage equipment are repaired.
Wherein, above system allows above-mentioned main storage device and standby storage equipment to occur in real-time update or asynchronous refresh Failure, then at interval of in raw data base in preset duration slave firewall obtain dB data, then one by one with above-mentioned primary storage The data stored in equipment and standby storage equipment are checked, if data are inconsistent, above-mentioned DB data of being just subject to are repaired different Regular data, to guarantee that the data stored in above-mentioned main storage device and standby storage equipment can be accurate and consistent.
The disaster tolerance system mostly living of strange land provided by the embodiment of the present invention, checks server at interval of preset duration slave firewall DB data are obtained in interior raw data base, using the dB data to the data stored in above-mentioned main storage device and standby storage equipment It is checked, when the data and the inconsistent dB data stored in above-mentioned main storage device and/or standby storage equipment, is then based on The dB data repair the data stored in above-mentioned main storage device and/or standby storage equipment, so as to effectively mention It goes up and states system survivability and self-repairing capability.
It is understood that in embodiments of the present invention, above-mentioned strange land disaster tolerance system mostly living can be a kind of equipment, ask Refering to fig. 11, it is the structural schematic diagram of equipment 1100 in the embodiment of the present invention.The equipment 1100 includes processor 1101, memory 1102 and transceiver 1103, memory 1102 may include read-only memory and random access memory, and to processor 1101 Operational order and data are provided.The a part of of memory 1102 can also include nonvolatile RAM (NVRAM).
In some embodiments, memory 1102 stores following element: executable modules or data structures, or Their subset of person or their superset.
In embodiments of the present invention, by calling the operational order of the storage of memory 1102, (operational order is storable in In operating system), execute following procedure:
After CGI(Common gateway interface) receives access request, main storage device is accessed based on the access request;Work as universal gateway When interface accesses the failure of above-mentioned main storage device, CGI(Common gateway interface) is based on the standby storage equipment of above-mentioned access request access.
Compared with prior art, equipment provided in an embodiment of the present invention, by setting CGI(Common gateway interface) come simultaneously with master It stores equipment and standby storage equipment keeps connection, CGI(Common gateway interface) can be accessed directly when accessing main storage device failure Standby storage equipment is stated, visits again standby storage after operation without switching between main storage device and standby storage equipment Equipment avoids handover operation bring time loss, and it is complicated can effectively to solve existing long-distance disaster strategy handoff procedure And the technical issues of taking a long time.
Wherein, processor 1101 controls the operation of equipment 1100, and processor 1101 can also be known as CPU (Central Processing Unit, central processing unit).Memory 1102 may include read-only memory and random access memory, and Instruction and data is provided to processor 1101.The a part of of memory 1102 can also include nonvolatile RAM (NVRAM).The various components of equipment 1100 are coupled by bus system 1104 in specific application, wherein bus system 1104 in addition to including data/address bus, can also include power bus, control bus and status signal bus in addition etc..But in order to clear For the sake of Chu's explanation, various buses are all designated as bus system 1104 in figure.
The method that the embodiments of the present invention disclose can be applied in processor 1101, or real by processor 1101 It is existing.Processor 1101 may be a kind of IC chip, the processing capacity with signal.During realization, the above method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1101 or software form.Above-mentioned Processor 1101 can be general processor, digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable Gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.It can be with Realize or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be micro- place Reason device or the processor are also possible to any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention Hardware decoding processor can be embodied directly in and execute completion, or in decoding processor hardware and software module combination hold Row is completed.Software module can be located at random access memory, flash memory, read-only memory, programmable read only memory or electrically erasable In the storage medium for writing this fields such as programmable storage, register maturation.The storage medium is located at memory 1102, processor 1101 read the information in memory 1102, in conjunction with the step of its hardware completion above method.
In several embodiments provided herein, it should be understood that disclosed method and system can pass through it Its mode is realized.For the various method embodiments described above, it describes for simplicity, therefore, it is stated as a series of action groups It closes, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, because according to this hair Bright, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know that, specification Described in embodiment belong to preferred embodiment, related actions and modules might not all be that institute of the invention is necessary 's.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The above are to a kind of strange land provided by the present invention disaster recovery method mostly living, system, equipment and readable storage medium storing program for executing Description, for those skilled in the art, thought according to an embodiment of the present invention, in specific embodiments and applications It will change, to sum up, the contents of this specification are not to be construed as limiting the invention.

Claims (14)

1. a kind of strange land disaster recovery method mostly living, which is characterized in that the described method includes:
After CGI(Common gateway interface) receives access request, main storage device is accessed based on the access request;
When the CGI(Common gateway interface) accesses main storage device failure, the CGI(Common gateway interface), which is based on the access, is asked The standby storage equipment of access is sought, the main storage device and standby storage equipment are communicated to connect with the CGI(Common gateway interface).
2. the method according to claim 1, wherein the CGI(Common gateway interface) is accessed based on the access request Before the step of main storage device further include:
When the duration for monitoring that the main storage device can not access is less than or equal to preset duration, the CGI(Common gateway interface) The step of continuing to execute based on access request access main storage device;
When the duration for monitoring that the main storage device can not access is greater than the preset duration, the CGI(Common gateway interface) base In the access request access standby storage equipment.
3. the method according to claim 1, wherein the method also includes:
When update server receives the update message in firewall, the update message is synchronized to by the update server Outside firewall;
The update server utilizes the update message outside the firewall, and the master is updated in the way of asynchronous refresh Store equipment and standby storage equipment.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
It is described across city when across city proxy server receives the update message for updating server sync outside the firewall Proxy server utilizes the update message, and across city Backup Data center is updated in the way of asynchronous refresh.
5. according to the method described in claim 4, it is characterized in that, the server that updates includes the level-one being located in firewall Message queue and the second level message queue outside firewall, the update server is by the update in the first-level message queue Message synchronization is to the second level message queue, and the update message being synchronized in the second level message queue is synchronized to described Across city proxy server;
Across the city proxy server utilizes the update message, and across city Backup Data center is updated in the way of asynchronous refresh The step of include:
The update message that across the city proxy server utilizes the second level message queue synchronous, according to the side of asynchronous refresh Formula updates across the city Backup Data center.
6. according to claim 1 to method described in 5 any one, which is characterized in that the method also includes:
Server is checked at interval of database dB data are obtained in raw data base in preset duration slave firewall, utilizes the dB Data check the data stored in the main storage device and standby storage equipment;
It is described when the data and the inconsistent dB data stored in the main storage device and/or the standby storage equipment Verification server repairs the data stored in the main storage device and/or standby storage equipment based on the dB data.
7. a kind of strange land disaster tolerance system mostly living, which is characterized in that the system comprises: CGI(Common gateway interface), main storage device and Standby storage equipment, the main storage device and standby storage equipment are communicated to connect with the CGI(Common gateway interface);
The CGI(Common gateway interface) accesses the main storage device for receiving access request, and based on the access request, when When accessing main storage device failure, based on the access request access standby storage equipment.
8. system according to claim 7, which is characterized in that the CGI(Common gateway interface) is also used to:
After monitoring that duration that the main storage device can not access is greater than preset duration, if receiving the access request, The standby memory is then accessed based on the access request.
9. system according to claim 7, which is characterized in that the system also includes: update server, the primary storage Equipment and standby storage equipment are connect with the update server communication;
The update server is used for when receiving the update message in firewall, and the update message is synchronized to firewall Outside, the update message is utilized and outside the firewall, and the main storage device and standby is updated in the way of asynchronous refresh Store equipment.
10. system according to claim 9, which is characterized in that the system also includes across city proxy server and across city Backup Data center, across the city proxy server are connect with the update server communication, across the city Backup Data center It is connect with across the city proxy server communication;
Across the city proxy server is used to receive the update message that the update server is sent, and is disappeared using the update Breath updates across the city Backup Data center in the way of asynchronous refresh.
11. system according to claim 10, which is characterized in that the server that updates includes one be located in firewall Grade message queue and the second level message queue outside firewall;
The update server is specifically used for the update message in the first-level message queue being synchronized to second level message team Column, and the update message being synchronized in the second level message queue is synchronized to across the city proxy server;
Across the city proxy server is specifically used for the update message synchronous using the second level message queue, according to asynchronous The mode of update updates across the city Backup Data center.
12. according to system described in claim 7 to 11 any one, which is characterized in that the system also includes verifications to service Device, the main storage device and standby storage equipment are connect with the verification server communication;
The verification server is used at interval of dB data are obtained in raw data base in preset duration slave firewall, using described DB data check the data stored in the main storage device and standby storage equipment;
When the data and the inconsistent dB data stored in the main storage device and/or the standby storage equipment, then base The data stored in the main storage device and/or standby storage equipment are repaired in the dB data.
13. a kind of equipment, including memory, processor and the meter for being stored on the memory and running on the processor Calculation machine program, which is characterized in that the computer program is strange land disaster tolerance program mostly living, and the processor executes the computer When program, each step in the strange land disaster recovery method mostly living as described in claim 1 to 6 any one is realized.
14. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is strange land More disaster tolerance programs living, when the computer program is executed by processor, are realized different as described in claim 1 to 6 any one Each step in ground disaster recovery method mostly living.
CN201810307619.5A 2018-04-08 2018-04-08 Strange land disaster recovery method, system, equipment and readable storage medium storing program for executing mostly living Pending CN110348826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810307619.5A CN110348826A (en) 2018-04-08 2018-04-08 Strange land disaster recovery method, system, equipment and readable storage medium storing program for executing mostly living

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810307619.5A CN110348826A (en) 2018-04-08 2018-04-08 Strange land disaster recovery method, system, equipment and readable storage medium storing program for executing mostly living

Publications (1)

Publication Number Publication Date
CN110348826A true CN110348826A (en) 2019-10-18

Family

ID=68173205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810307619.5A Pending CN110348826A (en) 2018-04-08 2018-04-08 Strange land disaster recovery method, system, equipment and readable storage medium storing program for executing mostly living

Country Status (1)

Country Link
CN (1) CN110348826A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367691A (en) * 2020-03-09 2020-07-03 北京奇艺世纪科技有限公司 Data feedback method and device, electronic equipment and storable medium
CN111404754A (en) * 2020-03-23 2020-07-10 北京九州云动科技有限公司 Disaster recovery method, device and equipment for interface
CN113010549A (en) * 2021-01-29 2021-06-22 腾讯科技(深圳)有限公司 Data processing method based on remote multi-active system, related equipment and storage medium
CN113760611A (en) * 2021-08-30 2021-12-07 银清科技有限公司 System site switching method and device, electronic equipment and storage medium
CN114785465A (en) * 2022-04-26 2022-07-22 上海识装信息科技有限公司 Method, server and storage medium for realizing remote multi-activity

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140324774A1 (en) * 2013-04-28 2014-10-30 International Business Machines Corporation Techniques for managing a data replication mode
CN104618127A (en) * 2013-11-01 2015-05-13 深圳市腾讯计算机系统有限公司 Master and standby storage node switching method and system
CN104980519A (en) * 2015-06-29 2015-10-14 北京奇虎科技有限公司 Multi-computer room storage system
CN106230795A (en) * 2016-07-22 2016-12-14 北京近颐科技有限公司 A kind of network safety system under mobile internet environment
CN106254100A (en) * 2016-07-27 2016-12-21 腾讯科技(深圳)有限公司 A kind of data disaster tolerance methods, devices and systems
CN106357787A (en) * 2016-09-30 2017-01-25 郑州云海信息技术有限公司 Storage disaster tolerant control system
WO2017067345A1 (en) * 2015-10-22 2017-04-27 中兴通讯股份有限公司 Iptv disaster recovery method, apparatus, system, and set-top box

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140324774A1 (en) * 2013-04-28 2014-10-30 International Business Machines Corporation Techniques for managing a data replication mode
CN104618127A (en) * 2013-11-01 2015-05-13 深圳市腾讯计算机系统有限公司 Master and standby storage node switching method and system
CN104980519A (en) * 2015-06-29 2015-10-14 北京奇虎科技有限公司 Multi-computer room storage system
WO2017067345A1 (en) * 2015-10-22 2017-04-27 中兴通讯股份有限公司 Iptv disaster recovery method, apparatus, system, and set-top box
CN106230795A (en) * 2016-07-22 2016-12-14 北京近颐科技有限公司 A kind of network safety system under mobile internet environment
CN106254100A (en) * 2016-07-27 2016-12-21 腾讯科技(深圳)有限公司 A kind of data disaster tolerance methods, devices and systems
CN106357787A (en) * 2016-09-30 2017-01-25 郑州云海信息技术有限公司 Storage disaster tolerant control system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
中金数据系统有限公司: "稳健运营 防范风险 商业银行业务连续性管理实务", vol. 978, 北京:中国金融出版社, pages: 185 *
康玉虎;: "基于存储双活技术实现高校数据中心本地高可用", 计算机产品与流通, vol. 978, no. 03, pages 293 - 128 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367691A (en) * 2020-03-09 2020-07-03 北京奇艺世纪科技有限公司 Data feedback method and device, electronic equipment and storable medium
CN111367691B (en) * 2020-03-09 2024-03-01 北京奇艺世纪科技有限公司 Data feedback method and device, electronic equipment and storable medium
CN111404754A (en) * 2020-03-23 2020-07-10 北京九州云动科技有限公司 Disaster recovery method, device and equipment for interface
CN113010549A (en) * 2021-01-29 2021-06-22 腾讯科技(深圳)有限公司 Data processing method based on remote multi-active system, related equipment and storage medium
CN113760611A (en) * 2021-08-30 2021-12-07 银清科技有限公司 System site switching method and device, electronic equipment and storage medium
CN114785465A (en) * 2022-04-26 2022-07-22 上海识装信息科技有限公司 Method, server and storage medium for realizing remote multi-activity
CN114785465B (en) * 2022-04-26 2024-04-12 上海识装信息科技有限公司 Implementation method, server and storage medium for multiple activities in different places

Similar Documents

Publication Publication Date Title
US11899684B2 (en) System and method for maintaining a master replica for reads and writes in a data store
CN110348826A (en) Strange land disaster recovery method, system, equipment and readable storage medium storing program for executing mostly living
CN106341454B (en) Across computer room distributed data base management system (DDBMS) mostly living and method
CN106062717B (en) A kind of distributed storage dubbing system and method
EP3694148A1 (en) Configuration modification method for storage cluster, storage cluster and computer system
US20190095293A1 (en) Data disaster recovery method, device and system
US10248704B2 (en) System and method for log conflict detection and resolution in a data store
US9489434B1 (en) System and method for replication log branching avoidance using post-failover rejoin
CN106850260A (en) A kind of dispositions method and device of virtual resources management platform
CN102088490B (en) Data storage method, device and system
CN109815248B (en) Zookeeper-based distributed architecture data consistency method
CN106156318B (en) System and method for realizing high availability of multi-node database
CN104486438B (en) The disaster recovery method and device of distributed memory system
WO2021103499A1 (en) Multi-active data center-based traffic switching method and device
WO2012145963A1 (en) Data management system and method
CN105069152B (en) data processing method and device
EP4213038A1 (en) Data processing method and apparatus based on distributed storage, device, and medium
CN102938705A (en) Method for managing and switching high availability multi-machine backup routing table
CN106331081B (en) Information synchronization method and device
CN106919473A (en) A kind of data disaster recovery and backup systems and method for processing business
US20230004465A1 (en) Distributed database system and data disaster backup drilling method
CN107590032A (en) The method and storage cluster system of storage cluster failure transfer
CN115328931A (en) Database cluster data verification method and device, storage medium and electronic equipment
CN116233245A (en) Remote multi-activity system, information processing method thereof and configuration server
CN115292408A (en) Master-slave synchronization method, device, equipment and medium for MySQL database

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination