A high-availability processing system and method for multi-computer room database
By adopting an independent and peer-to-peer database cluster and a master-slave data replication model between two computer rooms in a multi-machine room database solution, the problem of cross-machine room access performance and high availability is solved, and efficient reading and writing capabilities and system stability are achieved.
Patent Information
- Application Number
- CN202010825944.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-08-17
AI Technical Summary
The performance of existing multi-computer room database solutions is affected when accessed across computer rooms, especially when consistency requirements are high and the main database is down, it cannot meet high availability requirements.
Use independent and peer database clusters in two computer rooms, set the slave database in the other computer room, and synchronize data through the master-slave data replication mode of the main database to achieve cross-machine room read and write capabilities, and trigger the circuit breaker degradation mechanism and traffic scheduling forwarding requests under abnormal circumstances.
It realizes that two computer rooms provide reading and writing services at the same time, improves the availability and continuity of the system, meets high availability requirements, and ensures system stability under abnormal circumstances.
Smart Images

Figure CN111930570B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and more specifically, to a high-availability processing system and method for a multi-computer room database. Background Art
[0002] As Internet companies grow to a certain scale, they have higher and higher requirements for service availability. Especially in the financial sector, there are higher requirements for service availability, continuity, and strong consistency. Therefore, the industry will choose multi-computer room deployment.
[0003] The industry's multi-computer room deployment is generally based on the MySQL data replication mode, that is, the share nothing mode, to achieve data consistency through data transmission and replication protocols. The current mainstream multi-computer room solution generally adopts the "dual-active application layer, single-active database" method, that is, the applications of the two computer rooms provide services to the outside world at the same time, but only one computer room's database provides read and write, and the other computer room's database only provides read, and the databases are replicated one-way. Based on the MHA architecture, the asynchronous replication solution has acceptable performance. If the consistency requirement is high, semi-synchronous replication is used, and the two computer rooms are far apart (more than 100 kilometers), the performance of cross-computer room access will be greatly affected.
[0004] Although the existing solution has low implementation cost and less intrusion on business, it has cross-database write operations and high consistency requirements, so the performance will be compromised. If the main database room fails, it may not be able to write, which cannot meet the high availability requirements. Summary of the invention
[0005] In view of this, in order to solve the above problems, the present invention provides a multi-computer room database high availability processing system and processing method, the technical solution is as follows:
[0006] A highly available processing system for multi-computer room databases, the processing system comprising:
[0007] Terminals, dispatch servers, gateways in computer rooms, microservice processors and database clusters; among them,
[0008] The computer room includes a first computer room and a second computer room, the database cluster includes a master database, a first slave database and a second slave database, the master database and the first slave database of the first computer room are deployed in the first computer room, and the second slave database is deployed in the second computer room, the master database and the first slave database of the second computer room are deployed in the second computer room, and the second slave database is deployed in the first computer room;
[0009] The terminal is used to initiate a write request for an order;
[0010] The scheduling server is used to send the write request of the order to the target computer room through computer room traffic scheduling;
[0011] The gateway of the target computer room is used to send the write request of the order to the microservice processor of the target computer room;
[0012] The microservice processor of the target computer room is used to process the write request of the order; write the processing information of the order and the routing relationship between the order and the target computer room into the main database of the target computer room;
[0013] The master database of the target computer room is used to synchronize the processing information of the order and the routing relationship to the first slave database and the second slave database of the target computer room, so that the first computer room and the second computer room can obtain the processing information of the order in response to the read request for the order based on the routing relationship.
[0014] Preferably, the routing relationship includes the serial number of the order and the computer room number of the target computer room.
[0015] Preferably, the gateway of the target computer room is also used for:
[0016] Obtain the status of the exception request processed by the microservice processor of the target computer room, and when the status of the exception request meets the preset fuse condition, forward the write request received within the specified time window to the gateway of another computer room to trigger the gateway, microservice processor and main library of the other computer room to perform corresponding operations.
[0017] Preferably, the gateway of the target computer room is also used for:
[0018] When the write request of the order meets the preset traffic scheduling conditions, the write request of the order is forwarded to the gateway of another computer room to trigger the gateway, microservice processor and main library of the other computer room to perform corresponding operations.
[0019] Preferably, the processing system further comprises: a cloud server;
[0020] The microservice processor of the computer room is used to monitor the operating status of the database cluster of the computer room and upload it to the cloud server;
[0021] The cloud server is used to write the operating status corresponding to the computer room into the computer room list;
[0022] The terminal is specifically used for:
[0023] The computer room whose database cluster is in an available state is determined by calling the computer room list, and a write request for the order is initiated based on the determination result.
[0024] The scheduling server is specifically used for:
[0025] The write request of the order is sent to the target computer room where the database cluster is in an available state.
[0026] Preferably, the processing system further comprises:
[0027] The first and second main libraries in the third computer room;
[0028] The main database of the first computer room is used to back up its information to the first main database of the third computer room;
[0029] The main database of the second computer room is used to back up its information to the second main database of the third computer room.
[0030] A method for processing a multi-computer room database with high availability is applied to a gateway of a target computer room in a processing system for processing a multi-computer room database with high availability. The method comprises:
[0031] receiving a write request for an order sent by a scheduling server, where the write request for the order is initiated by a terminal;
[0032] Send a write request for the order to the microservice processor of the target computer room, so that the microservice processor of the target computer room processes the write request for the order, and writes the processing information of the order and the routing relationship between the order and the target computer room into the main library of the target computer room, and also enables the main library of the target computer room to synchronize the processing information of the order and the routing relationship to the first slave library and the second slave library of the target computer room, so that the first computer room and the second computer room can obtain the processing information of the order in response to the read request for the order based on the routing relationship.
[0033] Preferably, the routing relationship includes the serial number of the order and the computer room number of the target computer room.
[0034] Preferably, the processing method further comprises:
[0035] Obtain the status of the exception request processed by the microservice processor of the target computer room, and when the status of the exception request meets the preset fuse condition, forward the write request received within the specified time window to the gateway of another computer room to trigger the gateway, microservice processor and main library of the other computer room to perform corresponding operations.
[0036] Preferably, the processing method further comprises:
[0037] When the write request of the order meets the preset traffic scheduling conditions, the write request of the order is forwarded to the gateway of another computer room to trigger the gateway, microservice processor and main library of the other computer room to perform corresponding operations.
[0038] The present invention provides a highly available processing system and method for multi-computer room databases. Both computer rooms have independent and equivalent database clusters, and a slave library is set in the other computer room to ensure the integrity of the data copies of the two computer rooms. After a computer room processes a write request for an order, the processing information of the order and the routing relationship between the order and the computer room are written into the main library of the computer room, and the data is synchronized to the local slave library of the computer room and the slave library across computer rooms through the master-slave data replication mode of the main library, so as to ensure the operability of subsequent read requests for the order in any computer room. It can be seen that the applications of the two computer rooms in this application can provide services to the outside world at the same time, and the database clusters of the two computer rooms can also provide read and write services at the same time, meeting the high availability requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0040] Figure 1 A schematic diagram of the structure of a high-availability processing system for multi-computer room databases provided by an embodiment of the present invention;
[0041] Figure 2 Another structural schematic diagram of a multi-computer room database high-availability processing system provided by an embodiment of the present invention;
[0042] Figure 3 Another structural schematic diagram of a multi-computer room database high-availability processing system provided by an embodiment of the present invention;
[0043] Figure 4 A method flow chart of a method for processing high availability of a multi-computer room database provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0046] The embodiment of the present invention provides a highly available processing system for multi-computer room databases, and proposes a new concept of "active-active application layer, pseudo-active-active database layer". The two computer rooms are equal and stateless. The applications of the two computer rooms provide services to the outside world at the same time, and the database clusters of the two computer rooms also provide read and write services at the same time. One-way replication is used between databases, and the design idea of the database clusters of the two computer rooms is to adopt the "idea of sub-library". It should be noted that the database cluster in the embodiment of the present application can be MySQL.
[0047] See also Figure 1 The structural diagram of the multi-computer room database high availability processing system shown in FIG. The processing system includes:
[0048] Terminal 10, dispatch server 20, gateway 30, microservice processor 40 and database cluster 50 of the computer room; wherein,
[0049] The computer room includes a first computer room and a second computer room, and the database cluster 50 includes a master library 501, a first slave library 502 and a second slave library 503. The master library 501 and the first slave library 502 of the first computer room are deployed in the first computer room, and the second slave library 503 is deployed in the second computer room. The master library 501 and the first slave library 502 of the second computer room are deployed in the second computer room, and the second slave library 503 is deployed in the first computer room.
[0050] Terminal 10 is used to initiate a write request for an order.
[0051] To facilitate understanding of the embodiments of the present invention, a payment service scenario is taken as an example below: The terminal 10 responds to a user operation and initiates a payment request for an order.
[0052] The scheduling server 20 is used to send the write request of the order to the target computer room through computer room traffic scheduling.
[0053] Continuing with the payment business scenario as an example, in an embodiment of the present invention, the scheduling server 20 distributes the payment request of the order to the target computer room based on the existing traffic scheduling strategy.
[0054] Specifically, when the network environment of the terminal 10 is stable, the scheduling service forwards the request to the computer room to meet consistency, that is, in a short period of time, the requests (including write requests and read requests) of the same terminal 10 will be fixedly scheduled to the same computer room. Therefore, this can well avoid the inconsistency problem caused by the master-slave delay of the database across computer rooms. Write requests and read requests are processed in the database cluster 50 in the same computer room.
[0055] The gateway 30 of the target computer room is used to send the write request of the order to the microservice processor 40 of the target computer room.
[0056] Continuing with the payment business scenario as an example, in an embodiment of the present invention, the gateway 30 of the target computer room receives the payment request of the order assigned by the scheduling server 20, and forwards the request to the microservice processor 40 that handles the payment business.
[0057] The microservice processor 40 of the target computer room is used to process the write request of the order, and write the processing information of the order and the routing relationship between the order and the target computer room into the main library 501 of the target computer room. Specifically, the routing relationship may include the serial number of the order and the computer room number of the target computer room, that is, establish a corresponding relationship between the serial number of the order and the computer room number of the target computer room.
[0058] Continuing to take the payment business scenario as an example, in the embodiment of the present invention, the microservice processor 40 processes the payment request of the received order based on the existing payment transaction strategy, generates the corresponding payment information for the order, and at the same time, generates the routing relationship between the order and the target computer room, that is, the corresponding relationship between the order and the target computer room for processing the order can be indicated through the routing relationship, and the target computer room can be located through the routing relationship. Finally, the payment information of the order and the routing relationship are written into the main library 501 of the target computer room.
[0059] The master library 501 of the target computer room is used to synchronize the order processing information and routing relationship to the first slave library 502 and the second slave library 503 of the target computer room, so that the first computer room and the second computer room can obtain the order processing information by responding to the read request for the order based on the routing relationship.
[0060] Continuing with the payment business scenario as an example, in an embodiment of the present invention, the main database 501 of the target computer room uses the MHA tool to achieve single-machine master-slave high availability, and synchronizes the payment information and routing relationship of the order to a slave database located locally in the target computer room, and at the same time uses the data replication mode to synchronize to another slave database set up across computer rooms.
[0061] It can be seen that in this application, both the first computer room and the second computer room have independent and equivalent database clusters 50, and a slave database is set in the other computer room to ensure the integrity of the data copies of the two computer rooms. For example, when the first computer room processes a write request for an order, the microservice processor 40 of the first computer room writes the processing information and routing relationship of the order to the master database 501 of the first computer room, and the master database 501 of the first computer room then adopts the master-slave data replication mode to synchronize the processing information and routing relationship of the order to the slave database local to the first computer room and the slave database deployed in the second computer room.
[0062] Based on this, whether it is the first computer room or the second computer room that processes the order write request, the database deployed in each computer room has the relevant information of all orders. Assuming that the second computer room is subsequently assigned a read request for the order, by reading the two slave libraries deployed locally, the routing relationship of the order and the corresponding processing information can be found from one slave library. This idea similar to the library division makes the two businesses independent service units, independent and equal. Since there is no cross-computer room reading, compared with the "dual active at the application layer and single active at the database layer" method, it not only improves the reading and writing capabilities, but also greatly improves the availability and continuity of the service.
[0063] In some other embodiments, in order to improve the risk resistance of the processing system, in the embodiment of the present invention, the gateway 30 of the target computer room is also used for:
[0064] Obtain the status of the exception request processed by the microservice processor 40 of the target computer room, and when the status of the exception request meets the preset fuse condition, forward the write request received within the specified time window to the gateway 30 of another computer room to trigger the gateway 30, microservice processor 40 and main library 501 of the other computer room to perform corresponding operations.
[0065] In an embodiment of the present invention, if an exception occurs in the database cluster 50 of the target computer room, an exception will also occur when the microservice processor of the corresponding target computer room processes a write request, thereby generating an abnormal request. The gateway 30 of the target computer room can obtain the number and / or proportion of abnormal requests generated by the microservice processor 40 of the computer room where it is located. If the number and / or proportion of the abnormal requests is greater than the corresponding preset threshold (that is, the number of abnormal requests corresponds to a preset number threshold, and the proportion of abnormal requests corresponds to a preset proportion threshold), the gateway 30 triggers the fuse degradation mechanism, and forwards the subsequent specified time window, such as the write request of all orders within the next 10 minutes, to the gateway 30 of another computer room, thereby triggering the gateway 30, microservice processor 40 and main library 501 of another computer room to perform the operation of processing the write request, which is consistent with the operation of the gateway 30, microservice processor 40 and main library 501 of the above-mentioned target computer room, and will not be repeated here.
[0066] Of course, after the specified time window is exceeded, the gateway 30 of the target computer room can send a small proportion of order write requests to the microservice processor 40 of the target computer room. If the microservice processor 40 of the target computer room can process normally without generating abnormal requests, the gateway 30 of the target computer room gradually increases the proportion of orders sent to the microservice processor 40 of the target computer room until the fuse degradation mechanism is terminated when the write requests of all orders are sent to the microservice processor 40 of the target computer room. Subsequently, the gateway 30 of the target computer room, the microservice processor 40 and the main library 501 continue to perform operations for processing write requests.
[0067] It should also be noted that the write request forwarding for each order will only occur once and will not be forwarded back and forth to avoid an infinite loop.
[0068] In some other embodiments, the target computer room may open a certain amount of traffic and dispatch the write request to another computer room to ensure smooth system links. The gateway 30 of the target computer room is also used to:
[0069] When the write request of the order meets the preset traffic scheduling conditions, the write request of the order is forwarded to the gateway 30 of another computer room to trigger the gateway 30, microservice processor 40 and main library 501 of another computer room to perform corresponding operations.
[0070] In an embodiment of the present invention, the target computer room may pre-set traffic scheduling conditions, such as setting a time window for traffic scheduling, setting a quantity for traffic scheduling, etc., and forward the write request of the order that meets the conditions from the gateway 30 of the target computer room to the gateway 30 of another computer room, thereby triggering the gateway 30, microservice processor 40 and main library 501 of the other computer room to perform an operation of processing the write request. This operation is consistent with the operation of the gateway 30, microservice processor 40 and main library 501 of the above-mentioned target computer room, and will not be repeated here.
[0071] In some other embodiments, to detect available computer rooms immediately, see Figure 2 As shown in the structural diagram, the processing system further includes: a cloud server 60;
[0072] The microservice processor 40 of the computer room is used to monitor the operating status of the database cluster 50 of the computer room and upload it to the cloud server 60;
[0073] The cloud server 60 is used to write the operation status corresponding to the computer room into the computer room list;
[0074] The terminal 10 is specifically used for:
[0075] The computer room list is called to determine the computer room in which the database cluster 50 is in an available state, and a write request for the order is initiated based on the determination result.
[0076] The scheduling server 20 is specifically used for:
[0077] The write request of the order is sent to the target computer room where the database cluster 50 is in an available state.
[0078] In the embodiment of the present invention, the microservice processor 40 corresponding to each of the first computer room and the second computer room can upload the operation status of the database cluster 50 of the computer room to the cloud server 60, and the cloud server 60 writes the operation status of the database cluster 50 corresponding to each computer room into the computer room list and updates it in real time. Based on the computer room list, the terminal 10 can actively detect the computer room where the database cluster 50 is in an available state, that is, the available computer room, so as to initiate a write request for the order in a targeted manner, and the scheduling server 20 allocates the write request to the available computer room. This can improve the effectiveness of scheduling.
[0079] In some other embodiments, the processing system can also be expanded to a "two-site three-center" deployment solution, see Figure 3 As shown in the structural schematic diagram, the processing system also includes:
[0080] The first main library 701 and the second main library 702 of the third computer room;
[0081] The main database 501 of the first computer room is used to back up its information to the first main database 701 of the third computer room;
[0082] The main library 501 of the second computer room is used to back up its information to the second main library 702 of the third computer room.
[0083] In the embodiment of the present invention, the main libraries of the first computer room and the second computer room can be connected to the two main libraries of the third computer room respectively, that is, the third computer room is used as a disaster recovery computer room to timely back up the data of each computer room.
[0084] The highly available processing system for multi-computer room databases provided by the embodiment of the present invention has two computer rooms with independent and equivalent database clusters, and a slave library is set in the other computer room to ensure the integrity of the data copies of the two computer rooms. After a computer room processes a write request for an order, the processing information of the order and the routing relationship between the order and the computer room are written into the main library of the computer room, and the data is synchronized to the local slave library of the computer room and the slave library across computer rooms through the master-slave data replication mode of the main library, so as to ensure the operability of any subsequent computer room to process the read request of the order. It can be seen that the applications of the two computer rooms in this application can provide services to the outside at the same time, and the database clusters of the two computer rooms can also provide read and write services at the same time, meeting the high availability requirements.
[0085] Based on the multi-computer room database high availability processing system provided in the above embodiment, the embodiment of the present invention also provides a multi-computer room database high availability processing method, which is applied to the gateway of the target computer room in the processing system. The method flow chart of the processing method is as follows: Figure 4 As shown, including:
[0086] S10, receiving a write request for an order sent by a scheduling server, where the write request for the order is initiated by a terminal.
[0087] S20, sending the write request of the order to the microservice processor of the target computer room, so that the microservice processor of the target computer room processes the write request of the order, and writes the processing information of the order and the routing relationship between the order and the target computer room into the main library of the target computer room, and also makes the main library of the target computer room synchronize the processing information and routing relationship of the order to the first slave library and the second slave library of the target computer room, so that the first computer room and the second computer room respond to the read request for the order based on the routing relationship to obtain the processing information of the order.
[0088] Optionally, the routing relationship includes the serial number of the order and the computer room number of the target computer room.
[0089] Optionally, the above processing method further includes:
[0090] Obtain the status of the exception request processed by the microservice processor of the target computer room, and if the status of the exception request meets the preset fuse condition, forward the write request received within the specified time window to the gateway of another computer room to trigger the gateway, microservice processor and main library of the other computer room to perform corresponding operations.
[0091] Optionally, the above processing method further includes:
[0092] When the write request of the order meets the preset traffic scheduling conditions, the write request of the order is forwarded to the gateway of another computer room to trigger the gateway, microservice processor and main library of the other computer room to perform corresponding operations.
[0093] The high-availability processing method for multi-computer room databases provided by the embodiment of the present invention is that after a computer room processes a write request for an order, the processing information of the order and the routing relationship between the order and the computer room are written into the main database of the computer room, and the data is synchronized to the local slave database of the computer room and the slave database across computer rooms through the master-slave data replication mode of the main database, so as to ensure the operability of subsequent read requests for the order processed by any computer room. It can be seen that the applications of the two computer rooms in this application can provide services to the outside world at the same time, and the database clusters of the two computer rooms can also provide read and write services at the same time, meeting the high-availability requirements.
[0094] The above is a detailed introduction to a multi-computer room database high-availability processing system and processing method provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
[0095] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0096] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device that includes a series of elements is inherent to the elements, or also includes elements inherent to these processes, methods, articles or devices. In the absence of further restrictions, the elements defined by the sentence "including a..." do not exclude the presence of other identical elements in the process, method, article or device that includes the elements.
[0097] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A high-availability processing system for multi-computer room databases, characterized in that: The processing system comprises: Terminals, dispatch servers, gateways in computer rooms, microservice processors and database clusters; among them, The computer room includes a first computer room and a second computer room, the database cluster includes a master database, a first slave database and a second slave database, the master database and the first slave database of the first computer room are deployed in the first computer room, the second slave database of the first computer room is deployed in the second computer room, the master database and the first slave database of the second computer room are deployed in the second computer room, and the second slave database of the second computer room is deployed in the first computer room; The terminal is used to initiate a write request for an order; The scheduling server is used to send the write request of the order to the target computer room through computer room traffic scheduling; The gateway of the target computer room is used to send the write request of the order to the microservice processor of the target computer room; The microservice processor of the target computer room is used to process the write request of the order; write the processing information of the order and the routing relationship between the order and the target computer room into the main database of the target computer room; The master database of the target computer room is used to synchronize the processing information of the order and the routing relationship to the first slave database and the second slave database of the target computer room, so that the first computer room and the second computer room can obtain the processing information of the order in response to the read request for the order based on the routing relationship.
2. The processing system according to claim 1, characterized in that The routing relationship includes the serial number of the order and the computer room number of the target computer room.
3. The processing system according to claim 1, characterized in that The gateway of the target computer room is also used for: Obtain the status of the exception request processed by the microservice processor of the target computer room, and when the status of the exception request meets the preset fuse condition, forward the write request received within the specified time window to the gateway of another computer room to trigger the gateway, microservice processor and main library of the other computer room to perform corresponding operations.
4. The processing system according to claim 1, characterized in that The gateway of the target computer room is also used for: When the write request of the order meets the preset traffic scheduling conditions, the write request of the order is forwarded to the gateway of another computer room to trigger the gateway, microservice processor and main library of the other computer room to perform corresponding operations.
5. The processing system according to claim 1, characterized in that The processing system further includes: a cloud server; The microservice processor of the computer room is used to monitor the operating status of the database cluster of the computer room and upload it to the cloud server; The cloud server is used to write the operating status corresponding to the computer room into the computer room list; The terminal is specifically used for: Determine a computer room in which the database cluster is in an available state by calling the computer room list, and initiate a write request for the order based on the determination result; The scheduling server is specifically used for: The write request of the order is sent to the target computer room where the database cluster is in an available state.
6. The processing system according to claim 1, characterized in that The processing system further comprises: The first and second main libraries in the third computer room; The main database of the first computer room is used to back up its information to the first main database of the third computer room; The main database of the second computer room is used to back up its information to the second main database of the third computer room.
7. A method for processing high availability of multi-computer room databases, characterized in that: The processing method is applied to the gateway of the target computer room in the multi-computer room database high availability processing system, and includes: receiving a write request for an order sent by a scheduling server, where the write request for the order is initiated by a terminal; Send a write request for the order to the microservice processor of the target computer room, so that the microservice processor of the target computer room processes the write request for the order, and writes the processing information of the order and the routing relationship between the order and the target computer room into the main library of the target computer room, and also enables the main library of the target computer room to synchronize the processing information of the order and the routing relationship to the first slave library and the second slave library of the target computer room, so that the first computer room and the second computer room respond to the read request for the order based on the routing relationship to obtain the processing information of the order; the second slave library of the target computer room is deployed in other computer rooms.
8. The processing method according to claim 7, characterized in that: The routing relationship includes the serial number of the order and the computer room number of the target computer room.
9. The processing method according to claim 7, characterized in that: The processing method also includes: Obtain the status of the exception request processed by the microservice processor of the target computer room, and when the status of the exception request meets the preset fuse condition, forward the write request received within the specified time window to the gateway of another computer room to trigger the gateway, microservice processor and main library of the other computer room to perform corresponding operations.
10. The processing method according to claim 7, characterized in that: The processing method also includes: When the write request of the order meets the preset traffic scheduling conditions, the write request of the order is forwarded to the gateway of another computer room to trigger the gateway, microservice processor and main library of the other computer room to perform corresponding operations.
