Data center user request processing method, system, device and storage medium
By pre-storing the data center number in the user ID and resolving it using the public domain name server, directly allocating user requests to the target data center, the problem of cross-regional delay in traditional architecture is solved, and processing efficiency and customer satisfaction are improved.
Patent Information
- Application Number
- CN202211161815.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-23
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The delay in network links across computer rooms and regions of traditional dual-live architectures leads to slow user request processing, increasing operating costs and customer satisfaction issues.
By pre-storing the target data center number in the user ID, using the public domain name server to resolve and extract the number, directly allocating user requests to the corresponding data center, avoiding complex allocation algorithms, shortening the request allocation time and processing in the same data center, reducing cross-data Central interaction.
Improve user request processing efficiency, reduce network latency, reduce operational costs, and improve customer satisfaction.
Smart Images

Figure CN115567605B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data center user request processing method, system, device and storage medium. Background Art
[0002] In order to avoid data loss in data centers due to system crashes, force majeure such as earthquakes and fires, data center-level active-active and multi-active high-availability architecture designs have emerged. The traditional active-active architecture involves randomly distributing user request traffic to the backend application cluster based on the Domain Name Server (DNS) and load balancing, and randomly distributing the traffic of the backend application cluster to the backend database cluster.
[0003] In the traditional active-active service system, users need to face network link delays across data centers and regions. Users may need to interact across regions when accessing a complex scenario, which may cause users to feel slow system response or even response timeouts when using the system in complex business scenarios, which can easily cause users to have a poor experience. At the same time, since users cannot get a quick response from the system, a large number of service demands in complex scenarios are transformed into complaints pouring into the customer service center's manual seats, increasing operating costs and affecting customer satisfaction. Summary of the invention
[0004] The present invention provides a data center user request processing method, system, device and storage medium, the main purpose of which is to simplify the data center's processing flow for user requests and effectively improve the processing efficiency of user requests.
[0005] In a first aspect, an embodiment of the present invention provides a data center user request processing method, which is applied to a data center user request processing system, wherein the data center user request processing system includes a public network domain name server, an intranet domain name server and multiple data centers, each data center includes an application load balancer, a traffic gateway, an application cluster, a database load balancer and a database cluster, each data center corresponds to a unique preset number, the application load balancer of each data center is connected to the public network domain name server, and the database load balancer of each data center is connected to the intranet domain name server, and the method includes:
[0006] According to the user information included in the user request, the user information is parsed using the public network domain name server to extract the target number;
[0007] Acquire a target data center according to the target number and a preset number corresponding to each data center;
[0008] If the target data center does not fail, the target data center is used to process the user request and distribute the user request to a corresponding database cluster.
[0009] Preferably, the processing the user request by the target data center and allocating the user request to a corresponding database cluster includes:
[0010] Resolving the domain name of the target data center using the public domain name server to obtain the public IP address;
[0011] According to the public network IP address, a corresponding public network entrance is obtained, and the target load balancing of the target data center is bound by the public network entrance to distribute the user request to the target traffic gateway of the target data center;
[0012] Using the target traffic gateway of the target data center, allocating the user request to the target application cluster of the target data center;
[0013] Resolve the domain name of the target application cluster in the target data center through the intranet domain name server to obtain the intranet IP address;
[0014] According to the intranet IP address, the target database load balance of the target data center is obtained, and the target load balance of the target data center is used to distribute the user request to the target database cluster of the target data center.
[0015] Preferably, it also includes:
[0016] If the target data center fails, the failed device of the target data center and the nearest data center of the target data center are obtained;
[0017] The user request is processed by using the order in which the user request is processed as a direction reference, using the device before the faulty device in the target data center and the device after the faulty device in the nearest data center.
[0018] Preferably, if the faulty device is an application device in the target data center, processing the user request by using a device before the faulty device in the target data center and a device after the faulty device in the nearest data center includes:
[0019] Resolving the domain name of the target data center using the public domain name server to obtain the public IP address;
[0020] According to the public network IP address, a corresponding public network entrance is obtained, and the target load balancing of the target data center is bound by the public network entrance to distribute the user request to the target traffic gateway of the target data center;
[0021] Using the target traffic gateway of the target data center, allocating the user request to the target application cluster of the nearest data center;
[0022] Resolve the target application cluster domain name of the nearest data center through the intranet domain name server to obtain the intranet IP address;
[0023] According to the intranet IP address, the target database load balance of the nearest data center is obtained, and the target load balance of the nearest data center is used to distribute the user request to the target database cluster of the nearest data center.
[0024] Preferably, it also includes:
[0025] Through the reverse proxy server, the public IP address corresponding to each data center is hung at the public network entrance corresponding to each data center.
[0026] Preferably, if the target data center has not failed, the method further includes:
[0027] Configuring a dynamically resolved domain name in the public network domain name server, configuring a network protocol of the public network IP address in the dynamically resolved domain name, wherein the network protocol includes a verification port and a verification method;
[0028] Configuring the inlet Internet Protocol IP address of the dynamically resolved domain name as the public IP address;
[0029] In the public domain name server, a network connection request is sent to the public IP address based on the verification port and the verification method, and whether a failure occurs in the data center is verified based on a connection result of the network connection request.
[0030] Preferably, if the services corresponding to the user requests are the same, the target numbers included in the user information in the user requests are the same.
[0031] In a second aspect, an embodiment of the present invention provides a data center user request processing system, including a public network domain name server, an intranet domain name server and multiple data centers, each data center includes an application load balancer, a traffic gateway, an application cluster, a database load balancer and a database cluster, each data center corresponds to a unique preset number, the application load balancer of each data center is connected to the public network domain name server, and the database load balancer of each data center is connected to the intranet domain name server, wherein:
[0032] A parsing module, used to parse the user information contained in the user request using the public network domain name server to extract the target number;
[0033] An acquisition module, used for acquiring a target data center according to the target number and a preset number corresponding to each data center;
[0034] A processing module is used to process the user request using the target data center if the target data center has not failed, and distribute the user request to a corresponding database cluster.
[0035] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned data center user request processing method when executing the computer program.
[0036] In a fourth aspect, an embodiment of the present invention provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned data center user request processing method are implemented.
[0037] The present invention proposes a data center user request processing method, system, device and storage medium, which pre-stores the target number of the data center that processes the user request in the user ID, parses the user ID through a public network domain name server, and extracts the pre-stored data center number. Subsequently, the user request can be directly allocated to the corresponding data center according to the target number, without the need to calculate through a complex allocation algorithm, thereby shortening the allocation time of the user request; in addition, the entire access chain for processing the user request is guaranteed to be within the same target data center, which can avoid the interaction of user traffic across data centers and effectively ensure the minimization of network delays. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flowchart of a method for processing a data center user request provided by an embodiment of the present invention;
[0039] Figure 2 This is a schematic diagram of the structure of a data center user request processing system in an embodiment of the present invention;
[0040] Figure 3 A flowchart of a method for processing a data center user request provided by another embodiment of the present invention;
[0041] Figure 4 A schematic diagram of the structure of a data center user request processing system provided by an embodiment of the present invention;
[0042] Figure 5 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention.
[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0045] A data center user request processing method involved in an embodiment of the present invention is mainly used in a data center user request processing system. The data center user request processing system includes but is not limited to a single server or a cloud server cluster, and the embodiment of the present invention does not make specific limitations on this.
[0046] A data center user request processing method involved in an embodiment of the present invention is mainly used in data center disaster recovery scenarios. For example, in order to provide more advanced protection for the business, the enterprise requires that the business system can continue to provide services after emergencies such as human error, malicious attack, natural disasters, etc., and a data center active-active solution is used to ensure business continuity; and the data center user request processing method provided by the embodiment of the present invention can ensure that the same business is processed in the same data center, thereby avoiding interaction between different data centers, shortening the processing flow of data links in the data center, and thus improving the user request allocation efficiency of the data center; and data center active-active refers to the realization of cross-data center business active-active, each data center can provide business to the outside world, and when a data center fails, another data center can be used to continue processing user requests.
[0047] Figure 1 A flowchart of a method for processing a data center user request provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method is applied to a data center user request processing system, the data center user request processing system includes a public network domain name server, an intranet domain name server and multiple data centers, each data center includes an application load balancer, a traffic gateway, an application cluster, a database load balancer and a database cluster, each data center corresponds to a unique preset number, the application load balancer of each data center is connected to the public network domain name server, and the database load balancer of each data center is connected to the intranet domain name server. The method includes:
[0048] Figure 2 FIG. 1 is a schematic diagram of the structure of a data center user request processing system according to an embodiment of the present invention. Figure 2As shown in the figure, the data center user request processing system includes a public network domain name server, an intranet domain name server and multiple data centers. The public network domain name server is a public network DNS device, which is a very important and commonly used system in the Internet. Its main function is to convert domain names that are easy for people to remember and IP addresses that can be recognized by machines, so that it is convenient for the company's internal servers to access the external network; the intranet domain name server is mainly for the internal of an enterprise. When the company's business is relatively large, a database load balance may not meet the data storage needs of a large company. Therefore, many database load balances are usually required. In order to facilitate memory and search, each database load balance corresponds to an intranet domain name. For example, the domain name can be named according to the city where the database load balance is located, the head office or subsidiary, and the department where the database load balance is located. However, the database load balance itself intelligently recognizes the intranet IP address composed of numbers, so the intranet domain name is converted into an intranet IP address through the intranet DNS device to facilitate access to the database load balance. As can be seen from the figure, a public network domain name server and an intranet domain name server can serve multiple data centers at the same time. The data center uses the existing Internet communication lines and bandwidth resources to establish a standardized telecommunications professional-level computer room environment, providing enterprises and governments with a full range of services such as server hosting, leasing, and related value-added services. In the embodiment of the present invention, each data center includes several application load balancers, several traffic gateways, several application clusters, several database load balancers, and several database clusters. The specific number of each device can be determined according to the actual situation, and the embodiment of the present invention does not make specific restrictions on this. Load balancing, whose English name is Load Balance, means balancing and distributing the load (work task) to multiple operating units for operation, such as FTP servers, Web servers, enterprise core application servers, and other main task servers, so as to complete the work tasks in a collaborative manner; load balancing is generally built on the original network structure, which provides a transparent, cheap and effective method to expand the bandwidth of servers and network devices, enhance network data processing capabilities, increase throughput, and improve network availability and flexibility; load balancing is a technology that refers to a method of implementing load sharing through a certain algorithm, uniformly allocating requested devices, and load balancing will uniformly accept all, and then distribute these requests to all members in the load balancing according to the set algorithm. A common load balancing product is F5.
[0049] Application load balancing in the embodiment of the present invention refers to load balancing for processing application requests, load balancing according to different processing requirements and functions. Generally, for an enterprise, it may involve different businesses, such as insurance processing business, investment and financial management business, scientific and technological research and development business, etc. The load balancing corresponding to different businesses is different, so it is called business load balancing; similarly, relying solely on one database cannot meet the storage needs of existing enterprises. In the embodiment of the present invention, load balancing is used to achieve this. The database usually stores data in categories, so it is called database load balancing.
[0050] In addition, a cluster refers to a group (or several) of independent computers, which form a larger computer service system using a high-speed communication network. Each cluster node (i.e., each computer in the cluster) is an independent server running its own service. These servers can communicate with each other and work together to provide users with applications, system resources and data, and are managed in a single system mode. When a user requests a cluster system, the cluster gives the user the feeling of a single independent server, but in fact the user requests a group of cluster servers. Generally, in the process of building a data center, load balancing is the prerequisite for implementing a cluster. If an application encounters a bottleneck in performance or requires high availability, multiple servers can be used to run the same application at the same time through a cluster. Adding load balancing in front of the cluster can distribute the application to different cluster servers, so that the server load is as evenly balanced as possible.
[0051] It should also be noted that after each data center is built, it will be given a number. The number is set in advance, and the number of each data center is unique. The numbers corresponding to different data centers are different.
[0052] S110, according to the user information included in the user request, using the public network domain name server to parse the user information and extract the target number;
[0053] First, the user logs in to the client, which can be any smart phone, tablet computer, laptop computer, desktop computer, etc., but is not limited to this. If the user logs in to the terminal system in the client for the first time, a user ID containing the target number will be randomly generated when registering the user's account, and then the user information will be registered based on the user ID, ID card, name, mobile phone number and other information; the terminal system can be any electronic system of the enterprise facing the user, such as insurance processing APP, insurance processing webpage, financial management APP, financial management webpage, etc. After the user logs in to the client, click according to the user's needs to generate a corresponding user request, which includes information such as user ID, ID card, name and mobile phone number, and the user ID includes the target number. The client sends the user request to the public network domain name server. The client and the public network domain name server can be connected via Bluetooth, USB (Universal Serial Bus) or other communication connection methods, and the embodiment of the present invention is not limited here.
[0054] The public network domain name server parses the user ID in the user request according to the intelligent parsing rules and extracts the target number. Specific parsing methods include: comparative parsing method, trend parsing method, correlation parsing method, regression parsing method and structural parsing method, etc. In the embodiment of the present invention, it is predetermined which bits of data in the user ID represent the target number, and then when the public network domain name server parses the user ID, it directly extracts the corresponding bits of data in the user ID, which is simple, efficient and accurate. For example, in the embodiment of the present invention, the last two bits of the user ID represent the target number, so that when the public network domain name server parses the user ID, it can directly extract the last two bits of data in the user ID and use the extracted data as the target number.
[0055] In the embodiment of the present invention, the target number of the data center is pre-stored in the user ID, and the user ID is parsed by the public domain name server to extract the pre-stored data center number. Subsequently, the user request can be directly allocated to the corresponding data center according to the target number without the need for calculation through a complex allocation algorithm, thereby shortening the allocation time of the user request.
[0056] S120, acquiring a target data center according to the target number and a preset number corresponding to each data center;
[0057] Since each data center corresponds to a unique preset number, the target number extracted in the previous step is compared with the preset number corresponding to each data center, and the data center with the same preset number and target number is used as the target data center. In the embodiment of the present invention, the data center is extracted according to the target number, and a suitable target data center is selected from them.
[0058] S130: If the target data center does not fail, use the target data center to process the user request and distribute the user request to a corresponding database cluster.
[0059] After selecting the target data center, first determine whether there is any equipment failure in the target data center. Common data center failures include downtime failures and non-downtime failures. Downtime failures generally include CPU failures, memory failures and other failures. Non-downtime failures include fire failures, flood failures and smoke exhaust failures, etc. These failures will affect the use of the data center. When a failure occurs, there will be a corresponding fault alarm and whistle, so it is possible to determine whether a data center has a failure based on the fault alarm signal. If the target data center has not failed, the equipment in the target data center will be used to process the user request in turn, so that the data chain of the user request can be ensured to be within the data center, avoiding the involvement of different data centers in the data chain of processing a user request, and avoiding the interaction between different data centers, so as to effectively ensure that network delays are minimized.
[0060] A method for processing user requests in a data center provided by an embodiment of the present invention stores a target number of a data center for processing user requests in a user ID in advance, resolves the user ID through a public domain name server, and extracts the pre-stored data center number. Subsequently, the user request can be directly allocated to the corresponding data center according to the target number without the need for calculation through a complex allocation algorithm, thereby shortening the allocation time of the user request. In addition, the entire access chain for processing the user request is guaranteed to be within the same target data center, which can avoid the interaction of user traffic across data centers and effectively ensure the minimization of network delays.
[0061] Based on the above embodiment, preferably, the processing of the user request by the target data center and allocating the user request to a corresponding database cluster includes:
[0062] Resolving the domain name of the target data center using the public domain name server to obtain the public IP address;
[0063] According to the public network IP address, a corresponding public network entrance is obtained, and the target load balancing of the target data center is bound by the public network entrance to distribute the user request to the target traffic gateway of the target data center;
[0064] Using the target traffic gateway of the target data center, allocating the user request to the target application cluster of the target data center;
[0065] Resolve the domain name of the target application cluster in the target data center through the intranet domain name server to obtain the intranet IP address;
[0066] According to the intranet IP address, the target database load balance of the target data center is obtained, and the target load balance of the target data center is used to distribute the user request to the target database cluster of the target data center.
[0067] Specifically, in the embodiment of the present invention, the process of using the target data center to process the user request is as follows:
[0068] First, use the public domain name server to resolve the domain name of the target data center and obtain the public IP address, which can be easily identified by the machine; then find the corresponding public network entrance based on the public IP address, and use the application load balancing bound to the public network entrance. The bound application load balancing is the target application load balancing. The user request is assigned to the target application load balancing. The target application load balancing balances the user request and assigns the user request to the target traffic gateway of the target data center.
[0069] The target traffic gateway is mainly used to provide user request forwarding strategies. The traffic gateway is the opposite of the business gateway. It is a global policy gateway that is completely unrelated to specific backend business applications and services. Traffic gateways usually only focus on global application interface management strategies, such as global traffic monitoring, logging, global flow control, blacklist and whitelist control, and load balancing of access requests to business systems, which is a bit like a firewall. Kong is a typical traffic gateway.
[0070] It should be added that the business gateway is usually deployed after the traffic gateway and before the business system, and is closer to the business system than the traffic gateway. Usually the API network refers to the business gateway. Sometimes the traffic gateway and the business gateway are blurred, and one gateway is responsible for all the work, so there is no strict boundary between the two.
[0071] Then the target traffic gateway distributes the user request to the target application cluster in the target data center. The target application cluster needs to use relevant data during execution, and these data need to be extracted in the database cluster. Therefore, the intranet domain name resolution of the application cluster can be performed through the intranet domain name server to obtain the intranet IP address. Based on the intranet IP address, the target database load balance in the target data center can be found, and then the corresponding database cluster can be found based on the target database load balance.
[0072] An embodiment of the present invention provides a method for processing user requests in a data center, which preferentially allocates traffic to a database cluster load balancing entry in the same data center, and distributes it to a database instance in the same data center through database load balancing. The entire access chain remains within the same data center, avoiding interaction of user traffic across data centers, and effectively ensuring that network delays are minimized.
[0073] Based on the above embodiment, preferably, it further includes:
[0074] If the target data center fails, the failed device of the target data center and the nearest data center of the target data center are obtained;
[0075] The user request is processed by using the order in which the user request is processed as a direction reference, using the device before the faulty device in the target data center and the device after the faulty device in the nearest data center.
[0076] Figure 3 A flowchart of a method for processing a data center user request provided by another embodiment of the present invention is shown in FIG. Figure 3 As shown in the figure, the processing flow of data center 2 for user requests is implemented, and the dotted line represents the processing flow of data center 1 for user requests. If the target data center fails, the data processing link after the failure point is transferred to the nearest data center next to it. Specifically, if a data center alarm signal is received, it means that a failure has occurred in the data center. First, the faulty device of the target data center is located according to the alarm signal to see which device of the application load balancing, traffic gateway, application cluster, database load balancing, and database cluster in the target data center has failed. The failed device is called a faulty device. According to the order of user request processing, the device before the faulty device in a data center is normal. Therefore, when the target data center processes the user request, the data link before the faulty device is processed normally, and the data link after the faulty device is transferred to the nearest data center next to the target data center, and the user request is then processed in the nearest data center.
[0077] For example, in the embodiment of the present invention, the target data center is data center 2, and an application cluster in the target data center 2 fails. Therefore, the faulty device in the target data center is the application cluster. Then, when processing user requests, the public domain name server, application load balancing and traffic gateway before the application cluster process the user request according to the same processing flow; and at the traffic gateway step, the traffic gateway of data center 2 distributes the user request to the target application cluster in data center 1. Data center 1 is the data center closest to data center 2. Through the target application cluster in data center 1, the intranet domain name server performs domain name resolution on the target application cluster in data center 1 to obtain the intranet IP address, and then finds the corresponding target database load balancing in data center 1 according to the intranet IP address. The target database load balancing then selects the target database cluster to process the user request.
[0078] An embodiment of the present invention provides a method for processing user requests in a data center. When a data center fails, the user request continues to be processed by the nearest data center. There is no need to turn back in the entire data processing link. There is only one cross-data center access, which can effectively ensure that the network delay in the failure scenario is minimized as much as possible, and users are as available as possible and still feel that it is fast. This can help enterprises improve service quality and increase customer satisfaction.
[0079] Based on the above embodiment, preferably, it further includes:
[0080] Through the reverse proxy server, the public IP address corresponding to each data center is hung at the public network entrance corresponding to each data center.
[0081] A reverse proxy server is a type of proxy server that is implemented in front of a web server and directs client requests to a specific backend server. Typically, a reverse proxy helps improve the security and performance of a web server and prevent overloads. Use a reverse proxy for caching, adding an additional layer of security with SSL encryption, and to protect against hackers and malicious entities.
[0082] Based on the above embodiment, preferably, if the target data center has not failed, the method further includes:
[0083] Configuring a dynamically resolved domain name in the public network domain name server, configuring a network protocol of the public network IP address in the dynamically resolved domain name, wherein the network protocol includes a verification port and a verification method;
[0084] Configuring the inlet Internet Protocol IP address of the dynamically resolved domain name as the public IP address;
[0085] In the public domain name server, a network connection request is sent to the public IP address based on the verification port and the verification method, and whether a failure occurs in the data center is verified based on a connection result of the network connection request.
[0086] In the embodiment of the present invention, the following method is used to determine whether a fault occurs in the target data center. The specific method is to configure a dynamically resolved domain name in the public domain name server, and configure a network protocol of a public IP address in the dynamically resolved domain name, the network protocol includes a verification port and a verification method, and then configure the entry network interconnection protocol IP address of the dynamically resolved domain name to the public IP address. In the public domain name server, a network connection request is sent to the public IP address based on the verification port and verification method included in the network protocol, and based on the result of the network connection request, it is verified whether the data center fails.
[0087] Based on the above embodiment, preferably, if the services corresponding to the user requests are the same, the target numbers included in the user information in the user requests are the same.
[0088] In the embodiment of the present invention, if the services corresponding to the user requests are the same, the target numbers included in the two user requests are also the same. This ensures that the user requests for the same service are processed in the same data center. If there is interaction between the two user requests, the interaction path can be reduced, thereby further reducing network delay.
[0089] Figure 4 A schematic diagram of a data center user request processing system provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the system includes a public network domain name server, an intranet domain name server and multiple data centers, each data center includes an application load balancer, a traffic gateway, an application cluster, a database load balancer and a database cluster, each data center corresponds to a unique preset number, the application load balancer of each data center is connected to the public network domain name server, and the database load balancer of each data center is connected to the intranet domain name server, and also includes a parsing module 410, an acquisition module 420, and a processing module 430, wherein:
[0090] The parsing module 410 is used to parse the user information contained in the user request using the public network domain name server to extract the target number;
[0091] The acquisition module 420 is used to acquire the target data center according to the target number and the preset number corresponding to each data center;
[0092] The processing module 430 is used to process the user request using the target data center if the target data center has not failed, and distribute the user request to a corresponding database cluster.
[0093] This embodiment is a system embodiment corresponding to the above method embodiment. The specific implementation process is the same as that of the above method embodiment. For details, please refer to the above method embodiment. This system embodiment will not be repeated here.
[0094] On the basis of the above embodiment, preferably, the parsing module includes a parsing unit, an entry unit, a gateway unit, an intranet unit and a distribution unit, wherein:
[0095] The resolution unit is used to resolve the domain name of the target data center using the public network domain name server to obtain the public network IP address;
[0096] The entry unit is used to obtain a corresponding public network entry according to the public network IP address, and use the public network entry to bind the target application load balancing of the target data center to distribute the user request to the target traffic gateway of the target data center;
[0097] The gateway unit is used to distribute the user request to the target application cluster of the target data center by using the target traffic gateway of the target data center;
[0098] The intranet unit is used to resolve the domain name of the target application cluster of the target data center through the intranet domain name server to obtain the intranet IP address;
[0099] The allocation unit is used to obtain the target database load balance of the target data center according to the intranet IP address, and use the target load balance of the target data center to allocate the user request to the target database cluster of the target data center.
[0100] On the basis of the above embodiment, preferably, it further includes a fault location module and a fault processing module, wherein:
[0101] The fault location module is used to obtain the faulty device of the target data center and the nearest data center of the target data center if a fault occurs in the target data center;
[0102] The fault processing module is used to process the user request based on the order in which the user request is processed, using the device before the faulty device in the target data center and the device after the faulty device in the nearest data center.
[0103] On the basis of the above embodiment, preferably, the fault processing module includes a public network unit, a balancing unit, a recent unit, a modification unit, and a reprocessing unit, wherein:
[0104] The public network unit is used to resolve the domain name of the target data center using the public network domain name server to obtain the public network IP address;
[0105] The balancing unit is used to obtain the corresponding public network entrance according to the public network IP address, and use the public network entrance to bind the target load balancing of the target data center to distribute the user request to the target traffic gateway of the target data center;
[0106] The nearest unit is used to distribute the user request to the target application cluster of the nearest data center by using the target traffic gateway of the target data center;
[0107] The changing unit is used to resolve the target application cluster domain name of the nearest data center through the intranet domain name server to obtain the intranet IP address;
[0108] The reprocessing unit is used to obtain the target database load balance of the nearest data center according to the intranet IP address, and use the target load balance of the nearest data center to distribute the user request to the target database cluster of the nearest data center.
[0109] Based on the above embodiment, preferably, a reverse proxy module is further included, wherein:
[0110] The reverse proxy module is used to hang the public network IP address corresponding to each data center at the public network entrance corresponding to each data center through the reverse proxy server.
[0111] Based on the above embodiment, preferably, it further includes a dynamic module, an interconnection module and a verification module, wherein:
[0112] The dynamic module is used to configure a dynamically resolved domain name in the public network domain name server, and configure a network protocol of the public network IP address in the dynamically resolved domain name, wherein the network protocol includes a verification port and a verification method;
[0113] The interconnection module is used to configure the inlet network interconnection protocol IP address of the dynamically resolved domain name as the public network IP address;
[0114] The verification module is used to send a network connection request to the public IP address in the public domain name server based on the verification port and the verification method, and verify whether the data center fails based on the connection result of the network connection request.
[0115] Based on the above embodiment, preferably, if the services corresponding to the user requests are the same, the target numbers included in the user information in the user requests are the same.
[0116] Each module in the above data center user request processing system can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0117] Figure 5 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention, the computer device may be a server, and its internal structure diagram may be as follows Figure 5 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a computer storage medium and an internal memory. The computer storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the computer storage medium. The database of the computer device is used to store data generated or obtained during the execution of a data center user request processing method, such as user information and target number. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data center user request processing method is implemented.
[0118] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the data center user request processing method in the above embodiment when executing the computer program. Alternatively, the processor implements the functions of each module / unit in the data center user request processing system in this embodiment when executing the computer program.
[0119] In one embodiment, a computer storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data center user request processing method in the above embodiment are implemented. Alternatively, when the computer program is executed by a processor, the functions of each module / unit in the embodiment of the data center user request processing system are implemented.
[0120] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0121] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0122] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A data center user request processing method, applied to a data center user request processing system, wherein the data center user request processing system includes a public network domain name server, an intranet domain name server and multiple data centers, each data center includes an application load balancer, a traffic gateway, an application cluster, a database load balancer and a database cluster, each data center corresponds to a unique preset number, the application load balancer of each data center is connected to the public network domain name server, and the database load balancer of each data center is connected to the intranet domain name server. It is characterized in that The method comprises: According to the user information included in the user request, the user information is parsed using the public network domain name server to extract the target number; Acquire a target data center according to the target number and a preset number corresponding to each data center; If the target data center does not fail, the target data center is used to process the user request and allocate the user request to a corresponding database cluster; The using the target data center to process the user request and assigning the user request to a corresponding database cluster includes: Resolve the domain name of the target data center using the public domain name server to obtain a public IP address; According to the public IP address, a corresponding public network entrance is obtained, and the target application load balancing of the target data center is bound by the public network entrance to distribute the user request to the target traffic gateway of the target data center; Using the target traffic gateway of the target data center, allocating the user request to the target application cluster of the target data center; Resolve the domain name of the target application cluster in the target data center through the intranet domain name server to obtain the intranet IP address; According to the intranet IP address, the target database load balance of the target data center is obtained, and the target load balance of the target data center is used to distribute the user request to the target database cluster of the target data center.
2. The data center user request processing method according to claim 1, It is characterized in that Also includes: If the target data center fails, the failed device of the target data center and the nearest data center of the target data center are obtained; The user request is processed by using the order in which the user request is processed as a direction reference, using the device before the faulty device in the target data center and the device after the faulty device in the nearest data center.
3. The data center user request processing method according to claim 2, It is characterized in that If the faulty device is an application device in the target data center, processing the user request by using a device before the faulty device in the target data center and a device after the faulty device in the nearest data center includes: Resolving the domain name of the target data center using the public domain name server to obtain the public IP address; According to the public network IP address, a corresponding public network entrance is obtained, and the target load balancing of the target data center is bound by the public network entrance to distribute the user request to the target traffic gateway of the target data center; Using the target traffic gateway of the target data center, allocating the user request to the target application cluster of the nearest data center; Resolve the target application cluster domain name of the nearest data center through the intranet domain name server to obtain the intranet IP address; According to the intranet IP address, the target database load balance of the nearest data center is obtained, and the target load balance of the nearest data center is used to distribute the user request to the target database cluster of the nearest data center.
4. The method for processing data center user requests according to any one of claims 1 to 3, It is characterized in that Also includes: Through the reverse proxy server, the public IP address corresponding to each data center is hung at the public network entrance corresponding to each data center.
5. The method for processing data center user requests according to any one of claims 1 to 3, It is characterized in that If the target data center has not failed, the method further includes: Configuring a dynamically resolved domain name in the public network domain name server, configuring a network protocol of the public network IP address in the dynamically resolved domain name, wherein the network protocol includes a verification port and a verification method; Configuring the inlet Internet Protocol IP address of the dynamically resolved domain name as the public IP address; In the public domain name server, a network connection request is sent to the public IP address based on the verification port and the verification method, and whether a failure occurs in the data center is verified based on a connection result of the network connection request.
6. The method for processing data center user requests according to any one of claims 1 to 3, It is characterized in that If the services corresponding to the user requests are the same, then the target numbers included in the user information in the user requests are the same.
7. A data center user request processing system, It is characterized in that It includes a public domain name server, an intranet domain name server and multiple data centers, each data center includes an application load balancer, a traffic gateway, an application cluster, a database load balancer and a database cluster, each data center corresponds to a unique preset number, the application load balancer of each data center is connected to the public domain name server, and the database load balancer of each data center is connected to the intranet domain name server, and also includes a parsing module, an acquisition module, and a processing module, wherein: A parsing module, used to parse the user information contained in the user request using the public network domain name server to extract the target number; An acquisition module, used for acquiring a target data center according to the target number and a preset number corresponding to each data center; A processing module, configured to process the user request using the target data center if no failure occurs in the target data center, and allocate the user request to a corresponding database cluster; The using the target data center to process the user request and assigning the user request to a corresponding database cluster includes: Resolve the domain name of the target data center using the public domain name server to obtain a public IP address; According to the public IP address, a corresponding public network entrance is obtained, and the target application load balancing of the target data center is bound by the public network entrance to distribute the user request to the target traffic gateway of the target data center; Using the target traffic gateway of the target data center, allocating the user request to the target application cluster of the target data center; Resolve the domain name of the target application cluster in the target data center through the intranet domain name server to obtain the intranet IP address; According to the intranet IP address, the target database load balance of the target data center is obtained, and the target load balance of the target data center is used to distribute the user request to the target database cluster of the target data center.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the data center user request processing method as described in any one of claims 1 to 6 are implemented.
9. A computer storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the data center user request processing method as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Streaming media distribution and transmission network system
CN102404378A
Data center system and device and method for providing service
CN103428229A
Global load balance method and system based on active-active architecture and scheduling server
CN107465721A
Agenting method of domain name resolution system, device, storage medium and processor
CN108848049A
Business processing method, device and equipment and computer readable storage medium
CN111314221A
