Remote multi-active system and information processing method and configuration server thereof

By deploying configuration servers in a multi-active system in different locations and determining data centers based on user registration information and grouping strategies, the data conflict problem during two-way synchronization of data centers is resolved, and data center expansion with high data accuracy and flexibility is achieved.

CN116233245BActive Publication Date: 2025-09-26SOUNDAI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211505529.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-28
Publication Date
2025-09-26
Estimated Expiration
2042-11-28

AI Technical Summary

Technical Problem

Existing multi-site active-active systems are prone to data conflicts when synchronizing data in both directions within the data center, affecting the normal operation of business services.

Method used

By deploying configuration servers in each geographic area, receiving service access requests from distributed network nodes, and determining the data center based on user registration information and user grouping strategies, we ensure that data is written to the designated data center to avoid data conflicts.

Benefits of technology

The accuracy of two-way data synchronization between data centers is achieved, ensuring the accuracy of written data. In addition, the data centers in each geographical area are managed through configuration servers, which is highly flexible and can expand the number of data centers at will.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116233245B_ABST
    Figure CN116233245B_ABST
Patent Text Reader

Abstract

The present invention provides a remote multi-active system and its information processing method and configuration server, which relate to the field of computer technology. The method includes: receiving a service access request sent by a distributed network node, and obtaining the request type and user registration location information in the service access request; when the request type includes writing data and the user registration location information matches the geographical area where the configuration server is located, obtaining the user identity information in the service access request; determining the first data center based on the user identity information and the user grouping strategy and sending the service access request to the first data center; the user grouping strategy is used to indicate the correspondence between the user list and the data center, and the user identity information is stored in the user list. The technical solution provided by the present invention can avoid data conflicts when the data centers of the remote multi-active system synchronize data in both directions, ensure the correct writing of data, and the remote multi-active system has strong scalability and flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a remote multi-active system, an information processing method thereof, and a configuration server. Background Art

[0002] With the development of internet technology, deploying services using multi-site active-active systems plays a vital role in rapidly recovering from failures and ensuring the normal operation of business services. Multi-site active-active refers to establishing independent data centers in different cities. "District" refers to geographical locations, and "active-active" means that systems in different locations can provide business services.

[0003] Current geo-active systems can back up data between data centers, ensuring that each data center has the full data set. This allows users to perform read and write operations in any data center. However, if the same user writes data to different data centers simultaneously, data conflicts can easily occur during bidirectional synchronization between data centers. For example, modifying the same data entry can lead to data write errors, impacting the normal operation of business services. Summary of the Invention

[0004] The present invention provides a remote multi-active system and its information processing method and configuration server, which are used to solve the problem that data conflicts are prone to occur when bidirectional data synchronization is performed in the remote multi-active system in the prior art.

[0005] The present invention provides an information processing method for a remote multi-active system. The remote multi-active system includes distributed network nodes and configuration servers and data centers deployed in at least two geographical regions. Each of the geographical regions deploys at least one data center and one configuration server communicatively connected to the at least one data center. The configuration servers in each geographical region are communicatively connected via the distributed network nodes, and data is bidirectionally backed up between all data centers in the at least two geographical regions. The method is applied to the configuration server and includes:

[0006] receiving a service access request sent by the distributed network node, and obtaining a request type and user registration location information in the service access request;

[0007] When the request type includes writing data and the user registration location information matches the geographical area where the configuration server is located, obtaining the user identity information in the service access request;

[0008] The first data center is determined based on the user identity information and the user grouping strategy, and the service access request is sent to the first data center; the user grouping strategy is used to indicate the correspondence between the user list and the data center, and the user identity information is stored in the user list; the first data center is the data center in the geographical area where the configuration server is located.

[0009] According to the present invention, an information processing method for a remote multi-active system further includes:

[0010] If the request type includes writing data and the user registration location information does not match the geographical area where the configuration server is located, determining a first target configuration server that matches the user registration location information;

[0011] The service access request is sent to the first target configuration server through the distributed network node.

[0012] According to the present invention, an information processing method for a remote multi-active system further includes:

[0013] If no service status information reported by the second data center is received within the heartbeat time period, allocating the user list corresponding to the second data center to at least one other data center in the geographical area where the configuration server is located; the second data center is a data center in the geographical area where the configuration server is located;

[0014] The second data center is deleted from the user grouping strategy.

[0015] According to the present invention, an information processing method for a remote multi-active system further includes:

[0016] When the service status information reported by the second data center is received within the heartbeat time period, the time information of the second data center in the user grouping strategy is updated to the time when the service status information is received.

[0017] According to the present invention, an information processing method for a remote multi-active system further includes:

[0018] In the case of detecting a grayscale test configuration instruction, displaying a grayscale test configuration interface, wherein the grayscale test configuration interface includes a control for selecting an application to be tested;

[0019] In response to a selection operation on the application selection control to be tested, a target application to be tested is determined, and a user list and adjustment controls of a third data center are displayed in the grayscale test configuration interface; the third data center is the data center where the target application to be tested is located;

[0020] In response to the configuration operation directed to the adjustment control, distributing the user identity information currently stored in the user list of the third data center to other data centers in the same geographical area as the third data center;

[0021] After the allocation is completed, the test user identity information is added to the user list of the third data center, and the user grouping strategy is updated based on the allocation result and the addition result.

[0022] According to the present invention, an information processing method for a remote multi-active system further includes:

[0023] Receiving service indicator data reported by a data center in the geographical area where the configuration server is located;

[0024] Determining a service capability indicator of the data center according to the service indicator data;

[0025] The user grouping strategy is updated based on the service capability indicator and the weight of the data center.

[0026] The present invention also provides a configuration server, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the computer program, it implements the information processing method of the remote multi-active system as described in any one of the above-mentioned methods.

[0027] The present invention also provides a remote multi-active system, comprising distributed network nodes, data centers deployed in at least two geographical areas, and the configuration server as described above; wherein, each of the geographical areas deploys at least one of the data centers and one of the configuration servers communicatively connected to at least one of the data centers, the configuration servers in each of the geographical areas are communicatively connected via distributed network nodes, and data is bidirectionally backed up between all the data centers in the at least two geographical areas.

[0028] According to a remote multi-active system provided by the present invention, the distributed network node is used to determine a second target configuration server from other configuration servers communicatively connected to the distributed network node when a service abnormality is detected in the configuration server, and migrate the user list on the configuration server to the second target configuration server.

[0029] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the information processing method of any of the above-mentioned remote multi-active systems.

[0030] The present invention also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the information processing method of any of the above-mentioned remote multi-active systems.

[0031] The present invention provides a remote multi-active system and its information processing method and configuration server. By deploying at least one data center and a configuration server in communication with the at least one data center in each geographical area, the configuration server can receive service access requests sent by distributed network nodes. When the request type in the service access request is to write data and the user registration location information matches the geographical area where the configuration server is located, the first data center is determined according to the user identity information and the user grouping strategy, and the service access request is sent to the first data center. The user grouping strategy can indicate the correspondence between the user list storing the user identity information and the data center. In this way, each group of users can only write to the specified data center when writing data, that is, conflicts are avoided when the data center accesses data, so that conflicts will not occur when the data center synchronizes data in both directions, thereby ensuring the accuracy of the written data. Moreover, the data center in each geographical area is managed by the configuration server of the geographical area, and the number of data centers can be expanded arbitrarily without affecting the data centers in other geographical areas, which has high flexibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0033] Figure 1 1 is a schematic structural diagram of a remote multi-active system provided by an embodiment of the present invention;

[0034] Figure 2 1 is a flow chart of an information processing method for a remote multi-active system provided by an embodiment of the present invention;

[0035] Figure 3 It is a structural diagram of a configuration server provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0036] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0037] It should be noted that the serial numbers assigned to components or described objects in the present invention, such as "first", "second", etc., are only used to distinguish the described objects and do not have any order or technical meaning.

[0038] An embodiment of the present invention provides a remote multi-active system. The remote multi-active system may include distributed network nodes, configuration servers, and data centers deployed in at least two geographic regions. Each geographic region includes at least one data center and a configuration server communicatively connected to the at least one data center. The configuration servers in each geographic region are communicatively connected via the distributed network nodes, and data is bidirectionally backed up between all data centers in the at least two geographic regions. The geographic regions may be divided, for example, by city, with each city representing one geographic region.

[0039] For example, take the deployment of five data centers in three cities as an example. Figure 1 The schematic diagram of the structure of the remote multi-active system provided by the embodiment of the present invention is shown as an example. Figure 1 As shown, the remote multi-active system can include distributed network nodes and five data centers and three configuration servers deployed in three cities. Specifically, configuration server 1 and data centers A1 and A2, which are communicatively connected to configuration server 1, are deployed in city 1. Configuration server 2 and data centers B1 and B2, which are communicatively connected to configuration server 2, are deployed in city 2. Configuration server 3 and data center C, which is communicatively connected to configuration server 3, are deployed in city 3. Configuration servers 1, 2, and 3 can be communicatively connected through distributed network nodes.

[0040] Among them, the distributed network node may include an operator network node or a content delivery network (CDN) node. The distributed network node can receive a service access request sent by a client device, select the nearest city based on the proximity principle, and then send the service access request to the configuration server of the selected nearest city. The distributed network node can also manage city-level data centers. For example, if a data center in City 1 fails, the data traffic of City 1 can be migrated to at least one of City 2 and City 3. Specifically, the distributed network node can determine a second target configuration server from other configuration servers that are in communication with the distributed network node upon receiving service anomaly information reported by the configuration server, and migrate the user list on the configuration server to the second target configuration server.

[0041] For each configuration server in a geographically active-active system, the configuration server can perform the following information processing steps: receive a service access request from a distributed network node and obtain the request type and user registration location information in the service access request; if the request type includes writing data and the user registration location information matches the geographic region where the configuration server is located, obtain the user identity information in the service access request; determine the first data center based on the user identity information and the user grouping policy, and send the service access request to the first data center. The user grouping policy is used to indicate the correspondence between the user list and the data center, and the user list stores the user identity information; the first data center is the data center in the geographic region where the configuration server is located.

[0042] For example, Figure 1 For example, configuration server 1 in Figure 1 receives a service access request 1 from a distributed network node. If the request type in service access request 1 is to write data and the user registration location information indicates the registration location is city 1, which falls under the jurisdiction of configuration server 1, configuration server 1 can match the corresponding data center from the user grouping policy based on the user identity information in service access request 1. For example, if it matches data center A1, configuration server 1 will send service access request 1 to data center A1 to access the business service in data center A1. If the request type in service access request 1 is to write data and the user registration location information indicates the registration location is city 2, configuration server 1 will send service access request 1 to configuration server 2 in city 2 through the distributed network node. After receiving service access request 1, configuration server 2 will perform the same judgment and processing as configuration server 1, matching a data center in city 2 to complete the business service access. If the request type in service access request 1 is to read data, configuration server 1 can directly send service access request 1 to data center A1 or data center A2 to access the business service. The data center selected in city 1 can be determined based on the service status and service processing capabilities of each data center, for example.

[0043] In this way, the configuration server can serve as the entry point for city traffic, achieving load balancing across data centers within the city based on user grouping strategies. Each city's data center is managed by that city's configuration server, providing greater flexibility. Furthermore, each group of users can only write data to a specific data center, eliminating conflicts when data is sent to the data center. This prevents conflicts during bidirectional data synchronization between data centers, ensuring the accuracy of written data.

[0044] based on Figure 1 The remote multi-active system of the corresponding embodiment, Figure 2 The flowchart of the information processing method of the remote multi-active system provided by the embodiment of the present invention is exemplified. The method can be applied to Figure 1 The configuration server in the remote multi-active system is shown. Figure 2 As shown, the method may include the following steps 210 to 230.

[0045] Step 210: Receive a service access request sent by a distributed network node, and obtain the request type and user registration location information in the service access request.

[0046] A service access request may include the request type, user registration location information, and user identity information. The request type may include writing data or reading data; the user registration location information may be the location of the user's network account, such as the location of the registered mobile phone number; and the user identity information may be an identity document (ID), such as an ID number, account number, or mobile phone number.

[0047] The client device can access the network through the nearest distributed network node. After receiving the service access request sent by the client device, the distributed network node can obtain the request type and user registration location information in the service access request by parsing.

[0048] Step 220: When the request type includes writing data and the user registration location information matches the geographical area where the configuration server is located, obtain the user identity information in the service access request.

[0049] The configuration server may include a geographic region identifier, which can be used to indicate the geographic region in which the configuration server is located. Taking configuration server 1 as an example, assuming the request type includes writing data, i.e., a data write operation, and the user's registered location information matches (e.g., is identical to) the geographic region identifier of configuration server 1, configuration server 1 obtains user identity information from the service access request. For example, a user may enter a login account when logging into a client application through a client device. This login account is then included as user identity information in the service access request when initiating the service access request.

[0050] In an example embodiment, when the request type includes writing data and the user registration location information does not match the geographical area where the configuration server is located, the configuration server determines a first target configuration server that matches the user registration location information, and then sends a service access request to the first target configuration server through a distributed network node.

[0051] In an exemplary embodiment, when the request type is to read data, i.e., when the request type is a read data operation, regardless of whether the user's registered location information matches the geographic region of the configuration server, the configuration server may select a data center within its local data center to execute the service requested by the service access request. Of course, if the user's registered location information does not match the configuration server's geographic region, the configuration server may forward the service access request to a configuration server that matches the user's registered location information, and the matching configuration server will perform the offload.

[0052] Step 230: Determine the first data center according to the user identity information and the user grouping policy, and send the service access request to the first data center.

[0053] The user grouping strategy is used to indicate the correspondence between the user list and the data center. The user list stores user identity information. The first data center is the data center in the geographical area where the configuration server is located.

[0054] For example, using configuration server 1 as an example, the user grouping policy includes user list 1 and user list 2. User list 1 stores the identity information of users allowed to access data center A1, and user list 2 stores the identity information of users allowed to access data center A2. Assuming that the user identity information obtained by configuration server 1 matches user list 2, configuration server 1 will send a service access request to data center A2 based on the match result, and data center A2 will provide the business service requested by the service access request.

[0055] The information processing method of the remote multi-active system provided by the embodiment of the present invention can receive service access requests sent by distributed network nodes through the configuration server deployed in each geographical area. When the request type in the service access request includes writing data and the user registration location information matches the geographical area where the configuration server is located, the first data center is determined according to the user identity information and the user grouping strategy, and the service access request is sent to the first data center. The user grouping strategy can indicate the correspondence between the user list that stores the user identity information and the data center. In this way, each group of users can only write to the specified data center when writing data, that is, conflicts are avoided when the data center accesses data, so that conflicts will not occur when the data center synchronizes data in both directions, thereby ensuring the accuracy of the written data; moreover, the data center in each geographical area is managed by the configuration server of the geographical area, and the number of data centers can be expanded arbitrarily without affecting the data centers in other geographical areas, which has high flexibility.

[0056] based on Figure 2In the information processing method of the remote multi-active system of the corresponding embodiment, in an exemplary embodiment, the configuration server can realize the dynamic maintenance of the data center in the user grouping strategy and the dynamic update of the user grouping strategy by monitoring the service status information of the data center deployed in the geographical area where the configuration server is located. Specifically, the method may also include: when the service status information reported by the second data center is not received within the heartbeat time period, the user list corresponding to the second data center is allocated to at least one other data center in the geographical area where the configuration server is located; and the second data center is deleted from the user grouping strategy. The second data center is a data center in the geographical area where the configuration server is located.

[0057] Further, optionally, the method may further include: upon receiving service status information reported by the second data center within the heartbeat time period, updating the time information of the second data center in the user grouping policy to the time when the service status information was received. In this way, if a failure occurs in the second data center, the time information of the second data center will record the time when the service status information reported by the second data center was last received, thereby recording the time of the failure and facilitating subsequent failure analysis and resolution.

[0058] For example, taking configuration server 2 as an example, data center B1 and data center B2 can report their respective service status information to configuration server 2 once every set time period (for example, every 10 seconds), where the set time period is the heartbeat time period. Taking data center B1 as an example, if configuration server 2 can receive the service status information reported by data center B1 within the heartbeat time period, then after receiving the service status information reported by data center B1, it updates the timestamp of data center B1 in the user grouping strategy and maintains the online status of data center B1. If configuration server 2 does not receive the service status information reported by data center B1 within the heartbeat time period, it means that data center B1 may have a network outage or service outage. At this time, configuration server 2 can dynamically adjust the user grouping strategy, delete data center B1 from the user grouping strategy, and transfer the user list originally corresponding to data center B1 to data center B2, and data center B1 no longer receives user requests. If all data centers in City 2 fail, such as a power outage in City 2 causing all data centers to shut down, the distributed network node will detect that a service anomaly has occurred in Configuration Server 2. For example, if the distributed network node does not receive status information reported by Configuration Server 2 within a preset time period, it will determine that a service anomaly has occurred in Configuration Server 2. Alternatively, upon detecting that both Data Center B1 and Data Center B2 have failed, Configuration Server 2 will send service anomaly information to the distributed network node. Upon receiving the service anomaly information, the distributed network node will determine that all data centers in City 2 have failed. At this point, the distributed network node can allocate user traffic from City 2 to at least one of City 1 and City 3 based on the current service status and service capabilities of City 1 and City 3, ensuring normal access to business services. The service status information may include at least one of, but is not limited to, the hardware load ratio of the data center, the request success rate per unit time, and the number of requests per unit time.

[0059] This allows user grouping and traffic diversion within a geographic region to be controlled by the configuration server for that region, while data diversion between different regions can be performed at the geographic level using distributed network nodes, improving the flexibility and efficiency of data diversion. In the event of a data center failure, traffic can be switched using the configuration server first, eliminating the need for distributed network nodes to intervene every time a data center failure occurs.

[0060] based on Figure 2The information processing method of the remote multi-active system of the corresponding embodiment, in an example embodiment, can perform grayscale testing of the published application by configuring the server. Specifically, the method may also include: when a grayscale test configuration instruction is detected, displaying a grayscale test configuration interface, the grayscale test configuration interface includes an application selection control to be tested; in response to a selection operation facing the application selection control to be tested, determining the target application to be tested, and displaying a user list and adjustment control of the third data center in the grayscale test configuration interface, wherein the third data center is the data center where the target application to be tested is located; in response to a configuration operation facing the adjustment control, allocating the user identity information currently saved in the user list to other data centers in the same geographical area as the third data center; after the allocation is completed, adding the test user identity information to the user list, and updating the user grouping strategy based on the allocation result and the addition result.

[0061] For example, when deploying a new application in a data center, it is necessary to conduct online testing on the newly deployed application, but it is not desired to be open to real users, but only to testers. In this case, a grayscale test of the released application can be performed through the configuration server. Taking the deployment of a new application E in the data center A2 of city 1 as an example, the configuration server 1 can display a management interface on the front end, which may include a grayscale test function control. After the administrator clicks the grayscale test function control, the front end will send a grayscale test configuration instruction to the configuration server 1; after receiving the grayscale test configuration instruction, the configuration server 1 displays the grayscale test configuration interface. The administrator can use the grayscale test configuration interface to add the test user identity information (such as the tester's account) to the user list allowed to access the data center A2, and allocate the user identity information that was originally able to access the data center A2 to the user list allowed to access the data center A1.

[0062] In this way, the server can be configured to isolate service access requests from test accounts and other user accounts on a data center basis, so that only testers can access the data center where the tested application is deployed.

[0063] based on Figure 2 In an example embodiment of the information processing method for a remote multi-active system, the user grouping policy in the configuration server can be dynamically updated based on the service processing capabilities of the data center it manages, thereby achieving configurable dynamic load balancing. Specifically, the information processing method for the remote multi-active system can also include: receiving service indicator data reported by the data center in the geographical area where the configuration server is located; determining the service capability indicator of the data center based on the service indicator data; and updating the user grouping policy based on the service capability indicator and the weight of the data center.

[0064] The service indicator data may include at least one of, but is not limited to, data center load indicators, number of CPU cores, memory size, request processing time, and service status. For example, the service status may be normal or sub-healthy. The service capacity indicator is used to characterize the service processing capabilities of the data center.

[0065] Exemplarily, determining the service capability index of a data center based on service index data may include: calculating the index score of each type of service index data based on the weight of each type of service index data and the score of that type of service index data; calculating the sum of the index scores of all types of service index data to obtain a comprehensive score, and using the comprehensive score as the service capability index of the data center.

[0066] Exemplarily, updating the user grouping strategy based on the service capability indicator and the weight of the data center may include: calculating the weight score of the data center based on the service capability indicator and the weight of the data center; adjusting the user identity information allowed to access each data center according to the weight score of each data center to update the user grouping strategy.

[0067] based on Figure 2 In an example embodiment of the information processing method for a remote multi-active system of the corresponding embodiment, the user grouping policy in the configuration server can also be configured and adjusted by the administrator as needed. For example, the information processing method may also include: upon detecting a user grouping policy adjustment instruction, displaying a user grouping policy configuration interface, wherein the user grouping policy configuration interface may include a data center selection control; in response to a selection operation on the data center selection control, determining a target data center and displaying a user list configuration control corresponding to the target data center; and in response to a configuration operation on the user list configuration control, adjusting user identity information in the user list of the target data center.

[0068] based on Figure 2 In the information processing method of the remote multi-active system of the corresponding embodiment, in an exemplary embodiment, each data center of the remote multi-active system can share a cache. In the business service scenario of concurrent requests, the data of the data center (data source) of the production data can be retrieved and processed in the cache. After the processing is completed, the processing results are written to the database of the data source, and the data in the databases of each data center are synchronized. Figure 2Assume that data center A1 in city 1 is the data provider of production data. When data center B1 in city 2 and data center C in city 3 both initiate requests to consume data from data center A1, the data from data center A1 can be read into the cache through the request and processed based on the requests from data center B1 and data center C. The results of each request processing are aggregated and merged to obtain the processed data, and the processed data is rewritten into the database of data center A1. The data is then synchronized between the databases of each data center to ensure data consistency.

[0069] The multi-site active-active system and information processing method provided by embodiments of the present invention, on the one hand, groups users through a configuration server before user traffic enters the data center, ensuring that each group of users can only write data to a specific data center. This prevents data conflicts at the source of user traffic entering the data center, thereby preventing conflicts during bidirectional data synchronization between data centers and ensuring the accuracy of written data. Furthermore, the data centers deployed in each geographic region are managed by the configuration server in that region, allowing for arbitrary expansion of the number of data centers without affecting data centers in other geographic regions, resulting in high flexibility and strong scalability.

[0070] The multi-site active-active system and information processing method provided by the embodiments of the present invention can achieve switching at any time in case of failure, unitize data through user grouping, and dynamically update the user grouping strategy in the configuration server based on the service processing capability of the data center to achieve configurable dynamic load balancing. It can also achieve grayscale release testing and other functions based on the adjustment of the user grouping strategy, which can meet various business needs, have strong availability and high flexibility.

[0071] Figure 3 An example of a structural diagram of a configuration server is shown below. Figure 3As shown, the configuration server may include: a processor 310, a communication interface 320, a memory 330, and a communication bus 340, wherein the processor 310, the communication interface 320, and the memory 330 can communicate with each other via the communication bus 340. The processor 310 can call the logic instructions in the memory 330 to execute the information processing method of the remote multi-active system provided by the above-mentioned method embodiments. The method may include, for example: receiving a service access request sent by a distributed network node, and obtaining the request type and user registration location information in the service access request; when the request type includes writing data and the user registration location information matches the geographical area where the configuration server is located, obtaining the user identity information in the service access request; determining the first data center based on the user identity information and the user grouping strategy, and sending the service access request to the first data center; wherein the user grouping strategy is used to indicate the correspondence between the user list and the data center, and the user identity information is stored in the user list; the first data center is the data center in the geographical area where the configuration server is located.

[0072] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0073] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the information processing method of the remote multi-active system provided by the above-mentioned method embodiments. The method may include, for example: receiving a service access request sent by a distributed network node, and obtaining the request type and user registration location information in the service access request; when the request type includes writing data and the user registration location information matches the geographical area where the configuration server is located, obtaining the user identity information in the service access request; determining the first data center based on the user identity information and the user grouping strategy, and sending the service access request to the first data center; wherein the user grouping strategy is used to indicate the correspondence between the user list and the data center, and the user identity information is stored in the user list; the first data center is the data center in the geographical area where the configuration server is located.

[0074] On the other hand, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the information processing method of the remote multi-active system provided by the above-mentioned method embodiments. The method may, for example, include: receiving a service access request sent by a distributed network node, and obtaining the request type and user registration location information in the service access request; when the request type includes writing data and the user registration location information matches the geographical area where the configuration server is located, obtaining the user identity information in the service access request; determining the first data center based on the user identity information and the user grouping strategy, and sending the service access request to the first data center; wherein the user grouping strategy is used to indicate the correspondence between the user list and the data center, and the user identity information is stored in the user list; the first data center is the data center in the geographical area where the configuration server is located.

[0075] For example, the computer-readable storage medium may be, for example, a non-transitory computer-readable storage medium.

[0076] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0077] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. An information processing method for a remote multi-active system, characterized in that: The remote multi-active system includes distributed network nodes and configuration servers and data centers deployed in at least two geographical regions; wherein each geographical region deploys at least one data center and one configuration server communicatively connected to at least one data center; the configuration servers in each geographical region are communicatively connected via the distributed network nodes, and data is bidirectionally backed up between all data centers in the at least two geographical regions; the method is applied to the configuration server, and the method includes: receiving a service access request sent by the distributed network node, and obtaining a request type and user registration location information in the service access request; When the request type includes writing data and the user registration location information matches the geographical area where the configuration server is located, obtaining the user identity information in the service access request; The first data center is determined based on the user identity information and the user grouping strategy, and the service access request is sent to the first data center; the user grouping strategy is used to indicate the correspondence between the user list and the data center, and the user identity information is stored in the user list; the first data center is the data center in the geographical area where the configuration server is located.

2. The information processing method of the remote multi-active system according to claim 1, characterized in that: Also includes: If the request type includes writing data and the user registration location information does not match the geographical area where the configuration server is located, determining a first target configuration server that matches the user registration location information; The service access request is sent to the first target configuration server through the distributed network node.

3. The information processing method of the remote multi-active system according to claim 1 or 2, characterized in that: Also includes: If no service status information reported by the second data center is received within the heartbeat time period, allocating the user list corresponding to the second data center to at least one other data center in the geographical area where the configuration server is located; the second data center is a data center in the geographical area where the configuration server is located; The second data center is deleted from the user grouping strategy.

4. The information processing method of the remote multi-active system according to claim 3, characterized in that: Also includes: When the service status information reported by the second data center is received within the heartbeat time period, the time information of the second data center in the user grouping strategy is updated to the time when the service status information is received.

5. The information processing method of the remote multi-active system according to claim 1 or 2, characterized in that: Also includes: In the case of detecting a grayscale test configuration instruction, displaying a grayscale test configuration interface, wherein the grayscale test configuration interface includes a control for selecting an application to be tested; In response to a selection operation on the application selection control to be tested, a target application to be tested is determined, and a user list and adjustment controls of a third data center are displayed in the grayscale test configuration interface; the third data center is the data center where the target application to be tested is located; In response to the configuration operation directed to the adjustment control, distributing the user identity information currently stored in the user list of the third data center to other data centers in the same geographical area as the third data center; After the allocation is completed, the test user identity information is added to the user list of the third data center, and the user grouping strategy is updated based on the allocation result and the addition result.

6. The information processing method of the remote multi-active system according to claim 1 or 2, characterized in that: Also includes: Receiving service indicator data reported by a data center in the geographical area where the configuration server is located; Determining a service capability indicator of the data center according to the service indicator data; The user grouping strategy is updated based on the service capability indicator and the weight of the data center.

7. A configuration server, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the information processing method of the remote multi-active system as claimed in any one of claims 1 to 6.

8. A remote multi-active system, characterized in that: The system comprises distributed network nodes, data centers deployed in at least two geographical areas, and a configuration server as described in claim 7; wherein, each of the geographical areas deploys at least one of the data centers and one of the configuration servers communicatively connected to at least one of the data centers, the configuration servers in each of the geographical areas are communicatively connected via the distributed network nodes, and data is bidirectionally backed up between all the data centers in the at least two geographical areas.

9. The remote multi-active system according to claim 8, characterized in that: The distributed network node is configured to, when detecting that a service anomaly occurs on the configuration server, determine a second target configuration server from other configuration servers communicatively connected to the distributed network node, and migrate the user list on the configuration server to the second target configuration server.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the information processing method of the remote multi-active system as claimed in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Network transaction system and method executed by same

    CN107315650A

  • Service request response method and device, equipment, and storage medium

    CN110765109A