CDN request processing method for edge node and CDN request processing system

By introducing edge management nodes into the edge nodes of the CDN system, only the necessary configuration files are loaded and missing configurations are dynamically obtained, the management and performance problems caused by the increase in the number of configuration files in the edge cache nodes are solved, and memory usage and storage costs are reduced.

CN119232785BActive Publication Date: 2025-05-16BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411718436.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-05-16
Estimated Expiration
2044-11-27

AI Technical Summary

Technical Problem

The number of configuration files in edge cache nodes of CDN systems continues to grow, resulting in management and performance issues such as extended server startup time and excessive memory usage, which in turn increases storage costs.

Method used

Introduce an edge management node in the edge node, by obtaining the target configuration file sent by the edge management node, only the necessary domain name configuration is loaded, and when needed, the missing domain name configuration is obtained from the edge management node to handle CDN requests.

Benefits of technology

Reduces memory footprint of edge cache nodes, reduces storage costs, and reduces startup time of edge cache nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232785B_ABST
    Figure CN119232785B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of communication technology, and discloses a CDN request processing method for edge nodes and a CDN request processing system, wherein the CDN request processing method for edge nodes is applied to the edge cache node of CDN, and the method includes: obtaining a target configuration file sent by an edge management node; obtaining a CDN request, and determining a first domain name configuration in the CDN request; when the first domain name configuration is not included in the target configuration file, requesting the edge management node to obtain the first domain name configuration; loading the first domain name configuration, and processing the CDN request based on the first domain name configuration. The present disclosure can load the full domain name configuration into the edge management node of the edge node, so that the edge cache node can load the required target configuration file from the edge management node, reducing the storage cost while reducing the memory usage of the edge cache node, thereby reducing the startup time of the edge cache node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a CDN request processing method and a CDN request processing system of an edge node. Background Art

[0002] CDN (Content Delivery Network) service is a network service that accelerates content distribution and optimizes user access experience by deploying server clusters in multiple geographical locations. In the CDN architecture, the configuration files of the accelerated domain names can be managed in the central node and transmitted to all edge nodes.

[0003] In the relevant configuration file management scheme, all configuration files are often loaded into the memory of the edge cache node of the edge node for use when the CDN request arrives. As time goes by, the number of accelerated domain names connected to the CDN system continues to grow, which also leads to the continuous growth of the number of configuration files synchronized in the edge cache node. Eventually, the management of a large number of small files will lead to many management and performance problems, such as slowing down the startup time of the server and occupying a large amount of memory, resulting in increased storage costs. Summary of the invention

[0004] In view of this, the present disclosure provides a CDN request processing method and a CDN request processing system for an edge node to solve the management and performance problems caused by the increasing number of configuration files in the edge cache nodes of the CDN system.

[0005] In a first aspect, the present disclosure provides a CDN request processing method of an edge node, which is applied to an edge cache node of a CDN, and the edge cache node is used to interact with an interactive object for data, and the method includes:

[0006] Obtain a target configuration file sent by an edge management node, wherein the edge management node and the edge cache node are located at the same edge node in the CDN, and the edge management node is used to store and manage the full domain name configuration sent by the central node of the CDN, and the target configuration file includes a partial domain name configuration in the full domain name configuration;

[0007] Obtain a CDN request and determine the first domain name configuration in the CDN request;

[0008] When the target configuration file does not include the first domain name configuration, requesting the edge management node to obtain the first domain name configuration;

[0009] The first domain name configuration is loaded, and the CDN request is processed based on the first domain name configuration.

[0010] In a second aspect, the present disclosure provides a CDN request processing method of an edge node, which is applied to an edge management node of a CDN, wherein the edge management node is used to store and manage a full domain name configuration sent by a central node of the CDN, and the method includes:

[0011] Detecting a second acquisition request sent by an edge cache node, wherein the edge cache node and the edge management node are located at the same edge node in the CDN, and the edge cache node is used to interact with the interactive object for data;

[0012] Searching the full domain name configuration for the first domain name configuration indicated by the second acquisition request;

[0013] In response to the second acquisition request, the first domain name configuration is sent to the edge cache node.

[0014] In a third aspect, the present disclosure provides a CDN request processing device for an edge node, which is applied to an edge cache node of a CDN, and the edge cache node is used to interact with an interactive object for data, and the device includes:

[0015] A first acquisition module is used to acquire a target configuration file sent by an edge management node, wherein the edge management node and the edge cache node are located at the same edge node in the CDN, the edge management node is used to store and manage the full domain name configuration sent by the central node of the CDN, and the target configuration file includes a partial domain name configuration in the full domain name configuration;

[0016] A determination module, used to obtain a CDN request and determine a first domain name configuration in the CDN request;

[0017] A second acquisition module, configured to request the edge management node to acquire the first domain name configuration when the target configuration file does not include the first domain name configuration;

[0018] The processing module is used to load the first domain name configuration and process the CDN request based on the first domain name configuration.

[0019] In a fourth aspect, the present disclosure provides a CDN request processing device for an edge node, which is applied to an edge management node of a CDN, wherein the edge management node is used to store and manage a full domain name configuration sent by a central node of the CDN, and the device includes:

[0020] A detection module, used to detect a second acquisition request sent by an edge management node, wherein the edge cache node and the edge management server are located at the same edge node in the content distribution network, and are used to interact with the interactive object for data;

[0021] A search module, used to search the full domain name configuration for the first domain name configuration indicated by the second acquisition request;

[0022] The sending module is used to send the first domain name configuration to the edge cache node in response to the second acquisition request.

[0023] In a fifth aspect, the present disclosure provides a CDN request processing system for an edge node, the system comprising: a central node of the CDN, an edge management node, and an edge cache node, wherein the edge management node and the edge cache node are located in the same edge node of the CDN;

[0024] The central node is used to send the full domain name configuration to the edge management node, where the full domain name configuration includes the domain name configuration of all accelerated domain names set in the CDN;

[0025] The edge management node is used to determine a first domain name configuration whose access times meet a popularity condition in the full domain name configuration, and determine a target configuration file according to the first domain name configuration;

[0026] The edge cache node is used to load the target configuration file into the memory, and when the target configuration file does not include the first domain name configuration in the received CDN request, request the edge management node to obtain the first domain name configuration, and process the CDN request based on the first domain name configuration.

[0027] In an embodiment of the present disclosure, first, a target configuration file sent by an edge management node can be obtained, wherein the edge management node and the edge cache node are located at the same edge node in the CDN, and the edge management node is used to store and manage the full domain name configuration sent by the central node of the CDN, and the target configuration file includes a partial domain name configuration in the full domain name configuration. Next, a CDN request can be obtained, and the first domain name configuration in the CDN request can be determined. Then, when the first domain name configuration is not included in the target configuration file, a request can be made to the edge management node to obtain the first domain name configuration, and the first domain name configuration can be loaded to process the CDN request based on the first domain name configuration, thereby loading the full domain name configuration into the edge management node of the edge node, so that the edge cache node can load the required target configuration file from the edge management node, and obtain the first domain name configuration from the edge management node in response to the CDN request, while reducing the memory usage of the edge cache node, reducing the storage cost, and thereby reducing the startup time of the edge cache node. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0029] Figure 1 It is a flowchart of a CDN request processing method of an edge node according to an embodiment of the present disclosure;

[0030] Figure 2 is a schematic diagram of a CDN network architecture according to an embodiment of the present disclosure;

[0031] Figure 3 It is a flowchart of another CDN request processing method of an edge node according to an embodiment of the present disclosure;

[0032] Figure 4 It is a structural block diagram of a CDN request processing device of an edge node according to an embodiment of the present disclosure;

[0033] Figure 5 is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present disclosure;

[0034] Figure 6 is a structural block diagram of a CDN request processing device of another edge node according to an embodiment of the present disclosure;

[0035] Figure 7 It is a schematic diagram of the hardware structure of the computer device of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0037] In conjunction with the application scenarios on which the execution of the configuration management method depends, the application scenarios are described here.

[0038] CDN (Content Delivery Network) service is a network service that accelerates content distribution and optimizes user access experience by deploying server clusters in multiple geographical locations. In the CDN architecture, the configuration files of the accelerated domain names can be managed in the central node and transmitted to all edge nodes.

[0039] In the relevant configuration file management scheme, all configuration files are often loaded into the memory of the edge cache node of the edge node for use when the CDN request arrives. As time goes by, the number of accelerated domain names connected to the CDN system continues to grow, which also leads to the continuous growth of the number of configuration files synchronized in the edge cache node. Eventually, the management of a large number of small files will lead to many management and performance problems, such as slowing down the startup time of the server and occupying a large amount of memory, resulting in increased storage costs.

[0040] Specifically, with the development of CDN business, CDN undertakes more and more accelerated domain names, which leads to the number of configuration files of a single CDN server reaching millions. The existence of massive small files makes the edge nodes in CDN face multiple technical problems. First, when the edge cache node acceleration service software in the edge node is started or restarted, all small configuration files need to be read from the disk into the memory and parsed. The massive configuration slows down the service startup speed. Secondly, the massive configuration takes up a lot of server memory. Assuming that each domain name only requires 10KB, 1 million configuration files will consume 10GB of memory space. In the relevant configuration file management scheme, the grouping and platform-based approach is generally adopted to divide the CDN server cluster into multiple groups. The number of domain names that need to be managed by each group of server clusters will be shared, but this method also brings additional group management burdens, and is not conducive to the resource reuse of CDN server clusters. Therefore, a more reasonable management method is needed to solve the problems of slow service startup and high memory usage.

[0041] Based on this, the embodiment of the present disclosure provides a CDN request processing method for an edge node, the CND request processing method is applied to the edge cache node of the CDN, the edge cache node is used to interact with the interactive object for data, the method can first obtain the target configuration file sent by the edge management node, wherein the edge management node and the edge cache node are located at the same edge node in the CDN, the edge management node is used to store and manage the full domain name configuration sent by the central node of the CDN, and the target configuration file includes a partial domain name configuration in the full domain name configuration. Next, the CDN request can be obtained, and the first domain name configuration in the CDN request can be determined. Then, when the first domain name configuration is not included in the target configuration file, the edge management node can be requested to obtain the first domain name configuration, and the first domain name configuration can be loaded to process the CDN request based on the first domain name configuration, so that the full domain name configuration is loaded into the edge management node of the edge node, so that the edge cache node can load the required target configuration file from the edge management node, and obtain the first domain name configuration from the edge management node in response to the CDN request, while reducing the memory usage of the edge cache node, reducing the storage cost, and thus reducing the startup time of the edge cache node.

[0042] According to an embodiment of the present disclosure, a configuration management method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0043] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0044] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0045] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0046] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0047] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0048] According to an embodiment of the present disclosure, an embodiment of a CDN request method for an edge node is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0049] In this embodiment, a CDN request processing method for an edge node is provided, which can be used for the edge cache node of the CDN. The edge cache node is used to interact with the interactive object for data. Figure 1 is a flow chart of a CDN request processing method of an edge node according to an embodiment of the present disclosure, such as Figure 1As shown, the process includes the following steps:

[0050] Step S101, obtaining a target configuration file sent by an edge management node, wherein the edge management node and the edge cache node are located at the same edge node in the CDN, the edge management node is used to store and manage the full domain name configuration sent by the central node of the CDN, and the target configuration file includes a partial domain name configuration in the full domain name configuration.

[0051] In the disclosed embodiments, CDN may be a complex network system composed of core components such as a central node, an edge node, a content management system, and a monitoring system, wherein the central node is the core of the CDN system, responsible for receiving requests from all users, and routing the requests to the most appropriate edge node based on factors such as the user's geographical location. The central node is usually a centralized server cluster with powerful processing capabilities and load balancing functions. The edge node, i.e., the edge node mentioned above, is the distribution carrier of the CDN system, distributed in geographically distant places, responsible for storing and distributing content, and directly providing services to users. The content management system is responsible for generating, updating, and managing website content. The monitoring system is responsible for real-time monitoring of the performance and availability of the CDN, so as to promptly discover and resolve problems.

[0052] Here, if Figure 2 FIG. 1 is a schematic diagram of a CDN network architecture, wherein the CDN architecture may include a central node and several edge nodes. Figure 2 The edge node 1 and the edge node 2 are shown in the figure, and the remaining edge nodes in the CDN architecture are not shown one by one.

[0053] Specifically, the CDN central computer room is the above-mentioned central node, which includes a central server to manage the domain name configuration of all accelerated domain names set in the CDN through the central server cluster. Specifically, the central server cluster can be used to manage the addition, deletion, and modification of domain name configurations, and transmit the full amount of domain name configurations to each edge node.

[0054] An edge node can contain several edge cache nodes (i.e. Figure 2 The edge cache node in the central node can be used to store and distribute content to speed up user access to content. An edge node can include 1-2 edge management nodes, which are used to manage edge cache nodes, for example, to manage the full amount of domain name configuration data, load balancing, content caching and distribution, and network traffic management distributed by the central node.

[0055] In the same edge node, after receiving the full domain name configuration sent by the central node, the edge management node can respond to the acquisition request of the edge cache node, determine the domain name configuration required by the edge cache node based on the full domain name configuration, and determine the target configuration file based on the determined domain name configuration.

[0056] After the edge cache node obtains the target configuration file, it can load the configuration file into the memory. It should be understood that since the edge cache node and the edge management node are located in the same edge node, the configuration file request and loading action occurs in the same computer room, which takes less than 10ms, which is much less than the time it takes for the edge server cluster to request the configuration file from the central node.

[0057] Step S102: Obtain a CDN request and determine a first domain name configuration in the CDN request.

[0058] In the disclosed embodiment, the user may access the accelerated domain name through a CDN request, and the CDN request may include information on the content requested by the user, geographic location information, network status, and configuration of the requested first domain name.

[0059] Step S103: When the target configuration file does not include the first domain name configuration, request the edge management node to obtain the first domain name configuration.

[0060] Step S104: load the first domain name configuration, and process the CDN request based on the first domain name configuration.

[0061] In the embodiment of the present disclosure, the edge cache node can match the domain name configuration in the target configuration file to determine whether the target configuration file contains the first domain name configuration. If so, it responds to the above CDN request to interact with the user. If not, it can generate a request to obtain the first domain name configuration from the edge management node and load it into the memory. It should be understood that since the edge cache node and the edge management node are located in the same computer room, the acceleration effect of the CDN is less affected.

[0062] In summary, in the embodiments of the present disclosure, first, the target configuration file sent by the edge management node can be obtained, wherein the edge management node and the edge cache node are located at the same edge node in the CDN, and the edge management node is used to store and manage the full domain name configuration sent by the central node of the CDN, and the target configuration file includes a partial domain name configuration in the full domain name configuration. Next, the CDN request can be obtained, and the first domain name configuration in the CDN request can be determined. Then, when the first domain name configuration is not included in the target configuration file, the edge management node can be requested to obtain the first domain name configuration, and the first domain name configuration can be loaded to process the CDN request based on the first domain name configuration, thereby loading the full domain name configuration into the edge management node of the edge node, so that the edge cache node can load the required target configuration file from the edge management node, and obtain the first domain name configuration from the edge management node in response to the CDN request, while reducing the memory usage of the edge cache node, reducing the storage cost, and thereby reducing the startup time of the edge cache node.

[0063] In some optional implementations, the above step S101, obtaining the target configuration file sent by the edge management node, includes:

[0064] Step S1011, when the edge cache node is started, a first acquisition request is generated, wherein the first acquisition request is used to obtain a target configuration file in the edge management node that contains a partial domain name configuration whose access times meet a heat condition.

[0065] Step S1012: Obtain the target configuration file fed back by the edge management node in response to the first acquisition request.

[0066] In the embodiment of the present disclosure, when the edge cache node is started or restarted, the acceleration software in the edge cache node for accelerating the domain name in response to the user's CDN request will also be restarted. At this time, the target configuration file needs to be loaded. In addition, when the edge cache node is not started or restarted, if the acceleration software is restarted, the target configuration file also needs to be reloaded.

[0067] At this time, a first acquisition request may be generated, wherein the first acquisition request may include a heat condition, and the heat condition is used to instruct the edge management node to filter out some domain name configurations whose access times within a preset time period meet the heat condition in the full domain name configuration, so as to determine the target configuration file based on the partial domain name configuration.

[0068] For example, the popularity condition can be used to filter out domain name configurations that are ranked in the top 100 in terms of the number of recent visits from all domain name configurations, or domain name configurations that are recently visited more than 100,000 times.

[0069] In the disclosed embodiment, the hottest domain name configuration that meets the heat condition can be preloaded in the edge cache node, thereby greatly reducing the number of configurations that need to be maintained in the memory of the acceleration software, thereby solving the problem of long service restart time and large memory usage.

[0070] In some optional embodiments, the above Figure 1 The corresponding embodiments also include:

[0071] Step S11, determining in the target configuration file a second domain name configuration that has not been accessed within a preset historical period.

[0072] Step S12, clearing the second domain name configuration in the target configuration file.

[0073] In the embodiment of the present disclosure, the edge cache node can respond to the analysis request for the target configuration file, analyze the target configuration file, determine the second domain name configuration in the target configuration file that has not been accessed by the CDN request within the preset historical period, and clear the second domain name configuration in the target configuration file. For example, if the preset historical period can be set to one hour, the second configuration domain name in the target configuration file that has not been accessed for more than one hour can be cleared.

[0074] For example, when the target configuration file is loaded, the acceleration software can maintain a timestamp for each domain name configuration in memory and sort by timestamp. When a CDN request arrives, the timestamp of the domain name configuration accessed by the CDN request can be refreshed to the current time. Then, a cleanup action can be performed every hour to delete the domain name configuration that has not been accessed by any CDN request within an hour from the memory.

[0075] In the embodiment of the present disclosure, the second domain name configuration that has not been requested to be accessed in the target configuration file can be deleted according to a certain cleaning cycle to reduce the memory usage in the edge cache node and improve the utilization rate of memory resources.

[0076] In this embodiment, another CDN request processing method of an edge node is provided, which can be used for the edge management node of the above CDN, wherein the edge management node is used to store and manage the full domain name configuration sent by the central node of the CDN. Figure 3 is a flowchart of another CDN request processing method of an edge node according to an embodiment of the present disclosure, such as Figure 1 As shown, the process includes the following steps:

[0077] Step S301: Detect a second acquisition request sent by an edge cache node, wherein the edge cache node and the edge management node are located at the same edge node in the CDN, and the edge cache node is used to perform data interaction with an interactive object.

[0078] In an embodiment of the present disclosure, when an edge cache node receives a CDN request, it can determine the first domain name configuration in the CDN request, and when the first domain name configuration is not included in the target configuration file, it requests the edge management node to obtain the first domain name configuration through a second acquisition request.

[0079] Step S302: Search the full domain name configuration for the first domain name configuration indicated by the second acquisition request.

[0080] Step S303: In response to the second acquisition request, the first domain name configuration is sent to the edge cache node.

[0081] In the embodiment of the present disclosure, the above Figure 2 It can be seen that the edge management node can be used to receive the full domain name configuration sent by the CDN and store it in the memory, and store part of the domain name configuration in the full domain name configuration in the target configuration file and distribute it to each edge cache node in the edge node.

[0082] Based on this, when the edge cache node processes a CDN request, there may be a situation where the target configuration file does not include the first domain name configuration in the CDN request. At this time, the edge cache node can generate a second acquisition request based on the first domain name configuration, so that the edge management node searches for the first domain name configuration indicated by the second acquisition request in the full domain name configuration based on the second acquisition request, and sends the first domain name configuration to the edge cache node.

[0083] In summary, in the disclosed embodiment, the second acquisition request sent by the edge cache node can be detected first, wherein the edge cache node and the edge management node are in the same edge node in the CDN, and the edge cache node is used to interact with the interactive object for data. Then, the first domain name configuration indicated by the second acquisition request can be searched in the full domain name configuration, and in response to the second acquisition request, the first domain name configuration is sent to the edge cache node, thereby loading the full domain name configuration into the edge management node of the edge node, so that the edge cache node can load the required target configuration file from the edge management node, and obtain the first domain name configuration from the edge management node in response to the CDN request, while reducing the memory usage of the edge cache node, reducing the storage cost, and thus reducing the startup time of the edge cache node.

[0084] In some optional embodiments, the above Figure 3 The corresponding embodiments also include:

[0085] Step S21: obtain a first acquisition request sent by an edge cache node, and determine a summary period in the first acquisition request.

[0086] Step S22, aggregating the monitored CDN requests based on the summary period, and obtaining the first domain name configuration whose access times meet the popularity condition in the full domain name configuration.

[0087] Step S23: determine a target configuration file according to the first domain name configuration, and send the target configuration file to the edge cache node in response to the first acquisition request.

[0088] In the embodiment of the present disclosure, when the edge cache node is started or restarted, the acceleration software in the edge cache node for accelerating the domain name in response to the user's CDN request will also be restarted. At this time, the target configuration file needs to be loaded. In addition, when the edge cache node is not started or restarted, if the acceleration software is restarted, the target configuration file also needs to be reloaded.

[0089] At this time, a first acquisition request may be generated, wherein the first acquisition request may include a heat condition, and the heat condition is used to instruct the edge management node to filter out some domain name configurations whose access times within the summary period meet the heat condition in the full domain name configuration, so as to determine the target configuration file based on the partial domain name configuration.

[0090] For example, the popularity condition can be used to filter out domain name configurations that are ranked in the top 100 in terms of the number of recent visits from all domain name configurations, or domain name configurations that are recently visited more than 100,000 times.

[0091] In the disclosed embodiment, the hottest domain name configuration that meets the heat condition can be preloaded in the edge cache node, thereby greatly reducing the number of configurations that need to be maintained in the memory of the acceleration software, thereby solving the problem of long service restart time and large memory usage.

[0092] In some optional embodiments, the above Figure 3 The corresponding embodiments also include:

[0093] Step S31: Based on the first data interface, obtain the full domain name configuration fed back by the central node of the CDN.

[0094] Step S32, loading the second configuration file into the local memory.

[0095] In an embodiment of the present disclosure, the edge management node may be an API server cluster, and an https interface for data interaction with a central node of a CDN may be set in the edge management node. The https interface may include a first data interface, wherein the first data interface is an https interface for providing full domain name configuration downloads.

[0096] Specifically, when the edge management node is powered on or restarted, the full domain name configuration can be obtained from the central node of the CDN through the first data interface and loaded into the local memory.

[0097] In some optional embodiments, the above Figure 3 The corresponding embodiments also include:

[0098] Step S41: Based on the second data interface, an update event for the full domain name configuration in the central node is detected to obtain incremental data.

[0099] Step S42, obtaining incremental data based on the third data interface, and updating the full domain name configuration in the memory according to the incremental data.

[0100] In the embodiment of the present disclosure, it can be seen from the above that an https interface for data interaction with the central node of the CDN can be set in the edge management node, and the https interface can also include a second data interface and a third data interface.

[0101] Specifically, the second data interface can be a configuration change event monitoring interface, which can be used to monitor update events for the full domain name configuration in the data center, and determine incremental data based on the update time, wherein the incremental data can be used to indicate the update, modification or deletion of the full domain name configuration.

[0102] Then, incremental data can be obtained based on the third data interface, which can be a single domain name configuration download interface. When the above update time is a newly added domain name configuration, the newly added domain name configuration can be obtained through the third data interface and updated to the local memory.

[0103] In an embodiment of the present disclosure, an https interface for data interaction with a central node of a CDN may be set in an edge management node, thereby obtaining full data or incremental data of a domain name configuration according to the https interface, and maintaining consistency between the domain name configuration in the edge management node and the domain name configuration in the central node.

[0104] In summary, in the embodiments of the present disclosure, first, the target configuration file sent by the edge management node can be obtained, wherein the edge management node and the edge cache node are located at the same edge node in the CDN, and the edge management node is used to store and manage the full domain name configuration sent by the central node of the CDN, and the target configuration file includes a partial domain name configuration in the full domain name configuration. Next, the CDN request can be obtained, and the first domain name configuration in the CDN request can be determined. Then, when the first domain name configuration is not included in the target configuration file, the edge management node can be requested to obtain the first domain name configuration, and the first domain name configuration can be loaded to process the CDN request based on the first domain name configuration, thereby loading the full domain name configuration into the edge management node of the edge node, so that the edge cache node can load the required target configuration file from the edge management node, and obtain the first domain name configuration from the edge management node in response to the CDN request, while reducing the memory usage of the edge cache node, reducing the storage cost, and thereby reducing the startup time of the edge cache node.

[0105] In this embodiment, a CDN request processing device for an edge node is also provided, which is used to implement the above Figure 1 The corresponding embodiments and preferred implementations have been described and will not be repeated here. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and contemplated.

[0106] This embodiment provides a CDN request processing device for an edge node, such as Figure 4 As shown, including:

[0107] A first acquisition module 401 is used to acquire a target configuration file sent by an edge management node, wherein the edge management node and the edge cache node are located at the same edge node in the CDN, and the edge management node is used to store and manage the full domain name configuration sent by the central node of the CDN, and the target configuration file includes a partial domain name configuration in the full domain name configuration;

[0108] The determination module 402 is used to obtain a CDN request and determine a first domain name configuration in the CDN request;

[0109] The second acquisition module 403 is used to request the edge management node to acquire the first domain name configuration when the target configuration file does not include the first domain name configuration;

[0110] The processing module 404 is used to load the first domain name configuration and process the CDN request based on the first domain name configuration.

[0111] In some optional implementations, the first acquisition module 401 is further configured to:

[0112] When the edge cache node is started, a first acquisition request is generated, wherein the first acquisition request is used to acquire a target configuration file in the edge management node that contains a partial domain name configuration whose access times meet a heat condition;

[0113] The target configuration file fed back by the edge management node in response to the first acquisition request is obtained.

[0114] In some optional embodiments, the device is also used for:

[0115] Determine in the target configuration file a second domain name configuration that has not been accessed within a preset historical period;

[0116] Clear the second domain name configuration in the target configuration file.

[0117] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0118] The CDN request processing device of the edge node in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0119] The present disclosure also provides a computer device having the above Figure 4 The CDN request processing device of the edge node is shown.

[0120] See also Figure 5 , Figure 5 is a schematic diagram of a computer device provided by an optional embodiment of the present disclosure, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.

[0121] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0122] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0123] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0124] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0125] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0126] This embodiment provides another CDN request processing device of an edge node, such as Figure 6 As shown, including:

[0127] The detection module 601 is used to detect a second acquisition request sent by the edge management node, wherein the edge cache node and the edge management server are located at the same edge node in the content distribution network and are used to interact with the interaction object for data;

[0128] A search module 602 is used to search the full domain name configuration for the first domain name configuration indicated by the second acquisition request;

[0129] The sending module 603 is configured to send the first domain name configuration to the edge cache node in response to the second acquisition request.

[0130] In some optional embodiments, the device is also used for:

[0131] Obtaining a first acquisition request sent by an edge cache node, and determining a summary period in the first acquisition request;

[0132] Aggregate the monitored CDN requests based on the summary period to obtain the first domain name configuration whose access times meet the popularity condition in the full domain name configuration;

[0133] A target configuration file is determined according to the first domain name configuration, and the target configuration file is sent to the edge cache node in response to the first acquisition request.

[0134] In some optional embodiments, the device is also used for:

[0135] Based on the first data interface, obtain the full domain name configuration fed back by the central node of the CDN;

[0136] Load the second configuration file into local memory.

[0137] In some optional embodiments, the device is also used for:

[0138] Detecting an update event for the full domain name configuration in the central node based on the second data interface to obtain incremental data;

[0139] The incremental data is obtained based on the third data interface, and the full domain name configuration in the memory is updated according to the incremental data.

[0140] When the edge cache node is started, a first acquisition request is generated, wherein the first acquisition request is used to acquire a target configuration file in the edge management node that contains a partial domain name configuration whose access times meet a heat condition;

[0141] The target configuration file fed back by the edge management node in response to the first acquisition request is obtained.

[0142] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0143] The CDN request processing device of the edge node in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0144] The present disclosure also provides another computer device having the above Figure 6 The CDN request processing device of the edge node is shown.

[0145] See also Figure 7 , Figure 7 is a schematic diagram of the structure of another computer device provided by an optional embodiment of the present disclosure, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 40 is taken as an example.

[0146] The processor 40 may be a central processing unit, a network processor or a combination thereof. The processor 40 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable logic gate array, a general purpose array logic or any combination thereof.

[0147] The memory 50 stores instructions executable by at least one processor 40 so as to enable at least one processor 40 to implement the method shown in the above embodiment.

[0148] The memory 50 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 50 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 50 may optionally include a memory remotely arranged relative to the processor 40, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0149] The memory 50 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 50 may also include a combination of the above types of memory.

[0150] The computer device further comprises a communication interface 60 for the computer device to communicate with other devices or a communication network.

[0151] In this embodiment, a CDN request processing system for an edge node is provided, the system comprising: a central node of a CDN, an edge management node and an edge cache node, wherein the edge management node and the edge cache node are located in the same edge node of the CDN; wherein:

[0152] The central node is used to send the full domain name configuration to the edge management node, where the full domain name configuration includes the domain name configuration of all accelerated domain names set in the CDN.

[0153] The edge management node is used to determine a first domain name configuration whose access times meet a popularity condition in the full domain name configuration, and determine a target configuration file according to the first domain name configuration.

[0154] The edge cache node is used to load the target configuration file into the memory, and when the target configuration file does not include the first domain name configuration in the received CDN request, request the edge management node to obtain the first domain name configuration, and process the CDN request based on the first domain name configuration.

[0155] In the embodiment of the present disclosure, the method of performing CDN request processing based on the central node, the edge management node and the edge cache node is as described above. Figure 1 as well as Figure 3 The corresponding embodiments are described and will not be repeated here.

[0156] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0157] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0158] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0159] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0160] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0161] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0162] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the accompanying description.

Claims

1. A CDN request processing method for an edge node, characterized in that: An edge cache node applied to a CDN, the edge cache node being used to perform data interaction with an interactive object, the method comprising: Obtaining a target configuration file sent by an edge management node, wherein the edge management node and the edge cache node are located at the same edge node in the CDN, the edge management node is used to store and manage the full domain name configuration sent by the central node of the CDN, and the target configuration file includes a partial domain name configuration in the full domain name configuration; Obtaining a CDN request, and determining a first domain name configuration in the CDN request; When the target configuration file does not include the first domain name configuration, requesting the edge management node to obtain the first domain name configuration; Loading the first domain name configuration, and processing the CDN request based on the first domain name configuration; The step of obtaining the target configuration file sent by the edge management node includes: When the edge cache node is started, a first acquisition request is generated, wherein the first acquisition request is used to acquire a target configuration file in the edge management node that contains a partial domain name configuration whose access times meet a heat condition; Acquire a target configuration file fed back by the edge management node in response to the first acquisition request; Determining, in the target configuration file, a second domain name configuration that has not been accessed within a preset historical period; The second domain name configuration in the target configuration file is cleared.

2. A CDN request processing method for an edge node, characterized in that: An edge management node applied to a CDN, wherein the edge management node is used to store and manage the full domain name configuration sent by the central node of the CDN, and the method includes: Detecting a second acquisition request sent by an edge cache node, wherein the edge cache node and the edge management node are located at the same edge node in the CDN, and the edge cache node is used to interact with the interactive object for data; Searching the full domain name configuration for the first domain name configuration indicated by the second acquisition request; In response to the second acquisition request, sending the first domain name configuration to the edge cache node; Obtaining a first acquisition request sent by the edge cache node, and determining a summary period in the first acquisition request; Aggregating the monitored CDN requests based on the summary period to obtain a first domain name configuration whose access times meet a popularity condition in the full domain name configuration; determining a target configuration file according to the first domain name configuration, and sending the target configuration file to the edge cache node in response to the first acquisition request; Detecting an update event for the full domain name configuration in the central node based on the second data interface to obtain incremental data; The incremental data is obtained based on the third data interface, and the full domain name configuration in the memory is updated according to the incremental data.

3. The method according to claim 2, characterized in that The method further comprises: Based on the first data interface, obtaining the full domain name configuration fed back by the central node of the CDN; Load the full domain name configuration into local memory.

4. A CDN request processing device for an edge node, characterized in that: An edge management node applied to a CDN, wherein the edge management node is used to store and manage the full domain name configuration sent by the central node of the CDN, and the device includes: A detection module, configured to detect a second acquisition request sent by an edge cache node, wherein the edge cache node and the edge management node are located at the same edge node in the CDN and are configured to perform data interaction with an interactive object; A search module, configured to search the full domain name configuration for the first domain name configuration indicated by the second acquisition request; A sending module, configured to send the first domain name configuration to the edge cache node in response to the second acquisition request; a determination module, configured to obtain a first acquisition request sent by the edge cache node, determine a summary period in the first acquisition request, aggregate the monitored CDN requests based on the summary period, obtain a first domain name configuration whose access times meet a heat condition in the full domain name configuration, determine a target configuration file according to the first domain name configuration, and send the target configuration file to the edge cache node in response to the first acquisition request; An update module is used to detect an update event for the full domain name configuration in the central node based on the second data interface, obtain incremental data, obtain the incremental data based on the third data interface, and update the full domain name configuration in the memory according to the incremental data.

5. A CDN request processing device for an edge node, characterized in that: An edge cache node applied to a CDN, the edge cache node being used to perform data interaction with an interactive object, the device comprising: A first acquisition module is configured to acquire a target configuration file sent by an edge management node, wherein the edge management node and the edge cache node are located at the same edge node in the CDN, the edge management node is configured to store and manage the full domain name configuration sent by the central node of the CDN, and the target configuration file includes a partial domain name configuration in the full domain name configuration, wherein when the edge cache node is started, a first acquisition request is generated, wherein the first acquisition request is configured to acquire a target configuration file in the edge management node that includes a partial domain name configuration whose access times meet a heat condition; and to acquire a target configuration file fed back by the edge management node in response to the first acquisition request; A determination module, used to obtain a CDN request and determine a first domain name configuration in the CDN request; A second acquisition module, configured to request the edge management node to acquire the first domain name configuration when the target configuration file does not include the first domain name configuration; a processing module, configured to load the first domain name configuration and process the CDN request based on the first domain name configuration; The cleaning module is used to determine the second domain name configuration that has not been accessed within a preset historical period in the target configuration file, and clean up the second domain name configuration in the target configuration file.

6. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the CDN request processing method for the edge node according to any one of claims 1 to 3 by executing the computer instructions.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the CDN request processing method for an edge node according to any one of claims 1 to 3.

8. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the CDN request processing method for an edge node according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Domain name deployment acceleration method, server, system and storage medium

    CN114257503A

  • Data refreshing method and system

    CN118474123A