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

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

Info

Publication number
CN114244903A
CN114244903A CN202111284939.1A CN202111284939A CN114244903A CN 114244903 A CN114244903 A CN 114244903A CN 202111284939 A CN202111284939 A CN 202111284939A CN 114244903 A CN114244903 A CN 114244903A
Authority
CN
China
Prior art keywords
equipment
low
schedulable
configuration
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.)
Pending
Application number
CN202111284939.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.)
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/CN114244903A/en
Publication of CN114244903A publication Critical patent/CN114244903A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the application relates to the technical field of internet and discloses a resource scheduling method, a resource scheduling system, a resource scheduling 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 scheduling center by a high-allocation device in the CDN network when schedulable service resources are insufficient; selecting schedulable low-configuration equipment from the low-configuration equipment according to prestored equipment information of the low-configuration equipment in the CDN network; and sending the device identification of the schedulable low-allocation device to the terminal so that the terminal can obtain the service resource of the schedulable low-allocation device. According to the embodiment of the application, when schedulable service resources of high-distribution equipment are insufficient, the service resources of low-distribution equipment in the CDN can be scheduled, all service resources in the CDN can be fully utilized, and the operation cost of the CDN is not increased 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 resource scheduling server and a storage medium.
Background
At present, the internet is developed vigorously, respective technologies and products are updated and iterated continuously, and in the internet environment, a large amount of equipment bandwidth resources cannot be perfected in the using process, so that waste and quality instability exist. At present, an acceleration scheme based on a Content Delivery Network (CDN) mainly obtains corresponding overlay device information through an analysis request, and obtains corresponding service resources from the overlay device.
However, since the resource request in the CDN network is prone to the high-allocation device, the service resource of the low-allocation device in the CDN network is idle and wasted, and the high-allocation device may obtain the service resource from the other CDN network when there is no corresponding resource, so that internal consumption may be generated for extracting the resource across the network, and the idle service resource of the low-allocation device and the cross-network obtaining resource of the high-allocation device may increase the operation cost of the CDN network.
Disclosure of Invention
An object of the embodiments of the present application is to provide a resource scheduling method, a resource scheduling system, a server, and a storage medium, so that when schedulable service resources of highly configured devices of a CDN network are insufficient, service resources of each low-configured device 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 problem, an embodiment of the present application provides a resource scheduling method, which is applied to a scheduling center of a content delivery CDN network, and includes: receiving a resource request of a terminal, wherein the resource request is sent to the scheduling center by a high-allocation device in the CDN network when schedulable service resources are insufficient; selecting schedulable low-configuration equipment from the low-configuration equipment according to prestored equipment information of the low-configuration equipment in the CDN network; and sending the device identification of the schedulable low-allocation device to the terminal so that the terminal can obtain the service resource of the schedulable low-allocation device.
The embodiment of the present application further provides a resource scheduling method, which is applied to a high-allocation device of a content delivery CDN network, and includes: receiving a resource request of a terminal; when schedulable service resources are insufficient, the resource request is sent to a scheduling center of the CDN network, so that the scheduling center selects schedulable low-allocation equipment from the low-allocation equipment according to prestored equipment information of the low-allocation equipment in the CDN network; and receiving the equipment identifier of the schedulable low-allocation 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-allocation equipment.
The embodiment of the present application further provides a resource scheduling method, applied to a terminal, including: analyzing a resource request generated by a user to acquire a high-level equipment domain name; sending the resource request to high-configuration equipment of the CDN according to the domain name of the high-configuration equipment; sending the resource request to a scheduling center of the CDN by the high-allocation equipment when schedulable service resources are insufficient, and receiving a device identifier of the schedulable low-allocation equipment returned by the scheduling center, wherein the schedulable low-allocation equipment is selected from the low-allocation equipment by the scheduling center according to pre-stored device information of the low-allocation equipment of the CDN; 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 embodiment of the present application further provides a resource scheduling system, which is applied to a scheduling center of a content delivery CDN network, and includes: a receiving module, configured to receive a resource request of a terminal, where the resource request is sent to a scheduling center by a high-allocation device in the CDN network when schedulable service resources are insufficient; the selecting module is used for selecting schedulable low-configuration equipment from the low-configuration equipment according to prestored equipment information of the low-configuration equipment in the CDN network; and the transmission module is used for sending the equipment identifier of the schedulable low-allocation equipment to the terminal so that the terminal can acquire the service resource of the schedulable low-allocation equipment.
An embodiment of the present application further provides a server, including: 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 above-described resource scheduling method.
Embodiments of the present application further provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the above resource scheduling method.
In the embodiment of the application, a resource request of a terminal is received on a scheduling center of a content delivery CDN network, wherein the resource request is sent to the scheduling center by a high-configuration device in the CDN network when schedulable service resources are insufficient; selecting schedulable low-configuration equipment from the low-configuration equipment according to prestored equipment information of the low-configuration equipment in the CDN network; and sending the device identification of the schedulable low-allocation device to the terminal so that the terminal can obtain the service resource of the schedulable low-allocation device. The scheduling method and the scheduling device for the high-configuration equipment can schedule the service resources of the low-configuration equipment in the CDN when the schedulable service resources of the high-configuration equipment are insufficient, can fully utilize all the service resources in the CDN, do not increase the operation cost of the CDN on the premise of ensuring the service quality, and avoid the technical problem that the operation cost of the CDN is high due to the fact that the service resources are acquired across the network and the service resources of the low-configuration equipment are idle when the high-configuration equipment resources are insufficient in the prior art.
Drawings
One or more embodiments are illustrated by the corresponding figures in the drawings, which are not meant to be limiting.
Fig. 1 is a flowchart of a resource scheduling method provided in an embodiment of the present application;
fig. 2 is a flowchart of a resource scheduling method provided in an embodiment of the present application;
fig. 2a is a schematic diagram illustrating a relationship between a request number and a device quality index in a low-profile device according to an embodiment of the present application;
fig. 3 is a flowchart of a resource scheduling method provided in an embodiment of the present application;
fig. 4 is a flowchart of a resource scheduling method provided in an embodiment of the present application;
fig. 5 is a flowchart of a resource scheduling method provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a resource scheduling system according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a resource scheduling system according to an embodiment of the present application;
fig. 8 is a schematic structural 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
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that in the examples of the present application, numerous technical details are set forth in order to provide a better understanding of the present application. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present application, and the embodiments may be mutually incorporated and referred to without contradiction.
The embodiment of the present application relates to a resource scheduling method, which is applied to a scheduling center of a content delivery CDN network, and specifically includes the following steps, as shown in fig. 1.
Step 101, receiving a resource request of a terminal, wherein the resource request is sent to a scheduling center by a high-allocation device in a CDN network when schedulable service resources are insufficient.
In an example implementation, the resource request of the terminal received by the scheduling center is forwarded to the scheduling center by the high-provisioning device in the CDN network, and when the high-provisioning device receives the resource request sent by the terminal, it may first determine whether service resources that can be scheduled in the current high-provisioning device are sufficient, and when schedulable service resources in the high-provisioning device are insufficient, it indicates that the high-provisioning device cannot process the resource request, and at this time, the high-provisioning device sends the resource request to the scheduling center.
In an example implementation, a high-provisioned device in a CDN network refers to a device in the CDN network that is configured relatively high, or a device in the CDN network that can obtain resources across the network.
And 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 that is set by a user in the CDN network in a customized manner, or a device that is configured relatively lower in the CDN network, or a device that cannot acquire resources across networks in the CDN network.
In an example implementation, each low-profile device in the CDN network reports 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 is a Uniform Resource Locator (URL), that is, a network address of the low-profile device; the equipment weight is generated by the scheduling center according to the equipment monitoring information or the equipment quality index reported by the low-set equipment, the equipment weight represents the number of the requests which can be called by the low-set equipment, the higher the equipment weight is, the higher the number of the requests which can be called by the low-set equipment is, the lower the equipment weight is, and the fewer the number of the requests which can be called by the low-set 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-configuration device, a scheduling center may select one schedulable low-configuration device from low-configuration devices according to device information of the low-configuration devices, and when selecting the schedulable low-configuration device, the scheduling center may select only according to a current request number, may select only according to a device weight, may select according to the current request number and the device weight, may select according to the current request number, the device weight, and cache information, where the selection is not limited, and any one or a combination of several pieces of device information may be used as a basis for selecting the schedulable low-configuration device.
In an exemplary implementation, the resource request is only a trigger mechanism for triggering the scheduling center to select the schedulable low-profile device according to the device information of each low-profile device, and is not used as a basis for selecting the schedulable low-profile device.
And 103, sending the device identifier of the schedulable low-allocation device to the terminal so that the terminal can obtain the service resource of the schedulable low-allocation device.
In an example implementation, after selecting the schedulable low-profile device, the scheduling center sends the device identifier of the schedulable low-profile device to the high-profile device, the high-profile device forwards the device identifier to the terminal, and the terminal accesses the schedulable low-profile device according to the device identifier (i.e., the URL address) after receiving the device identifier of the schedulable low-profile device, so as to obtain the service resource on the schedulable low-profile device.
In the embodiment of the application, a resource request of a terminal is received on a scheduling center of a content delivery CDN network, wherein the resource request is sent to the scheduling center by a high-configuration device in the CDN network when schedulable service resources are insufficient; selecting schedulable low-configuration equipment from the low-configuration equipment according to prestored equipment information of the low-configuration equipment in the CDN network; and sending the device identification of the schedulable low-allocation device to the terminal so that the terminal can obtain the service resource of the schedulable low-allocation device. The scheduling method and the scheduling device for the high-configuration equipment can schedule the service resources of the low-configuration equipment in the CDN when the schedulable service resources of the high-configuration equipment are insufficient, can fully utilize all the service resources in the CDN, do not increase the operation cost of the CDN on the premise of ensuring the service quality, and avoid the technical problem that the operation cost of the CDN is high due to the fact that the service resources are acquired across the network and the service resources of the low-configuration equipment are idle when the high-configuration equipment resources are insufficient in the prior art.
The embodiment of the present application relates to a resource scheduling method, which is applied to a scheduling center of a content delivery CDN network, and specifically includes the following steps, as shown in fig. 2.
Step 201, receiving a resource request of a terminal, where the resource request is sent to a scheduling center by a high-allocation device in a CDN network when schedulable service resources are insufficient.
In an exemplary implementation, this step is substantially the same as step 101 in the embodiment of the present application, and is not repeated here.
Step 202, determining schedulable request information of each low-configuration device according to a device weight in the device information of each low-configuration device in the CDN network.
In an example implementation, a mapping relationship between the device weight and the schedulable request information may be preset in the scheduling center, where the schedulable information is strength of the low-device scheduling request, such as: normal scheduling, more scheduling, less scheduling, no scheduling and the like; the strength of the current scheduling request of the low-configuration device can be obtained according to the weight value of the low-configuration device.
In an example implementation, the device weight of the low-configuration device may be generated according to device monitoring information reported by the low-configuration device, and when the device monitoring information indicates that the low-configuration device is a normal low-configuration device, the device weight of the low-configuration device may be a first device weight, and the first device weight may be preset to 10; when the device monitoring information indicates that the low-configuration device is an abnormal low-configuration device, setting the device weight value of the low-configuration device as a second device weight value, wherein the first device weight value can be preset to be 0; after the abnormal low-level equipment removes the abnormality, the weight of the equipment can be adjusted according to the weight increasing function, the time for removing the abnormality and the current time; the expression of the weight increasing function is as follows: y is 2XAnd +2, Y is a device weight, and X is a time interval between the time for removing the exception and the current time.
In an example implementation, the device monitoring information may be device alive status, device hardware status, and device software status; and only when the equipment survival state is the equipment survival state, the equipment hardware state is the hardware normal state and the equipment software state is the software normal state, the low-configuration equipment is indicated to be normal low-configuration equipment.
In an example implementation, when there is an abnormality in any one of the device alive state, the device hardware state, and the device software state of the low-configuration device, it is determined that the low-configuration device is an abnormally low-configuration device, at this time, it is detected whether the current request number on the abnormally low-configuration device is zero, and for an abnormally low-configuration device with a current request number that is not zero, the current request on the abnormally low-configuration device is dispatched to a low-configuration device in the schedulable low-configuration device set to ensure normal operation of requests on each low-configuration device.
In an example implementation, the device survival status is one of device survival, device down, device network outage and device offline, the device hardware status is one of hardware normal, disk fault, memory fault, motherboard fault, network card fault and Central Processing Unit (CPU) fault, the device software status is one of software normal and cache service software fault, the scheduling center considers the low-profile device to be normal only when the device survival status is device survival, the device hardware status is hardware normal and the device software status is software normal, and the other situations are considered the low-profile device to be abnormal.
In an example implementation, the device weight of the low-configuration device may be generated according to a device quality indicator reported by the low-configuration device, and when the device quality indicator indicates that the low-configuration device is a high-quality low-configuration device, the device weight of the low-configuration device may be set to be a first device weight, and the first device weight may be preset to be 10; when the equipment quality index indicates that the low-quality equipment is low-quality low-distribution equipment, generating an equipment weight according to a weight decreasing function, the generation time of the equipment quality index and the current time; wherein, the expression of the weight decreasing function is: y10 x (1/2)XY is the equipment weight, and X is the time interval between the generation time of the equipment quality index and the current time; after the quality of the low-quality low-configuration equipment is recovered (the low-quality equipment reported by the low-quality low-configuration equipment is not received within the preset time)Quality index, or quality index of high-quality equipment reported by low-quality and low-set equipment is received), and the weight of the equipment can be adjusted according to the weight increasing function, the abnormal time removal time and the current time; the expression of the weight increasing function is as follows: y is 2X+2, Y is the device weight, 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 requests are processed by the low-profile device, as can be seen from the relationship between the number of requests and the quality index given in fig. 2 a: when the number of requests increases, the corresponding equipment quality index decreases; thus, a device quality threshold (e.g., 700kp/s) may be set; when the equipment quality index of the low-equipment is larger than the equipment quality threshold, the low-equipment is indicated to be high-quality low-equipment; and when the equipment quality index of the low-configuration equipment is smaller than the equipment quality threshold, the low-configuration equipment is indicated to have a low rate of processing requests, the low-configuration equipment is a low-quality low-configuration equipment, the allocation requests of the low-configuration equipment are stopped within a certain time period, so that the request number of the low-configuration equipment starts to decrease. The service request is controlled to be served on the low-configuration equipment through the equipment quality index, and the service of the low-configuration equipment can be effectively 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 a schedulable low-configuration device from the schedulable low-configuration device set according to the current number of requests.
And step 203, selecting schedulable low-allocation equipment from the low-allocation equipment according to the current request number and the schedulable request information.
In an example implementation, each low-allocation device may be classified according to schedulable request information, and taking the schedulable request information as normal scheduling, multi-scheduling, less scheduling, and non-scheduling as an example, each low-allocation device may be divided into a multi-scheduling device set, a normal scheduling device set, a less-scheduling device set, and a non-scheduling device set; preferentially scheduling the equipment in the multi-scheduling equipment set, sequencing all low equipment in the multi-scheduling equipment set from small to large according to the current request number, and preferentially selecting the low equipment with the minimum current request number as the schedulable low-allocation equipment; and if the schedulable low-level equipment is not selected from the multi-scheduling equipment set, selecting from the normal scheduling equipment set, and so on.
And step 204, sending the device identifier of the schedulable low-allocation device to the terminal, so that the terminal can obtain the service resource of the schedulable low-allocation device.
In an exemplary implementation, this step is substantially the same as step 103 in the embodiment of the present application, and is not repeated here.
In the embodiment of the present application, on the basis of other embodiments, it may be determined whether to schedule a request to the low-configuration device according to the device state of each low-configuration device, so as to ensure stable service on each low-configuration device.
The embodiment of the present application relates to a resource scheduling method, which is applied to a scheduling center of a content delivery CDN network, and specifically includes 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 scheduling center by a high-allocation device in a CDN network when schedulable service resources are insufficient.
In an exemplary implementation, this step is substantially the same as step 101 in the embodiment of the present application, and is not repeated here.
Step 302, according to whether the device information of each low-configuration device in the CDN network includes cache information, divide each low-configuration device into a cached low-configuration device set and a non-cached low-configuration device set.
In an example implementation, the cache information is not provided for each low-profile device, and therefore, the low-profile devices may be divided into a set of cached low-profile devices and a set of uncached low-profile devices according to whether the device information in the low-profile devices includes the cache information.
And step 303, selecting schedulable low-configuration equipment from the buffered low-configuration equipment set according to the equipment information when the buffered low-configuration equipment set is not empty.
In an example implementation, after the classification is performed according to the cache information, a low-configuration device in the cache low-configuration device set is preferentially selected as a schedulable low-configuration device; selecting schedulable low-set equipment according to other equipment information except the cache information of each low-set equipment in the cached low-set equipment set
And step 304, selecting schedulable low-configuration equipment from the non-buffer low-configuration equipment set according to the equipment information when the buffer low-configuration equipment set is empty.
In an example implementation, when the partitioned set of low-configuration devices with cache is empty, that is, all the low-configuration devices in the set of schedulable low-configuration devices are low-configuration devices without cache information, the schedulable low-configuration devices are selected according to the device information of each low-configuration device in the set of no cache low-configuration devices except the cache information.
Step 305, sending the device identifier of the schedulable low-allocation device to the terminal, so that the terminal can obtain the service resource of the schedulable low-allocation device.
In an exemplary implementation, this step is substantially the same as step 103 in the embodiment of the present application, and is not repeated here.
In the embodiment of the application, on the basis of other embodiments, whether to schedule a request to the low-profile device may be determined according to whether the low-profile device has a cache, and a content scheduling manner is adopted for each low-profile device, so that the access rate of service resources may be increased, and the back-source bandwidth of the CDN network may be reduced.
The embodiment of the present application relates to a resource scheduling method, which is applied to a high-allocation device of a content delivery CDN network, and specifically includes the following steps, as shown in fig. 4.
Step 401, receiving a resource request of a terminal.
In an example implementation, after a terminal generates a resource request, a user may analyze a domain name of a high-provisioning device from the resource request, and the terminal may access the high-provisioning device according to the domain name of the high-provisioning device and send the resource request to the high-provisioning device while accessing the high-provisioning device.
Step 402, when 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-profile devices from the low-profile devices according to pre-stored device information of the low-profile devices in the CDN network.
In an example implementation, after receiving the resource request, the high-allocation device may first determine its schedulable service resource, and when the schedulable service resource is insufficient, send the resource request to the scheduling center, so that the scheduling center may select a schedulable low-allocation device from the low-allocation devices according to the device information of the low-allocation devices to schedule the service resource of each low-allocation device in the CDN network, thereby avoiding the high-allocation device from acquiring the service resource across networks.
And step 403, receiving the device identifier of the schedulable low-allocation 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-allocation device.
In an example implementation, after selecting a schedulable low-profile device, a scheduling center sends a device identifier of the schedulable low-profile device to a high-profile device, the high-profile device forwards the device identifier to a terminal after receiving the device identifier, and the terminal accesses the schedulable low-profile device according to the device identifier (i.e., a URL address) after receiving the device identifier of the schedulable low-profile device, so as to obtain a service resource on the schedulable low-profile device.
According to the embodiment of the application, a resource request of a terminal is received on a high-distribution device of a content delivery CDN network; when schedulable service resources are insufficient, sending a resource request to a scheduling center of the CDN, so that the scheduling center selects schedulable low-allocation equipment from the low-allocation equipment according to prestored equipment information of the low-allocation equipment in the CDN; and receiving the equipment identifier of the schedulable low-allocation equipment returned by the scheduling center, and sending the equipment identifier to the terminal so that the terminal can obtain the service resource of the schedulable low-allocation equipment. The scheduling method and the scheduling device for the high-configuration equipment can schedule the service resources of the low-configuration equipment in the CDN when the schedulable service resources of the high-configuration equipment are insufficient, can fully utilize all the service resources in the CDN, do not increase the operation cost of the CDN on the premise of ensuring the service quality, and avoid the technical problem that the operation cost of the CDN is high due to the fact that the service resources are acquired across the network and the service resources of the low-configuration equipment are idle when the high-configuration equipment resources are insufficient in the prior art.
An embodiment of the present application relates to a resource scheduling method, which is applied to a terminal, and as shown in fig. 5, specifically includes the following steps.
Step 501, analyzing a resource request generated by a user to obtain a domain name of a high-level equipment.
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 the high-profile device domain name is analyzed from the resource request.
Step 502, sending a resource request to a high-configuration device of the CDN according to the domain name of the high-configuration device; and the high-allocation equipment sends the resource request to a scheduling center of the CDN when the schedulable service resources are insufficient, and receives the equipment identifier of the schedulable low-allocation equipment returned by the scheduling center, wherein the schedulable low-allocation equipment is selected from the low-allocation equipment by the scheduling center according to the pre-stored equipment information of the low-allocation equipment of the CDN.
In an example implementation, after acquiring a domain name of a high-configuration device, a terminal accesses the high-configuration device according to the domain name of the high-configuration device, and sends a resource request to the high-configuration device while accessing to acquire a resource on the high-configuration device, the high-configuration device first determines a schedulable service resource of the high-configuration device after receiving the resource request, and when the schedulable service resource is sufficient, the high-configuration device responds to the resource request to allocate the corresponding service resource to the terminal; when schedulable service resources are insufficient, the high-configuration equipment does not need to acquire resources across the network but forwards the resource request to the scheduling center, the scheduling center selects schedulable low-configuration equipment from the low-configuration equipment according to the equipment information of the low-configuration equipment to schedule the service resources of the low-configuration equipment in the CDN, and the scheduling center simultaneously returns the equipment identifier of the schedulable low-configuration equipment to the high-configuration equipment and then sends the equipment identifier to the terminal.
Step 503, receiving the device identifier returned by the high-configuration device, and acquiring 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-configuration device sent by a high-configuration device, a terminal accesses the schedulable low-configuration device according to the device identifier (i.e., a URL address) to obtain a service resource on the schedulable low-configuration device.
In the embodiment of the application, a resource request generated by a user is analyzed on a high-configuration device of a content delivery CDN network to obtain a domain name of the high-configuration device; sending the resource request to the high-configuration equipment of the CDN according to the domain name of the high-configuration equipment; sending a resource request to a scheduling center of the CDN by the high-allocation equipment when schedulable service resources are insufficient, and receiving an equipment identifier of the schedulable low-allocation equipment returned by the scheduling center, wherein the schedulable low-allocation equipment is selected from each low-allocation equipment by the scheduling center according to prestored equipment information of each low-allocation equipment of the CDN; and receiving the device identification returned by the high-configuration device, and acquiring the service resource of the schedulable low-configuration device according to the device identification. The scheduling method and the scheduling device for the high-configuration equipment can schedule the service resources of the low-configuration equipment in the CDN when the schedulable service resources of the high-configuration equipment are insufficient, can fully utilize all the service resources in the CDN, do not increase the operation cost of the CDN on the premise of ensuring the service quality, and avoid the technical problem that the operation cost of the CDN is high due to the fact that the service resources are acquired across the network and the service resources of the low-configuration equipment are idle when the high-configuration equipment resources are insufficient in the prior art.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
An 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 embodiment are specifically described below, the following are only implementation details provided for facilitating understanding, and are not necessary for implementing the embodiment, and fig. 6 is a schematic diagram of the resource scheduling system of the embodiment, and includes: 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 by a high-allocation device in a CDN network when schedulable service resources are insufficient;
the selection module is used for selecting schedulable low-configuration equipment from the low-configuration equipment according to prestored equipment information of the low-configuration equipment in the CDN network;
and the transmission module is used for sending the equipment identifier of the schedulable low-allocation equipment to the terminal so that the terminal can obtain the service resource of the schedulable low-allocation equipment.
An embodiment of the present application relates to a resource scheduling system, which is characterized in that, when applied to a high-allocation device of a content delivery CDN network, details of the resource scheduling system of the present embodiment are specifically described below, the following are only implementation details provided for facilitating understanding, and are not necessary for implementing the present embodiment, and fig. 7 is a schematic diagram of the resource scheduling system of the present embodiment, and includes: 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 the resource request to a scheduling center of the CDN network when schedulable service resources are insufficient, so that the scheduling center selects a schedulable low-profile device from among the low-profile devices according to pre-stored device information of each low-profile device in the CDN network.
The second receiving module 703 is configured to receive the device identifier of the schedulable low-profile 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-profile device.
An embodiment of the present application relates to a resource scheduling system, which is characterized in that, when applied to a terminal, details of the resource scheduling system of the present embodiment are specifically described below, the following are only provided for facilitating understanding of implementation details, and are not necessary for implementing the present embodiment, and fig. 8 is a schematic diagram of the resource scheduling system of the present embodiment, and includes: a parsing module 801, a transmission module 802 and an acquisition module 803.
The parsing module 801 is configured to parse a resource request generated by a user to obtain a domain name of a high-provisioning device.
A transmission module 802, configured to send a resource request to a high-provisioning device of the CDN network according to the domain name of the high-provisioning device; sending a resource request to a scheduling center of the CDN by the high-allocation equipment when schedulable service resources are insufficient, and receiving an equipment identifier of the schedulable low-allocation equipment returned by the scheduling center, wherein the schedulable low-allocation equipment is selected from each low-allocation equipment by the scheduling center according to prestored equipment information of each low-allocation equipment of the CDN;
an obtaining module 803, configured to receive an apparatus identifier returned by the high-configuration apparatus, and obtain a service resource of the schedulable low-configuration apparatus according to the apparatus identifier.
It should be understood that the present embodiment is a system embodiment corresponding to the above method embodiment, and the present embodiment can be implemented in cooperation with the above method embodiment. The related technical details and technical effects mentioned in the above embodiments are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the above-described embodiments.
The embodiment of the present application relates to a server, as shown in fig. 9, including: at least one processor 901; and a memory 902 communicatively coupled to the at least one processor 901; the memory 902 stores instructions executable by the at least one processor 901, and the instructions are executed by the at least one processor 901, so that the at least one processor 901 can execute the resource scheduling method in the foregoing embodiments.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or 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 a wireless medium via an 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 the memory may be used to store data used by the processor in performing operations.
The embodiment of the application relates to a computer readable storage medium which stores a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and 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 for carrying out the present application, and that various changes in form and details may be made therein without departing from the spirit and scope of the present application in practice.

Claims (11)

1. A resource scheduling method is applied to a scheduling center of a content delivery CDN network, and comprises the following steps:
receiving a resource request of a terminal, wherein the resource request is sent to the scheduling center by a high-allocation device in the CDN network when schedulable service resources are insufficient;
selecting schedulable low-configuration equipment from the low-configuration equipment according to prestored equipment information of the low-configuration equipment in the CDN network;
and sending the device identification of the schedulable low-allocation device to the terminal so that the terminal can obtain the service resource of the schedulable low-allocation device.
2. The method according to claim 1, wherein the device information includes a device weight and a current request number;
the selecting schedulable low-profile equipment from the low-profile equipment according to the pre-stored equipment information of the low-profile equipment in the CDN network includes:
determining schedulable request information of each low-configuration device according to the device weight;
and selecting the schedulable low-allocation equipment from the low-allocation equipment according to the current request number and the schedulable request information.
3. The method for scheduling resources according to claim 2, wherein the method further comprises:
generating the equipment weight according to the equipment monitoring information reported by the low-level equipment; alternatively, the first and second electrodes may be,
and generating the equipment weight according to the equipment quality index reported by the low-level equipment.
4. The method 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-level equipment is abnormal or not according to the equipment monitoring information;
when the low-configuration equipment is normal low-configuration equipment, setting the equipment weight as a first equipment weight;
when the low-configuration equipment is abnormal low-configuration equipment, setting the equipment weight equipment as a second equipment weight; and when the abnormal low-level equipment removes the abnormality, adjusting the weight of the equipment according to a preset weight increasing function, the abnormality removing time and the current time.
5. The 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 includes:
detecting the quality of the low-distribution 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 low-configuration equipment is low-quality low-configuration 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 and low-distribution equipment is recovered, adjusting the weight of the equipment 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 the selecting a schedulable low-profile device from among the low-profile devices according to pre-stored device information of the low-profile devices in the CDN network includes:
dividing each low-level equipment into a buffered low-level equipment set and a non-buffered low-level equipment set according to whether the equipment information contains cache information;
when the buffered low-configuration equipment set is not empty, selecting the schedulable low-configuration equipment from the buffered low-configuration equipment set according to the equipment information;
and when the buffered low-configuration equipment set is empty, selecting the schedulable low-configuration equipment from the non-buffered low-configuration equipment set according to the equipment information.
7. A resource scheduling method is applied to high-allocation equipment of a content delivery CDN network, and the method comprises the following steps:
receiving a resource request of a terminal;
when schedulable service resources are insufficient, the resource request is sent to a scheduling center of the CDN network, so that the scheduling center selects schedulable low-allocation equipment from the low-allocation equipment according to prestored equipment information of the low-allocation equipment in the CDN network;
and receiving the equipment identifier of the schedulable low-allocation 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-allocation equipment.
8. A resource scheduling method is applied to a terminal, and the method comprises the following steps:
analyzing a resource request generated by a user to acquire a high-level equipment domain name;
sending the resource request to high-configuration equipment of the CDN according to the domain name of the high-configuration equipment; sending the resource request to a scheduling center of the CDN by the high-allocation equipment when schedulable service resources are insufficient, and receiving a device identifier of the schedulable low-allocation equipment returned by the scheduling center, wherein the schedulable low-allocation equipment is selected from the low-allocation equipment by the scheduling center according to pre-stored device information of the low-allocation equipment of the CDN;
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.
9. A resource scheduling system, applied to a scheduling center of a content delivery CDN network, the system comprising:
a receiving module, configured to receive a resource request of a terminal, where the resource request is sent to a scheduling center by a high-allocation device in the CDN network when schedulable service resources are insufficient;
the selecting module is used for selecting schedulable low-configuration equipment from the low-configuration equipment according to prestored equipment information of the low-configuration equipment in the CDN network;
and the transmission module is used for sending the equipment identifier of the schedulable low-allocation equipment to the terminal so that the terminal can acquire the service resource of the schedulable low-allocation equipment.
10. A server, comprising:
at least one processor; and the number of the first and second groups,
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 resource scheduling 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 Pending CN114244903A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111284939.1A CN114244903A (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 CN114244903A (en) 2021-11-01 2021-11-01 Resource scheduling method, system, server and storage medium

Publications (1)

Publication Number Publication Date
CN114244903A true CN114244903A (en) 2022-03-25

Family

ID=80743488

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN114244903A (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社团结构划分", 计算机工程, no. 03, 15 March 2018 (2018-03-15) *

Similar Documents

Publication Publication Date Title
CN107590001B (en) Load balancing method and device, storage medium and electronic equipment
CN109246229A (en) A kind of method and apparatus of distribution resource acquisition request
CN105159782A (en) Cloud host based method and apparatus for allocating resources to orders
CN107623643B (en) Data packet forwarding method and device
CN112165436B (en) Flow control method, device and system
CN104243405A (en) Request processing method, device and system
US20210357473A1 (en) Page-loading method and terminal, and page-responding method and server
CN110740164A (en) Server determination method, regulation and control method, device, equipment and storage medium
CN113190524A (en) Industrial big data acquisition method and system
CN111290696A (en) Flow control method and device for application program assembly
CN110933178B (en) Method for adjusting node configuration in cluster system and server
US6622167B1 (en) Document shadowing intranet server, memory medium and method
CN113905091B (en) Method and device for processing access request
CN113364888B (en) Service scheduling method, system, electronic device and computer readable storage medium
CN110874314A (en) Pressure measurement method, apparatus, device and medium
US20030126244A1 (en) Apparatus for scheduled service of network requests and a method therefor
US11206673B2 (en) Priority control method and data processing system
CN111913660A (en) Dotting data processing method and system
CN109922120B (en) Method and terminal for improving DNS availability
CN114244903A (en) Resource scheduling method, system, server and storage medium
CN111833478A (en) Data processing method, device, terminal and storage medium
CN113055493B (en) Data packet processing method, device, system, scheduling device and storage medium
CN115002209A (en) Data processing method, device and system
CN105939278B (en) Traffic processing method and device
CN114615337A (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