Resource scheduling method, device and system
By sending resource scheduling requests to the resource management platform, the target nodes are scheduled from multiple PCDN service nodes, which solves the problem of limited resources of a single PCDN vendor and achieves dynamic allocation of resources and improvement of user experience.
Patent Information
- Application Number
- CN202311405051.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2024-10-18
AI Technical Summary
A single P2P content distribution network (PCDN) manufacturer has limited service resources and is unable to meet user needs, resulting in a low user experience.
By sending resource scheduling requests to the resource management platform, the target nodes are scheduled from multiple PCDN service nodes, and the target PCDN SDK is loaded to obtain resources to achieve dynamic scheduling and allocation of resources.
It effectively avoids the problem of limited resources of a single PCDN manufacturer, meets users' resource needs, and improves user experience.
Smart Images

Figure CN118802802A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a resource scheduling method, device and system. Background Art
[0002] With the rapid development of mobile Internet, the storage and computing capabilities of Internet terminal devices have also been greatly improved, making it possible to transmit large amounts of data using peer-to-peer (P2P) networks. P2P content delivery networks (PCDN) are based on P2P technology and tap into the massive fragmented idle resources of telecom edge networks.
[0003] In some scenarios, PCDN vendors provide PCDN software development kits (SDKs) for user application integration. After integrating PCDN SDKs, user applications can obtain resources from PCDN nodes in a P2P manner. However, the PCDN SDKs provided by each PCDN vendor can only access its own PCDN nodes, and the resources that a single PCDN vendor can serve are limited. Due to restrictions such as coverage areas and operators, it is difficult to meet user needs, resulting in a low user experience. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a resource scheduling method, device, system, electronic device and storage medium, which can provide sufficient resources for user applications, solve the problem of limited resources that can be served by a single PCDN vendor, meet user needs, and improve user experience.
[0005] In order to solve the above technical problems, the embodiments of the present application are implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a resource scheduling method, which includes: sending a resource scheduling request to a resource management platform, the resource management platform is used to schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request; determining a target PCDN service node from at least one PCDN service node according to a resource demand in the resource scheduling request; loading a PCDN SDK of the target PCDN service node, and obtaining resources from the target PCDN service node through the PCDN SDK.
[0007] In a second aspect, an embodiment of the present application provides a resource scheduling method, which includes: receiving a resource scheduling request sent by a client; scheduling at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request; the client is used to determine a target PCDN service node from at least one PCDN service node according to a resource demand in the resource scheduling request, determine a target PCDN service node from at least one PCDN server node, and load a PCDN SDK of the target PCDN service node, and obtain resources from the target PCDN service node through the PCDN SDK.
[0008] In a third aspect, an embodiment of the present application provides a resource scheduling device, which includes: a sending module, used to send a resource scheduling request to a resource management platform, and the resource management platform is used to schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request; a determination module, used to determine a target PCDN service node from at least one PCDN server node according to a resource requirement in the resource scheduling request; and an acquisition module, used to load a PCDN SDK of the target PCDN service node, and acquire resources from the target PCDN service node through the PCDN SDK.
[0009] In a fourth aspect, an embodiment of the present application provides a resource scheduling device, which includes: a receiving module, used to receive a resource scheduling request sent by a client; a scheduling module, used to schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request; the client is used to determine a target PCDN service node from at least one PCDN server node according to the resource demand in the resource scheduling request, and load the PCDNSDK of the target PCDN service node, and obtain resources from the target PCDN service node through the PCDN SDK.
[0010] In a fifth aspect, an embodiment of the present application provides a resource scheduling system, the resource scheduling system comprising: a client and a cloud server, the client being connected to the cloud server; the client deploying a PCDN service module, the PCDN service module integrating an SDK loading module and PCDN SDKs of multiple PCDN service nodes, the cloud server deploying a resource management platform, the resource management platform connecting to multiple PCDN service nodes; the SDK loading module being used to send a resource scheduling request to the resource management platform, the resource management platform being used to schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request; the PCDN service module determining a target PCDN service node from at least one PCDN service node according to a resource demand in the resource scheduling request; the SDK loading module loading the PCDN SDK of the target PCDN service node, and obtaining resources from the target PCDN service node through the PCDN SDK.
[0011] In the sixth aspect, an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to implement the steps of the resource scheduling method mentioned in the first aspect or the second aspect.
[0012] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the resource scheduling method mentioned in the first aspect or the second aspect are implemented.
[0013] It can be seen from the technical solution provided by the above embodiments of the present application that by sending a resource scheduling request to the resource management platform, the resource management platform can schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request. Therefore, at least one PCDN service node can provide resource services. Then, according to the resource demand in the resource scheduling request, the target PCDN service node is determined from the at least one PCDN service node, that is, according to the resources required in the resource scheduling request, the target PCDN service node that can meet the resource demand is selected from the at least one PCDN service node. Finally, the PCDN SDK of the target PCDN service node is loaded, and resources are obtained from the target PCDN service node through the PCDN SDK. In this way, the resource management platform can schedule at least one PCDN service node to provide resources, thereby avoiding the problem of limited resources that can be served by a single PCDN vendor, meeting the needs of users, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0015] Figure 1A A schematic diagram of the structure of a resource scheduling system provided in an embodiment of the present application;
[0016] Figure 1B A schematic diagram of the structure of another resource scheduling system provided in an embodiment of the present application;
[0017] Figure 1C and Figure 1D A schematic diagram of a resource scheduling process provided in an embodiment of the present application;
[0018] Figure 2 and Figure 3 A schematic diagram of a resource scheduling method according to an embodiment of the present invention;
[0019] Figure 4 and Figure 5 A schematic diagram of a module composition of a resource scheduling device provided in an embodiment of the present application;
[0020] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] The embodiments of the present application provide a resource scheduling method, device, system, electronic device, and storage medium, which can provide sufficient resources for user applications, solve the problem of limited resources that a single PCDN vendor can serve, meet user needs, and improve user experience.
[0022] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0023] For example, Figure 1A As shown, an embodiment of the present application provides a resource scheduling system, which includes a client 101 and a cloud server 102. The client 101 is connected to the cloud server 102. The client 101 deploys a PCDN service module, which integrates PCDN SDKs (such as PCDN SDK 1, PCDN SDK 2, and PCDN SDK 3 in the figure) and an SDK loading module of multiple PCDN service nodes. The cloud server 102 deploys a resource management platform, which is connected to multiple PCDN service nodes; the SDK loading module is used to send a resource scheduling request to the resource management platform, and the resource management platform is used to schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request; the PCDN service module determines a target PCDN service node from at least one PCDN service node according to the resource demand in the resource scheduling request, and the SDK loading module loads the PCDN SDK of the target PCDN service node, and obtains resources from the target PCDN service node through the PCDN SDK.
[0024] Specifically, the client is a terminal with a client application installed. By deploying a PCDN service module on the client, dynamically integrating the PCDN SDK of multiple PCDN service nodes, combining the unified resource scheduling capabilities of the cloud server, integrating the service capabilities of multiple PCDN vendors, and providing external resource services. The resource demand in the resource scheduling request refers to the type of resources that need to be scheduled and the size of the resources. The type of resources includes but is not limited to various data resources, etc. The size of the resources refers to the amount of resources. According to the resource demand, a target PCDN service node that can meet the resource demand is determined from at least one PCDN service node. The target PCDN service node can be one or a combination of multiple to provide resource services for the client application.
[0025] Among them, the SDK loading module is mainly responsible for the initialization preloading and dynamic loading of the PCDN SDK of the manufacturer corresponding to each PCDN service node, and it interacts with the resource management platform of the cloud server.
[0026] The resource service platform is deployed on a cloud server, which connects to the PCDN platforms of multiple vendors to interact with the client to provide the resources it needs. The PCDN platforms of various vendors synchronize the PCDN quotas, loads and other information of each region to the resource management platform in real time. The resource management platform includes a unified resource scheduling module, a unified resource tracking module and an SDK management module. The unified resource scheduling module of the resource management platform is responsible for the PCDN vendor-level resource scheduling, selects the better PCDN service nodes from various PCDN service nodes and forms a list, and provides the SDK loading module of the resource management platform with a list containing the better PCDN service nodes. The SDK management module is responsible for the entry, upgrade and version management of the PCDN SDK of the PCDN service node of the vendor SDK, and provides SDK download, version upgrade and other services for the SDK loading module of the client's PCDN service module.
[0027] The resource management platform is further used to determine the region where the client is located based on the resource scheduling request; and schedule at least one PCDN service node from multiple PCDN service nodes according to the quota of each PCDN service node in the region and the load of each PCDN service node.
[0028] Specifically, the quota of a PCDN service node in a region refers to the resources allocated by the PCDN service node to the region, and the load of a PCDN service node refers to the resources that have been occupied among the resources allocated by the PCDN service node in the region. Among them, the quotas of various PCDN service nodes in the region may be different. When scheduling PCDN service nodes, PCDN service nodes with a higher quota in the region and a lower load in the quota of the region may be selected for scheduling. For example, the PCDN service nodes are first sorted in descending order according to their quotas in the region, and then PCDN service nodes with a load greater than a preset value are scheduled from multiple PCDN service nodes in the order of highest quota to lowest quota, wherein the preset value can be determined according to actual conditions, and the embodiments of the present application are not limited here.
[0029] Combine the following Figure 1B The PCDN service module and resource management platform provided in the embodiment of the present application are described in detail. Figure 1B As shown, the client has a client application and a PCDN service module installed in it. The client application has a corresponding service module. The PCDN service module is connected with the service module of the client application. The PCDN service module includes but is not limited to a hybrid download unit, an SDK loading module, an agent service unit, and PCDN SDKs corresponding to PCDN service nodes of various PCDN vendors (for example, Figure 1B As shown in the figure, the manufacturer A-SDK, manufacturer B-SDK and manufacturer C-SDK Figure 1B As shown, the client can be multiple clients, and data can be transmitted between the clients in a P2P manner. The resource management platform deployed in the cloud server includes a vendor SDK management module, a unified resource scheduling module, and a unified resource tracking module. The resource management platform is connected to each PCDN vendor platform (such as Figure 1B The vendor A-PCDN platform, the vendor B-PCDN platform, and the vendor C-PCDN platform shown in the figure are used to synchronize the quota and load information of the PCDN service nodes of each vendor in each region.
[0030] Specifically, the proxy service is mainly used to connect with the client application externally. It is the entrance to the PCDN service module. It mainly interacts with the hybrid download unit and the SDK loading module internally. The hybrid download module is mainly responsible for obtaining resources from the PCDN service nodes of various PCDN vendors or other clients or content distribution networks (Content Delivery Network, CDN) corresponding content sources and can assemble them. The PCDN service module also supports caching the obtained resources and can share them with other clients that need the resources through P2P.
[0031] Combine the following Figure 1C The initialization process of the PCDN service module provided in the embodiment of the present application is described as follows: Figure 1C As shown, when the client application is started, the PCDN service module is initialized and pulled up to initialize the PCDN service module, triggering the loading of the SDK loading module, and initiating a resource scheduling request to the unified resource scheduling module of the resource management platform. The unified resource scheduling module in the resource management platform selects the best from each PCDN service node according to the area where each PCDN service node is located, and according to the information of the area, the operator, etc., combined with the quota, load, etc. of the PCDN service node in the area, and returns a list of scheduled PCDN service nodes to the SDK loading module. The SDK loading module performs SDK preloading on demand according to the list, that is, selects at least one PCDN service node from the list for preloading according to its own needs; finally, the loading result is synchronized to the hybrid download unit, and the SDK initialization of the PCDN service node is completed.
[0032] Combine the following Figure 1D Describe the process of obtaining resources by the business module of the customer application, such as Figure 1D As shown, the business module of the client application calls the PSDN service module, and sets the download mode according to the business mode of the business module, and then initiates a resource request to the proxy service of the PCDN service module. After receiving the resource acquisition request, the proxy service parses the resource request, creates a download task, and drives the hybrid download unit to start the download task. For requests whose business mode is a play-type business mode, the sequential download mode will be started, and it supports setting whether to download data segments through CDN during the start-up phase. Subsequently, according to the play bit rate and data buffering situation, resources are obtained through P2P or PCDN mode first. After obtaining the resources (data segments), the resources are returned to the hybrid download unit, and the resources can be cached. Among them, for requests for download modes without sequential requirements, the disordered download mode can be started, which supports maximizing the use of P2P or PCDN to obtain resources. Among them, the P2P mode refers to the PCDN service module supporting the acquisition of resources from other clients that cache the resources, and the PCDN mode refers to calling the manufacturer's PCDN SDK to obtain resources from the PCDN service node. When obtaining resources through PCDN, it supports dynamic loading of PCDN service nodes, and can select the most suitable PCDN vendor from the priority PCDN vendor list to provide resource services based on quality, cost, etc. After obtaining resources (data fragments) through CDN, P2P and PCDN, they are fed back to the hybrid download unit, which returns them to the proxy service, and the proxy service assembles the data in the required format and returns it to the business module of the client application.
[0033] Through the resource scheduling system provided by the embodiment of the present application, the client deploys a PCDN service module, the PCDN service module integrates an SDK loading module and PCDN SDKs of multiple PCDN service nodes, the cloud server deploys a resource management platform, the resource management platform connects to multiple PCDN service nodes, the SDK loading module sends a resource scheduling request to the resource management platform, and the resource management platform can schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request. Therefore, at least one PCDN service node can provide resource services, and then the PCDN service module determines the target PCDN service node from at least one PCDN service node according to the resource demand in the resource scheduling request, that is, according to the resources required in the resource scheduling request, the target PCDN service node that can meet the resource demand is selected from at least one PCDN service node. Finally, the SDK loading module loads the PCDN SDK of the target PCDN service node, and obtains resources from the target PCDN service node through the PCDN SDK. In this way, the resource management platform can schedule at least one PCDN service node to provide resources, avoiding the problem of limited resources that can be served by a single PCDN vendor, meeting the needs of users, and improving the user experience.
[0034] See also Figure 2 , Figure 2 A resource scheduling method is provided in an embodiment of the present application, and the resource scheduling method can be applied to the above Figure 1A The resource scheduling system shown in the figure, the resource scheduling method can be executed by the above-mentioned client, and the resource scheduling method includes:
[0035] Step S201: Send a resource scheduling request to a resource management platform.
[0036] The resource management platform is used to schedule at least one PCDN service node from multiple PCDN service nodes in response to a resource scheduling request.
[0037] Specifically, the resource scheduling request is used to request the resource management platform to schedule the PCDN service node to provide resource services. The resource requirements carried in the resource scheduling request refer to the type of resources that need to be scheduled and the size of the resources. The types of resources include but are not limited to various data resources, etc. The size of the resources refers to the amount of resources.
[0038] The resource management platform is further used to determine the region where the client is located based on the resource scheduling request; and schedule at least one PCDN service node from multiple PCDN service nodes according to the quota of each PCDN service node in the region and the load of each PCDN service node.
[0039] Specifically, the quota of a PCDN service node in a region refers to the resources allocated by the PCDN service node to the region, and the load of a PCDN service node refers to the resources that have been occupied among the resources allocated by the PCDN service node in the region. Among them, the quotas of various PCDN service nodes in the region may be different. When scheduling PCDN service nodes, PCDN service nodes with a higher quota in the region and a lower load in the quota of the region may be selected for scheduling. For example, the PCDN service nodes are first sorted in descending order according to their quotas in the region, and then PCDN service nodes with a load greater than a preset value are scheduled from multiple PCDN service nodes in the order of highest quota to lowest quota, wherein the preset value can be determined according to actual conditions, and the embodiments of the present application are not limited here.
[0040] In step S203, a target PCDN service node is determined from at least one PCDN service node according to the resource requirement in the resource scheduling request.
[0041] Specifically, a target PCDN service node that can meet the resource demand is determined from at least one PCDN service node according to the resource demand. The target PCDN service node may be one or a combination of multiple nodes to provide resource services for the client application.
[0042] In step S205, the PCDN SDK of the target PCDN service node is loaded, and resources are obtained from the target PCDN service node through the PCDN SDK.
[0043] Specifically, after determining the target PCDN service node, a download task is created and started. For requests whose business mode is a playback business mode, a sequential download mode is started, and it also supports setting whether to download through CDN during the start phase. Subsequently, resources are obtained through P2P or PCDN in priority according to the playback bit rate and data buffering conditions. Among them, for requests for download modes without sequential requirements, an out-of-order download mode can be started to support maximizing the use of P2P or PCDN to obtain resources. Among them, the P2P method refers to the PCDN service module supporting the acquisition of resources from other clients that have cached the resource, and the PCDN method refers to obtaining resources from PCDN service nodes. When obtaining resources through the PCDN method, dynamic loading of PCDN service nodes is supported.
[0044] Through the technical solution disclosed in the embodiment of the present application, by sending a resource scheduling request to the resource management platform, the resource management platform can schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request. Therefore, at least one PCDN service node can provide resource services. Then, according to the resource demand in the resource scheduling request, the target PCDN service node is determined from the at least one PCDN service node, that is, according to the resources required in the resource scheduling request, the target PCDN service node that can meet the resource demand is selected from the at least one PCDN service node. Finally, the PCDN SDK of the target PCDN service node is loaded, and resources are obtained from the target PCDN service node through the PCDN SDK. In this way, the resource management platform can schedule at least one PCDN service node to provide resources, avoiding the problem of limited resources that can be served by a single PCDN vendor, meeting the needs of users, and improving the user experience.
[0045] In a possible implementation, loading the PCDN SDK of the target PCDN service node, and obtaining resources from the target PCDN service node through the PCDN SDK includes: determining a service mode carried in a resource scheduling request and a download mode corresponding to the service mode; when the service mode is a playback service mode, starting a sequential download mode to obtain resources from the target PCDN service node; when the service mode is a download service mode, starting an unordered download mode to obtain resources from the target PCDN service node.
[0046] Specifically, the sequential download mode means that one download task is completed before continuing to the next download task, and the unordered download mode means that multiple download tasks can be performed at the same time, and the download task is to obtain resources from the target PCDN service node.
[0047] In a possible implementation, when the business mode is a playback-type business mode, the method further includes: starting a sequential download mode to obtain resources from a target client that has cached resources; when the business mode is a download-type business mode, the method further includes: starting an unordered download mode to obtain resources from a target client that has cached resources.
[0048] Specifically, the target client refers to a client that caches the resources required in the resource demand corresponding to the resource scheduling request. The target client may also be a client that integrates a PCDN service module. The resources obtained from the target client may be obtained in a P2P manner.
[0049] In a possible implementation, after loading the PCDN SDK of the target PCDN service node and acquiring resources from the target PCDN service node through the PCDN SDK, the method further includes: transmitting the resources to the target client through a point-to-point transmission mode.
[0050] Specifically, after obtaining the resources, the resources can also be transmitted to the target client in a P2P manner.
[0051] The resource scheduling method provided in the embodiment of the present application can implement each process in the embodiment corresponding to the above-mentioned resource scheduling system, and has the same or similar beneficial effects. The resource scheduling method and the resource scheduling system can refer to each other. To avoid repetition, they will not be described here.
[0052] See also Figure 3 , Figure 3 A resource scheduling method is provided in an embodiment of the present application, and the resource scheduling method can be applied to the above Figure 1A The resource scheduling system shown in the figure, the resource scheduling method can be executed by the above-mentioned cloud server, and the resource scheduling method includes:
[0053] Step S301: receiving a resource scheduling request sent by a client.
[0054] The client is used to determine a target PCDN service node from at least one PCDN service node according to the resource demand in the resource scheduling request, determine a target PCDN service node from at least one PCDN server node, load the PCDN SDK of the target PCDN service node, and obtain resources from the target PCDN service node through the PCDN SDK.
[0055] Step S303: In response to the resource scheduling request, scheduling at least one PCDN service node from a plurality of PCDN service nodes.
[0056] In a possible implementation, in response to the resource scheduling request, scheduling at least one PCDN service node from the multiple PCDN service nodes includes: determining the area where the client is located based on the resource scheduling request; and scheduling at least one PCDN service node from the multiple PCDN service nodes according to a quota of each PCDN service node in the area and a load of each PCDN service node.
[0057] Specifically, the quota of a PCDN service node in a region refers to the resources allocated by the PCDN service node to the region, and the load of a PCDN service node refers to the resources that have been occupied among the resources allocated by the PCDN service node in the region. Among them, the quotas of various PCDN service nodes in the region may be different. When scheduling PCDN service nodes, PCDN service nodes with a higher quota in the region and a lower load in the quota of the region may be selected for scheduling. For example, the PCDN service nodes are first sorted in descending order according to their quotas in the region, and then PCDN service nodes with a load greater than a preset value are scheduled from multiple PCDN service nodes in the order of highest quota to lowest quota, wherein the preset value can be determined according to actual conditions, and the embodiments of the present application are not limited here.
[0058] Through the technical solution disclosed in the embodiment of the present application, by sending a resource scheduling request to the resource management platform, the resource management platform can schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request. Therefore, at least one PCDN service node can provide resource services. Then, according to the resource demand in the resource scheduling request, the target PCDN service node is determined from the at least one PCDN service node, that is, according to the resources required in the resource scheduling request, the target PCDN service node that can meet the resource demand is selected from the at least one PCDN service node. Finally, the PCDN SDK of the target PCDN service node is loaded, and resources are obtained from the target PCDN service node through the PCDN SDK. In this way, the resource management platform can schedule at least one PCDN service node to provide resources, avoiding the problem of limited resources that can be served by a single PCDN vendor, meeting the needs of users, and improving the user experience.
[0059] The resource scheduling method provided in the embodiment of the present application can implement each process in the embodiment corresponding to the above-mentioned resource scheduling system, and has the same or similar beneficial effects. The resource scheduling method and the resource scheduling system can refer to each other. To avoid repetition, they will not be described here.
[0060] Corresponding to the resource scheduling method provided in the above embodiment, based on the same technical concept, the embodiment of the present application also provides a resource scheduling device, Figure 4 A schematic diagram of the module composition of a resource scheduling device provided in an embodiment of the present application, wherein the resource scheduling device is used to execute Figure 2 Describe the resource scheduling method, such as Figure 4As shown, the resource scheduling device 400 includes: a sending module 401, used to send a resource scheduling request to a resource management platform, and the resource management platform is used to schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request; a determining module 402, used to determine a target PCDN service node from at least one PCDN server node according to a resource demand in the resource scheduling request; and an acquiring module 403, used to load a PCDN SDK of the target PCDN service node, and acquire resources from the target PCDN service node through the PCDN SDK.
[0061] It can be seen from the technical solution provided by the above embodiments of the present application that by sending a resource scheduling request to the resource management platform, the resource management platform can schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request. Therefore, at least one PCDN service node can provide resource services. Then, according to the resource demand in the resource scheduling request, the target PCDN service node is determined from the at least one PCDN service node, that is, according to the resources required in the resource scheduling request, the target PCDN service node that can meet the resource demand is selected from the at least one PCDN service node. Finally, the PCDN SDK of the target PCDN service node is loaded, and resources are obtained from the target PCDN service node through the PCDN SDK. In this way, the resource management platform can schedule at least one PCDN service node to provide resources, thereby avoiding the problem of limited resources that can be served by a single PCDN vendor, meeting the needs of users, and improving the user experience.
[0062] In a possible implementation, the acquisition module 403 is also used to determine the business mode carried in the resource scheduling request and the download mode corresponding to the business mode; when the business mode is a playback business mode, the sequential download mode is started to obtain resources from the target PCDN service node; when the business mode is a download business mode, the unordered download mode is started to obtain resources from the target PCDN service node.
[0063] In a possible implementation, when the business mode is a playback business mode, it also includes: a startup module, used to start a sequential download mode to obtain resources from a target client with cached resources; when the business mode is a download business mode, it also includes: a startup module, used to start an unordered download mode to obtain resources from a target client with cached resources.
[0064] In a possible implementation manner, the method further includes: a transmission module, configured to transmit resources to a target client via a point-to-point transmission manner.
[0065] Corresponding to the resource scheduling method provided in the above embodiment, based on the same technical concept, the embodiment of the present application also provides a resource scheduling device, Figure 5 A schematic diagram of the module composition of a resource scheduling device provided in an embodiment of the present application, wherein the resource scheduling device is used to execute Figure 3 Describe the resource scheduling method, such as Figure 5 As shown, the resource scheduling device 500 includes: a receiving module 501, which is used to receive a resource scheduling request sent by a client; a scheduling module 502, which is used to schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request; the client is used to determine a target PCDN service node from at least one PCDN server node according to the resource demand in the resource scheduling request, and load the PCDN SDK of the target PCDN service node, and obtain resources from the target PCDN service node through the PCDN SDK.
[0066] Through the technical solution disclosed in the embodiment of the present application, by sending a resource scheduling request to the resource management platform, the resource management platform can schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request. Therefore, at least one PCDN service node can provide resource services. Then, according to the resource demand in the resource scheduling request, the target PCDN service node is determined from the at least one PCDN service node, that is, according to the resources required in the resource scheduling request, the target PCDN service node that can meet the resource demand is selected from the at least one PCDN service node. Finally, the PCDN SDK of the target PCDN service node is loaded, and resources are obtained from the target PCDN service node through the PCDN SDK. In this way, the resource management platform can schedule at least one PCDN service node to provide resources, avoiding the problem of limited resources that can be served by a single PCDN vendor, meeting the needs of users, and improving the user experience.
[0067] In a possible implementation, the scheduling module 502 is further configured to determine the region where the client is located based on the resource scheduling request; and schedule at least one PCDN service node from the plurality of PCDN service nodes according to the quota of each PCDN service node in the region and the load of each PCDN service node.
[0068] The resource scheduling device provided in the embodiment of the present application can implement each process in the embodiment corresponding to the above-mentioned resource scheduling method, and has the same or similar beneficial effects. To avoid repetition, it will not be described here.
[0069] It should be noted that the resource scheduling device provided in the embodiment of the present application and the resource scheduling method provided in the embodiment of the present application are based on the same application concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned resource scheduling method, and has the same or similar beneficial effects, and the repetitive parts will not be repeated.
[0070] Corresponding to the resource scheduling method provided in the above embodiment, based on the same technical concept, the embodiment of the present application further provides an electronic device, which is used to execute the above resource scheduling method. Figure 6 A schematic diagram of the structure of an electronic device for implementing each embodiment of the present application is shown in FIG. Figure 6 As shown. The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors 601 and memory 602, and the memory 602 may store one or more storage applications or data. Among them, the memory 602 may be a temporary storage or a permanent storage. The application stored in the memory 602 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the electronic device.
[0071] Furthermore, the processor 601 may be configured to communicate with the memory 602 to execute a series of computer executable instructions in the memory 602 on the electronic device. The electronic device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input and output interfaces 605, and one or more keyboards 606.
[0072] Specifically in this embodiment, the electronic device includes a processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate with each other through the bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to achieve the above Figure 2 or Figure 3 The various steps in the method embodiment are similar to those in the method embodiment, and have the beneficial effects of the above method embodiments. To avoid repetition, the embodiments of the present application will not be described again here.
[0073] This embodiment also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above Figure 2 or Figure 3 Each step in the method embodiment has the beneficial effects of the above method embodiments. To avoid repetition, the embodiments of the present application will not be described again here.
[0074] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0075] The present application is described with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.
[0076] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0077] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0078] In a typical configuration, an electronic device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0079] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0080] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0081] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0082] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0083] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A resource scheduling method, characterized in that: The resource scheduling method comprises: Sending a resource scheduling request to a resource management platform, wherein the resource management platform is used to schedule at least one PCDN service node from a plurality of PCDN service nodes in response to the resource scheduling request; Determining a target PCDN service node from the at least one PCDN service node according to the resource demand in the resource scheduling request; The PCDN SDK of the target PCDN service node is loaded, and resources are obtained from the target PCDN service node through the PCDN SDK.
2. The resource scheduling method according to claim 1, characterized in that: The loading of the PCDN SDK of the target PCDN service node and acquiring resources from the target PCDN service node through the PCDN SDK includes: Determine a service mode carried in the resource scheduling request and a download mode corresponding to the service mode; When the service mode is a playback service mode, starting a sequential download mode to obtain resources from the target PCDN service node; When the service mode is a download service mode, an out-of-order download mode is started to obtain resources from the target PCDN service node.
3. The resource scheduling method according to claim 2, characterized in that: In the case where the business mode is a playback business mode, the method further includes: starting a sequential download mode to obtain the resource from a target client that has the resource cached; In the case where the business mode is a downloading business mode, the method further includes: starting an unordered download mode to obtain the resource from a target client that has cached the resource.
4. The resource scheduling method according to claim 1, characterized in that: After loading the PCDN SDK of the target PCDN service node and acquiring resources from the target PCDN service node through the PCDN SDK, the method further includes: The resource is transmitted to the target client via a point-to-point transmission mode.
5. A resource scheduling method, characterized in that: The resource scheduling method comprises: Receive resource scheduling requests sent by the client; In response to the resource scheduling request, scheduling at least one PCDN service node from a plurality of PCDN service nodes; The client is used to determine a target PCDN service node from the at least one PCDN service node according to the resource demand in the resource scheduling request, determine a target PCDN service node from the at least one PCDN server node, load a PCDN SDK of the target PCDN service node, and obtain resources from the target PCDN service node through the PCDN SDK.
6. The resource scheduling method according to claim 5, characterized in that: The scheduling of at least one PCDN service node from a plurality of PCDN service nodes in response to the resource scheduling request comprises: Determine the area where the client is located based on the resource scheduling request; At least one PCDN service node is scheduled from the multiple PCDN service nodes according to the quota of each PCDN service node in the area and the load of each PCDN service node.
7. A resource scheduling system, characterized in that: The resource scheduling system comprises: a client and a cloud server, wherein the client is connected to the cloud server; The client deploys a PCDN service module, the PCDN service module integrates an SDK loading module and PCDN SDKs of multiple PCDN service nodes, the cloud server deploys a resource management platform, and the resource management platform is connected to multiple PCDN service nodes; The SDK loading module is used to send a resource scheduling request to the resource management platform, and the resource management platform is used to schedule at least one PCDN service node from multiple PCDN service nodes in response to the resource scheduling request; The PCDN service module determines a target PCDN service node from the at least one PCDN service node according to the resource demand in the resource scheduling request; The SDK loading module loads the PCDN SDK of the target PCDN service node, and obtains resources from the target PCDN service node through the PCDN SDK.
8. The resource scheduling system according to claim 7, characterized in that: The resource management platform is further used to determine the area where the client is located based on the resource scheduling request; At least one PCDN service node is scheduled from the multiple PCDN service nodes according to the quota of each PCDN service node in the area and the load of each PCDN service node.
9. A resource scheduling device, characterized in that: include: a sending module, configured to send a resource scheduling request to a resource management platform, wherein the resource management platform is configured to schedule at least one PCDN service node from a plurality of PCDN service nodes in response to the resource scheduling request; a determination module, configured to determine a target PCDN service node from the at least one PCDN server node according to the resource demand in the resource scheduling request; The acquisition module is used to load the PCDN SDK of the target PCDN service node and acquire resources from the target PCDN service node through the PCDN SDK.
10. A resource scheduling device, characterized in that: include: A receiving module, used for receiving a resource scheduling request sent by a client; a scheduling module, configured to schedule at least one PCDN service node from a plurality of PCDN service nodes in response to the resource scheduling request; The client is used to determine a target PCDN service node from the at least one PCDN server node according to the resource demand in the resource scheduling request, load the PCDN SDK of the target PCDN service node, and obtain resources from the target PCDN service node through the PCDNSDK.
