[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112153095A - CDN function module operation method, operation device, electronic equipment and storage medium - Google Patents

CDN function module operation method, operation device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112153095A
CN112153095A CN201910579778.5A CN201910579778A CN112153095A CN 112153095 A CN112153095 A CN 112153095A CN 201910579778 A CN201910579778 A CN 201910579778A CN 112153095 A CN112153095 A CN 112153095A
Authority
CN
China
Prior art keywords
domain name
run
function
module
linked list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910579778.5A
Other languages
Chinese (zh)
Inventor
王永强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201910579778.5A priority Critical patent/CN112153095A/en
Priority to PCT/CN2020/098178 priority patent/WO2020259608A1/en
Publication of CN112153095A publication Critical patent/CN112153095A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明实施例提供了一种CDN功能模块运行方法、运行装置、电子设备及存储介质,其中方法包括:获取由客户端发送的请求报文;获取预存的与域名对应的待运行功能模块及各个待运行功能模块的运行顺序;获取预存的与域名对应的各个待运行功能模块的配置信息;按照各个待运行功能模块的运行顺序和配置信息,运行各个待运行功能模块。本发明实施例能够减少边缘节点运行功能模块时的计算量,从而优化边缘节点的处理性能。

Figure 201910579778

Embodiments of the present invention provide a CDN function module operation method, operation device, electronic device and storage medium, wherein the method includes: obtaining a request message sent by a client; obtaining pre-stored function modules to be run corresponding to domain names and each The running sequence of the functional modules to be run; obtain the pre-stored configuration information of each functional module to be run corresponding to the domain name; run each functional module to be run according to the running sequence and configuration information of each functional module to be run. The embodiment of the present invention can reduce the amount of calculation when the edge node runs the function module, thereby optimizing the processing performance of the edge node.

Figure 201910579778

Description

CDN功能模块运行方法、运行装置、电子设备及存储介质CDN functional module operating method, operating device, electronic device and storage medium

技术领域technical field

本发明涉及数据通信技术领域,特别是涉及一种CDN功能模块运行方法、运行装置、电子设备及存储介质。The present invention relates to the technical field of data communication, and in particular, to a CDN function module operating method, operating device, electronic device and storage medium.

背景技术Background technique

CDN(Content Delivery Network,内容分发网络)是一种新型的网络构架,如图1所示,用户终端向中心服务器发送访问请求,中心服务器接收访问请求后,向用户终端发送与该用户终端距离最近的边缘节点的IP地址,用户终端向IP地址对应的边缘节点发送数据获取请求(例如HTTP请求),边缘节点接收数据获取请求后,向用户终端返回响应内容。CDN (Content Delivery Network) is a new type of network architecture. As shown in Figure 1, the user terminal sends an access request to the central server. After receiving the access request, the central server sends a message to the user terminal that is closest to the user terminal. The user terminal sends a data acquisition request (such as an HTTP request) to the edge node corresponding to the IP address, and the edge node returns the response content to the user terminal after receiving the data acquisition request.

现有CDN中的边缘节点接收到HTTP请求后,按照边缘节点上的各功能模块的运行顺序,对全量配置文件中各功能模块的开关标识进行遍历判断,如果判断通过,则运行该功能模块,如果判断未通过,则接着判断下一功能模块的开关标识,直到判断结束;其中,全量配置文件中包含:每个功能模块的开关标识以及各功能模块配置参数。After the edge node in the existing CDN receives the HTTP request, it traverses and judges the switch identifiers of each functional module in the full configuration file according to the running order of each functional module on the edge node. If the judgment is passed, the functional module is run. If the judgment fails, then judge the switch identification of the next functional module until the end of the judgment; wherein, the full configuration file includes: the switch identification of each functional module and the configuration parameters of each functional module.

由于每个域名配置的功能不同,但是现有技术中针对每一条http请求都要遍历边缘节点上所有的功能模块,例如:边缘节点上的功能模块一共300个,这300个是功能模块是所有域名的功能的总和,而对于A域名可能只用到了10个,那么在这种情况下,对于A域名,需要遍历300个功能模块,有290个功能模块都是需要检测一下开关标识,判断失败后执行下一个功能模块,这样势必造成计算资源的浪费和边缘节点处理时间的增加,并且随着边缘节点中功能模块的增加,则需要遍历的功能模块也随之增加,进而,进一步导致计算资源的浪费和边缘节点处理时间的增加。Since the functions configured for each domain name are different, in the prior art, all the functional modules on the edge node must be traversed for each http request. For example, there are a total of 300 functional modules on the edge node, and these 300 functional modules are all The sum of the functions of the domain name, and only 10 may be used for the A domain name. In this case, for the A domain name, 300 functional modules need to be traversed, and 290 functional modules need to check the switch identification, and the judgment fails. Then the next functional module is executed, which will inevitably lead to a waste of computing resources and an increase in the processing time of the edge node. With the increase of functional modules in the edge node, the functional modules that need to be traversed will also increase, which will further lead to computing resources. waste and increase the processing time of edge nodes.

发明内容SUMMARY OF THE INVENTION

本发明实施例的目的在于提供一种CDN功能模块运行方法、运行装置、电子设备及存储介质,以减少边缘节点的计算资源浪费和处理时间。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a CDN function module operation method, operation device, electronic device and storage medium, so as to reduce the waste of computing resources and processing time of edge nodes. The specific technical solutions are as follows:

第一方面,本发明实施例提供了一种CDN功能模块运行方法,应用于内容分发网络CDN中的边缘节点,包括:In a first aspect, an embodiment of the present invention provides a method for operating a CDN function module, which is applied to an edge node in a CDN of a content distribution network, including:

获取由客户端发送的请求报文,所述请求报文中包括域名的信息;Obtain a request message sent by the client, where the request message includes domain name information;

获取预存的与所述域名对应的各个待运行功能模块的运行顺序;Obtaining the pre-stored running sequence of each functional module to be run corresponding to the domain name;

获取预存的与所述域名对应的各个待运行功能模块的配置信息;obtaining pre-stored configuration information of each functional module to be run corresponding to the domain name;

按照各个所述待运行功能模块的运行顺序和配置信息,运行所述各个待运行功能模块。Each functional module to be run is run according to the running sequence and configuration information of each functional module to be run.

可选的,所述获取预存的与所述域名对应的各个待运行功能模块的运行顺序的步骤,包括:Optionally, the step of acquiring the pre-stored running order of each functional module to be run corresponding to the domain name includes:

根据所述域名,从预存的各个域名对应的预设功能链表中,获取与所述域名对应的功能链表;所述功能链表用于描述与所述域名对应的各个所述待运行功能模块的运行顺序。According to the domain name, the function linked list corresponding to the domain name is obtained from the preset function linked list corresponding to each pre-stored domain name; the function linked list is used to describe the operation of each of the to-be-run function modules corresponding to the domain name order.

可选的,在获取由客户端发送的请求报文之前,所述方法还包括:Optionally, before acquiring the request message sent by the client, the method further includes:

基于所述边缘节点对应的第一配置文件,生成与所述域名对应的第二配置文件,以及生成与所述域名对应的功能链表;所述第一配置文件中包含所述边缘节点中的各功能模块的配置信息;Based on the first configuration file corresponding to the edge node, a second configuration file corresponding to the domain name is generated, and a function linked list corresponding to the domain name is generated; the first configuration file includes each of the edge nodes. Configuration information of function modules;

将生成的与所述域名对应的第二配置文件以及功能链表存储在共享内存中。The generated second configuration file corresponding to the domain name and the function linked list are stored in the shared memory.

可选的,所述基于所述边缘节点对应的第一配置文件,生成与所述域名对应的第二配置文件的步骤,包括:Optionally, the step of generating a second configuration file corresponding to the domain name based on the first configuration file corresponding to the edge node includes:

遍历所述第一配置文件中的配置信息,将属于不同域名的配置信息进行划分;Traverse the configuration information in the first configuration file, and divide the configuration information belonging to different domain names;

基于划分后的配置信息,生成与所述域名对应的第二配置文件。Based on the divided configuration information, a second configuration file corresponding to the domain name is generated.

可选的,所述生成与所述域名对应的功能链表的步骤,包括:Optionally, the step of generating a function linked list corresponding to the domain name includes:

在与所述域名对应的第二配置文件中,查找预设标识,其中,一个预设标识对应一个功能模块;In the second configuration file corresponding to the domain name, search for a preset identifier, wherein one preset identifier corresponds to one function module;

在预设的功能映射表中,确定查找到的预设标识所对应的Lua文件的名称,所述功能映射表中保存有预设标识与Lua文件之间的映射关系;In the preset function mapping table, determine the name of the Lua file corresponding to the found preset identifier, and the function mapping table stores the mapping relationship between the preset identifier and the Lua file;

按照与各Lua文件对应的功能模块的运行顺序,将所确定的所述Lua文件的名称写入与该域名对应的功能链表中,得到与所述域名对应的功能链表。According to the running order of the function modules corresponding to each Lua file, the determined name of the Lua file is written into the function linked list corresponding to the domain name to obtain the function linked list corresponding to the domain name.

可选的,所述获取预存的与所述域名对应的各个待运行功能模块的配置信息的步骤,包括:Optionally, the step of acquiring the pre-stored configuration information of each functional module to be run corresponding to the domain name includes:

从共享内存中所存储的所述第二配置文件中,获取与所述域名对应的各个待运行功能模块的配置信息。From the second configuration file stored in the shared memory, the configuration information of each function module to be run corresponding to the domain name is acquired.

第二方面,本发明实施例提供了一种CDN功能模块运行装置,应用于内容分发网络CDN中的边缘节点,包括:In a second aspect, an embodiment of the present invention provides a CDN functional module operating device, which is applied to an edge node in a CDN of a content distribution network, including:

第一获取模块,用于获取由客户端发送的请求报文,所述请求报文中包括域名的信息;a first obtaining module, configured to obtain a request message sent by the client, where the request message includes information about the domain name;

第二获取模块,用于获取预存的与所述域名对应的各个待运行功能模块的运行顺序;a second obtaining module, configured to obtain the pre-stored running order of each functional module to be run corresponding to the domain name;

第三获取模块,用于获取预存的与所述域名对应的各个待运行功能模块的配置信息;a third obtaining module, configured to obtain the pre-stored configuration information of each function module to be run corresponding to the domain name;

运行模块,用于按照各个所述待运行功能模块的运行顺序和配置信息,运行所述各个待运行功能模块。The running module is configured to run each functional module to be run according to the running sequence and configuration information of each functional module to run.

可选的,所述第二获取模块,具体用于:Optionally, the second obtaining module is specifically used for:

根据所述域名,从预存的各个域名对应的预设功能链表中,获取与所述域名对应的功能链表;所述功能链表用于描述与所述域名对应的各个所述待运行功能模块的运行顺序。According to the domain name, the function linked list corresponding to the domain name is obtained from the preset function linked list corresponding to each pre-stored domain name; the function linked list is used to describe the operation of each of the to-be-run function modules corresponding to the domain name order.

可选的,所述装置还包括:Optionally, the device further includes:

生成模块,用于基于所述边缘节点对应的第一配置文件,生成与所述域名对应的第二配置文件,以及生成与所述域名对应的功能链表;所述第一配置文件中包含所述边缘节点中的各功能模块的配置信息;A generating module, configured to generate a second configuration file corresponding to the domain name based on the first configuration file corresponding to the edge node, and generate a function linked list corresponding to the domain name; the first configuration file contains the Configuration information of each functional module in the edge node;

存储模块,用于将生成的与所述域名对应的第二配置文件以及功能链表存储在共享内存中。The storage module is configured to store the generated second configuration file corresponding to the domain name and the function linked list in the shared memory.

可选的,所述生成模块包括第二配置文件生成子模块,所述第二配置文件生成子模块包括:Optionally, the generation module includes a second configuration file generation submodule, and the second configuration file generation submodule includes:

划分单元,用于遍历所述第一配置文件中的配置信息,将属于不同域名的配置信息进行划分;a dividing unit, configured to traverse the configuration information in the first configuration file, and divide the configuration information belonging to different domain names;

生成单元,用于基于划分后的配置信息,生成与所述域名对应的第二配置文件。A generating unit, configured to generate a second configuration file corresponding to the domain name based on the divided configuration information.

可选的,所述生成模块包括功能链表生成子模块,所述功能链表生成子模块包括:Optionally, the generation module includes a function linked list generation submodule, and the function linked list generation submodule includes:

查找单元,用于在与所述域名对应的第二配置文件中,查找预设标识,其中,一个预设标识对应一个功能模块;a search unit, configured to search for a preset identifier in the second configuration file corresponding to the domain name, wherein one preset identifier corresponds to one function module;

确定单元,用于在预设的功能映射表中,确定查找到的预设标识所对应的Lua文件的名称,所述功能映射表中保存有预设标识与Lua文件之间的映射关系;a determining unit, configured to determine the name of the Lua file corresponding to the found preset identifier in the preset function mapping table, where the mapping relationship between the preset identifier and the Lua file is stored in the function mapping table;

写入单元,用于按照与各Lua文件对应的功能模块的运行顺序,将所确定的所述Lua文件的名称写入与该域名对应的功能链表中,得到与所述域名对应的功能链表。The writing unit is configured to write the determined name of the Lua file into the function linked list corresponding to the domain name according to the running order of the function modules corresponding to each Lua file, so as to obtain the function linked list corresponding to the domain name.

可选的,所述第二获取模块,具体用于:Optionally, the second obtaining module is specifically used for:

从共享内存中所存储的所述第二配置文件中,获取与所述域名对应的各个待运行功能模块的配置信息。From the second configuration file stored in the shared memory, the configuration information of each function module to be run corresponding to the domain name is acquired.

第三方面,本发明实施例提供了一种电子设备,包括处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令,所述处理器执行所述机器可执行指令以实现上述第一方面提供的CDN功能模块运行方法的方法步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processing The machine executes the machine-executable instructions to implement the method steps of the method for running the CDN function module provided in the first aspect.

第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时,实现上述第一方面提供的CDN功能模块运行方法的方法步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the CDN function provided in the first aspect above is implemented The method step of the module run method.

第五方面,本发明实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面提供的CDN功能模块运行方法的方法步骤。In a fifth aspect, an embodiment of the present invention further provides a computer program product including instructions, which, when run on a computer, causes the computer to execute the method steps of the method for running a CDN function module provided in the first aspect.

第六方面,本发明实施例还提供了一种计算机程序,当其在计算机上运行时,使得计算机执行上述第一方面提供的CDN功能模块运行方法的方法步骤。In a sixth aspect, an embodiment of the present invention further provides a computer program that, when running on a computer, causes the computer to execute the method steps of the method for running a CDN function module provided in the first aspect.

本发明实施例提供的一种CDN功能模块运行方法、运行装置、电子设备及存储介质,在获取由客户端发送的请求报文后,边缘节点能够获取预存的与域名对应的待运行功能模块及各个待运行功能模块的运行顺序,以及获取预存的与域名对应的各个待运行功能模块的配置信息,进而按照各个待运行功能模块的运行顺序和配置信息运行各个待运行功能模块,由于在确定域名的待运行功能模块时,不再需要对全量配置文件中各功能模块的开关标识进行遍历判断,因此能够减少边缘节点的计算资源浪费,缩短处理时间,从而优化边缘节点的处理性能。当然,实施本发明的任一产品或方法必不一定需要同时达到以上所述的所有优点。In the CDN function module operation method, operation device, electronic device and storage medium provided by the embodiment of the present invention, after obtaining the request message sent by the client, the edge node can obtain the pre-stored function module to be run corresponding to the domain name and The running sequence of each functional module to be run, and the pre-stored configuration information of each functional module to be run corresponding to the domain name is obtained, and then each functional module to be run is run according to the running sequence and configuration information of each functional module to be run. When the functional modules to be run are not required to be run, it is no longer necessary to traverse and judge the switch identifiers of each functional module in the full configuration file, so it can reduce the waste of computing resources of the edge node, shorten the processing time, and thus optimize the processing performance of the edge node. Of course, it is not necessary for any product or method to implement the present invention to simultaneously achieve all of the advantages described above.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为CDN中用户终端与边缘节点的信息交互示意图;Figure 1 is a schematic diagram of information interaction between a user terminal and an edge node in a CDN;

图2为现有CDN功能模块运行方法对功能模块进行遍历的过程示意图;FIG. 2 is a schematic diagram of the process of traversing functional modules by an existing CDN functional module operating method;

图3为本发明实施例提供的CDN功能模块运行方法的第一种流程示意图;3 is a first schematic flowchart of a method for running a CDN function module provided by an embodiment of the present invention;

图4为本发明实施例提供的CDN功能模块运行方法的第二种流程示意图;FIG. 4 is a second schematic flowchart of a method for running a CDN function module according to an embodiment of the present invention;

图5为本发明实施例提供的CDN功能模块运行方法的第三种流程示意图;FIG. 5 is a third schematic flowchart of a method for running a CDN function module according to an embodiment of the present invention;

图6为本发明实施例中功能链表建立过程的一种流程示意图;6 is a schematic flowchart of a process of establishing a function linked list in an embodiment of the present invention;

图7为本发明实施例提供的CDN功能模块运行装置的第一种结构示意图;FIG. 7 is a first structural schematic diagram of a CDN functional module running device provided by an embodiment of the present invention;

图8为本发明实施例提供的CDN功能模块运行装置的第二种结构示意图;FIG. 8 is a schematic structural diagram of a second type of a CDN functional module running device provided by an embodiment of the present invention;

图9为本发明实施例提供的CDN功能模块运行装置中,第二配置文件生成子模块的一种结构示意图;9 is a schematic structural diagram of a second configuration file generating submodule in the CDN functional module running device provided by the embodiment of the present invention;

图10为本发明实施例提供的CDN功能模块运行装置中,功能链表生成子模块的一种结构示意图;10 is a schematic structural diagram of a function linked list generation submodule in the CDN function module running device provided by an embodiment of the present invention;

图11为本发明实施例提供的一种电子设备的结构示意图。FIG. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

现有的CDN功能模块运行方法,如图2所示,边缘节点在接收针对某一域名的请求报文后,都需要对全量配置文件中所有功能模块的开关标识进行遍历判断,例如,需要对图2中的12个功能模块的开关标识进行遍历,而对于域名A,其中的功能模块1、3、4、6、7、8、9、11、12都是只检测一下开关标识便跳过,真正需要运行的功能模块只有功能模块2、5、10,这些计算实际上是在无端的消耗边缘节点中处理器的计算资源。The existing CDN function module operation method, as shown in Figure 2, after receiving the request message for a certain domain name, the edge node needs to traverse and judge the switch identifiers of all function modules in the full configuration file. The switch identifiers of the 12 functional modules in Figure 2 are traversed, and for domain name A, the functional modules 1, 3, 4, 6, 7, 8, 9, 11, and 12 are skipped only after detecting the switch identifiers. , the only functional modules that really need to run are functional modules 2, 5, and 10. These calculations are actually consuming the computing resources of the processor in the edge node for no reason.

有鉴于此,如图3所示,本发明实施例提供了一种CDN功能模块运行方法,应用于CDN中的边缘节点,该方法可以包括以下步骤:In view of this, as shown in FIG. 3 , an embodiment of the present invention provides a method for running a CDN function module, which is applied to an edge node in a CDN, and the method may include the following steps:

S101,获取由客户端发送的请求报文。S101: Obtain a request message sent by a client.

本发明实施例中的边缘节点,可以是CDN网络的其中一个节点,可以理解,边缘节点可以获取不同客户端发送的请求报文,并且,不同的客户端所发送的请求报文中可以包含不同的域名信息,例如,客户端1发送的请求报文中携带有域名为ksyun.com的信息,客户端2发送的请求报文中携带有域名为sogou.com的信息。The edge node in the embodiment of the present invention may be one of the nodes of the CDN network. It can be understood that the edge node can obtain request packets sent by different clients, and the request packets sent by different clients may contain different For example, the request packet sent by client 1 carries the information of the domain name ksyun.com, and the request packet sent by client 2 carries the information of the domain name sogou.com.

具体地,上述请求报文可以是以http或者https开头,且携带有域名的信息的一段请求报文。Specifically, the above-mentioned request message may start with http or https and carry a segment of request message with domain name information.

本发明实施例中,边缘节点可以采用基于Openresty技术的Nginx-Lua系统运行,其中,Nginx是一种高性能的HTTP服务器和反向代理服务器,而Lua是一种轻量级、可嵌入式的脚本语言,通过将Lua嵌入到Nginx中,从而可以使用Lua编写脚本程序,这种技术即为Openresty技术。在基于Nginx-Lua系统运行的边缘节点中,当实现某个功能时,通常通过运行一个脚本程序代码实现,即本发明实施例中所说的功能模块,通过执行该功能模块,从而实现相应的业务功能。In the embodiment of the present invention, the edge node can use the Nginx-Lua system based on Openresty technology to run, wherein Nginx is a high-performance HTTP server and reverse proxy server, and Lua is a lightweight, embeddable Scripting language, by embedding Lua into Nginx, you can use Lua to write script programs. This technology is Openresty technology. In the edge node running based on the Nginx-Lua system, when a certain function is realized, it is usually realized by running a script program code, that is, the function module mentioned in the embodiment of the present invention. By executing the function module, the corresponding function module is realized. Business functions.

S102,获取预存的与域名对应的各个待运行功能模块的运行顺序。S102: Acquire a pre-stored running sequence of each functional module to be run corresponding to the domain name.

边缘节点获取由客户端发送的请求报文后,可以运行保存于边缘节点中的多个待运行功能模块,以实现不同功能,边缘节点在运行功能模块时,通常以域名(host)为单位运行。所说的待运行功能模块,可以指为了实现与域名对应的功能而需要运行的功能模块。After the edge node obtains the request message sent by the client, it can run multiple functional modules to be run stored in the edge node to realize different functions. When the edge node runs the functional module, it usually runs in the unit of domain name (host). . The functional modules to be run may refer to functional modules that need to be run in order to realize the function corresponding to the domain name.

例如,一个边缘节点上总共保存有300个功能模块,则针对请求报文对应的域名,可以运行其中的10个功能模块,以实现10个功能,这10个功能模块便是待运行功能模块。For example, if a total of 300 functional modules are stored on an edge node, 10 functional modules can be run for the domain name corresponding to the request message to realize 10 functions, and these 10 functional modules are the functional modules to be run.

可以理解,一个边缘节点可以接收包含不同域名信息的请求报文,以实现不同域名所对应的功能。It can be understood that an edge node can receive request packets containing information of different domain names to implement functions corresponding to different domain names.

例如,如果域名为ksyun.com,则上述请求报文可以是以http或者https开头,且携带有域名ksyun.com的一段请求报文,针对ksyun.com这一域名,可以运行300个功能模块的其中10个功能模块,从而实现10个功能;如果域名为sogou.com,可以运行300个功能模块的其中5个功能模块,从而实现5个功能。For example, if the domain name is ksyun.com, the above request message can start with http or https, and carry a request message with the domain name ksyun.com. For the domain name ksyun.com, 300 function modules can be run. Among them, 10 function modules can realize 10 functions; if the domain name is sogou.com, 5 function modules among the 300 function modules can be run to realize 5 functions.

通过上述示例可知,本发明实施例可以实现一个域名的多个功能,例如,针对域名ksyun.com,可以通过运行限速功能模块和增加响应头功能模块,从而实现域名的网络限速功能以及增加响应头功能。It can be seen from the above examples that the embodiments of the present invention can implement multiple functions of a domain name. For example, for the domain name ksyun.com, the speed limit function module and the response header function module can be run to implement the network speed limit function and increase of the domain name. Response header function.

但是,在运行针对域名的各功能模块前,边缘节点需要确定其中所保存的所有功能模块中,哪些是与域名对应的待运行功能模块,以及这些待运行功能模块的运行顺序。However, before running each functional module for the domain name, the edge node needs to determine which of all the functional modules stored therein are the functional modules to be run corresponding to the domain name, and the running order of these functional modules to be run.

例如,边缘节点中保存的所有功能模块有300个,这300个功能模块是所有域名的功能模块的总和,对于域名A可能只需运行其中的10个,因此只需确认这10个待运行功能模块,由于各待运行功能模块是按照一定的顺序运行的,因此还需要确定它们的运行顺序。当然,该运行顺序可以是预设的。For example, there are 300 functional modules stored in the edge node. These 300 functional modules are the sum of the functional modules of all domain names. For domain name A, only 10 of them may be run, so it is only necessary to confirm these 10 functions to be run. Modules, since the functional modules to be run are run in a certain order, it is also necessary to determine their running order. Of course, the running order can be preset.

如果按照现有的功能模块运行方法,则需要对上述300个功能模块逐个遍历判断,这些计算实际上是在无端的消耗边缘节点中处理器的计算资源,从而增加整个CDN网络的处理时间,可能导致向用户终端返回的响应内容出现延迟,发明人正是基于所发现的问题,才想到通过本发明实施例提供的技术方案解决目前存在的问题。If the existing functional module operation method is used, the above 300 functional modules need to be traversed and judged one by one. These calculations are actually consuming the computing resources of the processor in the edge node for no reason, thereby increasing the processing time of the entire CDN network. As a result, the response content returned to the user terminal is delayed. Based on the problems found, the inventor thought of solving the existing problems through the technical solutions provided by the embodiments of the present invention.

根据前述实施例可知,针对一个域名所实现的不同功能可以对应不同的功能模块,本发明实施例可以预先将各域名对应的待运行功能模块的名称及各个待运行功能模块的运行顺序进行存储,以便在获取由客户端发送的请求报文后,直接通过预存的信息,确定该域名的待运行功能模块,以及各个待运行功能模块的运行顺序,而不需要再遍历各功能模块的开关标识。According to the foregoing embodiments, different functions implemented for a domain name may correspond to different functional modules, and in this embodiment of the present invention, the names of the functional modules to be run corresponding to each domain name and the running order of each functional module to be run can be stored in advance, In order to obtain the request message sent by the client, the pre-stored information can be used to directly determine the functional modules to be run of the domain name and the running order of each functional module to be run, without traversing the switch identifiers of each functional module.

参考图3,S103,获取预存的与域名对应的各个待运行功能模块的配置信息。Referring to FIG. 3 , in S103 , the pre-stored configuration information of each function module to be run corresponding to the domain name is acquired.

本发明实施例中,与域名对应的各个待运行功能模块的配置信息可以是预先存储好的,例如,边缘节点可以从预先存储的第二配置文件中,读取与域名对应的各个待运行功能模块的配置信息。In this embodiment of the present invention, the configuration information of each function module to be run corresponding to the domain name may be pre-stored. For example, the edge node may read each function module to be run corresponding to the domain name from the second pre-stored configuration file. Configuration information for the module.

可以理解,在确定与域名对应的待运行功能模块后,便可以获取预存的与域名对应的各个待运行功能模块的配置信息,例如,获取上述网络限速值的配置信息:100kb/S。It can be understood that after determining the function modules to be run corresponding to the domain name, the pre-stored configuration information of each function module to be run corresponding to the domain name can be obtained, for example, the configuration information of the above-mentioned network speed limit value: 100kb/S.

S104,按照各个待运行功能模块的运行顺序和配置信息,运行各个待运行功能模块。S104, run each functional module to be run according to the running sequence and configuration information of each functional module to be run.

在确定域名的待运行功能模块及它们的运行顺序,以及获取它们的配置信息后,便可以运行各个待运行功能模块,从而实现该域名的各个功能。After determining the functional modules to be run of the domain name and their running order, and obtaining their configuration information, each functional module to be run can be run, thereby realizing each function of the domain name.

示例性地,当域名的其中一个待运行功能模块为网络限速功能模块时,则在配置文件中保存的配置参数可以为:网络限速值,可以利用该参数运行网络限速功能模块。Exemplarily, when one of the function modules to be run in the domain name is the network speed limit function module, the configuration parameter saved in the configuration file may be: the network speed limit value, which can be used to run the network speed limit function module.

示例性地,当域名的另一个待运行功能模块为增加响应头模块(响应头为一个http请求中头域的一部分,且该模块的运行顺序位于网络限速功能模块后)时,则在配置文件中保存的配置参数可以为:需要增加的响应头的名称以及键值,可以利用该参数运行增加响应头模块。Exemplarily, when another function module to be run of the domain name is a module for adding a response header (the response header is a part of the header field in an http request, and the running order of the module is located after the network speed limit function module), then configure The configuration parameters saved in the file can be: the name and key value of the response header to be added, which can be used to run the module for adding response headers.

作为本发明实施例一种可选的实施方式,在图3所示流程的基础上,如图4所示,上述步骤S102具体可以为:As an optional implementation manner of the embodiment of the present invention, on the basis of the process shown in FIG. 3 , as shown in FIG. 4 , the foregoing step S102 may specifically be:

S102’,根据域名,从预存的各个域名对应的多个预设功能链表中,获取与域名对应的功能链表。S102', according to the domain name, from a plurality of preset function linked lists corresponding to each pre-stored domain name, obtain a function linked list corresponding to the domain name.

本发明实施例中,针对各个域名,可以预设与各域名对应的功能链表,并预存这些功能链表,这样便可以从预存的各个域名对应的预设功能链表中,获取与域名对应的功能链表。In this embodiment of the present invention, for each domain name, a function linked list corresponding to each domain name may be preset, and these function linked lists may be pre-stored, so that the function linked list corresponding to the domain name may be obtained from the pre-stored preset function linked list corresponding to each domain name .

功能链表描述了与域名对应的各个待运行功能模块的运行顺序,其中,一个功能链表中可以包含各个待运行功能模块所对应Lua文件的名称,上述名称可以是功能模块对应Lua文件的存储路径名称,并且,各个待运行功能模块所对应Lua文件的名称可以是按各个待运行功能模块的预设运行顺序写入的,即,各个功能模块所对应Lua文件的的名称可以与各个待运行功能模块的预设运行顺序对应。The function linked list describes the running sequence of each function module to be executed corresponding to the domain name, wherein a function linked list can contain the name of the Lua file corresponding to each function module to be executed, and the above name can be the storage path name of the Lua file corresponding to the function module , and the name of the Lua file corresponding to each functional module to be run can be written in the preset running order of each functional module to be run, that is, the name of the Lua file corresponding to each functional module can be the same as the name of each functional module to be run. The preset running order corresponds to.

作为本发明实施例一种可选的实施方式,在图4所示流程的基础上,如图5所示,本发明实施例的CDN功能模块运行方法还可以包括:As an optional implementation manner of the embodiment of the present invention, based on the process shown in FIG. 4 , as shown in FIG. 5 , the method for running a CDN function module in the embodiment of the present invention may further include:

S201,基于边缘节点对应的第一配置文件,生成与域名对应的第二配置文件,以及生成与域名对应的功能链表。S201 , based on the first configuration file corresponding to the edge node, generate a second configuration file corresponding to the domain name, and generate a function linked list corresponding to the domain name.

边缘节点可以具有一个预设的第一配置文件,该第一配置文件中的配置信息可以按照域名(host)为基本单位保存,即,第一配置文件中可以保存所有功能模块的运行顺序以及配置参数,且不同域名对应的配置信息中可以包含调用各个功能模块的开关标识,因此,基于第一配置文件,边缘节点可以将属于不同域名的配置信息,对应生成一个第二配置文件,并生成与域名对应的功能链表。The edge node may have a preset first configuration file, and the configuration information in the first configuration file may be saved according to the domain name (host) as the basic unit, that is, the running order and configuration of all functional modules may be saved in the first configuration file. parameters, and the configuration information corresponding to different domain names may include switch identifiers for calling each functional module. Therefore, based on the first configuration file, the edge node can generate a second configuration file corresponding to the configuration information belonging to different domain names, and generate a configuration file corresponding to the The function list corresponding to the domain name.

需要说明的是,开关标识可以认为是一个功能模块对应的一个属性值,比如,一个功能模块是用于添加header的功能模块,其属性可以包括:属性1是添加header;属性2是header的名字,属性3是header的值;属性1添加header就可以认为是该功能模块的开关标识。It should be noted that the switch identifier can be considered as an attribute value corresponding to a function module. For example, a function module is a function module used to add a header, and its attributes can include: attribute 1 is to add a header; attribute 2 is the name of the header , attribute 3 is the value of the header; adding the header to attribute 1 can be considered as the switch identification of the function module.

作为本发明实施例一种可选的实施方式,可以通过遍历第一配置文件中的配置信息,将属于不同域名的配置信息进行划分,然后基于划分后的配置信息,生成与各域名对应的第二配置文件。As an optional implementation manner of the embodiment of the present invention, the configuration information belonging to different domain names can be divided by traversing the configuration information in the first configuration file, and then the first configuration information corresponding to each domain name is generated based on the divided configuration information. Second configuration file.

S202,将生成的与域名对应的第二配置文件以及功能链表存储在共享内存中。S202: Store the generated second configuration file corresponding to the domain name and the function linked list in the shared memory.

可以将与域名对应的第二配置文件以及功能链表存储在共享内存中,这样,在边缘节点的Nginx进程启动或重新加载(reload)时,对于先前存储于共享内存中的第二配置文件和功能链表,不会随着重启或重新加载而被删除,边缘节点可以利用先前存储的第二配置文件和功能链表运行待运行功能模块,直至共享内存中的功能链表被更新,可以避免在边缘节点的Nginx进程启动或重新加载时无法读取配置文件和功能链表,提高边缘节点的运行稳定性。The second configuration file and function linked list corresponding to the domain name can be stored in the shared memory, so that when the Nginx process of the edge node is started or reloaded (reload), the second configuration file and function previously stored in the shared memory can be stored in the shared memory. The linked list will not be deleted with restarting or reloading. The edge node can use the previously stored second configuration file and function linked list to run the function module to be run until the function linked list in the shared memory is updated, which can prevent the edge node from running. When the Nginx process is started or reloaded, the configuration file and function list cannot be read, which improves the running stability of edge nodes.

可选的,在从共享内存中存储的多个功能链表中获取与域名对应的功能链表时,可以通过遍历共享内存中的各个功能链表得到,由于遍历功能链表的数量相对于遍历开关标识更少,因此遍历功能链表的速度更快;也可以从共享内存中以域名作为关键字进行查找,得到与该域名对应的功能链表,但并不限于此。Optionally, when the function linked list corresponding to the domain name is obtained from the multiple function linked lists stored in the shared memory, it can be obtained by traversing each function linked list in the shared memory, because the number of traversed function linked lists is smaller than that of the traversal switch ID. , so the speed of traversing the function linked list is faster; it is also possible to search the shared memory with the domain name as a key to obtain the function linked list corresponding to the domain name, but it is not limited to this.

从共享内存中获取域名对应的功能链表后,边缘节点通过读取该功能链表,便可以获取功能链表中所保存的各个待运行功能模块的Lua文件的名称,从而确定该域名的各个待运行功能模块。After obtaining the function linked list corresponding to the domain name from the shared memory, the edge node can obtain the name of the Lua file of each function module to be executed saved in the function linked list by reading the function linked list, so as to determine each function to be executed of the domain name. module.

本发明实施例中,如图6所示,功能链表的生成步骤具体为:In the embodiment of the present invention, as shown in FIG. 6 , the steps for generating the function linked list are as follows:

S2011,在与域名对应的第二配置文件中,查找预设标识。S2011, in the second configuration file corresponding to the domain name, search for a preset identifier.

本发明实施例可以在第二配置文件中,预先为每一个功能模块都添加一个标识,比如:该标识可以是功能模块的key属性值,key属性值可以认为是调用该功能模块的开关,例如,在一个功能模块所对应的属性中,属性1是为该功能模块添加header;属性2是header的名字,属性3是header的值;添加header为该功能模块的key属性值,这样,边缘节点在与域名对应的第二配置文件中查找到该标识(key属性值)后,便可以确定与之对应的功能模块是待运行的。In this embodiment of the present invention, an identifier may be added to each function module in advance in the second configuration file. For example, the identifier may be the key attribute value of the function module, and the key attribute value may be considered as a switch for invoking the function module, for example , in the attributes corresponding to a function module, attribute 1 is to add a header to the function module; attribute 2 is the name of the header, and attribute 3 is the value of the header; adding the header is the value of the key attribute of the function module, so that the edge node After the identifier (key attribute value) is found in the second configuration file corresponding to the domain name, it can be determined that the corresponding function module is to be run.

S2012,在预设的功能映射表中,确定查找到的预设标识所对应的Lua文件的名称。S2012, in the preset function mapping table, determine the name of the Lua file corresponding to the found preset identifier.

由于上述预设的功能映射表中,可以保存有预设标识与Lua文件之间的对应关系,因此,在上述步骤查找到预设标识后,便可以在功能映射表中,进一步查找到该预设标识所对应的Lua文件的名称。Since the above-mentioned preset function mapping table can store the corresponding relationship between the preset identifier and the Lua file, after the preset identifier is found in the above steps, the preset identifier can be further searched in the function mapping table. Set the name of the Lua file corresponding to the ID.

S2013,按照与各Lua文件对应的功能模块的运行顺序,将所确定的Lua文件的名称写入与该域名对应的功能链表中,得到与域名对应的功能链表。S2013, according to the running order of the function modules corresponding to each Lua file, write the name of the determined Lua file into the function linked list corresponding to the domain name, and obtain the function linked list corresponding to the domain name.

在确定与各Lua文件对应的功能模块的运行顺序后,便可以基于所确定的运行顺序,将该域名对应的各个功能模块的Lua文件的名称写入与该域名对应的功能链表中,即,当前域名对应的功能链表中记录有:该域名对应的各个功能模块的Lua文件的名称,且所记录的Lua文件的名称携带有各个功能模块的运行顺序信息,也即,通过这些Lua文件的名称以及该Lua文件的名称在该功能链表中所处的位置,可以确定域名对应的各个待运行功能模块,以及各个待运行功能模块的运行顺序。After determining the running order of the function modules corresponding to each Lua file, the names of the Lua files of each function module corresponding to the domain name can be written into the function linked list corresponding to the domain name based on the determined running order, that is, The function list corresponding to the current domain name records: the name of the Lua file of each function module corresponding to the domain name, and the name of the recorded Lua file carries the running sequence information of each function module, that is, through the names of these Lua files and the position of the name of the Lua file in the function linked list, each functional module to be run corresponding to the domain name and the running order of each functional module to be run can be determined.

作为本发明实施例一种可选的实施方式,在建立上述功能链表时,可以将各功能链表的名称命名为与域名相同,例如,可以将与域名A对应的功能链表,直接命名为功能链表A,这样便建立了功能链表与域名的对应关系。当然,除所举的例子所示的实现方式以外,实现建立功能链表与域名的对应关系的特征的方式,均属于本申请实施例的保护范围。As an optional implementation of the embodiment of the present invention, when the above-mentioned function linked list is established, the name of each function linked list may be named the same as the domain name. For example, the function linked list corresponding to the domain name A may be directly named as the function linked list A, in this way, the corresponding relationship between the function linked list and the domain name is established. Of course, in addition to the implementation manners shown in the examples, the manners for realizing the feature of establishing the corresponding relationship between the function linked list and the domain name all belong to the protection scope of the embodiments of the present application.

作为本发明实施例一种可选的实施方式,上述功能映射表的建立过程可以为:As an optional implementation manner of the embodiment of the present invention, the establishment process of the above function mapping table may be as follows:

在边缘节点的Nginx进程启动或重新加载时,从第二配置文件中,获取所有功能模块的标识(key属性值),将各标识与各功能模块的Lua文件名称建立对应关系,并将所建立的对应关系以表1的形式保存。When the Nginx process of the edge node is started or reloaded, the identifiers (key attribute values) of all functional modules are obtained from the second configuration file, the corresponding relationship is established between each identifier and the Lua file name of each functional module, and the established The corresponding relationship is saved in the form of Table 1.

表1功能映射表的内容Table 1 Contents of the function mapping table

Figure BDA0002112836700000121
Figure BDA0002112836700000121

作为本发明实施例一种可选的实施方式,可以从共享内存中存储的各个域名的第二配置文件中,获取一个域名对应的第二配置文件,读取与域名对应的各个待运行功能模块的配置信息,利用内存读写性能高的特点,提高配置信息的读取速度,边缘节点通常采用多进程技术,多个进程共享一个内存,因此通过从共享内存中所存储的第二配置文件中获取与域名对应的各个待运行功能模块的配置信息,能够使多个进程可以同时处理,提高处理速度。As an optional implementation of the embodiment of the present invention, a second configuration file corresponding to a domain name may be obtained from the second configuration file of each domain name stored in the shared memory, and each function module to be run corresponding to the domain name is read. The configuration information of the server can improve the reading speed of configuration information by using the characteristics of high memory read and write performance. The edge node usually adopts multi-process technology, and multiple processes share a memory. Obtaining the configuration information of each functional module to be run corresponding to the domain name enables multiple processes to process at the same time and improves the processing speed.

本发明实施例提供的一种CDN功能模块运行方法,在获取由客户端发送的请求报文后,边缘节点能够获取预存的与域名对应的待运行功能模块及各个待运行功能模块的运行顺序,以及获取预存的与域名对应的各个待运行功能模块的配置信息,进而按照各个待运行功能模块的运行顺序和配置信息运行各个待运行功能模块,由于在确定域名的待运行功能模块时,不再需要对全量配置文件中各功能模块的开关标识进行遍历判断,因此能够减少边缘节点的计算资源浪费,缩短处理时间,从而优化边缘节点的处理性能。In a method for running a CDN function module provided by an embodiment of the present invention, after obtaining the request message sent by the client, the edge node can obtain the pre-stored function modules to be run corresponding to the domain name and the running order of each function module to be run, and obtain the pre-stored configuration information of each functional module to be run corresponding to the domain name, and then run each functional module to be run according to the running sequence and configuration information of each functional module to be run. It is necessary to traverse and judge the switch identifiers of each functional module in the full configuration file, so that the waste of computing resources of the edge node can be reduced, the processing time can be shortened, and the processing performance of the edge node can be optimized.

相应于上面的方法实施例,本发明实施例还提供了相应的装置实施例。Corresponding to the above method embodiments, the embodiments of the present invention further provide corresponding apparatus embodiments.

如图7所示,本发明实施例提供了一种CDN功能模块运行装置,与图3所示流程对应,包括:As shown in FIG. 7 , an embodiment of the present invention provides a CDN functional module running device, corresponding to the process shown in FIG. 3 , including:

第一获取模块301,用于获取由客户端发送的请求报文,请求报文中包括域名的信息。The first obtaining module 301 is configured to obtain a request message sent by the client, where the request message includes domain name information.

第二获取模块302,用于获取预存的与域名对应的各个待运行功能模块的运行顺序。The second acquiring module 302 is configured to acquire the pre-stored running sequence of each functional module to be run corresponding to the domain name.

第三获取模块303,用于获取预存的与域名对应的各个待运行功能模块的配置信息。The third obtaining module 303 is configured to obtain the pre-stored configuration information of each functional module to be run corresponding to the domain name.

运行模块304,用于按照各个待运行功能模块的运行顺序和配置信息,运行各个待运行功能模块。The running module 304 is configured to run each functional module to be run according to the running sequence and configuration information of each functional module to be run.

其中,第二获取模块,具体用于:Among them, the second acquisition module is specifically used for:

根据域名,从预存的各个域名对应的预设功能链表中,获取与域名对应的功能链表;功能链表用于描述与域名对应的各个待运行功能模块的运行顺序。According to the domain name, the function linked list corresponding to the domain name is obtained from the pre-stored preset function linked list corresponding to each domain name; the function linked list is used to describe the running sequence of each function module to be executed corresponding to the domain name.

作为本发明实施例一种可选的实施方式,在图7所示装置结构的基础上,如图8所示,本发明实施例的CDN功能模块运行装置还包括:As an optional implementation manner of the embodiment of the present invention, on the basis of the device structure shown in FIG. 7 , as shown in FIG. 8 , the CDN functional module running device according to the embodiment of the present invention further includes:

生成模块401,用于基于边缘节点对应的第一配置文件,生成与域名对应的第二配置文件,以及生成与域名对应的功能链表;第一配置文件中包含边缘节点中的各功能模块的配置信息。The generating module 401 is used for generating a second configuration file corresponding to the domain name based on the first configuration file corresponding to the edge node, and generating a function linked list corresponding to the domain name; the first configuration file includes the configuration of each function module in the edge node information.

存储模块402,用于将生成的与域名对应的第二配置文件以及功能链表存储在共享内存中。The storage module 402 is configured to store the generated second configuration file corresponding to the domain name and the function linked list in the shared memory.

其中,上述生成模块包括:第二配置文件生成子模块和功能链表生成子模块,如图9所示,上述第二配置文件生成子模块包括:Wherein, the above-mentioned generation module includes: a second configuration file generation sub-module and a function linked list generation sub-module, as shown in FIG. 9 , the above-mentioned second configuration file generation sub-module includes:

划分单元4011,用于遍历第一配置文件中的配置信息,将属于不同域名的配置信息进行划分。The dividing unit 4011 is configured to traverse the configuration information in the first configuration file, and divide the configuration information belonging to different domain names.

生成单元4012,用于基于划分后的配置信息,生成与域名对应的第二配置文件。The generating unit 4012 is configured to generate a second configuration file corresponding to the domain name based on the divided configuration information.

如图10所示,上述功能链表生成子模块包括:As shown in Figure 10, the above-mentioned function linked list generation sub-module includes:

查找单元4013,用于在与域名对应的第二配置文件中,查找预设标识,其中,一个预设标识对应一个功能模块。The searching unit 4013 is configured to search for a preset identifier in the second configuration file corresponding to the domain name, wherein one preset identifier corresponds to one function module.

确定单元4014,用于在预设的功能映射表中,确定查找到的预设标识所对应的Lua文件的名称,功能映射表中保存有预设标识与Lua文件之间的映射关系。The determining unit 4014 is configured to determine, in the preset function mapping table, the name of the Lua file corresponding to the found preset identifier, and the function mapping table stores the mapping relationship between the preset identifier and the Lua file.

写入单元4015,用于按照与各Lua文件对应的功能模块的运行顺序,将所确定的Lua文件的名称写入与该域名对应的功能链表中,得到与域名对应的功能链表。The writing unit 4015 is configured to write the determined name of the Lua file into the function linked list corresponding to the domain name according to the running sequence of the function modules corresponding to each Lua file, to obtain the function linked list corresponding to the domain name.

其中,第二获取模块,具体用于:Among them, the second acquisition module is specifically used for:

从共享内存中所存储的第二配置文件中,获取与域名对应的各个待运行功能模块的配置信息。From the second configuration file stored in the shared memory, the configuration information of each function module to be run corresponding to the domain name is acquired.

本发明实施例提供的一种CDN功能模块运行装置,在获取由客户端发送的请求报文后,边缘节点能够获取预存的与域名对应的待运行功能模块及各个待运行功能模块的运行顺序,以及获取预存的与域名对应的各个待运行功能模块的配置信息,进而按照各个待运行功能模块的运行顺序和配置信息运行各个待运行功能模块,由于在确定域名的待运行功能模块时,不再需要对全量配置文件中各功能模块的开关标识进行遍历判断,因此能够减少边缘节点的计算资源浪费,缩短处理时间,从而优化边缘节点的处理性能。In a device for running a CDN function module provided by an embodiment of the present invention, after obtaining the request message sent by the client, the edge node can obtain the pre-stored function modules to be run corresponding to the domain name and the running order of each function module to be run, and obtain the pre-stored configuration information of each functional module to be run corresponding to the domain name, and then run each functional module to be run according to the running sequence and configuration information of each functional module to be run. It is necessary to traverse and judge the switch identifiers of each functional module in the full configuration file, so that the waste of computing resources of the edge node can be reduced, the processing time can be shortened, and the processing performance of the edge node can be optimized.

需要说明的是,上述CDN功能模块运行装置可以位于CDN的边缘节点中,但并不限于此。It should be noted that, the above-mentioned CDN functional module operating device may be located in an edge node of the CDN, but is not limited thereto.

本发明实施例还提供了一种电子设备,具体可以为服务器,如图11所示,该设备500包括处理器501和机器可读存储介质502,机器可读存储介质存储有能够被处理器执行的机器可执行指令,处理器执行机器可执行指令实现以下步骤:An embodiment of the present invention further provides an electronic device, which may specifically be a server. As shown in FIG. 11 , the device 500 includes a processor 501 and a machine-readable storage medium 502. The machine-readable storage medium stores data that can be executed by the processor. The machine-executable instructions of the processor implement the following steps by executing the machine-executable instructions:

获取由客户端发送的请求报文,请求报文中包括域名的信息;Obtain the request message sent by the client, and the request message includes the domain name information;

获取预存的与域名对应的各个待运行功能模块的运行顺序;Obtain the pre-stored running sequence of each functional module to be run corresponding to the domain name;

获取预存的与域名对应的各个待运行功能模块的配置信息;Obtain the pre-stored configuration information of each functional module to be run corresponding to the domain name;

按照各个待运行功能模块的运行顺序和配置信息,运行各个待运行功能模块。Run each functional module to be run according to the running sequence and configuration information of each functional module to be run.

机器可读存储介质可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The machine-readable storage medium may include random access memory (Random Access Memory, RAM for short), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application SpecificIntegrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; may also be a digital signal processor (Digital Signal Processing, referred to as DSP) , Application Specific Integrated Circuit (ASIC for short), Field-Programmable Gate Array (FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

本发明实施例提供的一种电子设备,在获取由客户端发送的请求报文后,边缘节点能够获取预存的与域名对应的待运行功能模块及各个待运行功能模块的运行顺序,以及获取预存的与域名对应的各个待运行功能模块的配置信息,进而按照各个待运行功能模块的运行顺序和配置信息运行各个待运行功能模块,由于在确定域名的待运行功能模块时,不再需要对全量配置文件中各功能模块的开关标识进行遍历判断,因此能够减少边缘节点的计算资源浪费,缩短处理时间,从而优化边缘节点的处理性能。In an electronic device provided by an embodiment of the present invention, after acquiring the request message sent by the client, the edge node can acquire the pre-stored functional modules to be run corresponding to the domain name and the running order of each functional module to be run, and obtain the pre-stored functional modules to be run. The configuration information of each functional module to be run corresponding to the domain name is obtained, and then each functional module to be run is run according to the running sequence and configuration information of each functional module to be run. The switch identifiers of each functional module in the configuration file are traversed and judged, so the waste of computing resources of the edge node can be reduced, the processing time can be shortened, and the processing performance of the edge node can be optimized.

本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时,用以执行如下步骤:An embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, it is used to perform the following steps:

获取由客户端发送的请求报文,请求报文中包括域名的信息;Obtain the request message sent by the client, and the request message includes the domain name information;

获取预存的与域名对应的各个待运行功能模块的运行顺序;Obtain the pre-stored running sequence of each functional module to be run corresponding to the domain name;

获取预存的与域名对应的各个待运行功能模块的配置信息;Obtain the pre-stored configuration information of each functional module to be run corresponding to the domain name;

按照各个待运行功能模块的运行顺序和配置信息,运行各个待运行功能模块。Run each functional module to be run according to the running sequence and configuration information of each functional module to be run.

本发明实施例提供的一种计算机可读存储介质,在获取由客户端发送的请求报文后,边缘节点能够获取预存的与域名对应的待运行功能模块及各个待运行功能模块的运行顺序,以及获取预存的与域名对应的各个待运行功能模块的配置信息,进而按照各个待运行功能模块的运行顺序和配置信息运行各个待运行功能模块,由于在确定域名的待运行功能模块时,不再需要对全量配置文件中各功能模块的开关标识进行遍历判断,因此能够减少边缘节点的计算资源浪费,缩短处理时间,从而优化边缘节点的处理性能。In the computer-readable storage medium provided by the embodiment of the present invention, after obtaining the request message sent by the client, the edge node can obtain the pre-stored functional modules to be run corresponding to the domain name and the running sequence of each functional module to be run, and obtain the pre-stored configuration information of each functional module to be run corresponding to the domain name, and then run each functional module to be run according to the running sequence and configuration information of each functional module to be run. It is necessary to traverse and judge the switch identifiers of each functional module in the full configuration file, so that the waste of computing resources of the edge node can be reduced, the processing time can be shortened, and the processing performance of the edge node can be optimized.

本发明实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以下步骤:Embodiments of the present invention also provide a computer program product containing instructions, which, when running on a computer, cause the computer to perform the following steps:

获取由客户端发送的请求报文,请求报文中包括域名的信息;Obtain the request message sent by the client, and the request message includes the domain name information;

获取预存的与域名对应的各个待运行功能模块的运行顺序;Obtain the pre-stored running sequence of each functional module to be run corresponding to the domain name;

获取预存的与域名对应的各个待运行功能模块的配置信息;Obtain the pre-stored configuration information of each functional module to be run corresponding to the domain name;

按照各个待运行功能模块的运行顺序和配置信息,运行各个待运行功能模块。Run each functional module to be run according to the running sequence and configuration information of each functional module to be run.

本发明实施例提供的一种包含指令的计算机程序产品,在获取由客户端发送的请求报文后,边缘节点能够获取预存的与域名对应的待运行功能模块及各个待运行功能模块的运行顺序,以及获取预存的与域名对应的各个待运行功能模块的配置信息,进而按照各个待运行功能模块的运行顺序和配置信息运行各个待运行功能模块,由于在确定域名的待运行功能模块时,不再需要对全量配置文件中各功能模块的开关标识进行遍历判断,因此能够减少边缘节点的计算资源浪费,缩短处理时间,从而优化边缘节点的处理性能。In a computer program product containing instructions provided by an embodiment of the present invention, after acquiring a request message sent by a client, an edge node can acquire pre-stored functional modules to be run corresponding to domain names and the running sequence of each functional module to be run , and obtain the pre-stored configuration information of each functional module to be run corresponding to the domain name, and then run each functional module to be run according to the running sequence and configuration information of each functional module to be run. Then, it is necessary to traverse and judge the switch identifiers of each functional module in the full configuration file, so the waste of computing resources of the edge node can be reduced, the processing time can be shortened, and the processing performance of the edge node can be optimized.

本发明实施例还提供了一种计算机程序,当其在计算机上运行时,使得计算机执行以下步骤:The embodiment of the present invention also provides a computer program, when it is run on a computer, it causes the computer to perform the following steps:

获取由客户端发送的请求报文,请求报文中包括域名的信息;Obtain the request message sent by the client, and the request message includes the domain name information;

获取预存的与域名对应的各个待运行功能模块的运行顺序;Obtain the pre-stored running sequence of each functional module to be run corresponding to the domain name;

获取预存的与域名对应的各个待运行功能模块的配置信息;Obtain the pre-stored configuration information of each functional module to be run corresponding to the domain name;

按照各个待运行功能模块的运行顺序和配置信息,运行各个待运行功能模块。Run each functional module to be run according to the running sequence and configuration information of each functional module to be run.

本发明实施例提供的一种包含指令的计算机程序,在获取由客户端发送的请求报文后,边缘节点能够获取预存的与域名对应的待运行功能模块及各个待运行功能模块的运行顺序,以及获取预存的与域名对应的各个待运行功能模块的配置信息,进而按照各个待运行功能模块的运行顺序和配置信息运行各个待运行功能模块,由于在确定域名的待运行功能模块时,不再需要对全量配置文件中各功能模块的开关标识进行遍历判断,因此能够减少边缘节点的计算资源浪费,缩短处理时间,从而优化边缘节点的处理性能。In a computer program including instructions provided by an embodiment of the present invention, after acquiring a request message sent by a client, an edge node can acquire pre-stored functional modules to be run corresponding to domain names and the running order of each functional module to be run, and obtain the pre-stored configuration information of each functional module to be run corresponding to the domain name, and then run each functional module to be run according to the running sequence and configuration information of each functional module to be run. It is necessary to traverse and judge the switch identifiers of each functional module in the full configuration file, so that the waste of computing resources of the edge node can be reduced, the processing time can be shortened, and the processing performance of the edge node can be optimized.

对于装置/电子设备/存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the apparatus/electronic device/storage medium embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the partial description of the method embodiment.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to the partial descriptions of the method embodiments.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (14)

1.一种CDN功能模块运行方法,其特征在于,应用于内容分发网络CDN中的边缘节点,所述方法包括:1. a CDN functional module operation method, is characterized in that, is applied to the edge node in the content distribution network CDN, and described method comprises: 获取由客户端发送的请求报文,所述请求报文中包括域名的信息;Obtain a request message sent by the client, where the request message includes domain name information; 获取预存的与所述域名对应的各个待运行功能模块的运行顺序;Obtaining the pre-stored running sequence of each functional module to be run corresponding to the domain name; 获取预存的与所述域名对应的各个待运行功能模块的配置信息;obtaining pre-stored configuration information of each functional module to be run corresponding to the domain name; 按照各个所述待运行功能模块的运行顺序和配置信息,运行所述各个待运行功能模块。Each functional module to be run is run according to the running sequence and configuration information of each functional module to be run. 2.根据权利要求1所述的方法,其特征在于,所述获取预存的与所述域名对应的各个待运行功能模块的运行顺序的步骤,包括:2. The method according to claim 1, wherein the step of acquiring the pre-stored running sequence of each functional module to be run corresponding to the domain name comprises: 根据所述域名,从预存的各个域名对应的预设功能链表中,获取与所述域名对应的功能链表;所述功能链表用于描述与所述域名对应的各个所述待运行功能模块的运行顺序。According to the domain name, the function linked list corresponding to the domain name is obtained from the preset function linked list corresponding to each pre-stored domain name; the function linked list is used to describe the operation of each of the to-be-run function modules corresponding to the domain name order. 3.根据权利要求2所述的方法,其特征在于,在获取由客户端发送的请求报文之前,所述方法还包括:3. The method according to claim 2, wherein before acquiring the request message sent by the client, the method further comprises: 基于所述边缘节点对应的第一配置文件,生成与所述域名对应的第二配置文件,以及生成与所述域名对应的功能链表;所述第一配置文件中包含所述边缘节点中的各功能模块的配置信息;Based on the first configuration file corresponding to the edge node, a second configuration file corresponding to the domain name is generated, and a function linked list corresponding to the domain name is generated; the first configuration file includes each of the edge nodes. Configuration information of function modules; 将生成的与所述域名对应的第二配置文件以及功能链表存储在共享内存中。The generated second configuration file corresponding to the domain name and the function linked list are stored in the shared memory. 4.根据权利要求3所述的方法,其特征在于,所述基于所述边缘节点对应的第一配置文件,生成与所述域名对应的第二配置文件的步骤,包括:4. The method according to claim 3, wherein the step of generating a second configuration file corresponding to the domain name based on the first configuration file corresponding to the edge node comprises: 遍历所述第一配置文件中的配置信息,将属于不同域名的配置信息进行划分;Traverse the configuration information in the first configuration file, and divide the configuration information belonging to different domain names; 基于划分后的配置信息,生成与所述域名对应的第二配置文件。Based on the divided configuration information, a second configuration file corresponding to the domain name is generated. 5.根据权利要求3所述的方法,其特征在于,所述生成与所述域名对应的功能链表的步骤,包括:5. The method according to claim 3, wherein the step of generating a function linked list corresponding to the domain name comprises: 在与所述域名对应的第二配置文件中,查找预设标识,其中,一个预设标识对应一个功能模块;In the second configuration file corresponding to the domain name, search for a preset identifier, wherein one preset identifier corresponds to one function module; 在预设的功能映射表中,确定查找到的预设标识所对应的Lua文件的名称,所述功能映射表中保存有预设标识与Lua文件之间的映射关系;In the preset function mapping table, determine the name of the Lua file corresponding to the found preset identifier, and the function mapping table stores the mapping relationship between the preset identifier and the Lua file; 按照与各Lua文件对应的功能模块的运行顺序,将所确定的所述Lua文件的名称写入与该域名对应的功能链表中,得到与所述域名对应的功能链表。According to the running order of the function modules corresponding to each Lua file, the determined name of the Lua file is written into the function linked list corresponding to the domain name to obtain the function linked list corresponding to the domain name. 6.根据权利要求3所述的方法,其特征在于,所述获取预存的与所述域名对应的各个待运行功能模块的配置信息的步骤,包括:6. The method according to claim 3, wherein the step of acquiring the pre-stored configuration information of each functional module to be run corresponding to the domain name comprises: 从共享内存中所存储的所述第二配置文件中,获取与所述域名对应的各个待运行功能模块的配置信息。From the second configuration file stored in the shared memory, the configuration information of each function module to be run corresponding to the domain name is acquired. 7.一种CDN功能模块运行装置,其特征在于,应用于内容分发网络CDN中的边缘节点,所述装置包括:7. A CDN functional module operating device, characterized in that, applied to an edge node in a content distribution network CDN, the device comprising: 第一获取模块,用于获取由客户端发送的请求报文,所述请求报文中包括域名的信息;a first obtaining module, configured to obtain a request message sent by the client, where the request message includes information about the domain name; 第二获取模块,用于获取预存的与所述域名对应的各个待运行功能模块的运行顺序;a second obtaining module, configured to obtain the pre-stored running order of each functional module to be run corresponding to the domain name; 第三获取模块,用于获取预存的与所述域名对应的各个待运行功能模块的配置信息;a third obtaining module, configured to obtain the pre-stored configuration information of each function module to be run corresponding to the domain name; 运行模块,用于按照各个所述待运行功能模块的运行顺序和配置信息,运行所述各个待运行功能模块。The running module is configured to run each functional module to be run according to the running sequence and configuration information of each functional module to run. 8.根据权利要求7所述的装置,其特征在于,所述第二获取模块,具体用于:8. The device according to claim 7, wherein the second acquisition module is specifically used for: 根据所述域名,从预存的各个域名对应的预设功能链表中,获取与所述域名对应的功能链表;所述功能链表用于描述与所述域名对应的各个所述待运行功能模块的运行顺序。According to the domain name, the function linked list corresponding to the domain name is obtained from the preset function linked list corresponding to each pre-stored domain name; the function linked list is used to describe the operation of each of the to-be-run function modules corresponding to the domain name order. 9.根据权利要求8所述的装置,其特征在于,所述装置还包括:9. The apparatus of claim 8, wherein the apparatus further comprises: 生成模块,用于基于所述边缘节点对应的第一配置文件,生成与所述域名对应的第二配置文件,以及生成与所述域名对应的功能链表;所述第一配置文件中包含所述边缘节点中的各功能模块的配置信息;A generating module, configured to generate a second configuration file corresponding to the domain name based on the first configuration file corresponding to the edge node, and generate a function linked list corresponding to the domain name; the first configuration file contains the Configuration information of each functional module in the edge node; 存储模块,用于将生成的与所述域名对应的第二配置文件以及功能链表存储在共享内存中。The storage module is configured to store the generated second configuration file corresponding to the domain name and the function linked list in the shared memory. 10.根据权利要求9所述的装置,其特征在于,所述生成模块包括第二配置文件生成子模块,所述第二配置文件生成子模块包括:10. The apparatus according to claim 9, wherein the generating module comprises a second configuration file generating sub-module, and the second configuration file generating sub-module comprises: 划分单元,用于遍历所述第一配置文件中的配置信息,将属于不同域名的配置信息进行划分;a dividing unit, configured to traverse the configuration information in the first configuration file, and divide the configuration information belonging to different domain names; 生成单元,用于基于划分后的配置信息,生成与所述域名对应的第二配置文件。A generating unit, configured to generate a second configuration file corresponding to the domain name based on the divided configuration information. 11.根据权利要求9所述的装置,其特征在于,所述生成模块包括功能链表生成子模块,所述功能链表生成子模块包括:11. The device according to claim 9, wherein the generation module comprises a function linked list generation submodule, and the function linked list generation submodule comprises: 查找单元,用于在与所述域名对应的第二配置文件中,查找预设标识,其中,一个预设标识对应一个功能模块;a search unit, configured to search for a preset identifier in the second configuration file corresponding to the domain name, wherein one preset identifier corresponds to one function module; 确定单元,用于在预设的功能映射表中,确定查找到的预设标识所对应的Lua文件的名称,所述功能映射表中保存有预设标识与Lua文件之间的映射关系;a determining unit, configured to determine the name of the Lua file corresponding to the found preset identifier in a preset function mapping table, where the mapping relationship between the preset identifier and the Lua file is stored in the function mapping table; 写入单元,用于按照与各Lua文件对应的功能模块的运行顺序,将所确定的所述Lua文件的名称写入与该域名对应的功能链表中,得到与所述域名对应的功能链表。The writing unit is configured to write the determined name of the Lua file into the function linked list corresponding to the domain name according to the running order of the function modules corresponding to each Lua file, so as to obtain the function linked list corresponding to the domain name. 12.根据权利要求9所述的装置,其特征在于,所述第二获取模块,具体用于:12. The apparatus according to claim 9, wherein the second acquisition module is specifically configured to: 从共享内存中所存储的所述第二配置文件中,获取与所述域名对应的各个待运行功能模块的配置信息。From the second configuration file stored in the shared memory, the configuration information of each function module to be run corresponding to the domain name is acquired. 13.一种电子设备,其特征在于,包括处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令,所述处理器执行所述机器可执行指令以实现权利要求1-6任一项所述的CDN功能模块运行方法的方法步骤。13. An electronic device, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor executes the The machine-executable instructions are used to implement the method steps of the CDN function module operating method described in any one of claims 1-6. 14.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-6任一项所述的CDN功能模块运行方法的方法步骤。14. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the CDN function according to any one of claims 1-6 is realized The method step of the module run method.
CN201910579778.5A 2019-06-28 2019-06-28 CDN function module operation method, operation device, electronic equipment and storage medium Pending CN112153095A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910579778.5A CN112153095A (en) 2019-06-28 2019-06-28 CDN function module operation method, operation device, electronic equipment and storage medium
PCT/CN2020/098178 WO2020259608A1 (en) 2019-06-28 2020-06-24 Cdn functional module running method and running apparatus, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910579778.5A CN112153095A (en) 2019-06-28 2019-06-28 CDN function module operation method, operation device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112153095A true CN112153095A (en) 2020-12-29

Family

ID=73891562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910579778.5A Pending CN112153095A (en) 2019-06-28 2019-06-28 CDN function module operation method, operation device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112153095A (en)
WO (1) WO2020259608A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995348A (en) * 2021-05-12 2021-06-18 北京金山云网络技术有限公司 Control method, device and system of Internet of things equipment
CN114244714A (en) * 2021-12-14 2022-03-25 北京金山云网络技术有限公司 Domain name configuration management method, device and system and computer readable storage medium
CN114461296A (en) * 2021-12-29 2022-05-10 天翼云科技有限公司 Development and access method of service platform based on Openresty
CN115080064A (en) * 2022-05-13 2022-09-20 深圳市科陆电子科技股份有限公司 Electric meter function updating method, upper computer, electric meter and computer readable storage medium
WO2025085901A1 (en) * 2023-10-20 2025-04-24 Akamai Technologies, Inc. Automatically directing custom compute operational flows through a heterogeneous overlay and cloud compute infrastructure

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113300936B (en) * 2021-02-01 2023-04-14 阿里巴巴集团控股有限公司 CDN node, edge node signaling adaptation method, device and storage medium
CN113286014B (en) * 2021-05-24 2022-07-08 平安普惠企业管理有限公司 Dynamic configuration method and device of basic domain name and related equipment
CN114020346B (en) * 2021-09-29 2023-07-18 苏州浪潮智能科技有限公司 A configuration file processing method, device, electronic equipment and storage medium
CN114257503A (en) * 2021-11-19 2022-03-29 网宿科技股份有限公司 Accelerated domain name deployment method, server, system and storage medium
CN114553727B (en) * 2022-02-18 2024-08-09 网宿科技股份有限公司 A data processing method and device based on content distribution network
CN116016674A (en) * 2022-11-30 2023-04-25 成都知道创宇信息技术有限公司 Resource acquisition method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377059A (en) * 2012-04-23 2013-10-30 阿里巴巴集团控股有限公司 Function module dynamic loading method and device based on jQuery framework
EP3190776A4 (en) * 2015-11-11 2017-07-12 LE Holdings (Beijing) Co., Ltd. Method for selecting content delivery network (cdn) node, and apparatus thereof
CN108769743A (en) * 2018-05-11 2018-11-06 中兴通讯股份有限公司 A kind of video playing control method, system, node and computer storage media
CN109150930A (en) * 2017-06-15 2019-01-04 北京金山云网络技术有限公司 Configuration information loading method and device, method for processing business and device
CN109582301A (en) * 2018-12-03 2019-04-05 深圳前海微众银行股份有限公司 Method for processing business, device, equipment and the medium of task based access control scheduling system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104392008B (en) * 2014-12-19 2017-12-05 北京奇虎科技有限公司 Web data acquisition methods, browser client and CDN server
US20160380975A1 (en) * 2015-06-24 2016-12-29 Cisco Technology, Inc. Domain Name Service Redirection for a Content Delivery Network with Security as a Service
CN110968356B (en) * 2018-09-29 2023-09-29 北京金山云网络技术有限公司 Method and device for acquiring configuration information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377059A (en) * 2012-04-23 2013-10-30 阿里巴巴集团控股有限公司 Function module dynamic loading method and device based on jQuery framework
EP3190776A4 (en) * 2015-11-11 2017-07-12 LE Holdings (Beijing) Co., Ltd. Method for selecting content delivery network (cdn) node, and apparatus thereof
CN109150930A (en) * 2017-06-15 2019-01-04 北京金山云网络技术有限公司 Configuration information loading method and device, method for processing business and device
CN108769743A (en) * 2018-05-11 2018-11-06 中兴通讯股份有限公司 A kind of video playing control method, system, node and computer storage media
CN109582301A (en) * 2018-12-03 2019-04-05 深圳前海微众银行股份有限公司 Method for processing business, device, equipment and the medium of task based access control scheduling system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995348A (en) * 2021-05-12 2021-06-18 北京金山云网络技术有限公司 Control method, device and system of Internet of things equipment
CN112995348B (en) * 2021-05-12 2021-09-07 北京金山云网络技术有限公司 Control method, device and system of Internet of things equipment
CN114244714A (en) * 2021-12-14 2022-03-25 北京金山云网络技术有限公司 Domain name configuration management method, device and system and computer readable storage medium
CN114244714B (en) * 2021-12-14 2024-04-09 北京金山云网络技术有限公司 Domain name configuration management method, device and system and computer readable storage medium
CN114461296A (en) * 2021-12-29 2022-05-10 天翼云科技有限公司 Development and access method of service platform based on Openresty
CN114461296B (en) * 2021-12-29 2024-01-02 天翼云科技有限公司 Openresty-based service platform development and access method
CN115080064A (en) * 2022-05-13 2022-09-20 深圳市科陆电子科技股份有限公司 Electric meter function updating method, upper computer, electric meter and computer readable storage medium
WO2025085901A1 (en) * 2023-10-20 2025-04-24 Akamai Technologies, Inc. Automatically directing custom compute operational flows through a heterogeneous overlay and cloud compute infrastructure

Also Published As

Publication number Publication date
WO2020259608A1 (en) 2020-12-30

Similar Documents

Publication Publication Date Title
CN112153095A (en) CDN function module operation method, operation device, electronic equipment and storage medium
CN106982236B (en) An information processing method, device and system
CN104427005B (en) The method and system that request is accurately dispatched are realized on CDN
CN109150930B (en) Configuration information loading method and device, service processing method and device
CN109660578B (en) CDN back-to-source processing method, device and system
US20220263768A1 (en) Method and Apparatus for Node Speed Limiting, Electronic Device and Storage Medium
CN111752681A (en) Request processing method, apparatus, server, and computer-readable storage medium
EP4564780A1 (en) Data message response method and apparatus, electronic device and storage medium
CN107092635A (en) Data query method, device, server, request end and system
CN102857547B (en) The method and apparatus of distributed caching
US20170155587A1 (en) Forwarding table compression
CN111694639A (en) Method and device for updating address of process container and electronic equipment
EP3107010A1 (en) Data integration pipeline
CN110955460B (en) Service process starting method and device, electronic equipment and storage medium
CN112149017A (en) Webpage access method, device and system, electronic equipment and storage medium
CN113961522B (en) A pcap data packet segmentation method, device, equipment and storage medium
CN113626188B (en) Task push method, device, computer equipment and storage medium
CN114465926B (en) Recursive server monitoring method, device, equipment and storage medium
CN116962348A (en) Domain name resolution-based video flow processing method, system and electronic equipment
CN107493231A (en) A kind of CDN dynamic routing method and device
CN112714078A (en) Network traffic identification method and device, storage medium and server
CN115955423B (en) A network traffic processing method, device and processing equipment based on domain name
CN104717254A (en) File access method and cloud gateway
CN111327713A (en) A method and device for DNS resolution
CN108833108A (en) A content-centric network-based signature verification method, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201229