CN114244903B - Resource scheduling method, system, server and storage medium - Google Patents

Resource scheduling method, system, server and storage medium Download PDF

Info

Publication number
CN114244903B
CN114244903B CN202111284939.1A CN202111284939A CN114244903B CN 114244903 B CN114244903 B CN 114244903B CN 202111284939 A CN202111284939 A CN 202111284939A CN 114244903 B CN114244903 B CN 114244903B
Authority
CN
China
Prior art keywords
equipment
low
configuration
schedulable
allocation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111284939.1A
Other languages
Chinese (zh)
Other versions
CN114244903A (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 CN202111284939.1A priority Critical patent/CN114244903B/en
Publication of CN114244903A publication Critical patent/CN114244903A/en
Application granted granted Critical
Publication of CN114244903B publication Critical patent/CN114244903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application relates to the technical field of Internet and discloses a resource scheduling method, a resource scheduling system, a server and a storage medium. The resource scheduling method comprises the following steps: receiving a resource request of a terminal, wherein the resource request is sent to the dispatching center by high-allocation equipment in the CDN when the dispatchable service resources are insufficient; selecting schedulable low-configuration equipment from the low-configuration equipment according to pre-stored equipment information of the low-configuration equipment in the CDN; and sending the equipment identifier of the schedulable low-configuration equipment to the terminal so that the terminal can acquire the service resource of the schedulable low-configuration equipment. When the dispatchable service resources of the high-allocation equipment are insufficient, the embodiment of the application can dispatch the service resources of the low-allocation equipment in the CDN network, fully utilize all the service resources in the CDN network, and not increase the operation cost of the CDN network on the premise of ensuring the service quality.

Description

Resource scheduling method, system, server and storage medium
Technical Field
The embodiment of the application relates to the technical field of Internet, in particular to a resource scheduling method, a resource scheduling system, a server and a storage medium.
Background
At present, the Internet is vigorously developed, respective technologies and products are continuously updated and iterated, and in the Internet environment, a large amount of equipment bandwidth resources cannot be fully and perfectly utilized, and various wastes and instabilities in quality exist. The current acceleration scheme based on the content delivery network (Content Delivery Network, abbreviated as CDN) mainly obtains corresponding overlay device information through analyzing a request, and obtains corresponding service resources from the overlay device.
However, since the resource request in the CDN network tends to be a high-allocation device, the service resources of the low-allocation device in the CDN network are idle and wasted, and when the high-allocation device does not have corresponding resources, the service resources are acquired from the other CDN networks, so that internal consumption is generated when resources are extracted across networks, and the operation cost of the CDN network is increased when the service resources of the low-allocation device are idle and the high-allocation device obtains resources across networks.
Disclosure of Invention
The embodiment of the application aims to provide a resource scheduling method, a system, a server and a storage medium, so that when the schedulable service resources of high-allocation equipment of a CDN network are insufficient, service resources of all low-allocation equipment in the CDN network are scheduled, all service resources in the CDN network can be fully utilized, and the operation cost of the CDN network is not increased on the premise of ensuring the service quality.
In order to solve the above technical problems, an embodiment of the present application provides a resource scheduling method applied to a scheduling center of a content delivery CDN network, including: receiving a resource request of a terminal, wherein the resource request is sent to the dispatching center by high-allocation equipment in the CDN when the dispatchable service resources are insufficient; selecting schedulable low-configuration equipment from the low-configuration equipment according to pre-stored equipment information of the low-configuration equipment in the CDN; and sending the equipment identifier of the schedulable low-configuration equipment to the terminal so that the terminal can acquire the service resource of the schedulable low-configuration equipment.
The embodiment of the application also provides a resource scheduling method applied to high-allocation equipment of the content delivery CDN, comprising the following steps: receiving a resource request of a terminal; when the schedulable service resources are insufficient, the resource request is sent to a scheduling center of the CDN network, so that the scheduling center can select schedulable low-configuration equipment from the low-configuration equipment according to the pre-stored equipment information of the low-configuration equipment in the CDN network; and receiving the equipment identifier of the schedulable low-configuration equipment returned by the scheduling center, and sending the equipment identifier to the terminal so that the terminal can acquire the service resource of the schedulable low-configuration equipment.
The embodiment of the application also provides a resource scheduling method which is applied to the terminal and comprises the following steps: resolving a resource request generated by a user to obtain a domain name of high-configuration equipment; according to the high-configuration equipment domain name, the resource request is sent to high-configuration equipment of a CDN network; the high-allocation equipment sends the resource request to a dispatching center of the CDN network when the dispatching service resources are insufficient, and receives equipment identifiers of dispatching low-allocation equipment returned by the dispatching center, wherein the dispatching center selects the dispatching low-allocation equipment from the low-allocation equipment according to pre-stored equipment information of the low-allocation equipment of the CDN network; and receiving the equipment identifier returned by the high-allocation equipment, and acquiring the service resource of the schedulable low-allocation equipment according to the equipment identifier.
The embodiment of the application also provides a resource scheduling system which is applied to the scheduling center of the content delivery CDN, and comprises the following steps: the receiving module is used for receiving a resource request of a terminal, wherein the resource request is sent to the dispatching center when the dispatchable service resources of high-allocation equipment in the CDN are insufficient; the selection module is used for selecting schedulable low-configuration equipment from the low-configuration equipment according to the pre-stored equipment information of the low-configuration equipment in the CDN; and the transmission module is used for transmitting the equipment identifier of the schedulable low-configuration equipment to the terminal so that the terminal can acquire the service resource of the schedulable low-configuration equipment.
The embodiment of the application also provides a server, which comprises: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the resource scheduling method described above.
The embodiment of the application also provides a computer readable storage medium storing a computer program which when executed by a processor realizes the resource scheduling method.
In the embodiment of the application, on a dispatching center of a content delivery CDN network, a resource request of a terminal is received, wherein the resource request is sent to the dispatching center when a high-allocation device in the CDN network is insufficient in schedulable service resource; selecting schedulable low-configuration equipment from the low-configuration equipment according to the pre-stored equipment information of the low-configuration equipment in the CDN; and sending the equipment identifier of the schedulable low-configuration equipment to the terminal so that the terminal can acquire the service resource of the schedulable low-configuration equipment. The application can schedule the service resources of the low-allocation equipment in the CDN network when the schedulable service resources of the high-allocation equipment are insufficient, can fully utilize all the service resources in the CDN network, does not increase the operation cost of the CDN network on the premise of ensuring the service quality, and avoids the technical problem of high operation cost of the CDN network caused by idle of the cross-network acquisition service resources and the service resources of the low-allocation equipment when the resources of the high-allocation equipment are insufficient in the prior art.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings.
FIG. 1 is a flowchart of a resource scheduling method provided by an embodiment of the present application;
FIG. 2 is a flowchart of a resource scheduling method provided by an embodiment of the present application;
FIG. 2a is a schematic diagram of the relationship between the number of requests and the quality index of the low-profile device according to the embodiment of the present application;
FIG. 3 is a flowchart of a resource scheduling method provided by an embodiment of the present application;
FIG. 4 is a flowchart of a resource scheduling method provided by an embodiment of the present application;
FIG. 5 is a flowchart of a resource scheduling method provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of a resource scheduling system according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a resource scheduling system according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a resource scheduling system according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, it will be understood by those of ordinary skill in the art that in various embodiments of the present application, numerous specific details are set forth in order to provide a thorough understanding of the present application. The claimed application may be practiced without these specific details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present application, and the embodiments can be mutually combined and referred to without contradiction.
The embodiment of the application relates to a resource scheduling method which is applied to a scheduling center of a content delivery CDN (content delivery CDN) network, as shown in fig. 1, and specifically comprises the following steps of.
Step 101, receiving a resource request of a terminal, wherein the resource request is sent to a dispatching center when a dispatchable service resource is insufficient by high-allocation equipment in a CDN (content delivery network).
In an example implementation, when a high-allocation device in the CDN network forwards a resource request of a terminal received by the scheduling center to the scheduling center, the high-allocation device first determines whether service resources available for scheduling in the current high-allocation device are sufficient or not when the service resources available for scheduling in the high-allocation device are insufficient, which indicates that the high-allocation device cannot process the resource request, and at this time, the high-allocation device sends the resource request to the scheduling center.
In an example implementation, a high-profile device in a CDN network refers to a device in the CDN network that is configured relatively higher, or a device in the CDN network that may acquire resources across networks.
Step 102, selecting schedulable low-configuration equipment from the low-configuration equipment according to the pre-stored equipment information of the low-configuration equipment in the CDN.
In an example implementation, the low-profile device in the CDN network refers to a device in the CDN network that is set by user definition, or a device in the CDN network that is configured relatively low, or a device in the CDN network that cannot acquire resources across networks.
In an example implementation, each low-profile device in the CDN network may report current device information to the scheduling center in real time, where the device information reported by each low-profile device includes a device identifier, a current request number, a device weight, and the like, where the device identifier refers to a uniform resource locator (Uniform Resource Locator, abbreviated as URL) of the low-profile device, that is, a network address of the low-profile device; the equipment weight is generated by the dispatching center according to equipment monitoring information or equipment quality indexes reported by low-configuration equipment, the equipment weight represents the adjustable request number of the low-configuration equipment, the higher the equipment weight is, the higher the adjustable request number of the low-configuration equipment is, the lower the equipment weight is, and the lower the adjustable request number of the low-configuration equipment is; the cache information is not contained in each low-configuration device, so that whether the low-configuration device has a cache can be judged according to whether the device information reported by each low-configuration device contains the cache information; in addition, the reported device information may also include device operation information such as process information.
In an example implementation, after receiving a resource request sent by a high-allocation device, the scheduling center selects one schedulable low-allocation device from the low-allocation devices according to the device information of each low-allocation device, and when selecting the schedulable low-allocation device, the scheduling center may select the schedulable low-allocation device according to the current request number, the device weight, the current request number and the device weight, or the current request number, the device weight and the cache information, which is not limited herein, and any one or a combination of several types of the device information may be used as a basis for selecting the schedulable low-allocation device.
In an example implementation, the resource request is only a trigger mechanism, which is used to trigger the scheduling center to select the schedulable low configuration device according to the device information of each low configuration device, and is not used as a basis for selecting the schedulable low configuration device.
And step 103, the equipment identification of the schedulable low-configuration equipment is sent to the terminal so that the terminal can acquire the service resources of the schedulable low-configuration equipment.
In an example implementation, after selecting the schedulable low-configuration device, the scheduling center sends the device identifier of the schedulable low-configuration device to the high-configuration device, the high-configuration device forwards the device identifier to the terminal, and the terminal accesses the schedulable low-configuration device according to the device identifier (i.e., URL address) after receiving the device identifier of the schedulable low-configuration device, thereby obtaining the service resource on the schedulable low-configuration device.
In the embodiment of the application, on a dispatching center of a content delivery CDN network, a resource request of a terminal is received, wherein the resource request is sent to the dispatching center when a high-allocation device in the CDN network is insufficient in schedulable service resource; selecting schedulable low-configuration equipment from the low-configuration equipment according to the pre-stored equipment information of the low-configuration equipment in the CDN; and sending the equipment identifier of the schedulable low-configuration equipment to the terminal so that the terminal can acquire the service resource of the schedulable low-configuration equipment. The application can schedule the service resources of the low-allocation equipment in the CDN network when the schedulable service resources of the high-allocation equipment are insufficient, can fully utilize all the service resources in the CDN network, does not increase the operation cost of the CDN network on the premise of ensuring the service quality, and avoids the technical problem of high operation cost of the CDN network caused by idle of the cross-network acquisition service resources and the service resources of the low-allocation equipment when the resources of the high-allocation equipment are insufficient in the prior art.
The embodiment of the application relates to a resource scheduling method which is applied to a scheduling center of a content delivery CDN (content delivery CDN) network, as shown in fig. 2, and specifically comprises the following steps.
In step 201, a resource request of a terminal is received, where the resource request is sent to a dispatching center when a dispatchable service resource is insufficient by a high-allocation device in the CDN network.
In an exemplary implementation, the step is substantially the same as step 101 in the embodiment of the present application, and is not described herein.
Step 202, determining schedulable request information of each low-profile device according to the device weight value in the device information of each low-profile device in the CDN network.
In an example implementation, a mapping relationship between a device weight and schedulable request information may be preset in a scheduling center, where the schedulable request information refers to a strength of a scheduling request of a low-profile device, such as: normal scheduling, multi-scheduling, few scheduling, non-scheduling, etc.; the strength of the current scheduling request of the low-profile device can be obtained according to the size of the device weight of the low-profile device.
In an example implementation, the device weight of the low-profile device may be generated according to device monitoring information reported by the low-profile device, and when the device monitoring information indicates that the low-profile device is a normal low-profile device, the device weight of the low-profile device may be set as a first device weight, where the first device weight may be preset to 10; when the equipment monitoring information indicates that the low-configuration equipment is abnormal low-configuration equipment, the equipment weight equipment of the low-configuration equipment is taken as a second equipment weight, and the first equipment weight can be preset to be 0; after the abnormal low-profile equipment releases the abnormality, the weight of the equipment can be adjusted according to the weight increment function, the abnormality release time and the current time; the expression of the weight increment function is as follows: y= X +2, where Y is a device weight, and X is a time interval between a time of removing an anomaly and a current time.
In an example implementation, the device monitoring information may be a device survival state, a device hardware state, and a device software state; only when the device survival state is device survival, the device hardware state is hardware normal and the device software state is software normal, the low-profile device is a normal low-profile device.
In an example implementation, when any one of the device survival state, the device hardware state and the device software state of the low-profile device is abnormal, the low-profile device is an abnormal low-profile device, at this time, whether the current request number on the abnormal low-profile device is zero is detected, and when the current request number is not zero, the current request on the abnormal low-profile device is scheduled to the low-profile device in the schedulable low-profile device set, so as to ensure that the requests on the low-profile devices are normally performed.
In an example implementation, the device surviving state is one of device surviving, device downtime, device disconnection and device disconnection, the device hardware state is one of hardware normal, disk failure, memory failure, motherboard failure, network card failure and central processing unit (central processing unit, CPU) failure, the device software state is one of software normal and cache service software failure, and the scheduling center considers the low-configuration device normal only when the device surviving state is device surviving, the device hardware state is hardware normal and the device software state is software normal, and the rest conditions consider the low-configuration device abnormal.
In an example implementation, the device weight of the low-profile device may be generated according to a device quality indicator reported by the low-profile device, and when the device quality indicator indicates that the low-profile device is a high-quality low-profile device, the device weight of the low-profile device may be set to a first device weight, where the first device weight may be preset to 10; when the equipment quality index shows that the low-quality equipment is low-quality equipment, generating equipment weight according to a weight decreasing function, the generation time of the equipment quality index and the current time; the expression of the weight decreasing function is as follows: y=10×1/2× X, Y is a device weight, and X is a time interval between a generation time and a current time of a device quality index; after the quality of the low-quality low-configuration equipment is recovered (the low-quality equipment quality index reported by the low-quality low-configuration equipment is not received in the preset time or the high-quality equipment quality index reported by the low-quality low-configuration equipment is received), the equipment weight can be adjusted according to the weight increasing function, the abnormal relieving time and the current time; the expression of the weight increment function is as follows: y= X +2, Y is the device weight, and X is the time interval between the time of quality recovery and the current time.
In an example implementation, the device quality index refers to the rate at which the low-profile device processes requests, as can be seen from the number of requests versus the quality index given in fig. 2 a: when the request number increases, the corresponding equipment quality index decreases; thus, a device quality threshold (e.g., 700 kp/s) may be set; when the equipment quality index of the low-quality equipment is larger than the equipment quality threshold, indicating that the low-quality equipment is high-quality low-quality equipment; when the equipment quality index of the low-allocation equipment is smaller than the equipment quality threshold, the low-allocation equipment is low in processing request rate, and the low-allocation equipment stops allocating requests within a certain time period, so that the request number of the low-allocation equipment starts to be reduced, the quality index of the low-allocation equipment is gradually increased after the request number is reduced from the corresponding equipment quality index, and the equipment weight of the low-allocation equipment is gradually increased after the equipment quality index is increased, so that the request number scheduled on the low-allocation equipment is also gradually increased. The service request is controlled to be served on the low-configuration equipment through the equipment quality index, so that the service of the low-configuration equipment can be utilized to a great extent.
In an example implementation, after receiving the device monitoring information or the device quality index, the scheduling center does not generate a device weight, directly screens a schedulable low-configuration device set (composed of normal low-configuration devices or high-quality low-configuration devices) from the low-configuration devices according to the device monitoring information or the device quality index, and then selects the schedulable low-configuration device from the schedulable low-configuration device set according to the current request number.
And 203, selecting the schedulable low-configuration equipment from the low-configuration equipment according to the current request number and the schedulable request information.
In an example implementation, the low-configuration devices may be classified according to the schedulable request information, and the schedulable request information is taken as a normal scheduling, a multi-scheduling, a few scheduling, and a non-scheduling, and the low-configuration devices may be classified into a multi-scheduling device set, a normal scheduling device set, a few scheduling device set, and a non-scheduling device set; the method comprises the steps of preferentially scheduling equipment in a multi-scheduling equipment set, sequencing low-allocation equipment in the multi-scheduling equipment set according to the current request number from small to large, and preferentially selecting low-allocation equipment with the minimum current request number as schedulable low-allocation equipment; if no schedulable low configuration device is selected from the multi-scheduling device set, selecting from the normal scheduling device set, and so on.
And step 204, the equipment identifier of the schedulable low-configuration equipment is sent to the terminal so that the terminal can acquire the service resources of the schedulable low-configuration equipment.
In an exemplary implementation, the step is substantially the same as step 103 in the embodiment of the present application, and is not described herein.
The embodiment of the application can also determine whether to schedule the request to the low-allocation equipment according to the equipment state of the low-allocation equipment on the basis of other embodiments, so as to ensure the stability of the service on the low-allocation equipment.
The embodiment of the application relates to a resource scheduling method applied to a scheduling center of a content delivery CDN (content delivery CDN) network, which specifically comprises the following steps as shown in fig. 3.
Step 301, receiving a resource request of a terminal, where the resource request is sent to a dispatching center when a dispatchable service resource is insufficient by a high-allocation device in a CDN network.
In an exemplary implementation, the step is substantially the same as step 101 in the embodiment of the present application, and is not described herein.
Step 302, dividing each low-profile device into a cached low-profile device set and a non-cached low-profile device set according to whether the device information of each low-profile device in the CDN network includes cache information.
In an example implementation, the cache information is not provided for each low-profile device, and thus, each low-profile device may be divided into a cached low-profile device set and a non-cached low-profile device set according to whether the cache information is included in the device information in each low-profile device.
Step 303, selecting the schedulable low-configuration device from the cached low-configuration device set according to the device information when the cached low-configuration device set is not empty.
In an example implementation, after categorizing the cache information, preferentially selecting low-profile devices in the cached low-profile device set as schedulable low-profile devices; selecting schedulable low-configuration equipment according to other equipment information except the cache information of each low-configuration equipment in the cache low-configuration equipment set
Step 304, when the cached low-configuration device set is empty, selecting the schedulable low-configuration device from the non-cached low-configuration device set according to the device information.
In an example implementation, when the partitioned cached low-profile device set is null, that is, all low-profile devices in the schedulable low-profile device set are low-profile devices without cache information, the schedulable low-profile devices are selected according to other device information except the cache information of each low-profile device in the non-cached low-profile device set.
And step 305, transmitting the device identification of the schedulable low-configuration device to the terminal so that the terminal can acquire the service resource of the schedulable low-configuration device.
In an exemplary implementation, the step is substantially the same as step 103 in the embodiment of the present application, and is not described herein.
According to the embodiment of the application, on the basis of other embodiments, whether the low-profile equipment has a cache or not can be determined, whether the low-profile equipment is subjected to scheduling request or not, and the low-profile equipment is subjected to content scheduling, so that the access rate of service resources can be improved, and the back source bandwidth of the CDN can be reduced.
The embodiment of the application relates to a resource scheduling method applied to high-allocation equipment of a content delivery CDN (content delivery CDN) network, which specifically comprises the following steps as shown in fig. 4.
Step 401, a resource request of a terminal is received.
In an example implementation, after the terminal generates the resource request, the user may parse the domain name of the high-configuration device from the resource request, the terminal accesses the high-configuration device according to the domain name of the high-configuration device, and sends the resource request to the high-configuration device while accessing the high-configuration device.
Step 402, when the schedulable service resources are insufficient, sending a resource request to a scheduling center of the CDN network, so that the scheduling center selects schedulable low-configuration devices from the low-configuration devices according to the pre-stored device information of the low-configuration devices in the CDN network.
In an example implementation, after receiving a resource request, the high-allocation device determines its own schedulable service resource, and when its own schedulable service resource is insufficient, the resource request is sent to a scheduling center, so that the scheduling center can select a schedulable low-allocation device from the low-allocation devices according to device information of the low-allocation devices, so as to schedule the service resource of the low-allocation devices in the CDN network, and avoid the high-allocation device from acquiring the service resource across the network.
Step 403, receiving the device identifier of the schedulable low-configuration device returned by the scheduling center, and sending the device identifier to the terminal, so that the terminal can obtain the service resource of the schedulable low-configuration device.
In an example implementation, after selecting the schedulable low-configuration device, the scheduling center sends the device identifier of the schedulable low-configuration device to the high-configuration device, the high-configuration device forwards the device identifier to the terminal after receiving the device identifier, and the terminal accesses the schedulable low-configuration device according to the device identifier (i.e. URL address) after receiving the device identifier of the schedulable low-configuration device, so as to obtain the service resource on the schedulable low-configuration device.
In the embodiment of the application, on high-allocation equipment of a content delivery CDN, a resource request of a terminal is received; when the schedulable service resources are insufficient, sending a resource request to a scheduling center of the CDN network, so that the scheduling center can select schedulable low-configuration equipment from the low-configuration equipment according to the equipment information of the low-configuration equipment in the CDN network; and receiving the equipment identifier of the schedulable low-configuration equipment returned by the scheduling center, and sending the equipment identifier to the terminal so that the terminal can acquire the service resource of the schedulable low-configuration equipment. The application can schedule the service resources of the low-allocation equipment in the CDN network when the schedulable service resources of the high-allocation equipment are insufficient, can fully utilize all the service resources in the CDN network, does not increase the operation cost of the CDN network on the premise of ensuring the service quality, and avoids the technical problem of high operation cost of the CDN network caused by idle of the cross-network acquisition service resources and the service resources of the low-allocation equipment when the resources of the high-allocation equipment are insufficient in the prior art.
The embodiment of the application relates to a resource scheduling method applied to a terminal, as shown in fig. 5, and specifically comprises the following steps.
Step 501, resolving a resource request generated by a user to obtain a domain name of a high-configuration device.
In an example implementation, a user operates on an interactive interface provided by a terminal, the terminal generates a resource request according to operation information of the user, and resolves a high-profile device domain name from the resource request.
Step 502, sending a resource request to a high-configuration device of a CDN network according to a domain name of the high-configuration device; when the schedulable service resources are insufficient, the high-allocation equipment sends a resource request to a scheduling center of the CDN network, and receives equipment identifiers of schedulable low-allocation equipment returned by the scheduling center, wherein the schedulable low-allocation equipment is selected from the low-allocation equipment according to pre-stored equipment information of the low-allocation equipment of the CDN network by the scheduling center.
In an example implementation, after acquiring the domain name of the high-allocation device, the terminal accesses the high-allocation device according to the domain name of the high-allocation device, and sends a resource request to the high-allocation device while accessing the domain name of the high-allocation device to acquire a resource on the high-allocation device, after receiving the resource request, the high-allocation device determines a self-schedulable service resource, and when the schedulable service resource is sufficient, responds to the resource request to allocate a corresponding service resource for the terminal; when the schedulable service resources are insufficient, the high-allocation equipment does not need to acquire resources across the network, but forwards the resource request to a scheduling center, the scheduling center selects schedulable low-allocation equipment from the low-allocation equipment according to equipment information of the low-allocation equipment so as to schedule the service resources of the low-allocation equipment in the CDN, and meanwhile, the scheduling center returns equipment identification of the schedulable low-allocation equipment to the high-allocation equipment and then the high-allocation equipment sends the equipment identification to the terminal.
Step 503, receiving the device identifier returned by the high-configuration device, and obtaining the service resource of the schedulable low-configuration device according to the device identifier.
In an example implementation, after receiving a device identifier of a schedulable low-power device sent by a high-power device, a terminal accesses the schedulable low-power device according to the device identifier (i.e., URL address), so as to obtain a service resource on the schedulable low-power device.
In the embodiment of the application, on high-allocation equipment of a content delivery CDN network, a resource request generated by a user is analyzed to obtain a domain name of the high-allocation equipment; sending the resource request to high-allocation equipment of the CDN according to the domain name of the high-allocation equipment; when the schedulable service resources are insufficient, the high-allocation equipment sends a resource request to a scheduling center of the CDN network and receives equipment identifiers of schedulable low-allocation equipment returned by the scheduling center, wherein the schedulable low-allocation equipment is selected from the low-allocation equipment according to pre-stored equipment information of the low-allocation equipment of the CDN network by the scheduling center; and receiving the equipment identifier returned by the high-configuration equipment, and acquiring the service resource of the schedulable low-configuration equipment according to the equipment identifier. The application can schedule the service resources of the low-allocation equipment in the CDN network when the schedulable service resources of the high-allocation equipment are insufficient, can fully utilize all the service resources in the CDN network, does not increase the operation cost of the CDN network on the premise of ensuring the service quality, and avoids the technical problem of high operation cost of the CDN network caused by idle of the cross-network acquisition service resources and the service resources of the low-allocation equipment when the resources of the high-allocation equipment are insufficient in the prior art.
The above steps of the methods are divided, for clarity of description, and may be combined into one step or split into multiple steps when implemented, so long as they include the same logic relationship, and they are all within the protection scope of this patent; it is within the scope of this patent to add insignificant modifications to the algorithm or flow or introduce insignificant designs, but not to alter the core design of its algorithm and flow.
The embodiment of the present application relates to a resource scheduling system, which is characterized in that, when applied to a scheduling center of a content delivery CDN network, details of the resource scheduling system of the present embodiment are specifically described below, and the following is only implementation details provided for facilitating understanding, but is not necessary for implementing the present embodiment, and fig. 6 is a schematic diagram of the resource scheduling system of the present embodiment, including: a receiving module 601, a selecting module 602 and a transmitting module 603.
The receiving module 601 is configured to receive a resource request of a terminal, where the resource request is sent to a scheduling center when a service resource that can be scheduled is insufficient by a high-allocation device in a CDN network;
The selection module is used for selecting schedulable low-configuration equipment from the low-configuration equipment according to the equipment information of the low-configuration equipment in the pre-stored CDN network;
and the transmission module is used for transmitting the equipment identifier of the schedulable low-configuration equipment to the terminal so that the terminal can acquire the service resource of the schedulable low-configuration equipment.
The embodiment of the present application relates to a resource scheduling system, which is characterized in that, when applied to a high-level distribution device of a content delivery CDN network, details of the resource scheduling system of the present embodiment are specifically described below, and the following is only implementation details provided for facilitating understanding, but not essential to implementing the present embodiment, and fig. 7 is a schematic diagram of the resource scheduling system of the present embodiment, including: a first receiving module 701, a transmitting module 702 and a second receiving module 703.
The first receiving module 701 is configured to receive a resource request of a terminal.
The transmission module 702 is configured to send a resource request to a scheduling center of the CDN network when the schedulable service resource is insufficient, so that the scheduling center selects schedulable low-configuration devices from among the low-configuration devices according to the pre-stored device information of each low-configuration device in the CDN network.
And the second receiving module 703 is configured to receive the device identifier of the schedulable low-configuration device returned by the scheduling center, and send the device identifier to the terminal, so that the terminal obtains the service resource of the schedulable low-configuration device.
The embodiment of the present application relates to a resource scheduling system, which is characterized in that the resource scheduling system is applied to a terminal, and the following details of the resource scheduling system of the present embodiment are specifically described, and the following details are provided only for facilitating understanding, but are not necessary for implementing the present embodiment, and fig. 8 is a schematic diagram of the resource scheduling system of the present embodiment, including: a parsing module 801, a transmission module 802 and an acquisition module 803.
The resolving module 801 is configured to resolve a resource request generated by a user, and obtain a domain name of a high-configuration device.
A transmission module 802, configured to send a resource request to a high-configuration device of the CDN network according to the domain name of the high-configuration device; when the schedulable service resources are insufficient, the high-allocation equipment sends a resource request to a scheduling center of the CDN network and receives equipment identifiers of schedulable low-allocation equipment returned by the scheduling center, wherein the schedulable low-allocation equipment is selected from the low-allocation equipment according to pre-stored equipment information of the low-allocation equipment of the CDN network by the scheduling center;
and the obtaining module 803 is configured to receive the device identifier returned by the high-configuration device, and obtain a service resource of the schedulable low-configuration device according to the device identifier.
It is to be noted that this embodiment is a system embodiment corresponding to the above-described method embodiment, and this embodiment may be implemented in cooperation with the above-described method embodiment. The related technical details and technical effects mentioned in the above embodiments are still valid in this embodiment, and in order to reduce repetition, they are not described here again. Accordingly, the related technical details mentioned in the present embodiment can also be applied to the above-described embodiments.
The embodiment of the application relates to a server, as shown in fig. 9, comprising: at least one processor 901; and a memory 902 communicatively coupled to the at least one processor 901; wherein the memory 902 stores instructions executable by the at least one processor 901, the instructions being executable by the at least one processor 901 to enable the at least one processor 901 to perform the resource scheduling method in each of the above embodiments.
Where the memory and the processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors and the memory together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over the wireless medium via the antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory may be used to store data used by the processor in performing operations.
Embodiments of the present application relate to a computer-readable storage medium storing a computer program. The computer program implements the above-described method embodiments when executed by a processor.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments of the application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of carrying out the application and that various changes in form and details may be made therein without departing from the spirit and scope of the application.

Claims (11)

1. A method for scheduling resources, applied to a scheduling center of a content delivery CDN network, the method comprising:
Receiving a resource request of a terminal, wherein the resource request is sent to the dispatching center by high-allocation equipment in the CDN when the dispatchable service resources are insufficient;
Selecting schedulable low-configuration equipment from the low-configuration equipment according to pre-stored equipment information of the low-configuration equipment in the CDN;
And sending the equipment identifier of the schedulable low-configuration equipment to the terminal so that the terminal can acquire the service resource of the schedulable low-configuration equipment.
2. The resource scheduling method of claim 1, wherein the device information includes a device weight and a current request number;
The selecting the schedulable low-configuration equipment from the low-configuration equipment according to the pre-stored equipment information of the low-configuration equipment in the CDN network comprises the following steps:
determining schedulable request information of each low-profile device according to the device weight;
and selecting the schedulable low-configuration equipment from the low-configuration equipment according to the current request number and the schedulable request information.
3. The resource scheduling method of claim 2, wherein the method further comprises:
Generating the equipment weight according to the equipment monitoring information reported by the low-profile equipment; or alternatively
And generating the equipment weight according to the equipment quality index reported by the low-configuration equipment.
4. The method for scheduling resources according to claim 3, wherein the generating the device weight according to the device monitoring information reported by the low-profile device includes:
detecting whether the low-profile equipment is abnormal according to the equipment monitoring information;
when the low-profile equipment is normal low-profile equipment, setting the equipment weight as a first equipment weight;
When the low-profile device is an abnormal low-profile device, setting the device weight as a second device weight; after the abnormal low-profile equipment is relieved, the equipment weight is adjusted according to a preset weight increment function, the abnormality relieving time and the current time.
5. A resource scheduling method according to claim 3, wherein the device quality indicator carries a generation time; the generating the device weight according to the device quality index reported by the low-profile device comprises the following steps:
detecting the quality of the low-profile equipment according to the equipment quality index;
when the low-configuration equipment is high-quality low-configuration equipment, setting the equipment weight as a first equipment weight;
When the low-quality equipment is low-quality equipment, generating the equipment weight according to a preset weight decreasing function, the generation time and the current time; and after the quality of the low-quality low-configuration equipment is recovered, adjusting the equipment weight according to a preset weight increasing function, the quality recovery time and the current time.
6. The resource scheduling method according to claim 1, wherein selecting a schedulable low-profile device from the low-profile devices according to pre-stored device information of the low-profile devices in the CDN network comprises:
Dividing each low-power equipment into a cached low-power equipment set and a non-cached low-power equipment set according to whether the equipment information contains cache information or not;
When the set of the low-allocation equipment with the cache is not empty, selecting the low-allocation equipment with the dispatch from the set of the low-allocation equipment with the cache according to the equipment information;
and when the cached low-allocation equipment set is empty, selecting the schedulable low-allocation equipment from the non-cached low-allocation equipment set according to the equipment information.
7. A method for scheduling resources, which is applied to high-allocation equipment of a content delivery CDN network, the method comprising:
Receiving a resource request of a terminal;
when the schedulable service resources are insufficient, the resource request is sent to a scheduling center of the CDN network, so that the scheduling center can select schedulable low-configuration equipment from the low-configuration equipment according to the pre-stored equipment information of the low-configuration equipment in the CDN network;
And receiving the equipment identifier of the schedulable low-configuration equipment returned by the scheduling center, and sending the equipment identifier to the terminal so that the terminal can acquire the service resource of the schedulable low-configuration equipment.
8. A method for scheduling resources, applied to a terminal, the method comprising:
resolving a resource request generated by a user to obtain a domain name of high-configuration equipment;
according to the high-configuration equipment domain name, the resource request is sent to high-configuration equipment of a CDN network; the high-allocation equipment sends the resource request to a dispatching center of the CDN network when the dispatching service resources are insufficient, and receives equipment identifiers of dispatching low-allocation equipment returned by the dispatching center, wherein the dispatching center selects the dispatching low-allocation equipment from the low-allocation equipment according to pre-stored equipment information of the low-allocation equipment of the CDN network;
And receiving the equipment identifier returned by the high-allocation equipment, and acquiring the service resource of the schedulable low-allocation equipment according to the equipment identifier.
9. A resource scheduling system for use in a scheduling center of a content delivery CDN network, the system comprising:
the receiving module is used for receiving a resource request of a terminal, wherein the resource request is sent to the dispatching center when the dispatchable service resources of high-allocation equipment in the CDN are insufficient;
The selection module is used for selecting schedulable low-configuration equipment from the low-configuration equipment according to the pre-stored equipment information of the low-configuration equipment in the CDN;
And the transmission module is used for transmitting the equipment identifier of the schedulable low-configuration equipment to the terminal so that the terminal can acquire the service resource of the schedulable low-configuration equipment.
10. A server, comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the resource scheduling method of any one of claims 1 to 6 or claim 7 or claim 8.
11. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the resource scheduling method of any one of claims 1 to 6 or claim 7 or claim 8.
CN202111284939.1A 2021-11-01 2021-11-01 Resource scheduling method, system, server and storage medium Active CN114244903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111284939.1A CN114244903B (en) 2021-11-01 2021-11-01 Resource scheduling method, system, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111284939.1A CN114244903B (en) 2021-11-01 2021-11-01 Resource scheduling method, system, server and storage medium

Publications (2)

Publication Number Publication Date
CN114244903A CN114244903A (en) 2022-03-25
CN114244903B true CN114244903B (en) 2024-05-28

Family

ID=80743488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111284939.1A Active CN114244903B (en) 2021-11-01 2021-11-01 Resource scheduling method, system, server and storage medium

Country Status (1)

Country Link
CN (1) CN114244903B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090000028A (en) * 2006-12-15 2009-01-07 주식회사 케이티 Method for controlling a variable performance contents delivery network service
CN105959354A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 Load scheduling method and load scheduling system of streaming media service
CN107231436A (en) * 2017-07-14 2017-10-03 网宿科技股份有限公司 A kind of method and apparatus for carrying out traffic scheduling
CN108243215A (en) * 2016-12-26 2018-07-03 中兴通讯股份有限公司 The dispatching method and dispatching device of content delivery network service device
CN108900569A (en) * 2018-05-29 2018-11-27 张迅 Service providing end equipment and service providing method
CN109542613A (en) * 2017-09-22 2019-03-29 中兴通讯股份有限公司 Distribution method, device and the storage medium of service dispatch in a kind of CDN node
CN110460682A (en) * 2019-09-18 2019-11-15 深圳市网心科技有限公司 A kind of data processing method, device, system and storage medium
CN111510491A (en) * 2020-04-15 2020-08-07 华为终端有限公司 Resource access method, cache server, storage medium and electronic device
CN112416599A (en) * 2020-12-03 2021-02-26 腾讯科技(深圳)有限公司 Resource scheduling method, device, equipment and computer readable storage medium
CN113055493A (en) * 2021-03-26 2021-06-29 广州虎牙科技有限公司 Data packet processing method, device, system, scheduling device and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090000028A (en) * 2006-12-15 2009-01-07 주식회사 케이티 Method for controlling a variable performance contents delivery network service
CN105959354A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 Load scheduling method and load scheduling system of streaming media service
CN108243215A (en) * 2016-12-26 2018-07-03 中兴通讯股份有限公司 The dispatching method and dispatching device of content delivery network service device
CN107231436A (en) * 2017-07-14 2017-10-03 网宿科技股份有限公司 A kind of method and apparatus for carrying out traffic scheduling
CN109542613A (en) * 2017-09-22 2019-03-29 中兴通讯股份有限公司 Distribution method, device and the storage medium of service dispatch in a kind of CDN node
CN108900569A (en) * 2018-05-29 2018-11-27 张迅 Service providing end equipment and service providing method
CN110460682A (en) * 2019-09-18 2019-11-15 深圳市网心科技有限公司 A kind of data processing method, device, system and storage medium
CN111510491A (en) * 2020-04-15 2020-08-07 华为终端有限公司 Resource access method, cache server, storage medium and electronic device
CN112416599A (en) * 2020-12-03 2021-02-26 腾讯科技(深圳)有限公司 Resource scheduling method, device, equipment and computer readable storage medium
CN113055493A (en) * 2021-03-26 2021-06-29 广州虎牙科技有限公司 Data packet processing method, device, system, scheduling device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于复杂网络的绿色CDN社团结构划分;李昕冉;周金和;;计算机工程;20180315(第03期);全文 *

Also Published As

Publication number Publication date
CN114244903A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN109246229B (en) Method and device for distributing resource acquisition request
CN110336848B (en) Scheduling method, scheduling system and scheduling equipment for access request
CN104243405A (en) Request processing method, device and system
CN111913818A (en) Method for determining dependency relationship between services and related device
CN112165436B (en) Flow control method, device and system
CN107172176B (en) APP method for connecting network, equipment and configuration server based on configuration management
CN103607424B (en) Server connection method and server system
CN110740164B (en) Server determination method, regulation and control method, device, equipment and storage medium
CN113472852A (en) CDN node back-source method, device and equipment
CN110781015A (en) Message queue distribution method, device, equipment and computer readable storage medium
CN109428926B (en) Method and device for scheduling task nodes
CN105792247B (en) data pushing method and device
CN110874314B (en) Pressure measurement method, device, equipment and medium
CN110138808A (en) Anti-hijacking method for down loading and system based on CDN
US20150095496A1 (en) System, method and medium for information processing
CN111913660B (en) Dotting data processing method and system
CN114244903B (en) Resource scheduling method, system, server and storage medium
CN109922120B (en) Method and terminal for improving DNS availability
CN112491951A (en) Request processing method, server and storage medium in peer-to-peer network
CN110460486B (en) Service node monitoring method and system
CN113765964A (en) Method and device for distributing services of distributed system
CN115051978B (en) Equipment monitoring implementation method and system
CN109032787B (en) Task allocation method and device
CN109688171B (en) Cache space scheduling method, device and system
CN114615337B (en) Equipment scheduling method, system, server and 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
GR01 Patent grant
GR01 Patent grant