CN109327550A - A kind of distribution method of access request, device, storage medium and computer equipment - Google Patents

A kind of distribution method of access request, device, storage medium and computer equipment Download PDF

Info

Publication number
CN109327550A
CN109327550A CN201811458103.7A CN201811458103A CN109327550A CN 109327550 A CN109327550 A CN 109327550A CN 201811458103 A CN201811458103 A CN 201811458103A CN 109327550 A CN109327550 A CN 109327550A
Authority
CN
China
Prior art keywords
threshold
website
server
access
load
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.)
Granted
Application number
CN201811458103.7A
Other languages
Chinese (zh)
Other versions
CN109327550B (en
Inventor
陈锦青
王开辉
林阴珍
梁龙虎
阮兆银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201811458103.7A priority Critical patent/CN109327550B/en
Publication of CN109327550A publication Critical patent/CN109327550A/en
Application granted granted Critical
Publication of CN109327550B publication Critical patent/CN109327550B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1012Server selection for load balancing based on compliance of requirements or conditions with available server resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1023Server selection for load balancing based on a hash applied to IP addresses or costs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1029Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of distribution method of access request, device, storage medium and computer equipments.The described method includes: after load-balancing device receives the first access request, the target process of the destination server of the first access request of processing is determined from multiple servers, and after there is the historical progress of the corresponding history access request of mark of processed first network address in determining server cluster, indicate target process according to the mark acquisition request data of historical progress.In the embodiment of the present invention, since historical progress also is located in server cluster, therefore, the process for executing the access request can directly acquire relevant request data in the inside of server cluster, to face precipitate hundreds of millions grades it is concurrent when, greatly reduce the pressure of source station server, reduce source station server load and memory, so that the access request of user can timely respond to, user can rapidly access Web content.

Description

Access request distribution method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method and an apparatus for allocating access requests, a storage medium, and a computer device.
Background
With the continuous development of internet technology and the continuous richness of internet contents, more and more users access the internet, and the access flow of the internet is increased explosively. In recent years, sudden bandwidth impact occurs more frequently, for example, applications such as hotspot information or game APP make the internet often need to face hundreds of millions of concurrent times, which requires the internet to have strong concurrent processing capability.
In the prior art, users seek to relieve the pressure of concurrent processing of a source station server by accessing a CDN system. However, in the prior art, when the sudden concurrency is hundreds of millions, the edge server in the CDN system requests the source station server for data at the same time, which easily causes the problems of an excessive load and insufficient memory of the source station server, and further causes the source station server to fail to respond to the request in time, and the user cannot access the network content quickly, and thus user complaints and even loss of the user are easily caused, which may cause a significant threat to the development and operation of the website.
Based on this, there is a need for an access request allocation method, which is used to solve the problem that in the prior art, when there are hundreds of millions of concurrent requests from an edge server in a CDN system, the edge server requests data from a source station server at the same time, which easily causes the source station server to have too high load and insufficient memory.
Disclosure of Invention
Embodiments of the present invention provide an access request allocation method, an access request allocation device, a storage medium, and a computer device, so as to solve the technical problem that, in the prior art, when hundreds of millions of concurrent requests are encountered, an edge server in a CDN system may simultaneously request data from a source station server, which may easily cause an excessive load on the source station server and a memory shortage.
The embodiment of the invention provides an access request distribution method, which is applied to a request distribution system, wherein the system comprises load balancing equipment and a server cluster, and the server cluster comprises a plurality of servers; the method comprises the following steps:
after receiving a first access request sent by a user, the load balancing equipment determines a target process of a target server for processing the first access request from the plurality of servers; the first access request comprises an identifier of a first website to be accessed;
the load balancing equipment distributes the first access request to a target process of the target server, and after determining that a historical process of processing a historical access request corresponding to the identifier of the first website exists in the server cluster, sends first indication information to the target process of the target server; the first indication information includes an identifier of the historical process, and the first indication information is used for indicating the target process to acquire request data according to the identifier of the historical process, where the request data corresponds to the first access request.
By adopting the method, compared with the mode of acquiring the related request data from the source station server in the prior art after the process of the server receives the access request, in the embodiment of the invention, the historical process is also positioned in the server cluster, so that the process executing the access request can directly acquire the related request data in the server cluster, thereby greatly reducing the pressure of the source station server and reducing the load and the memory of the source station server when hundreds of millions of concurrences are encountered, further enabling the access request of a user to respond in time and enabling the user to quickly access the network content.
The embodiment of the invention provides an access request distribution method, which is applied to a request distribution system, wherein the system comprises load balancing equipment and a server cluster, and the server cluster comprises a plurality of servers; the method comprises the following steps:
the process of the server receives an access request and first indication information distributed by the load balancing equipment, wherein the first indication information comprises an identifier of the historical process;
the process of the server acquires the request data corresponding to the access request according to the identifier of the historical process;
and the process of the server sends request data corresponding to the access request to the user.
The embodiment of the invention provides an access request distribution device, which is applied to a request distribution system, wherein the system comprises load balancing equipment and a server cluster, and the server cluster comprises a plurality of servers; the apparatus is the load balancing device, and the apparatus includes:
the receiving unit is used for receiving a first access request sent by a user;
a processing unit configured to determine a target process of a target server that processes the first access request from the plurality of servers; the first access request comprises an identifier of a first website to be accessed; and distributing the first access request to a target process of the target server;
a sending unit, configured to send first indication information to a target process of the target server after the processing unit determines that a historical process of a historical access request corresponding to the identifier of the first website is processed exists in the server cluster; the first indication information includes an identifier of the historical process, and the first indication information is used for indicating the target process to acquire request data, where the request data corresponds to the first access request.
The embodiment of the invention provides an access request distribution device, which is applied to a request distribution system, wherein the system comprises load balancing equipment and a server cluster, and the server cluster comprises a plurality of servers; the apparatus is a process of a server, the apparatus comprising:
a receiving unit, configured to receive an access request and first indication information allocated by the load balancing device, where the first indication information includes an identifier of the historical process;
the processing unit is used for acquiring request data corresponding to the access request according to the identifier of the historical process;
and the sending unit is used for sending the request data corresponding to the access request to the user.
The embodiment of the present application further provides an apparatus having a function of implementing the allocation method of the access request described above. This function may be implemented by hardware executing corresponding software, and in one possible design, the apparatus includes: a processor, a transceiver, a memory; the memory is used for storing computer execution instructions, the transceiver is used for realizing the communication between the device and other communication entities, the processor and the memory are connected through the bus, and when the device runs, the processor executes the computer execution instructions stored by the memory so as to enable the device to execute the access request distribution method described above.
An embodiment of the present invention further provides a computer storage medium, where a software program is stored, and when the software program is read and executed by one or more processors, the software program implements the allocation method of the access request described in the foregoing various possible implementation manners.
Embodiments of the present invention also provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the method for allocating access requests described in the above various possible implementations.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that are required to be used in the description of the embodiments will be briefly described below.
FIG. 1 is a diagram illustrating a system architecture suitable for use with an embodiment of the present invention;
fig. 2 is a schematic flowchart corresponding to an access request allocation method according to an embodiment of the present invention;
FIG. 3 is a flow diagram illustrating the integrity involved in an embodiment of the present invention;
fig. 4 is a schematic flowchart of a process for determining a condition met by a load condition of a server cluster according to an embodiment of the present invention;
fig. 5 is a schematic flowchart corresponding to a distribution process of a first access request after a load condition of a server cluster meets a second preset condition according to an embodiment of the present invention;
fig. 6 is a schematic flowchart corresponding to a distribution process of a first access request after a load condition of a server cluster meets a third preset condition according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an access request distribution apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another access request distribution apparatus according to an embodiment of the present invention.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings, and the specific operation methods in the method embodiments can also be applied to the apparatus embodiments.
Fig. 1 schematically illustrates a system architecture to which an embodiment of the present invention is applicable, and as shown in fig. 1, a system architecture 100 to which an embodiment of the present invention is applicable includes a load balancing device 101 and a server cluster 102, where the server cluster 102 may include a plurality of servers, such as a server 1021, a server 1022, and a server 1023 shown in fig. 1. The load balancing apparatus 101 may communicate with the server 1021, the server 1022, and the server 1023 through a network, for example, the load balancing apparatus 101 may distribute an access request to any one of the server 1021, the server 1022, and the server 1023.
It should be noted that the system architecture shown in fig. 1 may be applied in a CDN system, and specifically, the load balancing device may be configured to distribute access requests to a plurality of edge servers in the same area in the CDN system.
Based on the system architecture shown in fig. 1, fig. 2 exemplarily shows a flow diagram corresponding to an access request allocation method provided by an embodiment of the present invention, and includes the following steps:
step 201, after receiving a first access request sent by a user, a load balancing device determines a target process of a target server for processing the first access request from a plurality of servers.
Step 202, the load balancing device allocates the first access request to a target process of the target server, and after determining that a history process for processing a history access request corresponding to the identifier of the first website exists in the server cluster, sends first indication information to the target process of the target server.
In step 203, the process of the server receives the access request and the first indication information distributed by the load balancing device.
Step 204, the process of the server acquires request data corresponding to the access request according to the identifier of the historical process;
in step 205, the process of the server sends request data corresponding to the access request to the user.
In this way, when allocating an access request, after determining that a historical process for processing a historical access request corresponding to the identifier of the first website exists in the server cluster, the load balancing device may notify the process executing the access request to acquire request data from the historical process. By adopting the method, compared with the mode of acquiring the related request data from the source station server in the prior art after the process of the server receives the access request, in the embodiment of the invention, the historical process is also positioned in the server cluster, so that the process executing the access request can directly acquire the related request data in the server cluster, thereby greatly reducing the pressure of the source station server and reducing the load and the memory of the source station server when hundreds of millions of concurrences are encountered, further enabling the access request of a user to respond in time and enabling the user to quickly access the network content.
Specifically, in step 201, the first access request may include an identification of a first web address to be accessed. The identifier of the first website may be represented by a Uniform Resource Locator (URL).
In the embodiment of the invention, the load balancing device can determine the target process according to the acquired load condition of the server cluster in the current period. The load condition of the server cluster may include a rank of an access amount corresponding to the first website, or may include a proportion of access requests corresponding to the first website, or may include a total number of received access requests corresponding to the first website, or may include an access flow value corresponding to the first website. The ranking of the access amount is obtained by ranking from at least according to the total number of access requests corresponding to the received websites; the proportion of the access requests corresponding to the first website may be a proportion of the number of times that the load balancing device receives the access requests corresponding to the first website in the total number of times that all the access requests are received in the current period; the total number of access requests corresponding to the received first website may be the total number of access requests related to the first website received by the load balancing device in the current period; the access traffic value corresponding to the first website may refer to traffic data generated by all access requests related to the first website received by the load balancing device in the current period.
Further, the target process determined by the load balancing device may also be different according to different load conditions of the server cluster. In one example, if it is determined that the load condition of the server cluster in the current period meets a first preset condition, the load balancing device determines that the first process of the first server is a target process of the target server. Wherein the first process of the first server is used for processing the access request aiming at the first website, and the first process of the first server is selected from a plurality of servers.
Furthermore, the determination manner of the first preset condition is different according to different contents included in the load condition of the server cluster. The following are several possible determination manners of the first preset condition provided by the embodiment of the present invention:
in a first manner, the first preset condition determined by the load balancing device may be determined according to the rank of the access amount corresponding to the first website, or the actual data corresponding to the total number of the received access requests corresponding to the first website. For example, if the load balancing device determines that the access amount corresponding to the first website is ranked after N, it may be determined that the load condition of the server cluster meets the first preset condition; for another example, if the load balancing device determines that the total number of access requests corresponding to the received first website is less than a first threshold, it may be determined that the load condition of the server cluster meets the first preset condition; for another example, if the load balancing device determines that the access amount corresponding to the first website is ranked after N, and the total number of received access requests corresponding to the first website is less than a first threshold, it may be determined that the load condition of the server cluster meets the first preset condition. Wherein N is an integer greater than or equal to 1, and is preset. In summary, if it is determined that the load condition of the current server cluster meets any one of the above conditions, the load balancing device may consider that the load condition meets the first preset condition.
In a second manner, the first preset condition determined by the load balancing device may be determined according to the access traffic ranking corresponding to the first website, or according to the access traffic value corresponding to the first website. For example, if the load balancing device determines that the access amount corresponding to the first website is ranked behind the P name, it may be determined that the load condition of the server cluster meets the first preset condition; for another example, if the load balancing device determines that the access traffic value corresponding to the first website is smaller than the third threshold, it may be determined that the load condition of the server cluster meets the first preset condition; for another example, if the load balancing device determines that the access volume corresponding to the first website is ranked after the P name, and the access volume value corresponding to the first website is smaller than the third threshold, it may be determined that the load condition of the server cluster meets the first preset condition. Wherein, P is an integer greater than or equal to 1, and P is preset. In summary, if it is determined that the load condition of the current server cluster meets any one of the above conditions, the load balancing device may consider that the load condition meets the first preset condition.
In a third way, the first preset condition determined by the load balancing device may be determined according to a proportion of access requests corresponding to the first website, or a total number of times of received access requests. For example, if the load balancing device determines that the proportion of the access requests corresponding to the first website is smaller than a fifth threshold, it may be determined that the load condition of the server cluster meets the first preset condition; for another example, if the load balancing device determines that the total number of received access requests is less than a sixth threshold, it may determine that the load condition of the server cluster meets the first preset condition; for another example, if the load balancing device determines that the proportion of the access requests corresponding to the first website is smaller than a fifth threshold and the total number of the received access requests is smaller than a sixth threshold, it may be determined that the load condition of the server cluster meets the first preset condition. In summary, if it is determined that the load condition of the current server cluster meets any one of the above conditions, the load balancing device may consider that the load condition meets the first preset condition.
In a fourth way, the first preset condition determined by the load balancing device may be determined according to a proportion of the access request corresponding to the first website, or an access traffic value corresponding to the first website. For example, if the load balancing device determines that the proportion of the access requests corresponding to the first website is smaller than a ninth threshold, it may be determined that the load condition of the server cluster meets the first preset condition; for another example, if the load balancing device determines that the access traffic value corresponding to the first website is smaller than a tenth threshold, it may be determined that the load condition of the server cluster meets the first preset condition; for another example, if the load balancing device determines that the proportion of the access requests corresponding to the first website is smaller than the ninth threshold and the access traffic value corresponding to the first website is smaller than the tenth threshold, it may be determined that the load condition of the server cluster meets the first preset condition. In summary, if it is determined that the load condition of the current server cluster meets any one of the above conditions, the load balancing device may consider that the load condition meets the first preset condition.
In another example, if it is determined that the load condition of the server cluster in the current period meets the second preset condition, the load balancing device determines that the first process of the second server is the target process of the target server. The first process of the second server is used for processing the access request aiming at the first website, the first process of the second server is selected from a candidate server set, and the candidate server set is a server set except the first server in the server cluster.
Further, when determining the first process of the second server, the load balancing device may first obtain a load value of a process in any server in the candidate server set, then determine whether the load value of the process is smaller than a preset threshold, and if so, determine the process with the load value smaller than the preset threshold as the first process of the second server; otherwise, the first process of the third server can be selected from the candidate server set as the target process of the target server, wherein the load value of the first process of the third server is smaller than a preset threshold, and the first process of the third server is used for processing the access request for the first website.
By adopting the method, the process of executing the access request corresponding to the same website can be gradually increased under the condition that the load condition of the server cluster accords with the second preset condition, namely, the first process of different servers in the server cluster gradually caches the request data corresponding to the access request, so that the problem of slow response of a single server can be relieved, and unnecessary source return can be avoided; furthermore, the first process of each server in the server cluster only acquires the relevant request data in the first process of the server cluster, and the server cluster does not need to be accessed, so that the response speed of the access request is greatly increased.
Further, the determination manner of the second preset condition is different according to different contents included in the load condition of the server cluster. The following are some possible determination manners of the second preset condition provided by the embodiment of the present invention:
in a first manner, the second preset condition determined by the load balancing device may also be determined according to the rank of the access amount corresponding to the first website, or the total number of times of the received access requests corresponding to the first website. For example, if the load balancing device determines that the access amount corresponding to the first website is ranked before the N names but after the M names, and the total number of access requests corresponding to the received first website is greater than or equal to the first threshold and less than the second threshold, it may be determined that the load condition of the server cluster meets a second preset condition; for another example, if the load balancing device determines that the access amount corresponding to the first website is ranked before the N names but after the M names, and the total number of received access requests corresponding to the first website is greater than or equal to the second threshold, it may be determined that the load condition of the server cluster meets the second preset condition; for another example, if the load balancing device determines that the access amount corresponding to the first website is ranked before M, and the total number of received access requests corresponding to the first website is greater than or equal to the first threshold and less than the second threshold, it may be determined that the load condition of the server cluster meets the second preset condition. Wherein the first threshold is less than the second threshold; m can be an integer greater than or equal to 1 and less than N, and M is predetermined.
In a second manner, the second preset condition determined by the load balancing device may also be determined according to the access traffic ranking corresponding to the first website, or the access traffic value corresponding to the first website. For example, if the load balancing device determines that the access volume corresponding to the first website is ranked before the P name but after the Q name, and the access traffic value corresponding to the first website is greater than or equal to the third threshold and less than the fourth threshold, it may be determined that the load condition of the server cluster meets a second preset condition; for another example, if the load balancing device determines that the access volume corresponding to the first website is ranked before the P name but after the Q name, and the access volume value corresponding to the first website is greater than or equal to the fourth threshold, it may be determined that the load condition of the server cluster meets the second preset condition; for another example, if the load balancing device determines that the access volume corresponding to the first website is ranked before the Q name, and the access volume value corresponding to the first website is greater than or equal to the third threshold and less than the fourth threshold, it may be determined that the load condition of the server cluster meets the second preset condition. Wherein the third threshold is less than the fourth threshold; q is an integer greater than or equal to 1 and less than P, and Q is predetermined.
In a third manner, the second preset condition determined by the load balancing device may also be determined according to a proportion of the access requests corresponding to the first website, or the total number of times of the received access requests corresponding to the first website. For example, if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the fifth threshold and smaller than the seventh threshold, and the total number of the received access requests is greater than or equal to the sixth threshold and smaller than the eighth threshold, it may be determined that the load condition of the server cluster meets a second preset condition; for another example, if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the fifth threshold and smaller than the seventh threshold, and the total number of the received access requests is greater than or equal to the eighth threshold, it may be determined that the load condition of the server cluster meets a second preset condition; for another example, if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the seventh threshold, and the total number of the received access requests is greater than or equal to the sixth threshold and less than the eighth threshold, it may be determined that the load condition of the server cluster meets a second preset condition. Wherein the first threshold is less than the second threshold; the fifth threshold is less than the seventh threshold and the sixth threshold is less than the eighth threshold.
In a fourth manner, the second preset condition determined by the load balancing device may also be determined according to the proportion of the access request corresponding to the first website, or the access traffic value corresponding to the first website. For example, if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the ninth threshold and smaller than the eleventh threshold, and the access traffic value corresponding to the first website is greater than or equal to the tenth threshold and smaller than the twelfth threshold, it may be determined that the load condition of the server cluster meets a second preset condition; for another example, if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the ninth threshold and smaller than the eleventh threshold, and the access traffic value corresponding to the first website is greater than or equal to the twelfth threshold, it may be determined that the load condition of the server cluster meets a second preset condition; for another example, if the load balancing device determines that the ratio of the access requests corresponding to the first website is greater than or equal to the eleventh threshold, and the access traffic value corresponding to the first website is greater than or equal to the tenth threshold and less than the twelfth threshold, it may be determined that the load condition of the server cluster meets a second preset condition. Wherein the third threshold is less than the fourth threshold; the ninth threshold is less than the eleventh threshold and the tenth threshold is less than the twelfth threshold.
In another example, if it is determined that the load condition of the server cluster in the current period meets the third preset condition, the load balancing device determines the second process as a target process of the target server. The second process may be a process other than the first process in the server cluster, and a load value of the second process is smaller than a preset threshold.
By adopting the method, when the CDN system faces hundreds of millions of concurrent services and the access request reaches a huge concurrent level, the number of processes for executing the access request corresponding to the same website can be rapidly increased, and the waiting time of the access request is reduced; furthermore, all processes of each server in the server cluster can only acquire relevant request data in the first process of the server without going out of the server, so that the bandwidth consumption is reduced, the response efficiency is improved, the pressure brought by a large number of sudden access requests can be better solved, and the user can acquire the accessed content in time.
Further, according to different contents included in the load conditions of the server cluster, the determination manner of the third preset condition is also different. The following are some possible determination manners of the third preset condition provided by the embodiment of the present invention:
in a first manner, the third preset condition determined by the load balancing device may also be determined according to the rank of the access amount corresponding to the first website, or the actual data corresponding to the total number of the received access requests corresponding to the first website. For example, if the load balancing device determines that the access amount corresponding to the first website is ranked before M, and the total number of access requests corresponding to the first website received in the current period is greater than or equal to the second threshold, it is determined that the load condition of the server cluster meets the third preset condition.
In a second manner, the third preset condition determined by the load balancing device may also be determined according to the access traffic ranking corresponding to the first website, or the actual data corresponding to the access traffic value corresponding to the first website. For example, if the load balancing device determines that the access traffic corresponding to the first website is ranked before the Q name and the access traffic value corresponding to the first website is greater than or equal to the fourth threshold, it is determined that the load condition of the server cluster meets a third preset condition.
In a third manner, the third preset condition determined by the load balancing device may also be according to a proportion of access requests corresponding to the first website, or a total number of times of received access requests. For example, if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the seventh threshold and the total number of the received access requests is greater than or equal to the eighth threshold, it determines that the load condition of the server cluster meets a third preset condition.
In a fourth manner, the third preset condition determined by the load balancing device may also be according to a proportion of the access request corresponding to the first website, or an access traffic value corresponding to the first website. For example, if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the eleventh threshold and the access traffic value corresponding to the first website is greater than or equal to the twelfth threshold, it determines that the load condition of the server cluster meets a third preset condition.
It should be noted that, in the embodiment of the present invention, the first threshold, the second threshold, the third threshold, the fourth threshold, the fifth threshold, the sixth threshold, the seventh threshold, the eighth threshold, the ninth threshold, the tenth threshold, the eleventh threshold, the twelfth threshold, and the preset threshold corresponding to the load value may be determined by those skilled in the art according to experience and practical situations, and are not limited specifically.
In this embodiment of the present invention, the first process, for example, the first process of the first server, or the first process of the second server, or the first process of the third server, may be determined from the corresponding server according to a preset hash algorithm, or may be preset in the corresponding server by a person skilled in the art, which is not limited specifically. Similarly, the second process may also be determined by a preset hash algorithm from the corresponding server, or may also be preset in the corresponding server by a person skilled in the art, which is not limited specifically.
In step 202, after the load balancing device allocates the first access request to the target process of the target server, it may be determined whether a historical process for processing a historical access request corresponding to the identifier of the first website exists in the server cluster, and if the historical process exists, first indication information may be sent to the target process of the target server; if not, the second indication information can be sent to the target process of the target server. The first indication information may be used to indicate a target process of the target server to obtain request data corresponding to the first access request according to an identifier of a historical process included in the first indication information; the second indication information may be used to instruct the target process of the target server to obtain the request data corresponding to the first access request from the source station server corresponding to the first access request.
In steps 203 to 205, the process of the server may receive second indication information in addition to the first indication information sent by the load balancing device. If the process of the server receives the access request and the second indication information distributed by the load balancing device, the process of the server may obtain request data corresponding to the access request from a source station server corresponding to the access request, and send the request data corresponding to the access request to the user. Because the second indication information is sent by the load balancing device after determining that no historical process for processing the historical access request corresponding to the identifier of the first website exists in the server cluster, that is, no cache data corresponding to the identifier of the first website exists in the server cluster, at this time, the process of the server will (or can only) acquire the request data from the source station server; in other words, if a history process for processing the history access request corresponding to the identifier of the first website exists in the server cluster, the process of the server can directly obtain the request data corresponding to the access request according to the identifier of the history process without returning to the source.
In order to more clearly describe the method for allocating the access request by the load balancing device, the flow involved in the embodiment of the present invention is generally described below with reference to fig. 3. As shown in fig. 3, the following steps may be included:
in step 301, a load balancing device receives a first access request sent by a user.
In the CDN system, a user sends a first access request to a local DNS server, such as querying an IP address corresponding to a domain name www.a.com; a local DNS server initiates site query to a superior DNS server, and queries a CNAME record corresponding to a domain name www.a.com; the superior DNS server returns a CNAME record corresponding to the domain name to the local DNS server, namely www.a.tbcdn.com is returned; the local DNS server initiates site query to a DNS scheduling system, and queries an IP address corresponding to a domain name www.a.tbcdn.com; the DNS scheduling system analyzes according to the geographical position information, and can determine a server cluster consisting of a plurality of servers closest to the user in order to enable the user to access nearby; furthermore, how to allocate the first access request in a server cluster composed of a plurality of servers closest to the user is a problem that needs to be solved by the embodiments of the present invention. In order to solve this problem, in fig. 1 described above, a load balancing device is added outside a server cluster composed of a plurality of servers closest to a user, and the load balancing device receives a first access request sent by the user and distributes the first access request in the server cluster.
Step 302, the load balancing device obtains the load condition of the server cluster in the current period.
Step 303, the load balancing device determines whether the load condition of the server cluster in the current period meets a first preset condition, a second preset condition or a third preset condition, and if the load condition of the server cluster in the current period meets the first preset condition, the step 304 is executed; if the second predetermined condition is met, go to step 305; if the first predetermined condition is met, go to step 306.
The load balancing device may obtain, in a statistical manner, the rank of the access amount corresponding to the first website and the total number of times of the received access request corresponding to the first website in the current period. It should be noted that the access amount ranking corresponding to the first website can be regarded as a historical access list, and the higher the access amount corresponding to the first website is, the higher the access amount ranking corresponding to the first website (or the ranking of the first website in the historical access list) is. Therefore, when the condition that the load condition of the server cluster meets is judged, whether the first website is in the historical access list or not can be taken as a prerequisite, if the identifier of the first website corresponding to the first access request is not in the historical access list, the first access request can be distributed by adopting the prior art, and if the identifier of the first website corresponding to the first access request is in the historical access list, the method provided by the embodiment of the invention can be adopted to distribute the first access request.
Further, taking the total number of access requests received in the current period, the ratio of access requests corresponding to the first website, and the determination manner of the historical access list as an example, as shown in fig. 4, a schematic flow chart of a condition for determining a load condition of a server cluster provided in the embodiment of the present invention specifically includes the following steps:
step 401, presetting N, M and a first threshold and a second threshold corresponding to the total number of access requests corresponding to the received first website, wherein the first threshold is smaller than the second threshold, and M is smaller than N.
Step 402, determining whether an identifier (such as a URL) of a first website of the first access request is in a historical access list, and if so, executing step 403; otherwise, step 405 is performed.
Step 403, judging whether the visit volume ranking corresponding to the first website is before the N name, if so (including the Nth name), executing step 404; otherwise, step 405 is performed.
Step 404, determining whether the total number of access requests corresponding to the received first website is less than a first threshold, if so, executing step 405; otherwise, step 406 is performed.
Step 405, determining that the load condition of the server cluster meets a first preset condition.
Step 406, determining whether the rank of the access amount corresponding to the first website is after M names, and whether the total number of access requests corresponding to the first website is less than a second threshold, if yes, executing step 407; otherwise, step 408 is performed.
Step 407, determining that the load condition of the server cluster meets a second preset condition.
And step 408, determining that the load condition of the server cluster meets a third preset condition.
It should be noted that the content shown in fig. 4 is only an example, and in other possible examples, the condition met by the load condition of the server cluster may also be determined according to the rank of the access amount corresponding to the first website in the current period and/or the total number of received access requests corresponding to the first website, which is not specifically illustrated in the flowchart.
At step 304, the load balancing appliance selects a first process of a first server from the plurality of servers for handling an access request to a first web address.
Taking the example that the load balancing device selects the process by using the hash algorithm, the load balancing device may select the first hash process in the server cluster after determining that the load condition of the server cluster meets the first preset condition.
Further, a first hash process in the server cluster judges whether cache data of the first access request (namely request data corresponding to the first access request) is stored in the first hash process, and if the cache data of the first access request is stored in the first hash process, the cache data can be directly obtained and returned to the user; if the data is not stored, the data can be obtained from the outgoing server cluster and returned to the source station server (or the outgoing server cluster and an upper node in the CDN system) and returned to the user.
Step 305, the load balancing device selects a first process of a second server for processing the access request aiming at the first website from the server set except the first server in the server cluster.
Specifically, after determining that the load condition of the server cluster meets the second preset condition, the load balancing device may perform warm diffusion on the received first access request, that is, diffuse the request to the first hash process of each server in the cluster.
Further, the first hash process of each server judges whether the first hash process stores the cache data of the first access request (namely, the request data corresponding to the first access request), and if the first hash process stores the cache data, the cache data can be directly obtained and returned to the user; if the hash value is not stored, the hash value can be acquired in the first hash process of the server cluster and returned to the user.
In order to describe the temperature diffusion process more clearly after the load condition of the server cluster meets the second preset condition, fig. 5 exemplarily shows a flowchart corresponding to the allocation process of the first access request after the load condition of the server cluster meets the second preset condition, which is provided by the embodiment of the present invention. As shown in fig. 5, the method specifically includes the following steps:
step 501, the load balancing device determines that the load condition of the server cluster meets a second preset condition.
Step 502, a load balancing device obtains a load value of a first hash process of an Nth server in a candidate server set; n is an integer of 1 or more.
Step 503, the load balancing device determines whether the load value of the first hash process of the nth server is smaller than a preset threshold, and if so, executes step 504; otherwise, step 506 is performed.
In step 504, the load balancing device distributes the first access request to the first hash process of the nth server.
In step 505, the load balancing device updates the load value of the first hash process of the nth server after the distribution.
In step 506, the load balancing apparatus sets N to N +1, and returns to step 502.
It should be noted that, in the embodiment of the present invention, the load value of the process may be data of an access request executed by the process, and further, the load value of the load balancing device updating the process may be updated by accumulating the data of the access request executed by the process.
As can be seen from the content shown in fig. 5, after determining that the second preset condition is met, the load balancing device may allocate the first access request to the first hash process of the 1 st server in the server cluster, instruct the process to return to the first hash process of the server cluster to obtain the request data, and increase the diffusion counter count value of the process (i.e., accumulate data of the access request executed by the process) by 1 time; if the count value of the diffusion counter is smaller than the preset threshold value, the request can be continuously distributed to the first hash process of the 1 st server, and the count value of the diffusion counter is increased by 1 time; if the count value of the diffusion counter of the first hash process of the 1 st server is greater than or equal to the preset threshold value, the request can be distributed to the first hash process of the 2 nd server in the server cluster, the process is instructed to return to the first hash process of the server cluster to obtain request data, and the count value of the diffusion counter of the process can be increased by 1 time; if the count value of the diffusion counter of the first hash process of the 2 nd server is smaller than the preset threshold value, continuing to distribute the request to the first hash process of the 2 nd server, and increasing the count value of the diffusion counter by 1 time; if the count value of the diffusion counter of the first hash process of the 2 nd server is greater than or equal to the preset threshold value, the request can be distributed to the first hash process of the 3 rd server in the server cluster, the process is instructed to return to the first hash process of the server cluster to obtain request data, and the count value of the diffusion counter of the process can be increased by 1 time; similarly, in the case that the second preset condition is still met, the diffusion may be continued, the first hash process assigned to each server in the server cluster is assigned, and the process is instructed to obtain the request data back to the first hash process of the server cluster.
Step 306, the load balancing device selects a second process from the server cluster, wherein the second process is different from the first process and has a load value smaller than a preset threshold value.
Specifically, after determining that the load condition of the server cluster meets the third preset condition, the load balancing device may perform thermal spreading on the received first access request, that is, spread the request to all processes of each server in the cluster.
Further, each process of each server judges whether cache data of the first access request (namely request data corresponding to the first access request) is stored in the process, and if the cache data of the first access request is stored, the cache data can be directly obtained and returned to the user; if not, the hash value can be obtained in the first hash process of the server and returned to the user.
To describe the thermal diffusion process more clearly after the load condition of the server cluster meets the third preset condition, fig. 6 exemplarily shows a flowchart corresponding to the allocation process of the first access request after the load condition of the server cluster meets the third preset condition, which is provided by the embodiment of the present invention. As shown in fig. 6, the method specifically includes the following steps:
step 601, the load balancing device determines that the load condition of the server cluster meets a third preset condition.
Step 602, a load balancing device obtains load values of all processes of an mth server in a server cluster; m is an integer of 1 or more.
Step 603, the load balancing device determines whether the load values of all processes of the mth server are all greater than a preset threshold, and if so, executes step 604; otherwise, step 605 is executed.
In step 604, the load balancing apparatus sets M +1, and returns to step 502.
Step 605, the load balancing device allocates the first access request to a process of which the load value is smaller than a preset threshold value in the mth server.
Step 606, the load balancing device updates the load values of all processes in the mth server after the distribution.
As can be seen from the content shown in fig. 6, after determining that the third preset condition is met, the load balancing device may allocate the first access request to all processes of the 1 st server in the server cluster, and instruct the processes to return the first hash process of the server to obtain the request data; after all processes of the 1 st server are distributed, under the condition that the third preset condition is met, the process can continue to be diffused, the first access request is distributed to all processes of the 2 nd server in the server cluster, and the processes are indicated to return the first hash process of the server to obtain request data; similarly, in the case that the third preset condition is still met, the diffusion may be continued, all processes of the remaining servers in the server cluster may be allocated, and the process may be instructed to return to the first hash process of the server where the process is located to obtain the request data.
At step 307, the load balancing device assigns the first access request to the selected process.
Step 308, the load balancing device determines whether a history process for processing a history access request corresponding to the identifier of the first website exists in the server cluster, and if yes, executes step 309; otherwise, step 310 is performed.
Step 309, the load balancing device instructs the selected process to obtain the request data corresponding to the first access request according to the identifier of the historical process.
In step 310, the load balancing device instructs the selected process to obtain the request data corresponding to the first access request from the source station server corresponding to the first access request.
In the embodiment of the invention, the load balancing equipment can flexibly select the process according to the load condition of the server cluster, and when the load of the server cluster is low, the first process of the server cluster can execute the access request; when the load of the server cluster is increased, the first process of each server in the server cluster can execute the access request step by step; when the load of the server cluster is high, the access request can be executed by all the servers in the server cluster step by step. By adopting the gradual diffusion mode, on one hand, each server is provided with at least one process, access data corresponding to the access request are cached in the process, once a large number of sudden requests are met, other processes in the server can rapidly acquire the access data from one process of the server, the source return is not needed, the pressure of the server of the source station is greatly reduced, and further the operation and bandwidth cost of the website is reduced; on the other hand, the user can quickly acquire the content to be accessed, the waiting time of the user is reduced, the user can be ensured to access smoothly, and the user experience is improved.
Based on the same inventive concept, the embodiment of the present invention further provides an access request distribution apparatus, where the apparatus is applied to the request distribution system shown in fig. 1, the system includes a load balancing device and a server cluster, and the server cluster includes a plurality of servers; the apparatus may be the load balancing device, as shown in fig. 7, the apparatus includes a receiving unit 701, a processing unit 702, and a sending unit 703; the receiving unit 701 is configured to receive a first access request sent by a user;
a processing unit 702, configured to determine, from the plurality of servers, a target process of a target server that processes the first access request; the first access request comprises an identifier of a first website to be accessed; and distributing the first access request to a target process of the target server;
a sending unit 703, configured to send first indication information to a target process of the target server after the processing unit determines that a history process of a history access request corresponding to the identifier of the first website is processed in the server cluster; the first indication information includes an identifier of the historical process, and the first indication information is used for indicating the target process to acquire request data, where the request data corresponds to the first access request.
In a possible implementation manner, the processing unit 702 is specifically configured to:
acquiring the load condition of the server cluster in the current period, and if the load condition of the server cluster in the current period is determined to meet a first preset condition, determining that a first process of a first server is a target process of the target server; the first process of the first server is used for processing an access request aiming at the first website, and the first process of the first server is selected from the plurality of servers.
In one possible implementation manner, the processing unit 702 is further configured to:
if the load condition of the server cluster in the current period is determined to meet a second preset condition, determining that a first process of a second server is a target process of the target server; the first process of the second server is used for processing the access request aiming at the first website, the first process of the second server is selected from a candidate server set, and the candidate server set is a server set except the first server in the server cluster.
In a possible implementation manner, the processing unit 702 is specifically configured to:
and acquiring a load value of a process in any server in the candidate server set, and determining the process with the load value smaller than a preset threshold as a first process of the second server.
In one possible implementation manner, the processing unit 702 is further configured to:
if the load condition of the server cluster in the current period is determined to meet the second preset condition, and the load value of the first process of the second server is not smaller than a preset threshold value, selecting the first process of a third server from the candidate server set as a target process of the target server; and the load value of the first process of the third server is smaller than the preset threshold, and the first process of the third server is used for processing an access request aiming at the first website.
In one possible implementation manner, the processing unit 702 is further configured to:
if the load condition of the server cluster in the current period is determined to meet a third preset condition, determining a second process as a target process of the target server, wherein the second process is a process except the first process in the server cluster, and the load value of the second process is smaller than a preset threshold value.
In a possible implementation manner, the load condition of the server cluster includes at least one of an access volume ranking corresponding to the first website, a proportion of access requests corresponding to the first website, a total number of received access requests corresponding to the first website, and an access traffic value corresponding to the first website; the access amount ranking is obtained by ranking from at least according to the total number of access requests corresponding to the received websites.
In a possible implementation manner, the first preset condition is:
if the load balancing device determines that the access amount corresponding to the first website is ranked after N, and/or the total number of the received access requests corresponding to the first website is less than a first threshold, determining that the load condition of the server cluster meets the first preset condition; n is an integer greater than or equal to 1, and is preset;
the second preset condition is as follows:
if the load balancing device determines that the access amount corresponding to the first website is ranked before N names but after M names, and the total number of the received access requests corresponding to the first website is greater than or equal to the first threshold and smaller than a second threshold, determining that the load condition of the server cluster meets a second preset condition; the first threshold is less than the second threshold; m is an integer greater than or equal to 1 and less than N, and M is preset;
or
If the load balancing device determines that the access amount corresponding to the first website is ranked before N names but after M names and the total number of the received access requests corresponding to the first website is greater than or equal to the second threshold, determining that the load condition of the server cluster meets a second preset condition;
or
If the load balancing device determines that the access amount corresponding to the first website is ranked before M, and the total number of the received access requests corresponding to the first website is greater than or equal to the first threshold and smaller than the second threshold, determining that the load condition of the server cluster meets a second preset condition;
the third preset condition is as follows:
and if the load balancing equipment determines that the access amount corresponding to the first website is ranked before M, and the total number of the received access requests corresponding to the first website is greater than or equal to the second threshold, determining that the load condition of the server cluster meets a third preset condition.
In a possible implementation manner, the first preset condition is:
if the load balancing device determines that the access traffic corresponding to the first website is ranked behind the P name, and/or the access traffic value corresponding to the first website is smaller than a third threshold, determining that the load condition of the server cluster meets the first preset condition; p is an integer greater than or equal to 1, and is preset;
the second preset condition is as follows:
if the load balancing equipment determines that the access traffic corresponding to the first website is ranked before the P name but after the Q name and the access traffic value corresponding to the first website is greater than or equal to the third threshold and smaller than a fourth threshold, determining that the load condition of the server cluster meets a second preset condition; the third threshold is less than the fourth threshold; q is an integer greater than or equal to 1 and less than P, and Q is preset;
or
If the load balancing device determines that the access traffic corresponding to the first website is ranked before the P name but after the Q name and the access traffic value corresponding to the first website is greater than or equal to the fourth threshold, determining that the load condition of the server cluster meets a second preset condition;
or
If the load balancing equipment determines that the access traffic corresponding to the first website is ranked before the Q name and the access traffic value corresponding to the first website is greater than or equal to the third threshold and smaller than the fourth threshold, determining that the load condition of the server cluster meets a second preset condition;
the third preset condition is as follows:
and if the load balancing equipment determines that the access traffic corresponding to the first website is ranked before the Q name and the access traffic value corresponding to the first website is greater than or equal to the fourth threshold, determining that the load condition of the server cluster meets a third preset condition.
In a possible implementation manner, the first preset condition is:
if the load balancing device determines that the proportion of the access requests corresponding to the first website is smaller than a fifth threshold and/or the total number of the received access requests is smaller than a sixth threshold, determining that the load condition of the server cluster meets the first preset condition;
the second preset condition is as follows:
if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the fifth threshold and smaller than a seventh threshold, and the total number of the received access requests is greater than or equal to the sixth threshold and smaller than an eighth threshold, determining that the load condition of the server cluster meets a second preset condition; the fifth threshold is less than the seventh threshold, and the sixth threshold is less than the eighth threshold;
or
If the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the fifth threshold and smaller than the seventh threshold, and the total number of the received access requests is greater than or equal to the eighth threshold, determining that the load condition of the server cluster meets a second preset condition;
or
If the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the seventh threshold, and the total number of the received access requests is greater than or equal to the sixth threshold and less than the eighth threshold, determining that the load condition of the server cluster meets a second preset condition;
the third preset condition is as follows:
and if the load balancing equipment determines that the proportion of the access requests corresponding to the first website is greater than or equal to the seventh threshold and the total number of the received access requests is greater than or equal to the eighth threshold, determining that the load condition of the server cluster meets a third preset condition.
In a possible implementation manner, the first preset condition is:
if the load balancing device determines that the proportion of the access requests corresponding to the first website is smaller than a ninth threshold and/or the access flow value corresponding to the first website is smaller than a tenth threshold, determining that the load condition of the server cluster meets the first preset condition;
the second preset condition is as follows:
if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the ninth threshold and smaller than the eleventh threshold, and the access traffic value corresponding to the first website is greater than or equal to the tenth threshold and smaller than the twelfth threshold, determining that the load condition of the server cluster meets a second preset condition; the ninth threshold is less than the eleventh threshold, and the tenth threshold is less than the twelfth threshold;
or
If the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the ninth threshold and smaller than the eleventh threshold, and the access traffic value corresponding to the first website is greater than or equal to the twelfth threshold, determining that the load condition of the server cluster meets a second preset condition;
or
If the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the eleventh threshold, and the access flow value corresponding to the first website is greater than or equal to the tenth threshold and smaller than the twelfth threshold, determining that the load condition of the server cluster meets a second preset condition;
the third preset condition is as follows:
and if the load balancing equipment determines that the proportion of the access requests corresponding to the first website is greater than or equal to the eleventh threshold and the access flow value corresponding to the first website is greater than or equal to the twelfth threshold, determining that the load condition of the server cluster meets a third preset condition. In one possible implementation manner, the processing unit 702 is further configured to:
if it is determined that the historical process of the historical access request corresponding to the identifier of the first website does not exist in the server cluster, sending second indication information to a target process of the target server; the second indication information is used for indicating a target process of the target server to acquire request data corresponding to the first access request from a source station server corresponding to the first access request.
Based on the same inventive concept, the embodiment of the present invention further provides another access request distribution apparatus, where the apparatus is applied to the request distribution system shown in fig. 1, the system includes a load balancing device and a server cluster, and the server cluster includes a plurality of servers; the apparatus may be a process of a server, and as shown in fig. 8, the apparatus includes a receiving unit 801, a processing unit 802, and a sending unit 803; wherein,
a receiving unit 801, configured to receive an access request and first indication information allocated by the load balancing device, where the first indication information includes an identifier of the historical process;
a processing unit 802, configured to obtain request data corresponding to the access request according to the identifier of the historical process;
a sending unit 803, configured to send request data corresponding to the access request to a user.
In a possible implementation manner, the receiving unit 801 is further configured to:
receiving an access request and second indication information distributed by the load balancing equipment;
the processing unit 802 is further configured to:
acquiring request data corresponding to the access request from a source station server corresponding to the access request;
the sending unit 803 is further configured to:
and sending request data corresponding to the access request to a user.
The embodiment of the present application further provides an apparatus having a function of implementing the allocation method of the access request described above. This function may be implemented by hardware executing corresponding software, and in one possible design, the apparatus includes: a processor, a transceiver, and a memory; the memory is used for storing computer execution instructions, the transceiver is used for realizing the communication between the device and other communication entities, the processor and the memory are connected through the bus, and when the device runs, the processor executes the computer execution instructions stored by the memory so as to enable the device to execute the access request distribution method described above.
An embodiment of the present invention further provides a computer storage medium, where a software program is stored, and when the software program is read and executed by one or more processors, the software program implements the allocation method of the access request described in the foregoing various possible implementation manners.
Embodiments of the present invention also provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the method for allocating access requests described in the above various possible implementations.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (30)

1. The method is applied to a request distribution system, and the system comprises a load balancing device and a server cluster, wherein the server cluster comprises a plurality of servers; the method comprises the following steps:
after receiving a first access request sent by a user, the load balancing equipment determines a target process of a target server for processing the first access request from the plurality of servers; the first access request comprises an identifier of a first website to be accessed;
the load balancing equipment distributes the first access request to a target process of the target server, and after determining that a historical process of processing a historical access request corresponding to the identifier of the first website exists in the server cluster, sends first indication information to the target process of the target server; the first indication information includes an identifier of the historical process, and the first indication information is used for indicating the target process to acquire request data according to the identifier of the historical process, where the request data corresponds to the first access request.
2. The method of claim 1, wherein the load balancing device determining a target process of a target server from the plurality of servers to process the first access request comprises:
the load balancing equipment acquires the load condition of the server cluster in the current period, and if the load condition of the server cluster in the current period is determined to meet a first preset condition, a first process of a first server is determined to be a target process of the target server; the first process of the first server is used for processing an access request aiming at the first website, and the first process of the first server is selected from the plurality of servers.
3. The method of claim 1, further comprising:
if the load balancing equipment determines that the load condition of the server cluster in the current period meets a second preset condition, determining that a first process of a second server is a target process of the target server; the first process of the second server is used for processing the access request aiming at the first website, the first process of the second server is selected from a candidate server set, and the candidate server set is a server set except the first server in the server cluster.
4. The method of claim 3, wherein the load balancing device determining the first process of the second server comprises:
and the load balancing equipment acquires the load value of the process in any server in the candidate server set, and determines the process with the load value smaller than a preset threshold value as the first process of the second server.
5. The method of claim 3, further comprising:
if the load balancing equipment determines that the load condition of the server cluster in the current period meets the second preset condition and the load value of the first process of the second server is not smaller than a preset threshold value, selecting the first process of a third server from the candidate server set as a target process of the target server; and the load value of the first process of the third server is smaller than the preset threshold, and the first process of the third server is used for processing an access request aiming at the first website.
6. The method of claim 1, further comprising:
if the load balancing equipment determines that the load condition of the server cluster in the current period meets a third preset condition, determining a second process as a target process of the target server, wherein the second process is a process except the first process in the server cluster, and the load value of the second process is smaller than a preset threshold value.
7. The method according to any one of claims 2 to 6, wherein the load condition of the server cluster includes at least one of a rank of an access amount corresponding to the first website, a proportion of access requests corresponding to the first website, a total number of received access requests corresponding to the first website, and an access flow value corresponding to the first website; the access amount ranking is obtained by ranking from at least according to the total number of access requests corresponding to the received websites.
8. The method according to claim 7, wherein the first preset condition is:
if the load balancing device determines that the access amount corresponding to the first website is ranked after N, and/or the total number of the received access requests corresponding to the first website is less than a first threshold, determining that the load condition of the server cluster meets the first preset condition; n is an integer greater than or equal to 1, and is preset;
the second preset condition is as follows:
if the load balancing device determines that the access amount corresponding to the first website is ranked before N names but after M names, and the total number of the received access requests corresponding to the first website is greater than or equal to the first threshold and smaller than a second threshold, determining that the load condition of the server cluster meets a second preset condition; the first threshold is less than the second threshold; m is an integer greater than or equal to 1 and less than N, and M is preset;
or
If the load balancing device determines that the access amount corresponding to the first website is ranked before N names but after M names and the total number of the received access requests corresponding to the first website is greater than or equal to the second threshold, determining that the load condition of the server cluster meets a second preset condition;
or
If the load balancing device determines that the access amount corresponding to the first website is ranked before M, and the total number of the received access requests corresponding to the first website is greater than or equal to the first threshold and smaller than the second threshold, determining that the load condition of the server cluster meets a second preset condition;
the third preset condition is as follows:
and if the load balancing equipment determines that the access amount corresponding to the first website is ranked before M, and the total number of the received access requests corresponding to the first website is greater than or equal to the second threshold, determining that the load condition of the server cluster meets a third preset condition.
9. The method according to claim 7, wherein the first preset condition is:
if the load balancing device determines that the access traffic corresponding to the first website is ranked behind the P name, and/or the access traffic value corresponding to the first website is smaller than a third threshold, determining that the load condition of the server cluster meets the first preset condition; p is an integer greater than or equal to 1, and is preset;
the second preset condition is as follows:
if the load balancing equipment determines that the access traffic corresponding to the first website is ranked before the P name but after the Q name and the access traffic value corresponding to the first website is greater than or equal to the third threshold and smaller than a fourth threshold, determining that the load condition of the server cluster meets a second preset condition; the third threshold is less than the fourth threshold; q is an integer greater than or equal to 1 and less than P, and Q is preset;
or
If the load balancing device determines that the access traffic corresponding to the first website is ranked before the P name but after the Q name and the access traffic value corresponding to the first website is greater than or equal to the fourth threshold, determining that the load condition of the server cluster meets a second preset condition;
or
If the load balancing equipment determines that the access traffic corresponding to the first website is ranked before the Q name and the access traffic value corresponding to the first website is greater than or equal to the third threshold and smaller than the fourth threshold, determining that the load condition of the server cluster meets a second preset condition;
the third preset condition is as follows:
and if the load balancing equipment determines that the access traffic corresponding to the first website is ranked before the Q name and the access traffic value corresponding to the first website is greater than or equal to the fourth threshold, determining that the load condition of the server cluster meets a third preset condition.
10. The method according to claim 7, wherein the first preset condition is:
if the load balancing device determines that the proportion of the access requests corresponding to the first website is smaller than a fifth threshold and/or the total number of the received access requests is smaller than a sixth threshold, determining that the load condition of the server cluster meets the first preset condition;
the second preset condition is as follows:
if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the fifth threshold and smaller than a seventh threshold, and the total number of the received access requests is greater than or equal to the sixth threshold and smaller than an eighth threshold, determining that the load condition of the server cluster meets a second preset condition; the fifth threshold is less than the seventh threshold, and the sixth threshold is less than the eighth threshold;
or
If the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the fifth threshold and smaller than the seventh threshold, and the total number of the received access requests is greater than or equal to the eighth threshold, determining that the load condition of the server cluster meets a second preset condition;
or
If the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the seventh threshold, and the total number of the received access requests is greater than or equal to the sixth threshold and less than the eighth threshold, determining that the load condition of the server cluster meets a second preset condition;
the third preset condition is as follows:
and if the load balancing equipment determines that the proportion of the access requests corresponding to the first website is greater than or equal to the seventh threshold and the total number of the received access requests is greater than or equal to the eighth threshold, determining that the load condition of the server cluster meets a third preset condition.
11. The method according to claim 7, wherein the first preset condition is:
if the load balancing device determines that the proportion of the access requests corresponding to the first website is smaller than a ninth threshold and/or the access flow value corresponding to the first website is smaller than a tenth threshold, determining that the load condition of the server cluster meets the first preset condition;
the second preset condition is as follows:
if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the ninth threshold and smaller than the eleventh threshold, and the access traffic value corresponding to the first website is greater than or equal to the tenth threshold and smaller than the twelfth threshold, determining that the load condition of the server cluster meets a second preset condition; the ninth threshold is less than the eleventh threshold, and the tenth threshold is less than the twelfth threshold;
or
If the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the ninth threshold and smaller than the eleventh threshold, and the access traffic value corresponding to the first website is greater than or equal to the twelfth threshold, determining that the load condition of the server cluster meets a second preset condition;
or
If the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the eleventh threshold, and the access flow value corresponding to the first website is greater than or equal to the tenth threshold and smaller than the twelfth threshold, determining that the load condition of the server cluster meets a second preset condition;
the third preset condition is as follows:
and if the load balancing equipment determines that the proportion of the access requests corresponding to the first website is greater than or equal to the eleventh threshold and the access flow value corresponding to the first website is greater than or equal to the twelfth threshold, determining that the load condition of the server cluster meets a third preset condition.
12. The method of claim 1, further comprising:
if the load balancing equipment determines that no historical process for processing the historical access request corresponding to the identifier of the first website exists in the server cluster, sending second indication information to a target process of the target server; the second indication information is used for indicating a target process of the target server to acquire request data corresponding to the first access request from a source station server corresponding to the first access request.
13. The method is applied to a request distribution system, and the system comprises a load balancing device and a server cluster, wherein the server cluster comprises a plurality of servers; the method comprises the following steps:
the process of the server receives an access request and first indication information distributed by the load balancing equipment, wherein the first indication information comprises an identifier of the historical process;
the process of the server acquires the request data corresponding to the access request according to the identifier of the historical process;
and the process of the server sends request data corresponding to the access request to the user.
14. The method of claim 13, further comprising:
the process of the server receives the access request and the second indication information distributed by the load balancing equipment;
the process of the server acquires the request data corresponding to the access request from the source station server corresponding to the access request;
and the process of the server sends request data corresponding to the access request to the user.
15. An access request distribution device is applied to a request distribution system, and the system comprises a load balancing device and a server cluster, wherein the server cluster comprises a plurality of servers; the apparatus is the load balancing device, and the apparatus includes:
the receiving unit is used for receiving a first access request sent by a user;
a processing unit configured to determine a target process of a target server that processes the first access request from the plurality of servers; the first access request comprises an identifier of a first website to be accessed; and distributing the first access request to a target process of the target server;
a sending unit, configured to send first indication information to a target process of the target server after the processing unit determines that a historical process of a historical access request corresponding to the identifier of the first website is processed exists in the server cluster; the first indication information includes an identifier of the historical process, and the first indication information is used for indicating the target process to acquire request data according to the identifier of the historical process, where the request data corresponds to the first access request.
16. The apparatus according to claim 15, wherein the processing unit is specifically configured to:
acquiring the load condition of the server cluster in the current period, and if the load condition of the server cluster in the current period is determined to meet a first preset condition, determining that a first process of a first server is a target process of the target server; the first process of the first server is used for processing an access request aiming at the first website, and the first process of the first server is selected from the plurality of servers.
17. The apparatus of claim 15, wherein the processing unit is further configured to:
if the load condition of the server cluster in the current period is determined to meet a second preset condition, determining that a first process of a second server is a target process of the target server; the first process of the second server is used for processing the access request aiming at the first website, the first process of the second server is selected from a candidate server set, and the candidate server set is a server set except the first server in the server cluster.
18. The apparatus according to claim 17, wherein the processing unit is specifically configured to:
and acquiring a load value of a process in any server in the candidate server set, and determining the process with the load value smaller than a preset threshold as a first process of the second server.
19. The apparatus of claim 17, wherein the processing unit is further configured to:
if the load condition of the server cluster in the current period is determined to meet the second preset condition, and the load value of the first process of the second server is not smaller than a preset threshold value, selecting the first process of a third server from the candidate server set as a target process of the target server; and the load value of the first process of the third server is smaller than the preset threshold, and the first process of the third server is used for processing an access request aiming at the first website.
20. The apparatus of claim 15, wherein the processing unit is further configured to:
if the load condition of the server cluster in the current period is determined to meet a third preset condition, determining a second process as a target process of the target server, wherein the second process is a process except the first process in the server cluster, and the load value of the second process is smaller than a preset threshold value.
21. The apparatus according to any one of claims 16 to 20, wherein the load condition of the server cluster includes at least one of a rank of an access amount corresponding to the first website, a proportion of access requests corresponding to the first website, a total number of received access requests corresponding to the first website, and an access flow value corresponding to the first website; the access amount ranking is obtained by ranking from at least according to the total number of access requests corresponding to the received websites.
22. The apparatus of claim 21, wherein the first preset condition is:
if the load balancing device determines that the access amount corresponding to the first website is ranked after N, and/or the total number of the received access requests corresponding to the first website is less than a first threshold, determining that the load condition of the server cluster meets the first preset condition; n is an integer greater than or equal to 1, and is preset;
the second preset condition is as follows:
if the load balancing device determines that the access amount corresponding to the first website is ranked before N names but after M names, and the total number of the received access requests corresponding to the first website is greater than or equal to the first threshold and smaller than a second threshold, determining that the load condition of the server cluster meets a second preset condition; the first threshold is less than the second threshold; m is an integer greater than or equal to 1 and less than N, and M is preset;
or
If the load balancing device determines that the access amount corresponding to the first website is ranked before N names but after M names and the total number of the received access requests corresponding to the first website is greater than or equal to the second threshold, determining that the load condition of the server cluster meets a second preset condition;
or
If the load balancing device determines that the access amount corresponding to the first website is ranked before M, and the total number of the received access requests corresponding to the first website is greater than or equal to the first threshold and smaller than the second threshold, determining that the load condition of the server cluster meets a second preset condition;
the third preset condition is as follows:
and if the load balancing equipment determines that the access amount corresponding to the first website is ranked before M, and the total number of the received access requests corresponding to the first website is greater than or equal to the second threshold, determining that the load condition of the server cluster meets a third preset condition.
23. The apparatus of claim 21, wherein the first preset condition is:
if the load balancing device determines that the access traffic corresponding to the first website is ranked behind the P name, and/or the access traffic value corresponding to the first website is smaller than a third threshold, determining that the load condition of the server cluster meets the first preset condition; p is an integer greater than or equal to 1, and is preset;
the second preset condition is as follows:
if the load balancing equipment determines that the access traffic corresponding to the first website is ranked before the P name but after the Q name and the access traffic value corresponding to the first website is greater than or equal to the third threshold and smaller than a fourth threshold, determining that the load condition of the server cluster meets a second preset condition; the third threshold is less than the fourth threshold; q is an integer greater than or equal to 1 and less than P, and Q is preset;
or
If the load balancing device determines that the access traffic corresponding to the first website is ranked before the P name but after the Q name and the access traffic value corresponding to the first website is greater than or equal to the fourth threshold, determining that the load condition of the server cluster meets a second preset condition;
or
If the load balancing equipment determines that the access traffic corresponding to the first website is ranked before the Q name and the access traffic value corresponding to the first website is greater than or equal to the third threshold and smaller than the fourth threshold, determining that the load condition of the server cluster meets a second preset condition;
the third preset condition is as follows:
and if the load balancing equipment determines that the access traffic corresponding to the first website is ranked before the Q name and the access traffic value corresponding to the first website is greater than or equal to the fourth threshold, determining that the load condition of the server cluster meets a third preset condition.
24. The apparatus of claim 21, wherein the first preset condition is:
if the load balancing device determines that the proportion of the access requests corresponding to the first website is smaller than a fifth threshold and/or the total number of the received access requests is smaller than a sixth threshold, determining that the load condition of the server cluster meets the first preset condition;
the second preset condition is as follows:
if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the fifth threshold and smaller than a seventh threshold, and the total number of the received access requests is greater than or equal to the sixth threshold and smaller than an eighth threshold, determining that the load condition of the server cluster meets a second preset condition; the fifth threshold is less than the seventh threshold, and the sixth threshold is less than the eighth threshold;
or
If the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the fifth threshold and smaller than the seventh threshold, and the total number of the received access requests is greater than or equal to the eighth threshold, determining that the load condition of the server cluster meets a second preset condition;
or
If the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the seventh threshold, and the total number of the received access requests is greater than or equal to the sixth threshold and less than the eighth threshold, determining that the load condition of the server cluster meets a second preset condition;
the third preset condition is as follows:
and if the load balancing equipment determines that the proportion of the access requests corresponding to the first website is greater than or equal to the seventh threshold and the total number of the received access requests is greater than or equal to the eighth threshold, determining that the load condition of the server cluster meets a third preset condition.
25. The apparatus of claim 21, wherein the first preset condition is:
if the load balancing device determines that the proportion of the access requests corresponding to the first website is smaller than a ninth threshold and/or the access flow value corresponding to the first website is smaller than a tenth threshold, determining that the load condition of the server cluster meets the first preset condition;
the second preset condition is as follows:
if the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the ninth threshold and smaller than the eleventh threshold, and the access traffic value corresponding to the first website is greater than or equal to the tenth threshold and smaller than the twelfth threshold, determining that the load condition of the server cluster meets a second preset condition; the ninth threshold is less than the eleventh threshold, and the tenth threshold is less than the twelfth threshold;
or
If the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the ninth threshold and smaller than the eleventh threshold, and the access traffic value corresponding to the first website is greater than or equal to the twelfth threshold, determining that the load condition of the server cluster meets a second preset condition;
or
If the load balancing device determines that the proportion of the access requests corresponding to the first website is greater than or equal to the eleventh threshold, and the access flow value corresponding to the first website is greater than or equal to the tenth threshold and smaller than the twelfth threshold, determining that the load condition of the server cluster meets a second preset condition;
the third preset condition is as follows:
and if the load balancing equipment determines that the proportion of the access requests corresponding to the first website is greater than or equal to the eleventh threshold and the access flow value corresponding to the first website is greater than or equal to the twelfth threshold, determining that the load condition of the server cluster meets a third preset condition.
26. The apparatus of claim 15, wherein the processing unit is further configured to:
if it is determined that the historical process of the historical access request corresponding to the identifier of the first website does not exist in the server cluster, sending second indication information to a target process of the target server; the second indication information is used for indicating a target process of the target server to acquire request data corresponding to the first access request from a source station server corresponding to the first access request.
27. An access request distribution device is applied to a request distribution system, and the system comprises a load balancing device and a server cluster, wherein the server cluster comprises a plurality of servers; the apparatus is a process of a server, the apparatus comprising:
a receiving unit, configured to receive an access request and first indication information allocated by the load balancing device, where the first indication information includes an identifier of the historical process;
the processing unit is used for acquiring request data corresponding to the access request according to the identifier of the historical process;
and the sending unit is used for sending the request data corresponding to the access request to the user.
28. The apparatus of claim 27, wherein the receiving unit is further configured to:
receiving an access request and second indication information distributed by the load balancing equipment;
the processing unit is further to:
acquiring request data corresponding to the access request from a source station server corresponding to the access request;
the sending unit is further configured to:
and sending request data corresponding to the access request to a user.
29. A computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 14.
30. A computer device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to perform the method of any of claims 1 to 14 in accordance with the obtained program.
CN201811458103.7A 2018-11-30 2018-11-30 Access request distribution method and device, storage medium and computer equipment Active CN109327550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811458103.7A CN109327550B (en) 2018-11-30 2018-11-30 Access request distribution method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811458103.7A CN109327550B (en) 2018-11-30 2018-11-30 Access request distribution method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN109327550A true CN109327550A (en) 2019-02-12
CN109327550B CN109327550B (en) 2022-02-18

Family

ID=65256132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811458103.7A Active CN109327550B (en) 2018-11-30 2018-11-30 Access request distribution method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN109327550B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176848A (en) * 2019-12-31 2020-05-19 北大方正集团有限公司 Processing method, device and equipment of cluster task and storage medium
CN111177513A (en) * 2019-12-31 2020-05-19 北京百度网讯科技有限公司 Method and device for determining abnormal access address, electronic equipment and storage medium
CN111176830A (en) * 2019-12-03 2020-05-19 支付宝实验室(新加坡)有限公司 Information flow distribution method and device and server system
CN111338575A (en) * 2020-02-20 2020-06-26 苏州浪潮智能科技有限公司 Storage service quality control method, device, equipment and storage medium
CN111367654A (en) * 2020-02-12 2020-07-03 吉利汽车研究院(宁波)有限公司 Data processing method and device based on heterogeneous cloud platform
CN111556125A (en) * 2020-04-24 2020-08-18 北京奇艺世纪科技有限公司 Access request distribution method, load balancing equipment and electronic equipment
WO2020164612A1 (en) * 2019-02-15 2020-08-20 贵州白山云科技股份有限公司 Smart hotspot scattering method and apparatus, storage medium, and computer device
CN111726266A (en) * 2020-06-29 2020-09-29 深圳壹账通智能科技有限公司 Hot spot data barreling method and system and computer equipment
CN112019937A (en) * 2019-05-30 2020-12-01 腾讯科技(深圳)有限公司 Online answer live broadcasting method and device, server and storage medium
CN112740642A (en) * 2020-08-31 2021-04-30 华为技术有限公司 Communication method and multi-access edge computing server
CN112953984A (en) * 2019-12-10 2021-06-11 贵州白山云科技股份有限公司 Data processing method, device, medium and system
CN113242307A (en) * 2021-05-18 2021-08-10 北京达佳互联信息技术有限公司 Service request processing method, device, server and storage medium
CN113630329A (en) * 2021-07-20 2021-11-09 湖北美和易思教育科技有限公司 Load balancing method and system based on user access amount and readable storage medium
CN113703953A (en) * 2020-05-20 2021-11-26 阿里巴巴集团控股有限公司 Load balancing method, device, equipment and storage medium
CN113742073A (en) * 2021-09-06 2021-12-03 中国西安卫星测控中心 LSB interface-based cluster control method
CN113805802A (en) * 2021-08-11 2021-12-17 网宿科技股份有限公司 Method, server and storage medium for accessing current limit
CN114003337A (en) * 2021-10-12 2022-02-01 深圳思为科技有限公司 Access request distribution method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413156A (en) * 2010-09-21 2012-04-11 腾讯科技(深圳)有限公司 Distributed data storage system and method
CN103605480A (en) * 2013-10-29 2014-02-26 新浪网技术(中国)有限公司 Web server and method for Web server disk resource access control
CN107368362A (en) * 2017-06-29 2017-11-21 上海阅文信息技术有限公司 A kind of multithreading/multi-process for disk read-write data is without lock processing method and system
CN107645386A (en) * 2017-09-25 2018-01-30 网宿科技股份有限公司 A kind of method and apparatus for obtaining data resource
CN107819825A (en) * 2017-10-11 2018-03-20 深圳市买买提乐购金融服务有限公司 A kind of service scheduling method, device and electronic equipment
CN108132835A (en) * 2017-12-29 2018-06-08 五八有限公司 Task requests processing method, device and system based on multi-process
US10097627B1 (en) * 2015-06-16 2018-10-09 Amazon Technologies, Inc. Computer resource allocation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413156A (en) * 2010-09-21 2012-04-11 腾讯科技(深圳)有限公司 Distributed data storage system and method
CN103605480A (en) * 2013-10-29 2014-02-26 新浪网技术(中国)有限公司 Web server and method for Web server disk resource access control
US10097627B1 (en) * 2015-06-16 2018-10-09 Amazon Technologies, Inc. Computer resource allocation
CN107368362A (en) * 2017-06-29 2017-11-21 上海阅文信息技术有限公司 A kind of multithreading/multi-process for disk read-write data is without lock processing method and system
CN107645386A (en) * 2017-09-25 2018-01-30 网宿科技股份有限公司 A kind of method and apparatus for obtaining data resource
CN107819825A (en) * 2017-10-11 2018-03-20 深圳市买买提乐购金融服务有限公司 A kind of service scheduling method, device and electronic equipment
CN108132835A (en) * 2017-12-29 2018-06-08 五八有限公司 Task requests processing method, device and system based on multi-process

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11562042B2 (en) 2019-02-15 2023-01-24 Guizhou Baishancloud Technology Co., Ltd. Intelligent hotspot scattering method, apparatus, storage medium, and computer device
WO2020164612A1 (en) * 2019-02-15 2020-08-20 贵州白山云科技股份有限公司 Smart hotspot scattering method and apparatus, storage medium, and computer device
CN112019937A (en) * 2019-05-30 2020-12-01 腾讯科技(深圳)有限公司 Online answer live broadcasting method and device, server and storage medium
CN111176830B (en) * 2019-12-03 2024-04-26 先进新星技术(新加坡)控股有限公司 Information flow distribution method, device and server system
CN111176830A (en) * 2019-12-03 2020-05-19 支付宝实验室(新加坡)有限公司 Information flow distribution method and device and server system
CN112953984B (en) * 2019-12-10 2023-07-28 贵州白山云科技股份有限公司 Data processing method, device, medium and system
CN112953984A (en) * 2019-12-10 2021-06-11 贵州白山云科技股份有限公司 Data processing method, device, medium and system
CN111176848B (en) * 2019-12-31 2023-05-26 北大方正集团有限公司 Cluster task processing method, device, equipment and storage medium
CN111177513B (en) * 2019-12-31 2023-10-31 北京百度网讯科技有限公司 Determination method and device of abnormal access address, electronic equipment and storage medium
CN111177513A (en) * 2019-12-31 2020-05-19 北京百度网讯科技有限公司 Method and device for determining abnormal access address, electronic equipment and storage medium
CN111176848A (en) * 2019-12-31 2020-05-19 北大方正集团有限公司 Processing method, device and equipment of cluster task and storage medium
CN111367654A (en) * 2020-02-12 2020-07-03 吉利汽车研究院(宁波)有限公司 Data processing method and device based on heterogeneous cloud platform
CN111338575A (en) * 2020-02-20 2020-06-26 苏州浪潮智能科技有限公司 Storage service quality control method, device, equipment and storage medium
CN111556125A (en) * 2020-04-24 2020-08-18 北京奇艺世纪科技有限公司 Access request distribution method, load balancing equipment and electronic equipment
CN111556125B (en) * 2020-04-24 2022-05-17 北京奇艺世纪科技有限公司 Access request distribution method, load balancing equipment and electronic equipment
CN113703953A (en) * 2020-05-20 2021-11-26 阿里巴巴集团控股有限公司 Load balancing method, device, equipment and storage medium
CN111726266B (en) * 2020-06-29 2022-07-22 深圳壹账通智能科技有限公司 Hot spot data barreling method and system and computer equipment
CN111726266A (en) * 2020-06-29 2020-09-29 深圳壹账通智能科技有限公司 Hot spot data barreling method and system and computer equipment
CN112740642A (en) * 2020-08-31 2021-04-30 华为技术有限公司 Communication method and multi-access edge computing server
CN113242307B (en) * 2021-05-18 2023-04-25 北京达佳互联信息技术有限公司 Service request processing method, device, server and storage medium
CN113242307A (en) * 2021-05-18 2021-08-10 北京达佳互联信息技术有限公司 Service request processing method, device, server and storage medium
CN113630329A (en) * 2021-07-20 2021-11-09 湖北美和易思教育科技有限公司 Load balancing method and system based on user access amount and readable storage medium
CN113630329B (en) * 2021-07-20 2024-05-17 武汉美和易思数字科技有限公司 Load balancing method and system based on user access amount and readable storage medium
CN113805802A (en) * 2021-08-11 2021-12-17 网宿科技股份有限公司 Method, server and storage medium for accessing current limit
CN113742073B (en) * 2021-09-06 2023-01-24 中国西安卫星测控中心 LSB interface-based cluster control method
CN113742073A (en) * 2021-09-06 2021-12-03 中国西安卫星测控中心 LSB interface-based cluster control method
CN114003337A (en) * 2021-10-12 2022-02-01 深圳思为科技有限公司 Access request distribution method and device

Also Published As

Publication number Publication date
CN109327550B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN109327550B (en) Access request distribution method and device, storage medium and computer equipment
CN102882939B (en) Load balancing method, load balancing equipment and extensive domain acceleration access system
CN107026907B (en) Load balancing method, load balancer and load balancing system
CN106790324B (en) Content distribution method, virtual server management method, cloud platform and system
US20190034084A1 (en) Selecting controllers based on affinity between access devices and storage segments
US9407570B2 (en) Method, apparatus, and system for allocating CDN volume
CN105959405B (en) CDN video scheduling system, method and CDN dispatch server and client
CN111327461B (en) Domain name management method, device, equipment and medium based on CDN system
EP3211857A1 (en) Http scheduling system and method of content delivery network
EP3108644A1 (en) Content delivery network architecture with edge proxy
CN104284201A (en) Video content processing method and device
CN110830565B (en) Resource downloading method, device, system, electronic equipment and storage medium
CN109873855A (en) A kind of resource acquiring method and system based on block chain network
CN106302640A (en) Data request processing method and device
CN109951543A (en) A kind of data search method of CDN node, device and the network equipment
CN112799839B (en) Request processing method, request processing device, computer readable storage medium and electronic equipment
US20200084121A1 (en) Node of a Network and a Method of Operating the Same for Resource Distribution
CN106131244A (en) A kind of message transmitting method and device
JP2005182641A (en) Dynamic load distribution system and dynamic load distribution method
CN113641505B (en) Resource allocation control method and device for server cluster
CN109413117B (en) Distributed data calculation method, device, server and computer storage medium
CN112019451B (en) Bandwidth allocation method, debugging network element, local cache server and computing device
CN103747043A (en) CDN server dispatching method, CDN control center and system
CN105187483B (en) Distribute the method and device of cloud computing resources
CN113301445B (en) Address allocation method and device for content distribution network

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