CN112291339B - Global load balancing method and system based on cloud analysis - Google Patents
Global load balancing method and system based on cloud analysis Download PDFInfo
- Publication number
- CN112291339B CN112291339B CN202011169420.4A CN202011169420A CN112291339B CN 112291339 B CN112291339 B CN 112291339B CN 202011169420 A CN202011169420 A CN 202011169420A CN 112291339 B CN112291339 B CN 112291339B
- Authority
- CN
- China
- Prior art keywords
- domain name
- name server
- address
- server
- local
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000002159 abnormal effect Effects 0.000 claims description 20
- 102000016157 Pointed domains Human genes 0.000 claims description 11
- 108050004610 Pointed domains Proteins 0.000 claims description 11
- 238000013507 mapping Methods 0.000 claims description 10
- 238000005111 flow chemistry technique Methods 0.000 claims description 3
- 230000008901 benefit Effects 0.000 description 6
- 238000001514 detection method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000036541 health Effects 0.000 description 3
- 230000006872 improvement Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1023—Server selection for load balancing based on a hash applied to IP addresses or costs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a global load balancing method and system based on cloud analysis, relates to the technical field of internet, and mainly aims to solve the problem that the existing global load balancing efficiency is poor. The method comprises the following steps: when a local domain name server does not find an application service domain name requested to be queried by a terminal, the local domain name server determines an authoritative domain name server corresponding to the application service domain name and sends a first query request to the authoritative domain name server; after the authoritative domain name server determines that the application service domain name is matched with a cloud resolution domain name server, feeding back domain name pointing information matched with the application service domain name to the local domain name server; the local domain name server sends a second query request carrying the domain name pointing information to the cloud resolution domain name server; the cloud resolution domain name server determines a directed domain name based on the domain name directing information.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a global load balancing method and system based on cloud analysis.
Background
With the continuous improvement of network traffic in the internet field, more and more network access volumes and data flows quickly affect the effect of processing network tasks by server equipment. Therefore, a Load balancing technology is provided to meet the requirements of network data high-efficiency processing, network flexibility and availability, and particularly Global Load Server Balance (GLSB) can provide completely transparent services for users, so that the users do not need to care about the physical distribution of the Server clusters, single-point failure of the Server clusters can be effectively avoided, and the response speed of the Server clusters is improved in a near-access manner.
Currently, for network access service, a plurality of IP addresses are configured for a user based on an application server, and when the user requests network access, a local domain name server requests and determines each network server in sequence according to a domain name, and returns an IP address matched with the domain name. However, since the local domain name server cannot dynamically allocate load based on the domain name, when a large amount of network access services are generated and increased, the availability of the network service end is affected, and the network service access effect is poor, a global load balancing method based on cloud resolution is urgently needed to solve the above problems.
Disclosure of Invention
In view of the above, the present invention provides a global load balancing method and system based on cloud analysis, and mainly aims to solve the problem that the availability of a network service end is affected and the network service access effect is poor when a large amount of network access services are generated and proliferated in the prior art.
According to an aspect of the present invention, a global load balancing method based on cloud resolution is provided, including:
when a local domain name server does not find an application service domain name requested to be inquired by a terminal, the local domain name server determines an authoritative domain name server corresponding to the application service domain name and sends a first inquiry request to the authoritative domain name server;
after the authoritative domain name server determines that the application service domain name is matched with a cloud resolution domain name server, feeding back domain name pointing information matched with the application service domain name to the local domain name server;
the local domain name server sends a second query request carrying the domain name pointing information to the cloud resolution domain name server;
and the cloud resolution domain name server determines a directed domain name based on the domain name directing information, and feeds back an IP address matched with the directed domain name to the local domain name server so that the local domain name server sends the IP address to the terminal for accessing the application service.
According to another aspect of the present invention, there is provided a global load balancing system based on cloud resolution, including: a local domain name server, a root server, a top level domain name server, an authoritative domain name server, and a cloud resolution domain name server, wherein the local domain name server is respectively connected with the root server, the top level domain name server, the authoritative domain name server, and the cloud resolution domain name server,
the local domain name server is used for determining an authoritative domain name server corresponding to the application service domain name when the application service domain name requested to be inquired by the terminal is not searched, and sending a first inquiry request to the authoritative domain name server;
the authoritative domain name server is used for feeding back domain name pointing information matched with the application service domain name to the local domain name server after determining that the application service domain name is matched with the cloud resolution domain name server;
the local domain name server is further configured to send a second query request carrying the domain name pointing information to the cloud resolution domain name server;
the cloud resolution domain name server is used for determining a directed domain name based on the domain name directing information and feeding back an IP address matched with the directed domain name to the local domain name server so that the local domain name server sends the IP address to the terminal for accessing the application service.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
the invention provides a global load balancing method and system based on cloud analysis. Compared with the prior art, the method and the device have the advantages that when the local domain name server does not find the application service domain name requested to be inquired by the terminal, the local domain name server determines the authoritative domain name server corresponding to the application service domain name and sends the first inquiry request to the authoritative domain name server; after the authoritative domain name server determines that the application service domain name is matched with a cloud resolution domain name server, feeding back domain name pointing information matched with the application service domain name to the local domain name server; the local domain name server sends a second query request carrying the domain name pointing information to the cloud resolution domain name server; the cloud resolution domain name server determines a directed domain name based on the domain name directing information, feeds back an IP address matched with the directed domain name to the local domain name server, so that the local domain name server sends the IP address to the terminal for application service access, the purpose of completing global charge balancing by completing IP address query based on the cloud resolution domain name server is achieved, the IP address of an application service domain name is rapidly and effectively queried for a user, the domain name directing information based on pre-allocated balanced load is accurately matched with the IP address under a high concurrency state, namely, the redistribution of load balancing can be completed only by reconfiguring the domain name directing information, the load balancing requirement of dynamic access of the IP address is met, and the efficiency of global load balancing is greatly improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a flowchart of a global load balancing method based on cloud resolution according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another cloud-resolution-based global load balancing method according to an embodiment of the present invention;
fig. 3 shows a global load balancing system architecture diagram based on cloud resolution according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram illustrating an IP address pool in a cloud domain name resolution server according to an embodiment of the present invention;
fig. 5 illustrates a global load balancing system based on cloud resolution according to an embodiment of the present invention;
fig. 6 shows another global load balancing system based on cloud resolution according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
An embodiment of the present invention provides a global load balancing method based on cloud analysis, and as shown in fig. 1, the method includes:
101. when the local domain name server does not find the application service domain name requested to be inquired by the terminal, the local domain name server determines an authoritative domain name server corresponding to the application service domain name and sends a first inquiry request to the authoritative domain name server.
When the local domain name server receives an application service domain name requested to be inquired by a terminal, the local domain name server firstly searches whether an IP address corresponding to the stored application service domain name exists in the local domain name server, if not, the local domain name server sequentially requests the root server and the top level domain name server to determine that the application service domain name corresponds to an authoritative domain name server which can be inquired, and the local domain name server sends a first inquiry request to the determined authoritative domain name server which can be inquired.
102. And after the authoritative domain name server determines that the application service domain name is matched with a cloud resolution domain name server, feeding back domain name pointing information matched with the application service domain name to the local domain name server.
In the embodiment of the invention, after receiving a first query request, an authoritative domain name server queries domain name pointing information which is stored in a server and matched with an application service domain name, wherein the domain name pointing information is characterized in that a CNAME type points to the pointing direction of a domain name content, and domain name pointing information corresponding to different application service domain names is stored in the authoritative domain name server in advance, for example, the application service domain name is www.example.com, the authoritative domain name server stores pre-allocated CNAME type pointing information which points to domain names gslb-12345678.padns00.com, wherein the domain names gslb-12345678.padns00.com are stored in a cloud resolution domain name server, and only the domain name pointing information is stored in the authoritative domain name server. And after the domain name pointing information is matched, the authoritative domain name server feeds the domain name pointing information back to the local domain name server. In addition, in the embodiment of the invention, the application service domain name is configured in the cloud resolution domain name server in advance, so that the authoritative domain name server can determine the searchable cloud resolution domain name server when resolving the application service domain name, thereby determining the matched domain name pointing information and feeding back, thereby completing the redistribution of load balance by only reconfiguring the domain name pointing information in order to meet the requirement of global load balance in a high concurrency state, and meeting the load balance requirement of dynamic access of the IP address.
103. And the local domain name server sends a second query request carrying the domain name pointing information to the cloud resolution domain name server.
In the embodiment of the invention, when the local domain name server receives the domain name pointing information fed back by the authoritative domain name server, the application service domain name is configured in the cloud resolution domain name server, so that the local domain name server sends a second query request to the cloud resolution domain name server, and the cloud resolution domain name server searches the matched pointing domain name based on the carried domain name pointing information.
104. And the cloud resolution domain name server determines a directed domain name based on the domain name directing information, and feeds back an IP address matched with the directed domain name to the local domain name server.
In the embodiment of the invention, the cloud resolution domain name server pre-stores the IP address matched with the domain name pointing information and the pointing domain name, so that when the cloud resolution domain name server receives a second query request sent by a local domain name server, the cloud resolution domain name server determines the pointing domain name corresponding to the domain name pointing information, and feeds back the IP address matched with the pointing domain name to the local domain name server, so that the local domain name server sends the IP address to the terminal for accessing the application service.
It should be noted that the cloud resolution domain name server stores IP addresses matched with different directed domain names so as to feed back the IP addresses to the local domain name server, and the local domain name server stores the IP addresses in the local domain name server after receiving the IP addresses so as to directly feed back the IP addresses to the terminal when receiving the application service domain name.
Compared with the prior art, the embodiment of the invention provides a global load balancing method based on cloud resolution, and the method comprises the steps that when a local domain name server does not find an application service domain name requested to be inquired by a terminal, the local domain name server determines an authoritative domain name server corresponding to the application service domain name and sends a first inquiry request to the authoritative domain name server; after the authoritative domain name server determines that the application service domain name is matched with a cloud resolution domain name server, feeding back domain name pointing information matched with the application service domain name to the local domain name server; the local domain name server sends a second query request carrying the domain name pointing information to the cloud resolution domain name server; the cloud resolution domain name server determines a directed domain name based on the domain name directing information, feeds back an IP address matched with the directed domain name to the local domain name server, so that the local domain name server sends the IP address to the terminal for application service access, the purpose of completing global charge balancing by completing IP address query based on the cloud resolution domain name server is achieved, the IP address of an application service domain name is rapidly and effectively queried for a user, the domain name directing information based on pre-distributed balanced load is accurately matched with the IP address under a high concurrency state, the load balancing requirement of IP address dynamic access is met, and therefore the global load balancing efficiency is greatly improved.
An embodiment of the present invention provides another global load balancing method based on cloud parsing, and as shown in fig. 2, the method includes:
201. the cloud resolution domain name server respectively configures matched CNAME type domain name pointing information and corresponding pointing domain name for each application service domain name, and sends the CNAME type domain name pointing information to the authoritative domain name server for storage.
For the embodiment of the present invention, in order to implement global load balancing based on a cloud resolution domain name server, domain name pointing information of a CNAME type is configured for each application service domain name in the cloud resolution domain name server, where the domain name pointing information is characterized by a pointing direction of the CNAME type to a domain name content, for example, the application service domain name is configured to be www.example.com, and when the cloud resolution domain name server adds the application service domain name, a pointing direction of the CNAME type is automatically configured, that is, one CNAME points to one pointing domain name, such as www.example.com → gslb-12345678.padns00.com, and it is described that www.example.com CNAME points to gslb-12345678.padns00.com, an embodiment of the present invention is not particularly limited. In addition, in order to simplify the system load pressure and improve the global load balancing efficiency, domain name pointing information configured by different application service domain names is sent to an authoritative domain name server for storage, so that when an inquiry request of an application service area is received in the authoritative domain name server, the domain name pointing information is matched, and a searchable cloud resolution domain name server and domain name pointing information are fed back to a local domain name server, thereby realizing the balance of the load pressure.
202. And the cloud resolution domain name server stores the IP address matched with the pointing domain name.
For the embodiment of the invention, in order to improve the efficiency of global load balancing, realize the global load balancing based on the cloud resolution domain name server and meet the high concurrency requirement of the global load balancing, the cloud resolution domain name server prestores the IP addresses matched with the pointing domain names after configuring the domain name pointing information corresponding to the domain names without application service, so that the distribution is performed based on the prestored IP addresses during the query, and the efficiency of the high concurrency load balancing is improved. The IP addresses are configured based on flow weight values, and the flow weight values are used for limiting flow requirements, historical flow, access request quantity and the like, so that matched IP addresses are distributed for executing domain names, and the load effect of network access is improved.
Further, for further definition and explanation, the embodiment of the present invention further includes: allocating IP addresses matched with service operation contents and flow processing capacity according to the added flow demand characteristics, historical flow values and access request quantity in the pointed domain; and constructing an IP address pool for the allocated IP addresses according to the access area, and generating a standby IP address pool, wherein all the IP addresses corresponding to different pointing domain names are stored in the standby IP address pool.
The different directed domain names are configured for realizing specific service operation contents and are matched with the application service domain name, so that in order to improve the load balancing capacity of the cloud-based resolution domain name server, when access is performed based on the matched IP address, the used flow is matched with the service operation contents, and the IP address matched with the service operation contents and the flow processing capacity is distributed according to the added flow demand characteristics, the historical flow value and the access request number in the directed domain name. Specifically, when each directed domain name is added, the traffic demand characteristics (such as large traffic demand and small traffic demand), the historical traffic value (the historical traffic value of the content in the preset time period), and the access request number (the total access number in the preset time period) are counted, and when each IP address is generated, the service operation content and the traffic processing capability which are matched with each other are carried, and if the traffic is high in downloading capability, the IP address and the directed domain name are configured in a matching manner, so that the flexibility and the high efficiency of the IP address are realized, and the embodiment of the present invention is not particularly limited.
In addition, in order to make the search of the IP address efficient and flexible, when the IP address is stored, an IP address pool is constructed for the allocated IP address according to an access area, and a standby IP address pool is generated, where all IP addresses corresponding to different pointing domain names are stored in the standby IP address pool, and the access area may be determined according to a national unit, a provincial unit, a city unit, or a fixedly divided area, for example, an IP address pool is constructed in the neighborhoods of liaison province, an IP address pool is constructed in the beijing city district, and the IP address pools in all the neighborhoods of liaison province and the beijing city are stored in the corresponding standby IP address pool.
203. When the local domain name server does not find the application service domain name requested to be inquired by the terminal, the local domain name server determines an authoritative domain name server corresponding to the application service domain name and sends a first inquiry request to the authoritative domain name server.
For further limitation and description, the determining, by the local dns server, an authoritative dns server corresponding to the dns name includes: and the local domain name server sends a third query request of the application service domain name to a root server, sends a fourth query request of the application service domain name to a top-level domain name server according to the feedback of the root server, and determines an authoritative domain name server corresponding to the application service domain name and fed back by the top-level domain name server.
In the embodiment of the present invention, as shown in the architecture diagram of the global load balancing system based on cloud resolution shown in fig. 3, a terminal User first sends a domain name query request to a local domain name Server Recursive DNS with a forwarding function to query an application service domain name, as shown in www.example.com, if no cache exists in the local domain name Server Recursive DNS, the local domain name Server Recursive DNS sends a query request of the domain name to a Root domain name Server DNS Root Server, and the Root domain name Server DNS Root Server feeds back a top-level domain name Server, a com DNS Server, and the local domain name Server Recursive DNS returns a domain name authority Server name Server, a com DNS Server, corresponding to the application service domain name according to a returned top-level domain name Server.
It should be noted that, if the domain name of the resolution application service is registered in the GLSB DNS Server of the cloud resolution domain name Server, when the authoritative domain name Server is queried, the domain name pointing information of the CNAME type stored in the domain name pointing to the domain name can be found, and therefore, the local domain name Server sends a query request of the domain name to the authoritative domain name Server, so as to obtain the CNAME pointing.
204. And after the authoritative domain name server determines that the application service domain name is matched with a cloud resolution domain name server, feeding back domain name pointing information matched with the application service domain name to the local domain name server.
205. And the local domain name server sends a second query request carrying the domain name pointing information to the cloud resolution domain name server.
206. And the cloud resolution domain name server determines a matched directed domain name according to the CNAME type domain name directing information and feeds back the domain name to the local domain name server.
For further limitation and explanation, in the embodiment of the present invention, the cloud resolution domain name server receives a second query request sent by the local domain name server, determines a pre-configured directed domain name according to domain name directing information carried in the second query request, and feeds back the pre-configured directed domain name to the local domain name server, so that the local domain name server determines whether to send a query requesting an IP address to the cloud resolution domain name server, and whether to perform security check. Specifically, in order to achieve that the cloud resolution domain name server does not directly feed back the IP address for the domain name content, the matched pointing domain name is fed back to the local domain name server, and the query request of the IP address is sent to the cloud resolution domain name server again through the local domain name server, so that the purpose of reducing the load balance is achieved.
207. And the local domain name server sends an IP address query request to the cloud resolution domain name server based on the pointing domain name.
For example, when the local domain name server receives the domain name gslb-12345678.padns00.com, an IP address query request is sent to the cloud resolution domain name server, so as to achieve the purpose of completing load balancing in the cloud resolution domain name server.
208. And the cloud resolution domain name server determines an IP address according to the pointing domain name and feeds back the IP address to the local domain name server.
Specifically, after receiving an IP address query request sent by a local domain name server, the cloud resolution domain name server queries an IP address matched with the pointing domain name from different IP address pools, so that the pointing domain name access of the IP addresses based on different traffic processing capabilities is realized, and the system pressure caused by uneven IP address allocation to the domain name in a high concurrency state is reduced.
For the embodiment of the present invention, in order to ensure that the IP address matched in the IP address pool is safe and correct, so that the user can quickly and accurately access the content of the application service, step 208 specifically includes: sequentially inquiring at least one IP address matched with the pointed domain name from at least one pre-constructed IP address pool, and detecting the network service state of the IP address; and if the network service state of the IP address is abnormal, deleting the IP address with the abnormal network service state from at least one matched IP address.
Specifically, as shown in fig. 4, after receiving an IP address query request, the cloud domain name resolution server sequentially queries IP addresses from at least one IP address pool according to the pointed domain name, and at the same time, detects a network service state of the IP address pool of the found IP addresses. Specifically, the network service state is based on that the corresponding application service can be accessed by the IP address, the detection of the network service state of the IP address is that when the health detection module in the cloud resolution domain name server is used for matching the IP address in the IP address pool, the simulation access is carried out on the IP address, if the access is successful, the detection is normal, and the matched IP address can be fed back to the local domain name server; if the access is unsuccessful, detecting the abnormality, namely the network service state of the matched IP address is abnormal, and deleting the abnormal IP address from the matched IP addresses. In addition, when a plurality of matched IP addresses are all fed back to the local domain name server, the local domain name server can sort according to the traffic processing capacity, and preferentially sends the IP addresses with strong traffic processing capacity to the terminal so as to meet the requirement of quick access to the application service.
For further refinement and explanation of the embodiment of the present invention, to clarify the processing step of the abnormal IP address, the deleting the IP address whose network service status is abnormal from the at least one matched IP address includes: and if the IP address matched with the directed domain name does not exist after the IP address acquired from the IP address pool with the abnormal network service state is deleted, searching the IP address matched with the directed domain name based on a standby IP address pool.
Specifically, after receiving the IP address query request, the cloud domain name resolution server performs health check based on the health detection module, and finds out the IP address matching the domain name from a pre-established IP address pool. Wherein, regional users in China access the IP address pool PoolA, regional users outside China access the IP address pool PoolB, and the IP address pool PoolC is used as a standby address pool, etc. When one IP address in PoolA fails, the HeathCark module can accurately detect abnormal conditions, and meanwhile, the HeathCark module can interact with the cloud domain name resolution server to temporarily delete the abnormal IP address from an IP address list returned to the user; if the HeathCark module detects that the address of the application service is recovered to be normal, the cloud resolution domain name server recovers the IP address into an IP list and returns the IP address to the user. In addition, if the PoolA and PoolB have a failure of the entire address pool, for example, all IP addresses cannot be accessed, the cloud domain name resolution server switches the user access to the standby address pool PoolC according to the pre-configured standby address pool and the effective address pool switching policy.
Further, in the embodiment of the present invention, in order to ensure the overall validity of the IP address pool, the overall network service state of the IP address pool is detected, which specifically includes; and if the detected integral network service state of the IP address pool is abnormal, determining a standby IP address pool to be switched based on the number of the effective IP addresses and switching so as to directly search the IP address matched with the directed domain name from the standby IP address pool.
In the embodiment of the invention, the IP address pool cannot be queried for the representation of the whole network service state of the IP address pool, so that other IP address pools need to be switched for querying. And whether the IP address pool can be inquired or not is detected in real time, if the inquiry cannot be carried out, the whole network service state of the IP address pool is abnormal, and the IP address pool is switched to a standby IP address pool. Specifically, the number of valid IP addresses is the number of IP addresses with a normal network service status of the IP addresses, and the standby IP address pool with the maximum number of valid IP addresses is selected as the IP address pool to be switched to perform the switching. The specific switching is a process of indicating the cloud domain name resolution server to switch from the original IP address pool to the standby IP address pool for searching, and the embodiment of the present invention is not particularly limited.
209. And the local domain name server sends the IP address to the terminal, establishes a mapping relation based on the application service domain name and the IP address, and stores the mapping relation into a cache in the local domain name server.
For the embodiment of the invention, in order to improve the query efficiency of the IP address, the mapping relation between the application service domain name and the IP address which the terminal requests to access is established in the local domain name server and stored, so that when the query request of the application service domain name is received again, the matched IP address is extracted based on the mapping relation, and the processing efficiency of global load balancing is improved.
Compared with the prior art, the embodiment of the invention provides another global load balancing method based on cloud resolution, and the embodiment of the invention determines an authoritative domain name server corresponding to an application service domain name through a local domain name server when the local domain name server does not find the application service domain name requested to be queried by a terminal, and sends a first query request to the authoritative domain name server; after the authoritative domain name server determines that the application service domain name is matched with a cloud resolution domain name server, feeding back domain name pointing information matched with the application service domain name to the local domain name server; the local domain name server sends a second query request carrying the domain name pointing information to the cloud resolution domain name server; the cloud resolution domain name server determines a directed domain name based on the domain name directing information, feeds back an IP address matched with the directed domain name to the local domain name server, so that the local domain name server sends the IP address to the terminal for application service access, the purpose of completing global charge balancing by completing IP address query based on the cloud resolution domain name server is achieved, the IP address of an application service domain name is rapidly and effectively queried for a user, the domain name directing information based on pre-distributed balanced load is accurately matched with the IP address under a high concurrency state, the load balancing requirement of IP address dynamic access is met, and therefore the global load balancing efficiency is greatly improved.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention provides a global load balancing system based on cloud analysis, and as shown in fig. 5, the system includes:
a local domain name server 31, an authoritative domain name server 32, and a cloud resolution domain name server 33, wherein the local domain name server 31 is respectively connected with the authoritative domain name server 32 and the cloud resolution domain name server 33,
the local domain name server 31 is configured to, when an application service domain name requested to be queried by a terminal is not searched, determine an authoritative domain name server 32 corresponding to the application service domain name by the local domain name server, and send a first query request to the authoritative domain name server 32;
the authoritative domain name server 32 is configured to, after determining that the application service domain name is matched with the cloud resolution domain name server 33, feed back domain name pointing information matched with the application service domain name to the local domain name server 31;
the local domain name server 31 is further configured to send a second query request carrying the domain name pointing information to the cloud resolution domain name server 33;
the cloud resolution domain name server 33 is configured to determine a directed domain name based on the domain name directing information, and feed back an IP address matched with the directed domain name to the local domain name server 31, so that the local domain name server 31 sends the IP address to the terminal.
Further, as shown in FIG. 6,
the cloud resolution domain name server 33 is further configured to configure, for each application service domain name, matched CNAME-type domain name pointing information and a corresponding pointing domain name, and send the CNAME-type domain name pointing information to the authoritative domain name server 32 for storage;
the cloud resolution domain name server 33 is further configured to store the IP address matched with the pointing domain name.
Further, the air conditioner is characterized in that,
the cloud resolution domain name server 33 is specifically further configured to determine a matched directed domain name according to the CNAME-type domain name directing information, and feed back the determined directed domain name to the local domain name server 31;
the local domain name server 31 is further specifically configured to send an IP address query request to the cloud resolution domain name server 33 based on the pointed-to domain name;
the cloud domain name resolution server 33 is specifically further configured to determine an IP address according to the pointed domain name, and feed back the IP address to the local domain name server 31.
Further, the cloud resolution domain name server 33 is specifically configured to sequentially query at least one IP address matched with the pointed domain name from at least one pre-constructed IP address pool, and detect a network service state of the IP address; and if the network service state of the IP address is abnormal, deleting the IP address with the abnormal network service state from at least one matched IP address.
Further, the cloud domain name resolution server 33 is specifically configured to search for an IP address matching the pointed domain name based on the standby IP address pool if there is no IP address matching the pointed domain name after deleting the IP address acquired from the IP address pool in which the network service state is abnormal.
Further, the cloud domain name resolution server 33 is further configured to determine a standby IP address pool to be switched and perform switching based on the number of valid IP addresses if the detected overall network service state of the IP address pool is abnormal, so as to directly search for an IP address matched with the pointed domain name from the standby IP address pool.
Further, the cloud resolution domain name server 33 is specifically configured to allocate IP addresses matched with service operation contents and traffic processing capabilities according to the added traffic demand characteristics, historical traffic values, and access request numbers in the pointed domain name; and constructing an IP address pool for the allocated IP addresses according to the access area, and generating a standby IP address pool, wherein all the IP addresses corresponding to different pointing domain names are stored in the standby IP address pool.
Further, the local domain name server 31 is further configured to send the IP address to the terminal, establish a mapping relationship based on the application service domain name and the IP address, and store the mapping relationship in a cache in the local domain name server 31, so that when the query request of the application service domain name is received again, the matching IP address is extracted based on the mapping relationship.
Further, as shown in fig. 6, the system further includes: root server 34, top level Domain name Server 35
The local domain name server 31 is specifically configured to send a third query request of the application service domain name to the root server 34, send a fourth query request of the application service domain name to the top-level domain name server 35 according to feedback from the root server 34, and determine the authoritative domain name server 32 corresponding to the application service domain name and fed back by the top-level domain name server 35.
Compared with the prior art, the embodiment of the invention provides a cloud resolution-based global load balancing system, and the method and the system have the advantages that when a local domain name server does not find an application service domain name requested to be inquired by a terminal, the local domain name server determines an authoritative domain name server corresponding to the application service domain name and sends a first inquiry request to the authoritative domain name server; after the authoritative domain name server determines that the application service domain name is matched with a cloud resolution domain name server, feeding back domain name pointing information matched with the application service domain name to the local domain name server; the local domain name server sends a second query request carrying the domain name pointing information to the cloud resolution domain name server; the cloud resolution domain name server determines a directed domain name based on the domain name directing information, feeds back an IP address matched with the directed domain name to the local domain name server, so that the local domain name server sends the IP address to the terminal for application service access, the purpose of completing global charge balancing by completing IP address query based on the cloud resolution domain name server is achieved, the IP address of an application service domain name is rapidly and effectively queried for a user, the domain name directing information based on pre-distributed balanced load is accurately matched with the IP address under a high concurrency state, the load balancing requirement of IP address dynamic access is met, and therefore the global load balancing efficiency is greatly improved.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A global load balancing method based on cloud analysis is characterized by comprising the following steps:
when a local domain name server does not find an application service domain name requested to be inquired by a terminal, the local domain name server determines an authoritative domain name server corresponding to the application service domain name and sends a first inquiry request to the authoritative domain name server;
after the authoritative domain name server determines that the application service domain name is matched with a cloud resolution domain name server, feeding back domain name pointing information matched with the application service domain name to the local domain name server;
the local domain name server sends a second query request carrying the domain name pointing information to the cloud resolution domain name server;
and the cloud resolution domain name server determines a directed domain name based on the domain name directing information, and feeds back an IP address matched with the directed domain name to the local domain name server so that the local domain name server sends the IP address to the terminal for accessing an application service.
2. The method of claim 1, further comprising:
the cloud resolution domain name server respectively configures matched domain name pointing information of a CNAME type and a corresponding pointing domain name for each application service domain name, and sends the domain name pointing information of the CNAME type to the authoritative domain name server for storage;
and the cloud resolution domain name server stores the IP address matched with the pointing domain name.
3. The method according to claim 2, wherein the cloud resolution domain name server determines a directed domain name based on the domain name directing information, and feeding back the IP address matching the directed domain name to the local domain name server comprises:
the cloud resolution domain name server determines a matched directed domain name according to the domain name directing information of the CNAME type, and feeds the domain name to the local domain name server;
the local domain name server sends an IP address query request to the cloud resolution domain name server based on the pointing domain name;
and the cloud resolution domain name server determines an IP address according to the directed domain name and feeds back the IP address to the local domain name server.
4. The method of claim 3, wherein the cloud resolved domain name server determining the IP address from the directed domain name comprises:
sequentially inquiring at least one IP address matched with the pointed domain name from at least one pre-constructed IP address pool, and detecting the network service state of the IP address;
and if the network service state of the IP address is abnormal, deleting the IP address with the abnormal network service state from at least one matched IP address.
5. The method of claim 4, wherein the deleting the IP address with abnormal network service status from the matched at least one IP address comprises:
if the IP address matched with the pointing domain name does not exist after the IP address acquired from the IP address pool with the abnormal network service state is deleted, searching the IP address matched with the pointing domain name based on a standby IP address pool.
6. The method of claim 4, further comprising:
and if the detected integral network service state of the IP address pool is abnormal, determining a standby IP address pool to be switched based on the number of the effective IP addresses and switching to directly search the IP address matched with the directed domain name from the standby IP address pool.
7. The method of claim 4, further comprising:
allocating IP addresses matched with service operation contents and flow processing capacity according to the added flow demand characteristics, historical flow values and access request quantity in the pointed domain;
and constructing an IP address pool for the allocated IP addresses according to the access area, and generating a standby IP address pool, wherein all the IP addresses corresponding to different pointing domain names are stored in the standby IP address pool.
8. The method according to any of claims 1-7, wherein after feeding back the IP address matching the directed domain name to the local domain name server, the method further comprises:
and the local domain name server sends the IP address to the terminal, establishes a mapping relation based on the application service domain name and the IP address, and stores the mapping relation into a cache in the local domain name server so as to extract a matched IP address based on the mapping relation when receiving the query request of the application service domain name again.
9. The method of claim 1, wherein the local domain name server determining an authoritative domain name server corresponding to the application service domain name comprises:
and the local domain name server sends a third query request of the application service domain name to a root server, sends a fourth query request of the application service domain name to a top-level domain name server according to the feedback of the root server, and determines an authoritative domain name server corresponding to the application service domain name and fed back by the top-level domain name server.
10. A global load balancing system based on cloud parsing is characterized by comprising: a local domain name server, an authoritative domain name server and a cloud resolution domain name server, wherein the local domain name server is respectively connected with the authoritative domain name server and the cloud resolution domain name server,
the local domain name server is used for determining an authoritative domain name server corresponding to the application service domain name when the application service domain name requested to be inquired by the terminal is not found, and sending a first inquiry request to the authoritative domain name server;
the authoritative domain name server is used for feeding back domain name pointing information matched with the application service domain name to the local domain name server after the application service domain name is determined to be matched with the cloud resolution domain name server;
the local domain name server is further configured to send a second query request carrying the domain name pointing information to the cloud resolution domain name server;
the cloud resolution domain name server is used for determining a directed domain name based on the domain name directing information and feeding back an IP address matched with the directed domain name to the local domain name server so that the local domain name server sends the IP address to the terminal for accessing the application service.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011169420.4A CN112291339B (en) | 2020-10-28 | 2020-10-28 | Global load balancing method and system based on cloud analysis |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011169420.4A CN112291339B (en) | 2020-10-28 | 2020-10-28 | Global load balancing method and system based on cloud analysis |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112291339A CN112291339A (en) | 2021-01-29 |
CN112291339B true CN112291339B (en) | 2022-09-23 |
Family
ID=74373486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011169420.4A Active CN112291339B (en) | 2020-10-28 | 2020-10-28 | Global load balancing method and system based on cloud analysis |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112291339B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113239396A (en) * | 2021-05-11 | 2021-08-10 | 鸬鹚科技(深圳)有限公司 | Data access system, method, device, computer equipment and medium |
CN115499299A (en) * | 2022-09-13 | 2022-12-20 | 航天信息股份有限公司 | Cluster equipment monitoring method and device |
CN116319676B (en) * | 2023-05-23 | 2023-10-20 | 阿里云计算有限公司 | Domain name resolution method, device, storage medium and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107453900A (en) * | 2017-07-28 | 2017-12-08 | 北京富邦智慧物联科技有限公司 | A kind of cloud analytic parameter setting management system and the method for realizing parameter setting |
CN108471458A (en) * | 2018-07-10 | 2018-08-31 | 北京云枢网络科技有限公司 | authoritative DNS service providing method and system |
CN108900648A (en) * | 2018-06-13 | 2018-11-27 | 网宿科技股份有限公司 | A kind of method and apparatus controlling more CNAME flow proportionals |
CN109936632A (en) * | 2019-03-07 | 2019-06-25 | 杭州又拍云科技有限公司 | A kind of CNAME accelerated method applied to DNS authority server |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160094645A1 (en) * | 2014-09-26 | 2016-03-31 | Microsoft Corporation | Dns-based load balancing |
-
2020
- 2020-10-28 CN CN202011169420.4A patent/CN112291339B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107453900A (en) * | 2017-07-28 | 2017-12-08 | 北京富邦智慧物联科技有限公司 | A kind of cloud analytic parameter setting management system and the method for realizing parameter setting |
CN108900648A (en) * | 2018-06-13 | 2018-11-27 | 网宿科技股份有限公司 | A kind of method and apparatus controlling more CNAME flow proportionals |
CN108471458A (en) * | 2018-07-10 | 2018-08-31 | 北京云枢网络科技有限公司 | authoritative DNS service providing method and system |
CN109936632A (en) * | 2019-03-07 | 2019-06-25 | 杭州又拍云科技有限公司 | A kind of CNAME accelerated method applied to DNS authority server |
Also Published As
Publication number | Publication date |
---|---|
CN112291339A (en) | 2021-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112291339B (en) | Global load balancing method and system based on cloud analysis | |
CN111464592B (en) | Load balancing method, device, equipment and storage medium based on micro-service | |
EP1013051B1 (en) | Method and apparatus for client-sensitive name resolution using dns | |
CN103701957A (en) | Domain name server (DNS) recursive method and system thereof | |
US20050108247A1 (en) | Distributed database system | |
CN105610867B (en) | A kind of anti-abduction method and apparatus of DNS | |
CN103685583A (en) | Method and system for resolving domain names | |
CN101764855A (en) | Method, device and system for providing domain name resolution services | |
CN109151009B (en) | CDN node distribution method and system based on MEC | |
WO2009099784A2 (en) | On-demand mac address lookup | |
CN111885216B (en) | DNS query method, device, equipment and storage medium | |
CN111327647B (en) | Method and device for providing service to outside by container and electronic equipment | |
CN107786678B (en) | Domain name resolution method, device and system | |
CN102868550A (en) | Total network flow scheduler and method for querying domain name resolution record by using total network flow scheduler | |
JP2013090072A (en) | Service provision system | |
CN103685056A (en) | Load balancing method and load balancing system | |
CN105450774A (en) | Load balancing method and load balancing device for DNS | |
CN104104610A (en) | Flow scheduling method and apparatus based on domain name system, and domain name system | |
CN110809070A (en) | Website domain name resolution record processing method and device, electronic equipment and storage medium | |
CN105472025A (en) | Load balancing method and device based on DNS (domain name system) | |
CN113946587A (en) | Handle identifier analysis caching method, query method and handle identifier analysis system | |
KR100892885B1 (en) | Request proportion apparatus in load balancing system and load balancing method | |
US8972604B1 (en) | Network address retention and assignment | |
EP2426894B1 (en) | System and method of processing DNS request and DNS reply | |
CN103685609A (en) | Method and device for collecting routing configuration information in domain name resolution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231009 Address after: Room 301-2, No. 206 Kaibin Road, Xuhui District, Shanghai, 200032 Patentee after: Ping An Technology (Shanghai) Co.,Ltd. Address before: 23rd floor, Ping'an financial center, 5033 Yitian Road, Fuan community, Futian street, Shenzhen, Guangdong 518000 Patentee before: PING AN TECHNOLOGY (SHENZHEN) Co.,Ltd. |
|
TR01 | Transfer of patent right |