CN115190180A - Method and device for scheduling network resource request during sudden increase of network resource request - Google Patents

Method and device for scheduling network resource request during sudden increase of network resource request Download PDF

Info

Publication number
CN115190180A
CN115190180A CN202210762776.1A CN202210762776A CN115190180A CN 115190180 A CN115190180 A CN 115190180A CN 202210762776 A CN202210762776 A CN 202210762776A CN 115190180 A CN115190180 A CN 115190180A
Authority
CN
China
Prior art keywords
network bandwidth
cdn
resource request
cache server
bandwidth occupation
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.)
Pending
Application number
CN202210762776.1A
Other languages
Chinese (zh)
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.)
Letv Cloud Network Technology Beijing Co ltd
Original Assignee
LeCloud Computing 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 LeCloud Computing Co Ltd filed Critical LeCloud Computing Co Ltd
Priority to CN202210762776.1A priority Critical patent/CN115190180A/en
Publication of CN115190180A publication Critical patent/CN115190180A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the disclosure provides a network resource request scheduling method and device when a network resource request suddenly increases. The method is applied to the CDN cache server and comprises the following steps: detecting the occupied amount of the network bandwidth; and if the network bandwidth occupation amount is detected to be higher than or equal to the preset network bandwidth occupation threshold, redirecting the received network resource request to a CDN cache server of which the network bandwidth occupation amount is lower than the preset network bandwidth occupation threshold in the CDN node. In this way, under the extreme condition of sudden increase of network resource requests, it can be ensured that the network bandwidth of the CDN cache server is not full, thereby ensuring the CDN service quality.

Description

Method and apparatus for scheduling network resource requests during network resource request surges
Technical Field
The present disclosure relates to the field of data transmission technologies, and in particular, to a method and an apparatus for scheduling network resource requests when the network resource requests suddenly increase.
Background
A Content Delivery Network (CDN) is a layer of intelligent virtual Network built on the basis of the existing internet, and a CDN cache server is deployed at each location of the Network to implement Delivery of source station Content to all CDN cache servers, so that a user can obtain needed Content nearby.
Currently, a CDN scheduling device searches for a suitable CDN cache server for a user to issue a network resource to the user, specifically, a client sends a network resource request to a determined CDN cache server, and the CDN cache server returns a corresponding network resource. However, if the network resource requests received by the CDN cache server within a certain time are too many, the bandwidth of the CDN cache server will be filled with burst traffic, thereby affecting the quality of service.
Disclosure of Invention
The present disclosure provides a network resource request scheduling method and device when a network resource request suddenly increases, which can ensure that a network bandwidth of a CDN cache server is not filled under an extreme condition of sudden increase of the network resource request, thereby ensuring the quality of CDN service.
In a first aspect, an embodiment of the present disclosure provides a method for scheduling a network resource request when the network resource request suddenly increases, where the method is applied to a CDN cache server, and includes:
detecting the occupied amount of the network bandwidth;
and if the network bandwidth occupation amount is detected to be higher than or equal to the preset network bandwidth occupation threshold, redirecting the received network resource request to a CDN cache server of which the network bandwidth occupation amount is lower than the preset network bandwidth occupation threshold in the CDN node.
In some implementations of the first aspect, detecting network bandwidth occupancy includes:
and detecting the occupation amount of the network bandwidth in real time.
In some implementations of the first aspect, the network bandwidth occupation amounts of other CDN cache servers in the CDN node are obtained from the CDN scheduling device.
In some implementation manners of the first aspect, each CDN cache server in a CDN node to which the CDN cache server belongs sets a corresponding preset network bandwidth occupation threshold value respectively.
In some implementation manners of the first aspect, if it is detected that the network bandwidth occupation amount is greater than or equal to a preset network bandwidth occupation threshold, redirecting the received network resource request to a CDN cache server in the CDN node to which the network bandwidth occupation amount is lower than the preset network bandwidth occupation threshold includes:
if the network bandwidth occupation is detected to be higher than or equal to a preset network bandwidth occupation threshold, selecting a CDN cache server meeting a preset condition from CDN cache servers of which the network bandwidth occupation is lower than the preset network bandwidth occupation threshold in CDN nodes;
and sending a redirection instruction to the user terminal sending the network resource request so that the user terminal sends the network resource request to the selected CDN cache server according to the redirection instruction.
In some implementations of the first aspect, the method further comprises:
and sending a redirection record of the network resource request to the CDN scheduling device, and informing the CDN scheduling device to stop distributing the network resource request to the CDN cache server until the network bandwidth occupation amount uploaded by the CDN cache server is lower than a preset network bandwidth occupation threshold value.
In some implementations of the first aspect, the method further comprises:
and if the network bandwidth occupation amount of other CDN cache servers in the CDN node is higher than or equal to a preset network bandwidth occupation threshold value, redirecting the received network resource request to the CDN cache server in the corresponding backup node.
In a second aspect, an embodiment of the present disclosure provides a network resource request scheduling device when a network resource request suddenly increases, where the device is applied to a CDN cache server, and includes:
the detection module is used for detecting the occupation amount of the network bandwidth;
and the redirection module is used for redirecting the received network resource request to a CDN cache server of which the network bandwidth occupation amount is lower than a preset network bandwidth occupation threshold value in the CDN node if the network bandwidth occupation amount is detected to be higher than or equal to the preset network bandwidth occupation threshold value.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described above.
In a fourth aspect, the disclosed embodiments provide a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method as described above.
In the disclosure, the CDN cache server may detect a network bandwidth occupation amount of itself, and redirect the received network resource request to the CDN cache server in the CDN node where the network bandwidth occupation amount is lower than a preset network bandwidth occupation threshold if the network bandwidth occupation amount of itself is detected to be higher than or equal to the preset network bandwidth occupation threshold, so that it is ensured that the network bandwidth of the CDN cache server is not filled under an extreme condition of sudden increase of the network resource request, and the CDN service quality is ensured.
It should be understood that the statements herein reciting aspects are not intended to limit the critical or essential features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. The accompanying drawings are included to provide a further understanding of the present disclosure, and are not incorporated in or constitute a part of this specification, wherein like reference numerals refer to like or similar elements throughout the several views and wherein:
FIG. 1 illustrates a schematic diagram of an exemplary operating environment in which embodiments of the present disclosure can be implemented;
fig. 2 is a flowchart illustrating a network resource request scheduling method according to an embodiment of the present disclosure;
fig. 3 is a block diagram illustrating a network resource request scheduling apparatus according to an embodiment of the present disclosure;
FIG. 4 sets forth a block diagram of an exemplary electronic device capable of implementing embodiments of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In addition, the term "and/or" herein is only one kind of association relationship describing the association object, and means that there may be three kinds of relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
To solve the problems in the background art, embodiments of the present disclosure provide a method and an apparatus for scheduling network resource requests when the network resource requests suddenly increase. Specifically, the CDN cache server may detect a network bandwidth occupation amount of itself, and redirect the received network resource request to the CDN cache server in the CDN node where the network bandwidth occupation amount is lower than a preset network bandwidth occupation threshold if the network bandwidth occupation amount of itself is detected to be higher than or equal to the preset network bandwidth occupation threshold, so that it is ensured that the network bandwidth of the CDN cache server is not filled under an extreme condition of sudden increase of the network resource request, and the CDN service quality is ensured.
The following describes in detail a network resource request scheduling method, apparatus, device, and storage medium provided in the embodiments of the present disclosure with specific embodiments in conjunction with the accompanying drawings.
FIG. 1 illustrates a schematic diagram of an exemplary operating environment in which embodiments of the present disclosure can be implemented, as shown in FIG. 1, operating environment 100 may include: the system comprises a user terminal, a CDN cache server and CDN scheduling equipment.
The user terminal may be a mobile electronic device or a non-mobile electronic device. For example, the Mobile electronic device may be a Mobile phone, a tablet Computer, a notebook Computer, a palmtop Computer, an Ultra-Mobile Personal Computer (UMPC), or the like, and the non-Mobile electronic device may be a Personal Computer (PC), a super Computer, a smart television, or the like.
The CDN cache server is a server in a CDN cache node, and is used to cache resources such as pictures, music, videos, files in a website (e.g., html files, css files, js files), and software installation packages. It can be known that a plurality of CDN cache servers may be deployed in the CDN cache node.
The CDN scheduling device is a Load balancing device in the CDN, such as a Global Server Load Balance (GSLB).
As an example, the CDN cache server detects the network bandwidth occupation amount of itself in real time, and if it is detected that the network bandwidth occupation amount of itself is higher than or equal to a preset network bandwidth occupation threshold, determines a CDN cache server in which the network bandwidth occupation amount is lower than the preset network bandwidth occupation threshold in the CDN node to which the network bandwidth occupation amount of the CDN cache server belongs according to the network bandwidth occupation amounts of other CDN cache servers in the CDN node to which the CDN cache server is obtained from the CDN scheduling device, and redirects a network resource request sent by the user terminal to the CDN cache server in which the network bandwidth occupation amount is lower than the preset network bandwidth occupation threshold in the CDN node to which the network bandwidth occupation amount is lower. Therefore, the network bandwidth of the CDN cache server can be ensured not to be filled under the extreme condition that the network resource request is suddenly increased, and the CDN service quality is ensured.
Fig. 2 shows a flowchart of a network resource request scheduling method in sudden increase of network resource requests according to an embodiment of the present disclosure, and as shown in fig. 2, the network resource request scheduling method 200 may include the following steps:
s210, the user terminal sends a network resource request to the CDN cache server.
The network resource request is used for requesting resources such as pictures, music, videos, files (html, css, js) in a website, and software installation packages, and is not limited herein.
It should be noted that before sending the network resource request, the CDN scheduling device needs to select the CDN cache server according to the load balancing policy.
And S220, the CDN cache server receives the network resource request, detects the occupied amount of the network bandwidth in real time and improves the detection accuracy.
The network bandwidth occupation amount may refer to a ratio of the used network bandwidth to the total network bandwidth or the upper limit network bandwidth, or may refer to how much network bandwidth is used.
And S230, if the network bandwidth occupation amount is detected to be higher than or equal to a preset network bandwidth occupation threshold, the CDN cache server sends a network bandwidth occupation amount request to the CDN scheduling equipment.
Illustratively, the preset network bandwidth occupation threshold may be 95%, 90%, 85%, etc. of the total network bandwidth or the upper limit network bandwidth, and the network bandwidth occupation request may be sent in real time or at regular time, which is not limited herein.
And S240, the CDN scheduling device receives the network bandwidth occupation amount request, responds to the network bandwidth occupation amount request, and sends the network bandwidth occupation amount reported by other CDN cache servers in the CDN node to the CDN cache server.
In some embodiments, each CDN cache server in the CDN node may report the network bandwidth occupation amount of itself to the CDN scheduling device in real time by calling the HTTP interface.
And S250, the CDN cache server receives the network bandwidth occupation amount of other CDN cache servers, and determines the CDN cache server of which the network bandwidth occupation amount is lower than a preset network bandwidth occupation threshold value in the CDN node according to the received network bandwidth occupation amount of other CDN cache servers.
As an example, each CDN cache server in the CDN node may set a corresponding preset network bandwidth occupation threshold, respectively, so as to fully utilize the bandwidth of each CDN cache server.
For example, a preset network bandwidth occupation threshold corresponding to each CDN cache server in the CDN node may be configured in the CDN scheduling device, and then the CDN cache server may obtain the preset network bandwidth occupation threshold corresponding to each CDN cache server in the CDN node from the CDN scheduling device in advance.
And S260, the CDN cache server redirects the received network resource request to a CDN cache server of which the network bandwidth occupation amount is lower than a preset network bandwidth occupation threshold value in the CDN node.
In some embodiments, the CDN cache server may select a CDN cache server that meets a preset condition from CDN cache servers in which the network bandwidth occupation amount of the CDN node is lower than a preset network bandwidth occupation threshold.
The preset condition can be that the occupied amount of the network bandwidth is minimum; or the difference between the network bandwidth occupation amount and the preset network bandwidth occupation threshold is the largest, and no limitation is made here.
And then sending a redirection instruction to the user terminal so that the user terminal can quickly send a network resource request to the selected CDN cache server according to the redirection instruction.
Specifically, a redirection instruction may be sent to the user terminal according to the IP address of the selected CDN cache server, so that the user terminal sends the network resource request to the selected CDN cache server according to the IP address in the redirection instruction.
And sending a redirection instruction to the user terminal through the CDN scheduling device according to the IP address of the selected CDN cache server, so that the user terminal sends a network resource request to the selected CDN cache server according to the IP address in the redirection instruction.
Alternatively, the redirect instruction may be an HTTP 302 instruction, without limitation.
According to the embodiment of the disclosure, the CDN cache server may detect a network bandwidth occupation amount of itself, and redirect the received network resource request to the CDN cache server in the CDN node to which the network bandwidth occupation amount is lower than a preset network bandwidth occupation threshold if the network bandwidth occupation amount of itself is detected to be higher than or equal to the preset network bandwidth occupation threshold, so that it may be ensured that the network bandwidth of the CDN cache server is not filled under an extreme condition of sudden increase of the network resource request, and the CDN service quality is ensured.
In some embodiments, in order to further avoid that the CDN cache server is full of network bandwidth to affect the quality of service, after the received network resource request is redirected to another CDN cache server, the CDN cache server may further send a redirection record of the network resource request to the CDN scheduling device, and notify the CDN scheduling device to stop allocating the network resource request to the CDN cache server until the network bandwidth occupancy uploaded by the CDN cache server is lower than a preset network bandwidth occupancy threshold.
It should be noted that, if the network bandwidth occupation amount of the CDN cache server is lower than the preset network bandwidth occupation threshold, the CDN scheduling device reallocates the network resource request to the CDN cache server, and the CDN cache server processes the network resource request normally, and does not redirect.
In other embodiments, if the network bandwidth occupation amounts of other CDN cache servers in the CDN node are all higher than or equal to the preset network bandwidth occupation threshold, the CDN cache servers may redirect the received network resource request to a CDN cache server in the corresponding backup node, so as to further ensure that the network bandwidth of the CDN cache server is not filled.
The following may explain the network resource request scheduling method provided by the present disclosure in detail with reference to a specific embodiment, specifically as follows:
suppose that 5 CDN cache servers, namely a server 1, a server 2, a server 3, a server 4, and a server 5, exist in a certain CDN node, and each server detects its own network bandwidth occupation amount in real time and regularly acquires the network bandwidth occupation amounts reported by other servers from a CDN scheduling device.
If the server 1 detects that the current network bandwidth occupation amount of the server 1 is 96% and is higher than a corresponding preset network bandwidth occupation threshold value (95%), it is determined that the network bandwidth occupation amount of the server 1 is too high and is unavailable at the moment, and the server needs to be selected to process the network resource request instead.
Suppose that the network bandwidth occupation amount of the server 2, the network bandwidth occupation amount of the server 3, the network bandwidth occupation amount of the server 4 and the network bandwidth occupation amount of the server 5, which are acquired by the server 1 from the CDN scheduling device, are 80%, 75%, 65% and 97%. The preset network bandwidth occupation threshold corresponding to the server 2 is 90%, the preset network bandwidth occupation threshold corresponding to the server 3 is 95%, the preset network bandwidth occupation threshold corresponding to the server 4 is 80%, and the preset network bandwidth occupation threshold corresponding to the server 5 is 95%.
At this time, the server 1 may determine that the server 2, the server 3, and the server 4 are respectively lower than the respective corresponding preset network bandwidth occupation thresholds, and respectively calculate the difference between the respective network bandwidth occupation amounts of the server 2, the server 3, and the server 4 and the preset network bandwidth occupation thresholds, and calculate that the difference corresponding to the server 2 is 10%, the difference corresponding to the server 3 is 20%, and the difference corresponding to the server 4 is 15%, so that the server 3 with the largest difference may be selected to process the network resource request received by itself.
Next, the server 1 redirects the received network resource request to the server 3, sends a redirection record of the network resource request to the CDN scheduling device, and notifies the CDN scheduling device to stop allocating the network resource request to the server 1 until the occupied amount of the network bandwidth uploaded by the CDN cache server is lower than a preset network bandwidth occupation threshold, so that it can be ensured that the network bandwidth of the CDN cache server is not filled under an extreme condition of sudden increase of the network resource request, and the quality of service of the CDN is ensured.
It is noted that while for simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
The above is a description of embodiments of the method, and the embodiments of the apparatus are further described below.
Fig. 3 is a block diagram of a network resource request scheduling apparatus in sudden increase of network resource requests according to an embodiment of the present disclosure, and as shown in fig. 3, the network resource request scheduling apparatus 300 may be applied to a CDN cache server, and includes:
the detecting module 310 is configured to detect a network bandwidth occupation amount.
The redirecting module 320 is configured to redirect the received network resource request to a CDN cache server in the CDN node where the network bandwidth occupation amount is lower than a preset network bandwidth occupation threshold if it is detected that the network bandwidth occupation amount is higher than or equal to the preset network bandwidth occupation threshold.
In some embodiments, the detection module 310 is specifically configured to:
and detecting the occupied network bandwidth in real time.
In some embodiments, the network bandwidth occupation amounts of other CDN cache servers in the CDN node are obtained from a CDN scheduling device.
In some embodiments, each CDN cache server in the CDN node to which the CDN cache server belongs sets a corresponding preset network bandwidth occupation threshold.
In some embodiments, the redirection module 320 is specifically configured to:
and if the network bandwidth occupation is detected to be higher than or equal to a preset network bandwidth occupation threshold, selecting a CDN cache server meeting a preset condition from CDN cache servers of which the network bandwidth occupation is lower than the preset network bandwidth occupation threshold in the CDN nodes.
And sending a redirection instruction to the user terminal sending the network resource request so that the user terminal sends the network resource request to the selected CDN cache server according to the redirection instruction.
In some embodiments, the network resource request scheduling device 300 further includes:
and the sending module is used for sending a redirection record of the network resource request to the CDN scheduling equipment and informing the CDN scheduling equipment to stop distributing the network resource request to the CDN cache server until the occupied amount of the network bandwidth uploaded by the CDN cache server is lower than a preset network bandwidth occupied threshold.
In some embodiments, the redirecting module 320 is further configured to redirect the received network resource request to a CDN cache server in a corresponding backup node if the network bandwidth occupation amount of other CDN cache servers in the CDN node is higher than or equal to a preset network bandwidth occupation threshold.
It can be understood that each module/unit in the network resource request scheduling apparatus 300 shown in fig. 3 has a function of implementing each step in the network resource request scheduling method 200 provided in the embodiment of the present disclosure, and can achieve the corresponding technical effect, and for brevity, no further description is provided here.
FIG. 4 illustrates a block diagram of an electronic device that may be used to implement embodiments of the present disclosure. The electronic device 400 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device 400 may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 4, the electronic device 400 may include a computing unit 401, which may perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 402 or a computer program loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the electronic apparatus 400 can also be stored. The calculation unit 401, the ROM402, and the RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
A number of components in the electronic device 400 are connected to the I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, or the like; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408 such as a magnetic disk, optical disk, or the like; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 401 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 401 performs the various methods and processes described above, such as the method 200. For example, in some embodiments, the method 200 may be implemented as a computer program product comprising a computer program tangibly embodied in a computer-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 400 via the ROM402 and/or the communication unit 409. When the computer program is loaded into RAM403 and executed by computing unit 401, one or more steps of method 200 described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the method 200 by any other suitable means (e.g., by means of firmware).
The various embodiments described herein above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, causes the functions/acts specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a computer-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a computer-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the present disclosure also provides a non-transitory computer readable storage medium storing computer instructions, where the computer instructions are used to enable a computer to execute the method 200 and achieve the corresponding technical effects achieved by the method according to the embodiments of the present disclosure, and for brevity, the detailed description is omitted here.
Additionally, the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the method 200.
To provide for interaction with a user, the above-described embodiments may be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The embodiments described above may be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user may interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server combining a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (10)

1. A network resource request scheduling method when network resource requests suddenly increase is characterized in that the method is applied to a CDN cache server and comprises the following steps:
detecting the occupied amount of the network bandwidth;
and if the network bandwidth occupation is detected to be higher than or equal to a preset network bandwidth occupation threshold, redirecting the received network resource request to a CDN cache server of which the network bandwidth occupation is lower than the preset network bandwidth occupation threshold in the CDN node.
2. The method of claim 1, wherein the detecting the network bandwidth occupation comprises:
and detecting the occupation amount of the network bandwidth in real time.
3. The method of claim 1 wherein the network bandwidth occupancy of other CDN cache servers in the CDN node is obtained from a CDN scheduling device.
4. The method according to claim 1, wherein each CDN cache server in the CDN node to which the CDN cache server belongs sets a corresponding preset network bandwidth occupation threshold value, respectively.
5. The method of claim 1, wherein the redirecting the received network resource request to a CDN cache server in the CDN node whose network bandwidth occupancy is lower than a preset network bandwidth occupancy threshold if it is detected that the network bandwidth occupancy is higher than or equal to the preset network bandwidth occupancy threshold comprises:
if the network bandwidth occupation amount is detected to be higher than or equal to a preset network bandwidth occupation threshold, selecting a CDN cache server meeting a preset condition from CDN cache servers of which the network bandwidth occupation amount is lower than the preset network bandwidth occupation threshold in the CDN node;
and sending a redirection instruction to the user terminal sending the network resource request, so that the user terminal sends the network resource request to the selected CDN cache server according to the redirection instruction.
6. The method according to any one of claims 1-5, further comprising:
sending a redirection record of the network resource request to a CDN scheduling device, and informing the CDN scheduling device to stop allocating the network resource request to the CDN cache server until the occupied amount of the network bandwidth uploaded by the CDN cache server is lower than a preset network bandwidth occupied threshold.
7. The method of claim 1, further comprising:
and if the network bandwidth occupation amounts of other CDN cache servers in the CDN node are all higher than or equal to a preset network bandwidth occupation threshold value, redirecting the received network resource request to the CDN cache server in the corresponding backup node.
8. A network resource request scheduling apparatus during network resource request surge, wherein the apparatus is applied to a CDN cache server, and includes:
the detection module is used for detecting the occupation amount of the network bandwidth;
and the redirection module is used for redirecting the received network resource request to a CDN cache server of which the network bandwidth occupation amount is lower than a preset network bandwidth occupation threshold value in the CDN node if the network bandwidth occupation amount is detected to be higher than or equal to the preset network bandwidth occupation threshold value.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-7.
CN202210762776.1A 2022-06-29 2022-06-29 Method and device for scheduling network resource request during sudden increase of network resource request Pending CN115190180A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210762776.1A CN115190180A (en) 2022-06-29 2022-06-29 Method and device for scheduling network resource request during sudden increase of network resource request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210762776.1A CN115190180A (en) 2022-06-29 2022-06-29 Method and device for scheduling network resource request during sudden increase of network resource request

Publications (1)

Publication Number Publication Date
CN115190180A true CN115190180A (en) 2022-10-14

Family

ID=83514618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210762776.1A Pending CN115190180A (en) 2022-06-29 2022-06-29 Method and device for scheduling network resource request during sudden increase of network resource request

Country Status (1)

Country Link
CN (1) CN115190180A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684468A (en) * 2023-08-02 2023-09-01 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109962961A (en) * 2017-12-26 2019-07-02 中国移动通信集团广西有限公司 A kind of reorientation method and system of content distribution network CDN service node
CN111191156A (en) * 2019-12-20 2020-05-22 中移(杭州)信息技术有限公司 Network request resource scheduling method and device and computer readable storage medium
CN111510491A (en) * 2020-04-15 2020-08-07 华为终端有限公司 Resource access method, cache server, storage medium and electronic device
WO2021023018A1 (en) * 2019-08-05 2021-02-11 南京中兴新软件有限责任公司 Service scheduling method and apparatus
CN114077483A (en) * 2020-08-21 2022-02-22 中兴通讯股份有限公司 Data resource scheduling method, server, system and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109962961A (en) * 2017-12-26 2019-07-02 中国移动通信集团广西有限公司 A kind of reorientation method and system of content distribution network CDN service node
WO2021023018A1 (en) * 2019-08-05 2021-02-11 南京中兴新软件有限责任公司 Service scheduling method and apparatus
CN111191156A (en) * 2019-12-20 2020-05-22 中移(杭州)信息技术有限公司 Network request resource scheduling method and device and computer readable storage medium
CN111510491A (en) * 2020-04-15 2020-08-07 华为终端有限公司 Resource access method, cache server, storage medium and electronic device
CN114077483A (en) * 2020-08-21 2022-02-22 中兴通讯股份有限公司 Data resource scheduling method, server, system and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684468A (en) * 2023-08-02 2023-09-01 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN116684468B (en) * 2023-08-02 2023-10-20 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113037869B (en) Method and apparatus for back-sourcing of content distribution network system
CN109936613B (en) Disaster recovery method and device applied to server
CN112445857A (en) Resource quota management method and device based on database
CN112966200A (en) Service degradation method and rendering server
CN115190180A (en) Method and device for scheduling network resource request during sudden increase of network resource request
US11431669B2 (en) Server configuration method and apparatus
CN113765969A (en) Flow control method and device
CN109587068B (en) Flow switching method, device, equipment and computer readable storage medium
CN108400884B (en) Method, system and device for improving stability of website service
US20230063599A1 (en) Edge computing network, data transmission method and apparatus, device and storage medium
CN113225265B (en) Flow control method, device, equipment and computer storage medium
CN115514718A (en) Data interaction method, control layer and equipment based on data transmission system
CN111131083B (en) Method, device and equipment for data transmission between nodes and computer readable storage medium
CN113867946A (en) Method, device, storage medium and electronic equipment for accessing resources
CN110247847B (en) Method and device for back source routing between nodes
CN113055199A (en) Gateway access method and device and gateway equipment
CN113992760B (en) Method, device, equipment and storage medium for scheduling back source traffic
CN112422342B (en) Method and device for acquiring service data
CN114793234B (en) Message processing method, device, equipment and storage medium
CN115086300B (en) Video file scheduling method and device
CN113220555B (en) Method, apparatus, device, medium, and article for processing data
CN115633092A (en) Data prefetching method, device, equipment and storage medium
CN116233010A (en) Flow control method, device, equipment and storage medium
CN114201708A (en) Resource processing method and device, electronic equipment and storage medium
CN114003459A (en) Fault detection method and device, electronic equipment and readable storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230511

Address after: Room 07, Room 42301, 23rd Floor (23), Building 4, Yard 7, Qingnian Road, Chaoyang District, Beijing, 100123

Applicant after: LeTV Cloud Network Technology (Beijing) Co.,Ltd.

Address before: 100025 1508, 12 / F, building 3, 105 yaojiayuan Road, Chaoyang District, Beijing

Applicant before: LECLOUD COMPUTING Co.,Ltd.