A resource acquisition method and device based on a content distribution network

By using real-time logs in the content delivery network to identify hot resources and redirect resource information, the server bottleneck and anomaly issues caused by hot file requests are resolved, and resource acquisition efficiency is improved.

CN116567072BActive Publication Date: 2026-05-19HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
Filing Date
2023-06-08
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Existing technologies can cause server bottlenecks when there is a surge in requests for hot files, and can easily cause server performance and network anomalies and low resource acquisition efficiency when cold files suddenly become hot files.

Method used

The first resource node identifies hot resources based on real-time logs and sends their information to the second resource node. The client then obtains the hot resources from the second resource node via a temporary redirect address, avoiding the direct provision of hot resources by the first resource node. The HTTP 302 Found redirect status code is used to achieve resource redirection.

Benefits of technology

It improves the resource acquisition efficiency of the content delivery network, avoids server performance and network anomalies, and achieves fast and efficient resource acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116567072B_ABST
    Figure CN116567072B_ABST
Patent Text Reader

Abstract

The application provides a resource acquisition method and device based on a content distribution network. The method is applied to a first resource node, and first hot resources are determined according to real-time logs of node services. Resource information of the first hot resources is sent to a second resource node, so that the second resource node acquires the first hot resources according to the resource information of the first hot resources. When a resource acquisition request for acquiring the first hot resources sent by a client is received, a temporary jump address of the first hot resources is returned to the client, and the temporary jump address is used for the client to acquire the first hot resources from the second resource node. As can be seen, the resource node sends the resource information of the hot resources to other resource nodes, other resource nodes can pull the hot resources and provide the hot resources for the client, abnormality of server performance and network caused by real-time occurrence or sudden change of cold files to hot files is avoided, and resource acquisition efficiency of the content distribution network is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of resource acquisition, and more particularly to a method and apparatus for acquiring resources based on a content delivery network. Background Technology

[0002] A Content Delivery Network (CDN) is a distributed network built on top of an existing network to speed up network access.

[0003] In general, to save costs and reduce disk usage, files are typically stored only once on a single CDN node (multiple servers). In this scenario, if a file experiences a sudden surge in requests—this file is called a "hot file"—all requests will concentrate on the server storing the hot file. This server will become the bottleneck for the entire CDN node, causing service issues.

[0004] In existing technologies, to enable faster access to frequently accessed files, these files are typically distributed across multiple servers on different nodes. However, this method requires the support of an upstream CDN scheduler, a task distribution notification service, and a task distribution execution service (file downloader). When multiple upstream services need to coordinate and cooperate, efficiency losses can easily occur. Furthermore, in real-time events or when a file suddenly becomes a frequently accessed file, server performance and network anomalies can easily result. Summary of the Invention

[0005] In view of this, this application provides a resource acquisition method and apparatus based on a content delivery network, which avoids server performance and network anomalies caused by real-time events or sudden changes from cold files to hot files, thereby improving the resource acquisition efficiency of the content delivery network.

[0006] The technical solution is as follows:

[0007] In a first aspect, embodiments of this application provide a resource acquisition method based on a content delivery network, the method being applied to a first resource node, the method comprising:

[0008] The primary hot resource is determined based on the real-time logs of the node service.

[0009] The resource information of the first hot resource is sent to the second resource node so that the second resource node can obtain the first hot resource based on the resource information of the first hot resource.

[0010] When a resource acquisition request for the first hot resource is received from a client, a temporary redirect address for the first hot resource is returned to the client. The temporary redirect address is used by the client to acquire the first hot resource from the second resource node.

[0011] Optionally, determining the first hotspot resource based on the real-time logs of the node service includes:

[0012] Obtain the real-time logs of the node service of the first resource node, wherein the real-time logs of the node service include historical resource acquisition requests;

[0013] The first hot resource is determined based on the historical resource acquisition requests and preset hot resource conditions, wherein the preset hot resource conditions include the resource acquisition frequency meeting preset conditions.

[0014] Optionally, sending the resource information of the first hotspot resource to the second resource node includes:

[0015] The resource information of the first hot resource is determined based on the first hot resource, and a hot resource information set is generated based on the resource information of the first hot resource.

[0016] The hot resource information set is multicast in the content delivery network so that the second resource node can obtain the resource information of the first hot resource based on the hot resource information set.

[0017] Optionally, when a resource acquisition request for the first hot resource is received from a client, returning the temporary redirect address of the first hot resource to the client includes:

[0018] When a resource acquisition request for the first hot resource is received from a client, it is determined whether the first hot resource meets a preset resource jump threshold based on the historical resource acquisition requests. The preset resource jump threshold includes the fact that the resource acquisition frequency meets a preset condition within a preset period.

[0019] When the first hot resource meets the preset resource redirection threshold, the temporary redirection address of the first hot resource is returned to the client.

[0020] Optionally, the method further includes:

[0021] Receive resource information of the second hotspot resource broadcast by the second resource node;

[0022] Obtain the second hotspot resource based on the resource information of the second hotspot resource;

[0023] When a resource acquisition request for the second hotspot resource is received from a client, the second hotspot resource is provided to the client.

[0024] Optionally, obtaining the second hotspot resource based on its resource information includes:

[0025] The second hot resource is obtained based on its resource information, and then stored in a memory disk.

[0026] Optionally, the method further includes:

[0027] When it is determined from the node service log that the second hot resource no longer meets the preset hot resource conditions, the second hot resource is deleted from the memory disk.

[0028] Based on the same inventive concept, in a second aspect, embodiments of this application provide a resource acquisition device based on a content delivery network, the device comprising:

[0029] The resource determination module is used to determine the primary hot resource based on the real-time logs of the node service.

[0030] The information sending module is used to send the resource information of the first hot resource to the second resource node, so that the second resource node can obtain the first hot resource based on the resource information of the first hot resource.

[0031] The information sending module is further configured to, when receiving a resource acquisition request from a client for acquiring the first hotspot resource, return a temporary redirect address of the first hotspot resource to the client, wherein the temporary redirect address is used by the client to acquire the first hotspot resource from the second resource node.

[0032] Based on the same inventive concept, in a third aspect, embodiments of this application provide a resource acquisition device based on a content delivery network, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of any of the methods described in the first aspect above.

[0033] Based on the same inventive concept, in a fourth aspect, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the method described in any one of the first aspects above.

[0034] The above technical solution has the following beneficial effects:

[0035] This application provides a resource acquisition method based on a content delivery network. The method is applied to a first resource node. When executing the method, a first hot resource is determined based on the real-time logs of the node service. The resource information of the first hot resource is sent to a second resource node, enabling the second resource node to acquire the first hot resource based on this information. When a resource acquisition request for the first hot resource is received from a client, a temporary redirect address for the first hot resource is returned to the client. This temporary redirect address is used by the client to acquire the first hot resource from the second resource node. Therefore, resource nodes send the resource information of hot resources within their own nodes to other resource nodes. These other resource nodes can then pull the hot resource and provide it to the client, avoiding server performance and network anomalies caused by real-time events or sudden changes in file status from cold to hot, thus improving the resource acquisition efficiency of the content delivery network.

[0036] This application also provides apparatus, devices, and storage media corresponding to the above methods, which have the same beneficial effects as the above methods. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings used in the description of the embodiment or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 A flowchart illustrating a resource acquisition method based on a content delivery network provided in this application embodiment;

[0039] Figure 2 A flowchart illustrating another resource acquisition method based on a content delivery network provided in this application embodiment;

[0040] Figure 3 This is a schematic diagram of a resource acquisition device based on a content delivery network, provided as an embodiment of this application. Detailed Implementation

[0041] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0042] To avoid server performance and network anomalies caused by real-time events or sudden changes in file usage from cold to hot, and to improve the resource acquisition efficiency of the content delivery network (CDN), this application provides a resource acquisition method based on the CDN. This method can be applied to a first resource node in the CDN, and the first resource node can be any resource node in the CDN. Please refer to [link to relevant documentation]. Figure 1 The method may include:

[0043] Step S100: Determine the first hot resource based on the real-time logs of the node service.

[0044] The first resource node determines the first hot resource based on the real-time logs of its own node services.

[0045] Specifically, the process by which the first resource node determines the first hot resource based on the real-time logs of its node service may include: obtaining the real-time logs of the first resource node's node service, which include historical resource acquisition requests; and determining the first hot resource based on the historical resource acquisition requests and preset hot resource conditions, which include the resource acquisition frequency meeting preset conditions.

[0046] In practical applications, the first resource node can track and analyze the real-time logs of its own node service, obtain the URLs in the real-time logs of the node service to extract the file names accessed by users, calculate and analyze the number of requests for each file within a preset time period according to the file names, identify the files whose number of requests within the preset time period meets the preset conditions as hot resources, and record the information of hot resources in the local database.

[0047] It should be noted that no preset conditions are limited in this embodiment. Those skilled in the art can choose as needed. As an example, the preset condition is set to more than 60 times per minute. When the frequency of resource acquisition meets the requirement of more than 60 times per minute, the file is identified as a hot file.

[0048] Step S200: Send the resource information of the first hot resource to the second resource node so that the second resource node can obtain the first hot resource based on the resource information of the first hot resource.

[0049] The second resource node is any resource node in the content delivery network other than the first resource node. The second resource node can obtain the first hot resource based on its resource information.

[0050] In practical applications, the first resource node can send the resource information corresponding to the first hot resource to the second resource node after determining the first hot resource, or it can send the resource information corresponding to all hot resources determined within a preset time period to the second resource node. This application embodiment does not limit this.

[0051] Specifically, the first resource node sends the resource information of the first hot resource to the second resource node, which may include:

[0052] The resource information of the first hot resource is determined based on the first hot resource, and a hot resource information set is generated based on the resource information of the first hot resource; the hot resource information set is multicast and published in the content delivery network so that the second resource node can use the resource information of the first hot resource based on the hot resource information set.

[0053] In practical applications, after the first resource node determines the first hot resource, it can determine the resource information of the first hot resource based on the first hot resource. It can be understood that the resource information of the first hot resource is used to indicate the first hot resource information and the storage location of the first hot resource in the content delivery network. For example, the resource information of the first hot resource may include the name of the first hot resource, the size of the first hot resource, the IP address of the first resource node, and other information.

[0054] The first resource node generates a hot resource information set based on the resource information of the first hot resource, and multicasts the hot resource information set in the content delivery network to announce the resource information of the hot resource to the second resource node.

[0055] As an optional implementation, the first resource node can also encapsulate a hot resource JSON list based on the determined first hot resource, and the hot resource JSON list includes the resource information of the first hot resource.

[0056] It is understandable that a resource node may contain multiple hot resources. The first resource node encapsulates these hot resources into a JSON list, which facilitates the sharing of hot resources among resource nodes. For example, the JSON list of hot resources can look like this:

[0057]

[0058] As an optional implementation, the first resource node can multicast the distribution of hot resource information sets using the following multicast protocol format, taking multicast from the first resource node to the second resource node as an example:

[0059] First resource node IP address Second resource node IP address User Datagram Protocol (UDP) User Datagram Protocol (UDP) checksum First resource node name Communication data (JSON list of hot resources)

[0060] The first resource node name is used to distinguish each resource node; the second resource node IP address can be obtained from a pre-configured multicast address library, which includes the addresses of each resource node in the content delivery network.

[0061] Step S300: When a resource acquisition request for obtaining the first hot resource is received from the client, the temporary redirect address of the first hot resource is returned to the client. The temporary redirect address is used by the client to obtain the first hot resource from the second resource node.

[0062] Specifically, when the first resource node receives a resource acquisition request from the client to obtain the first hot resource, it no longer provides the first hot resource to the client itself. Instead, it provides the client with a temporary redirect address for the first hot resource, so that the client can obtain the first hot resource from the second resource node based on the temporary redirect address.

[0063] It should be noted that temporary redirect addresses can include the HTTP 302 Found redirect status code. The HTTP 302 Found redirect status code indicates that the requested resource has been temporarily moved to the URL specified by the Location header of the HTTP response. The client will be redirected to this URL, but the search engine will not update the link to the resource. 302 Found is a status code in the Hypertext Transfer Protocol (HTTP).

[0064] It is understood that in this embodiment of the application, the transfer of the request to obtain hot resources is realized by the temporary redirect address of hot resources. It does not require the support of the upstream CDN scheduler and can be achieved by the HTTP 302 Found redirect status code. It can respond quickly and efficiently to situations that occur in real time or when a cold file suddenly becomes a hot file.

[0065] In an optional implementation, step S300 further includes: when a resource acquisition request for acquiring a first hot resource is received from a client, determining whether the first hot resource meets a preset resource jump threshold based on historical resource acquisition requests, wherein the preset resource jump threshold includes the resource acquisition frequency meeting a preset condition within a preset period; when the first hot resource meets the preset resource jump threshold, returning the temporary jump address of the first hot resource to the client.

[0066] Specifically, before returning the temporary redirect address of the first hot resource to the client, the first resource node can further determine whether the first hot resource meets the preset resource redirection threshold based on historical resource acquisition requests. If it does, it will then return the temporary redirect address of the first hot resource to the client.

[0067] The preset resource jump threshold can be defined as the resource acquisition frequency meeting preset conditions within a preset period. This application does not limit the preset period or preset conditions. As an example, the preset period is set to 120 seconds, and the preset requirement is set to more than 60 times per minute. That is, if the first hot resource meets the acquisition frequency requirement of more than 60 times for two consecutive minutes, then the first hot resource is determined to meet the preset resource jump threshold.

[0068] It is understood that, by further determining whether the first hot resource meets the jump threshold, i.e., by determining for the second time whether a jump operation is needed for the acquisition request of the first hot resource, unnecessary jump operations caused by the resource being falsely hot can be avoided, thus ensuring the effectiveness of the system logic.

[0069] As an optional implementation, in this embodiment, a separate service process can be set up in the first resource node for determining hot resources, sending resource information about hot resources, and acquiring hot resources. Therefore, by using an independent service process to handle the determination of hot resources, the sending of resource information about hot resources, and the acquisition of hot resources, it is possible to prevent the acquisition of hot resources from affecting the node service of the first resource node.

[0070] As an optional implementation, the method provided in this application embodiment may further include:

[0071] Receive resource information of the second hot resource broadcast by the second resource node; obtain the second hot resource based on the resource information of the second hot resource; when a resource acquisition request is received from a client to obtain the second hot resource, provide the second hot resource to the client.

[0072] Understandably, the primary resource node can also receive resource information about hot resources from other resource nodes, retrieve the corresponding hot resources based on this information, and provide them to the client. By disseminating hot resources throughout the content delivery network, client requests for these resources are not concentrated on a single server in the network. This effectively improves the overall data throughput of CDN nodes without increasing costs, and allows for rapid and efficient responses to real-time events or sudden shifts from cold to hot files, preventing server performance and network anomalies.

[0073] As an optional implementation, in this embodiment, the first resource node stores the second hot resource in a memory disk.

[0074] Specifically, the first resource node receives resource information of the second hot resource broadcast by the second resource node, acquires the second hot resource based on the resource information, and stores the second hot resource in a memory disk. In this embodiment, the resource node stores the hot resources pulled from other resource nodes in the memory disk space. Because the data access efficiency of the memory disk space is high, it can efficiently and promptly respond to sudden increases in requests for hot resources. It can be understood that a memory disk refers to a space allocated by the operating system within the server's memory. As an example, in a Linux system, it is usually " / dev / shm", and its size can be set by the administrator as needed.

[0075] As an optional implementation, in this embodiment of the application, when the first resource node determines from the memory disk that the second hot resource no longer meets the preset hot resource conditions based on the node service log, the second hot resource is deleted.

[0076] Specifically, the first resource node will monitor whether the second hot resource maintains a high level of popularity based on its own node service logs. When the popularity of the second hot resource no longer meets the preset hot resource conditions or the preset hot resource period ends, the first resource node can delete the second hot resource from the memory disk to avoid invalid resource occupation.

[0077] The following is combined Figure 2 The process of the resource acquisition method based on a content delivery network provided in the embodiments of this application will be described.

[0078] First, the client sends a resource retrieval request to the first resource node in the content delivery network. Next, the first resource node determines whether the resource requested is a hot resource. If not, it directly provides the resource to the client. If so, it further determines whether the resource meets a preset resource redirection threshold. If the resource does not meet the preset threshold, the first resource node directly provides the resource to the client. If the resource meets the preset threshold, the first resource node sends a temporary redirection address to the client, allowing the client to retrieve the resource from other resource nodes in the content delivery network based on this temporary redirection address.

[0079] In summary, this application provides a resource acquisition method based on a content delivery network. This method is applied to a first resource node and includes: determining a first hot resource based on node service logs; sending the resource information of the first hot resource to a second resource node, enabling the second resource node to acquire the first hot resource based on the resource information; and when receiving a resource acquisition request from a client for the first hot resource, returning a temporary redirect address of the first hot resource to the client, whereby the temporary redirect address is used by the client to acquire the first hot resource from the second resource node. Therefore, resource nodes send the resource information of hot resources to other resource nodes, allowing other resource nodes to pull the hot resource and provide it to the client, avoiding server performance and network anomalies in real-time events or when a cold file suddenly becomes a hot file, thus improving the resource acquisition efficiency of the content delivery network.

[0080] Corresponding to the above methods, this application also provides a resource acquisition device based on a content delivery network. Please refer to [link to relevant documentation]. Figure 3 The diagram shows the structure of the device, which may include:

[0081] Resource determination module 301 is used to determine the first hot resource based on node service logs;

[0082] The information sending module 302 is used to send the resource information of the first hot resource to the second resource node, so that the second resource node can obtain the first hot resource based on the resource information of the first hot resource;

[0083] The information sending module 302 is also used to return a temporary redirect address of the first hot resource to the client when it receives a resource acquisition request sent by the client for acquiring the first hot resource. The temporary redirect address is used by the client to acquire the first hot resource from the second resource node.

[0084] In one optional implementation, the resource determination module 301 includes:

[0085] The acquisition submodule is used to acquire the node service logs of the first resource node. The node service logs include historical resource acquisition requests.

[0086] The resource determination submodule is used to determine the first hot resource based on historical resource acquisition requests and preset hot resource conditions. The preset hot resource conditions include that the resource acquisition frequency meets preset conditions.

[0087] In one optional implementation, the information sending module 302 includes:

[0088] The information determination submodule is used to determine the resource information of the first hot resource based on the first hot resource, and to generate a hot resource information set based on the resource information of the first hot resource.

[0089] The information sending submodule is used to multicast and publish a set of hot resource information in the content delivery network, so that the second resource node can obtain the resource information of the first hot resource based on the set of hot resource information.

[0090] In one optional implementation, the information sending module 302 further includes:

[0091] The threshold judgment submodule is used to determine whether the first hot resource meets the preset resource jump threshold based on historical resource acquisition requests when a resource acquisition request for the first hot resource is received from the client. The preset resource jump threshold includes the fact that the resource acquisition frequency meets the preset conditions within a preset period.

[0092] The information sending submodule is used to return the temporary redirect address of the first hot resource to the client when the first hot resource meets the preset resource redirection threshold.

[0093] In one optional embodiment, the device further includes:

[0094] The receiving module is used to receive resource information of the second hotspot resource broadcast by the second resource node;

[0095] The acquisition module is used to acquire the second hot resource based on the resource information of the second hot resource;

[0096] The sending module is used to provide the second hotspot resource to the client when it receives a resource acquisition request from the client for obtaining the second hotspot resource.

[0097] In one optional implementation, the acquisition module is specifically used to: acquire the second hot resource based on the resource information of the second hot resource, and store the second hot resource in the random access memory (RAM).

[0098] In one optional embodiment, the device further includes:

[0099] The deletion module is used to delete the second hot resource from the random access memory (RAM) when it is determined from the node service log that the second hot resource no longer meets the preset hot resource conditions.

[0100] It should be noted that the steps and related technical features executed by each module in the resource acquisition device based on the content delivery network provided in this application correspond to the method provided in the application embodiment. The description of the device part can be found in the embodiments of the aforementioned method part, and will not be repeated here.

[0101] In summary, this application provides a resource acquisition device based on a content delivery network. The device includes: a resource determination module for determining a first hot resource based on node service logs; an information sending module for sending resource information of the first hot resource to a second resource node, enabling the second resource node to acquire the first hot resource based on the resource information; and the information sending module further for returning a temporary redirect address of the first hot resource to the client when receiving a resource acquisition request from a client for acquiring the first hot resource. This temporary redirect address is used by the client to acquire the first hot resource from the second resource node. Therefore, resource nodes send resource information of hot resources to other resource nodes, allowing other resource nodes to pull the hot resource and provide it to the client, avoiding server performance and network anomalies in real-time events or when a cold file suddenly becomes a hot file, thus improving the resource acquisition efficiency of the content delivery network.

[0102] Corresponding to the above methods, this application provides a resource acquisition device based on a content delivery network, including a memory and a processor. The memory stores a computer program, characterized in that the processor executes the computer program to implement the steps of any of the resource acquisition methods based on a content delivery network provided in the foregoing embodiments.

[0103] Corresponding to the above methods, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of any of the resource acquisition methods based on a content delivery network provided in the foregoing embodiments.

[0104] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0105] Those skilled in the art will understand that the flowchart shown is merely an example in which the embodiments of this application can be implemented, and the scope of application of the embodiments of this application is not limited by any aspect of the flowchart.

[0106] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatuses, and devices can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0107] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, the functional units in the various embodiments of this application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0108] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0109] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A resource acquisition method based on a content delivery network, characterized in that, The method is applied to the first resource node, and the method includes: The primary hot resource is determined based on the real-time logs of the node service. The resource information of the first hot resource is determined based on the first hot resource, and a hot resource information set is generated based on the resource information of the first hot resource; the hot resource information set is multicast and published in the content delivery network so that the second resource node can obtain the resource information of the first hot resource based on the hot resource information set; When a resource acquisition request for the first hot resource is received from a client, it is determined whether the first hot resource meets a preset resource jump threshold based on historical resource acquisition requests, so as to determine for the second time whether the resource acquisition request for the first hot resource needs to be jump-operated. The preset resource jump threshold includes the fact that the resource acquisition frequency meets the preset condition within a preset period. When the first hot resource meets the preset resource redirection threshold, without the support of the upstream content delivery network (CDN) scheduler, the temporary redirection address of the first hot resource is returned to the client. The temporary redirection address is used to redirect the request for obtaining the hot resource, so that the client can obtain the first hot resource from the second resource node. The first resource node is also used to monitor the popularity of the second hot resource according to the node service log. When the popularity of the second hot resource no longer meets the preset hot resource conditions or the preset hot resource period ends, the first resource node deletes the second hot resource from the memory disk. The second hot resource is obtained from the second resource node.

2. The method according to claim 1, characterized in that, The step of determining the first hot resource based on the real-time logs of the node service includes: Obtain the real-time logs of the node service of the first resource node, wherein the real-time logs of the node service include historical resource acquisition requests; The first hot resource is determined based on the historical resource acquisition requests and preset hot resource conditions, wherein the preset hot resource conditions include the resource acquisition frequency meeting preset conditions.

3. The method according to claim 2, characterized in that, The method further includes: Receive resource information of the second hotspot resource broadcast by the second resource node; Obtain the second hotspot resource based on the resource information of the second hotspot resource; When a resource acquisition request for the second hotspot resource is received from a client, the second hotspot resource is provided to the client.

4. The method according to claim 3, characterized in that, The step of obtaining the second hotspot resource based on the resource information of the second hotspot resource includes: The second hot resource is obtained based on its resource information, and then stored in a memory disk.

5. A resource acquisition device based on a content delivery network, characterized in that, The device includes: The resource determination module is used to determine the primary hot resource based on the real-time logs of the node service. The information sending module is used to determine the resource information of the first hot resource based on the first hot resource, and generate a hot resource information set based on the resource information of the first hot resource; and multicast the hot resource information set in the content delivery network so that the second resource node can obtain the resource information of the first hot resource based on the hot resource information set. The information sending module is further configured to, when receiving a resource acquisition request from a client for acquiring the first hot resource, determine whether the first hot resource meets a preset resource jump threshold based on historical resource acquisition requests, so as to determine for the second time whether a jump operation is needed for the resource acquisition request of the first hot resource. The preset resource jump threshold includes the resource acquisition frequency meeting a preset condition within a preset period. When the first hot resource meets the preset resource jump threshold, without the support of the upstream content delivery network (CDN) scheduler, the temporary jump address of the first hot resource is returned to the client. The temporary jump address is used to realize the jump transfer of the hot resource acquisition request, so that the client can acquire the first hot resource from the second resource node. The device is also used to monitor the popularity of the second hot resource based on the node service log. When the popularity of the second hot resource no longer meets the preset hot resource conditions or the preset hot resource period ends, the second hot resource is deleted from the memory disk. The second hot resource is obtained from the second resource node.

6. A resource acquisition device based on a content delivery network, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.