WO2023115591A1 - Automatic arrangement method and apparatus for cdn nodes - Google Patents

Automatic arrangement method and apparatus for cdn nodes Download PDF

Info

Publication number
WO2023115591A1
WO2023115591A1 PCT/CN2021/141410 CN2021141410W WO2023115591A1 WO 2023115591 A1 WO2023115591 A1 WO 2023115591A1 CN 2021141410 W CN2021141410 W CN 2021141410W WO 2023115591 A1 WO2023115591 A1 WO 2023115591A1
Authority
WO
WIPO (PCT)
Prior art keywords
cdn
node
image
cdn node
nodes
Prior art date
Application number
PCT/CN2021/141410
Other languages
French (fr)
Chinese (zh)
Inventor
孙涛
Original Assignee
江苏云工场信息技术有限公司
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 江苏云工场信息技术有限公司 filed Critical 江苏云工场信息技术有限公司
Publication of WO2023115591A1 publication Critical patent/WO2023115591A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Definitions

  • the present application relates to a CDN node deployment technology, in particular to a method for automatically orchestrating CDN nodes.
  • the present application also relates to an automatic arrangement device for CDN nodes.
  • CDN Content Distribution Network
  • CDN is a layer of intelligent virtual network based on the existing Internet by placing node servers all over the network. Comprehensive information such as response time redirects the user's request to the service node closest to the user. Its purpose is to enable users to obtain the required content nearby, solve the congestion situation of the Internet network, and improve the response speed of users' access to websites.
  • CDN nodes are distributed and deployed in various regions of the country, and there may be service association and communication between nodes.
  • the present application provides an automatic orchestration method for CDN nodes.
  • the present application also relates to an automatic arrangement device for CDN nodes.
  • This application provides an automatic orchestration method for CDN nodes, including:
  • the application services of the CDN nodes are packaged into container images, including: central node images, regional node images and edge node images, and the container images are stored in storage;
  • K8S deployment file including: the central deployment file, the regional deployment file and the edge deployment file corresponding to the central node image, the regional node image and the edge node image respectively, and store them in the memory;
  • the K8S cluster calls the container image to deploy the new CDN node according to the type of the new CDN node; the category includes a central CDN node, a regional CDN node or an edge CDN nodes.
  • the K8S cluster invokes the container image to redeploy the CDN node according to the type of the CDN node; the category includes a central CDN node, a regional CDN node or an edge CDN node .
  • the container image includes: a Docker image.
  • the application service includes: a web application server.
  • the present application also provides an automatic arrangement device for CDN nodes, including:
  • the packaging module is used to package the application service of the CDN node into a container image, including: a central node image, an area node image and an edge node image, and store the container image in a memory;
  • Compose module be used for writing K8S deployment file according to described container mirror image, comprise: the central deployment file corresponding to central node mirror image, area node mirror image and edge node mirror image respectively, regional deployment file and edge deployment file, and be stored in described memory middle;
  • a deployment module configured to deploy the container image to a CDN node through the K8S cluster according to the deployment file, and at the same time back up the data in the storage to a preset CDN node, when the CDN node fails, through
  • the K8S cluster extracts backup data from the preset CDN node according to preset rules to reset the faulty CDN node.
  • the K8S cluster calls the container image to deploy the new CDN node according to the type of the new CDN node; the category includes a central CDN node, a regional CDN node or an edge CDN nodes.
  • the K8S cluster invokes the container image to redeploy the CDN node according to the type of the CDN node; the category includes a central CDN node, a regional CDN node or an edge CDN node .
  • the container image includes: a Docker image.
  • the application service includes: a web application server.
  • This application provides an automatic orchestration method for CDN nodes, including: deploying K8S clusters in the central server; packaging the application services of CDN nodes into container images, including: central node images, regional node images, and edge node images; Write the K8S deployment file according to the container image, including: the central deployment file, the regional deployment file and the edge deployment file corresponding to the central node image, the regional node image and the edge node image; deploy the K8S cluster according to the deployment file through the K8S cluster
  • the above container image is uploaded to the CDN node.
  • Fig. 1 is a flow chart of automatic arrangement of CDN nodes in this application.
  • FIG. 2 is a schematic diagram of the K8S framework in this application.
  • FIG. 3 is a schematic diagram of an automatic orchestration device for CDN nodes in this application.
  • This application provides an automatic orchestration method for CDN nodes, including: deploying K8S clusters in the central server; packaging the application services of CDN nodes into container images, including: central node images, regional node images, and edge node images; Write the K8S deployment file according to the container image, including: the central deployment file, the regional deployment file and the edge deployment file corresponding to the central node image, the regional node image and the edge node image; deploy the K8S cluster according to the deployment file through the K8S cluster
  • the above container image is uploaded to the CDN node.
  • Fig. 1 is a flow chart of automatic arrangement of CDN nodes in this application.
  • S101 deploys a K8S cluster in the central server.
  • the central server shown is a device that provides computing services, and the composition of the central server includes a processor, hard disk, memory, system bus, etc., and is similar to a general-purpose computer architecture.
  • the central server shown in this application includes: file server, database server, application program server, WEB server and so on.
  • a K8S (kubernetes) cluster is deployed in the central server, and the K8S cluster is a portable container orchestration management tool for container services.
  • FIG. 2 is a schematic diagram of the K8S framework in this application.
  • the K8S cluster includes: a user's command input terminal 201 , the command input terminal 201 is connected to a cluster control terminal 202 , and the cluster control terminal 202 is connected to a plurality of node terminals 203 .
  • the cluster control terminal 202 load controls and manages the entire K8S cluster, including: fault detection, automatic expansion, rolling update, etc., and is the user's command execution terminal; the node terminal 203 is responsible for the creation, start and stop of the container, in The node end 203 described in this application is deployed in a CDN node.
  • S102 packages the application services of the CDN nodes into container images, including: central node images, regional node images, and edge node images, and stores the container images in storage.
  • the CDN node has multiple types, including a central server, a first-level CDN node connected to the central server, and a second-level CDN node connected to the first-level CDN node, and the second-level CDN node That is, connect the client.
  • the central server is the main computing and storage device, which is connected to the client through the first-level CDN node and the second-level CDN node, and provides computing and storage services according to the client's request.
  • the first-level CDN node and the second-level CDN node may also provide limited computing and storage services, which is beneficial to improve the timeliness of data acquisition by the client.
  • all or part of the application services in the CDN nodes are packaged into container images through the container configuration process provided by K8S.
  • the container images are respectively center node images, regional node images, and edge node images according to different types of CDN nodes.
  • the central node image is deployed to the central server, and the regional node image and the edge node image are used to deploy to the first-level CDN node and the second-level CDN node respectively.
  • the container image will be stored in an image storage, and the container image will be called from the image storage during deployment, and the container image will be stored in a backup storage at the same time.
  • S103 writes the K8S deployment file according to the container image, including: the central deployment file, the regional deployment file and the edge deployment file respectively corresponding to the central node image, the regional node image and the edge node image, and store them in in the backup memory.
  • the K8S deployment file can be written.
  • the deployment file mainly includes: 1) creating a user and importing the database; 2) deploying the container image on the node, including: copying the container image file to the CDN node, It is decoded and stored under the preset directory.
  • the configuration parameters of the container image have been pre-configured.
  • the deployment file is stored in a backup memory.
  • S104 deploys the container image to the CDN node through the K8S cluster according to the deployment file, and at the same time backs up the data in the backup storage to the preset CDN node.
  • the K8S cluster extracts backup data from the preset CDN node according to preset rules to reset the failed CDN node.
  • the deployment file described in this application also selects the corresponding central deployment file, regional deployment file and edge deployment file according to the type of each CDN node and deploys it to the central server, first-level CDN node server and second-level CDN node server.
  • each CDN node After completing the deployment, each CDN node starts and runs the container image, and sends a result message to the central server according to the result of the operation.
  • the result message includes whether the application service of the CDN node server is running, running speed, resource occupation ratio, etc.
  • the result message is displayed on the display interface of K8S. According to whether the application service is running, it can be judged whether the container image is installed successfully. According to the running speed, it can be judged whether the CDN node is old and needs maintenance. According to the occupancy of the resource, it can be judged whether the hardware device of the CDN node needs to be maintained.
  • the evaluation score of the CDN node can be calculated according to whether the CDN node is running, the running speed, and the weighted sum of resource occupation ratios, and the number of user connections that the CDN node can carry is determined according to the evaluation score.
  • the user connection allocation is re-allocated according to the preset ratio.
  • the preset ratio is determined by a predetermined correspondence table between the evaluation score and the number of user connections.
  • the K8S cluster calls the container image to deploy the new CDN node according to the type of the new CDN node; the category includes a central CDN node, a regional CDN node or an edge CDN node.
  • the K8S cluster invokes the container image to redeploy the CDN node according to the type of the CDN node; the category includes a central CDN node, a regional CDN node or an edge CDN node.
  • the data or files in the backup storage will be sent together to a preset CDN node for storage.
  • the preset CDN nodes are set according to the CDN node density and the location area of the CDN nodes. For example:
  • the first step is regional judgment, judging whether a preset CDN node needs to be set according to the regional location of the CDN node and the distance from the central server. Specifically, a preset distance length can be set in advance, and if an area is more than the preset distance length from the central server, the preset CDN node can be set.
  • the second step is to judge the density of CDN nodes, which is to calculate the number of CDN nodes in an area, and use the density centroid of the CDN nodes as the preset CDN nodes.
  • the density centroid refers to the shortest sum of distances from the preset CDN node to all other CDN nodes in an area.
  • the K8S cluster extracts backup data from the preset CDN node according to preset rules to reset the failed CDN node.
  • the present application also provides an automatic arrangement device for CDN nodes, including:
  • the installation module 301 is used to deploy the K8S cluster in the central server;
  • the packaging module 302 is used to package the application services of CDN nodes into container images, including: central node images, regional node images and edge node images;
  • the writing module 303 is used to write the K8S deployment file according to the container image, including: a central deployment file, a regional deployment file and an edge deployment file corresponding to the central node image, the regional node image and the edge node image;
  • a deployment module 304 configured to deploy the container image to a CDN node through the K8S cluster according to the deployment file.
  • FIG. 3 is a schematic diagram of an automatic orchestration device for CDN nodes in this application.
  • the installation module 301 is used to deploy the K8S cluster in the central server.
  • the central server shown is a device that provides computing services, and the composition of the central server includes a processor, hard disk, memory, system bus, etc., and is similar to a general-purpose computer architecture.
  • the central server shown in this application includes: file server, database server, application program server, WEB server and so on.
  • a K8S (kubernetes) cluster is deployed in the central server, and the K8S cluster is a portable container orchestration management tool for container services.
  • the K8S cluster includes: a user's command input terminal 201 , the command input terminal 201 is connected to a cluster control terminal 202 , and the cluster control terminal 202 is connected to a plurality of node terminals 203 .
  • the cluster control terminal 202 load controls and manages the entire K8S cluster, including: fault detection, automatic expansion, rolling update, etc., and is the user's command execution terminal; the node terminal 203 is responsible for the creation, start and stop of the container, in The node end 203 described in this application is deployed in a CDN node.
  • the packaging module 302 is configured to package the application services of the CDN nodes into container images, including: central node images, regional node images and edge node images, and store the container images in memory.
  • the CDN node has multiple types, including a central server, a first-level CDN node connected to the central server, and a second-level CDN node connected to the first-level CDN node, and the second-level CDN node That is, connect the client.
  • the central server is the main computing and storage device, which is connected to the client through the first-level CDN node and the second-level CDN node, and provides computing and storage services according to the client's request.
  • the first-level CDN node and the second-level CDN node may also provide limited computing and storage services, which is beneficial to improve the timeliness of data acquisition by the client.
  • all or part of the application services in the CDN nodes are packaged into container images through the container configuration process provided by K8S.
  • the container images are respectively center node images, regional node images, and edge node images according to different types of CDN nodes.
  • the central node image is deployed to the central server, and the regional node image and the edge node image are used to deploy to the first-level CDN node and the second-level CDN node respectively.
  • the container image will be stored in an image storage, and the container image will be called from the image storage during deployment, and the container image will be stored in a backup storage at the same time.
  • write module 303 be used for writing K8S deployment file according to described container mirror image, include: center deployment file, regional deployment file and edge deployment file corresponding to central node image, regional node image and edge node image , and stored in the backup memory.
  • the K8S deployment file can be written.
  • the deployment file mainly includes: 1) creating a user and importing the database; 2) deploying the container image on the node, including: copying the container image file to the CDN node, It is decoded and stored under the preset directory.
  • the configuration parameters of the container image have been pre-configured.
  • the deployment file is stored in a backup memory.
  • the deployment module 304 is configured to deploy the container image to a CDN node through the K8S cluster according to the deployment file, and at the same time back up the data in the backup storage to a preset CDN node.
  • the K8S cluster extracts backup data from the preset CDN node according to preset rules to reset the failed CDN node.
  • the deployment file described in this application also selects the corresponding central deployment file, regional deployment file and edge deployment file according to the type of each CDN node and deploys it to the central server, first-level CDN node server and second-level CDN node server.
  • the automatic orchestration device of the CDN node described in this application can also be executed.
  • the K8S cluster invokes the container image to deploy the new CDN node according to the type of the new CDN node; Categories include central CDN nodes, regional CDN nodes, or edge CDN nodes.
  • the automatic orchestration device of the CDN node described in this application can also be executed.
  • the K8S cluster calls the container image to redeploy the CDN node according to the type of the CDN node; the categories include Central CDN node, regional CDN node or edge CDN node.
  • the data or files in the backup storage will be sent together to a preset CDN node for storage.
  • the preset CDN nodes are set according to the CDN node density and the location area of the CDN nodes. For example:
  • the first step is regional judgment, judging whether a preset CDN node needs to be set according to the regional location of the CDN node and the distance from the central server. Specifically, a preset distance length can be set in advance, and if an area is more than the preset distance length from the central server, the preset CDN node can be set.
  • the second step is to judge the density of CDN nodes, which is to calculate the number of CDN nodes in an area, and use the density centroid of the CDN nodes as the preset CDN nodes.
  • the density centroid refers to the shortest sum of distances from the preset CDN node to all other CDN nodes in an area.
  • the K8S cluster extracts backup data from the preset CDN node according to preset rules to reset the failed CDN node.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present application provides an automatic arrangement method for CDN nodes, comprising: deploying a K8S cluster in a central server; packaging application services of CDN nodes into container images, comprising a central node image, a regional node image, and an edge node image; compiling, according to the container images, K8S deployment files, comprising a central deployment file, a regional deployment file, and an edge deployment file corresponding to the central node image, the regional node image, and the edge node image; and deploying the container images to the CDN nodes by means of the K8S cluster according to the deployment files. CDN nodes are collectively managed and deployed by means of K8S, the CDN nodes do not need to be manually installed and deployed on site, the time and labor costs are saved, and it is easier to deploy. The present application further provides an automatic arrangement apparatus for CDN nodes.

Description

一种CDN节点的自动编排方法及装置A method and device for automatically orchestrating CDN nodes 技术领域technical field
本申请涉及一种CDN节点部署技术,尤其涉及一种CDN节点的自动编排方法。本申请还涉及一种CDN节点的自动编排装置。The present application relates to a CDN node deployment technology, in particular to a method for automatically orchestrating CDN nodes. The present application also relates to an automatic arrangement device for CDN nodes.
背景技术Background technique
CDN(内容分发网络)的基本思路是尽可能避开互联网上有可能影响数据传输速度和稳定性的瓶颈和环节,使内容传输的更快、更稳定。The basic idea of CDN (Content Distribution Network) is to avoid bottlenecks and links on the Internet that may affect the speed and stability of data transmission as much as possible, so as to make content transmission faster and more stable.
CDN是通过在网络各处放置节点服务器所构成的在现有的互联网基础之上的一层智能虚拟网络,CDN系统能够实时地根据网络流量和各节点的连接、负载状况以及到用户的距离和响应时间等综合信息将用户的请求重新导向离用户最近的服务节点上。其目的是使用户可就近取得所需内容,解决Internet网络拥挤的状况,提高用户访问网站的响应速度。CDN节点是分布式的部署在全国各个地区,并且节点之间还有可能会进行服务关联和通信。CDN is a layer of intelligent virtual network based on the existing Internet by placing node servers all over the network. Comprehensive information such as response time redirects the user's request to the service node closest to the user. Its purpose is to enable users to obtain the required content nearby, solve the congestion situation of the Internet network, and improve the response speed of users' access to websites. CDN nodes are distributed and deployed in various regions of the country, and there may be service association and communication between nodes.
现有技术中,针对CDN节点的部署,需要人工实地进行,部署难度大,其人力成本、时间成本和资金成本巨大。In the prior art, the deployment of CDN nodes needs to be carried out manually on the spot, which is difficult to deploy, and the cost of manpower, time and capital is huge.
发明内容Contents of the invention
为解决CDN节点部署困难的问题,本申请提供一种CDN节点的自动编排方法。本申请还涉及一种CDN节点的自动编排装置。In order to solve the problem of difficulty in deploying CDN nodes, the present application provides an automatic orchestration method for CDN nodes. The present application also relates to an automatic arrangement device for CDN nodes.
本申请提供一种CDN节点的自动编排方法,包括:This application provides an automatic orchestration method for CDN nodes, including:
在中心服务器中部署K8S集群;Deploy the K8S cluster in the central server;
将CDN节点的应用服务打包成容器镜像,包括:中心节点镜像、区域节 点镜像和边缘节点镜像,并将所述容器镜像存储到存储器中;The application services of the CDN nodes are packaged into container images, including: central node images, regional node images and edge node images, and the container images are stored in storage;
根据所述容器镜像编写K8S部署文件,包括:分别与中心节点镜像、区域节点镜像和边缘节点镜像对应的中心部署文件、区域部署文件和边缘部署文件,并存储到所述存储器中;Write the K8S deployment file according to the container image, including: the central deployment file, the regional deployment file and the edge deployment file corresponding to the central node image, the regional node image and the edge node image respectively, and store them in the memory;
通过所述K8S集群根据所述部署文件部署所述容器镜像到CDN节点,同时将所述存储器中的数据备份到预设CDN节点中,当所述CDN节点发生故障时,通过所述K8S集群按照预设规则从所述预设CDN节点中提取备份数据进行发生故障的所述CDN节点重置。Deploy the container image to the CDN node through the K8S cluster according to the deployment file, and at the same time back up the data in the storage to the preset CDN node, when the CDN node fails, through the K8S cluster according to The preset rule extracts the backup data from the preset CDN node to reset the faulty CDN node.
可选的,当扩展新的CDN节点,所述K8S集群根据所述新的CDN节点的类型调用所述容器镜像部署所述新的CDN节点;所述类别包括中心CDN节点、区域CDN节点或边缘CDN节点。Optionally, when expanding a new CDN node, the K8S cluster calls the container image to deploy the new CDN node according to the type of the new CDN node; the category includes a central CDN node, a regional CDN node or an edge CDN nodes.
可选的,当所述CDN节点发生错误,所述K8S集群根据所述CDN节点的类型调用所述容器镜像重新部署所述CDN节点;所述类别包括中心CDN节点、区域CDN节点或边缘CDN节点。Optionally, when an error occurs in the CDN node, the K8S cluster invokes the container image to redeploy the CDN node according to the type of the CDN node; the category includes a central CDN node, a regional CDN node or an edge CDN node .
可选的,所述容器镜像包括:Docker镜像。Optionally, the container image includes: a Docker image.
可选的,所述应用服务包括:web应用服务器。Optionally, the application service includes: a web application server.
本申请还提供一种CDN节点的自动编排装置,包括:The present application also provides an automatic arrangement device for CDN nodes, including:
安装模块,用于在中心服务器中部署K8S集群;Install modules for deploying K8S clusters in the central server;
打包模块,用于将CDN节点的应用服务打包成容器镜像,包括:中心节点镜像、区域节点镜像和边缘节点镜像,并将所述容器镜像存储到存储器中;The packaging module is used to package the application service of the CDN node into a container image, including: a central node image, an area node image and an edge node image, and store the container image in a memory;
编写模块,用于根据所述容器镜像编写K8S部署文件,包括:分别与中心节点镜像、区域节点镜像和边缘节点镜像对应的中心部署文件、区域部署文件和边缘部署文件,并存储到所述存储器中;Compose module, be used for writing K8S deployment file according to described container mirror image, comprise: the central deployment file corresponding to central node mirror image, area node mirror image and edge node mirror image respectively, regional deployment file and edge deployment file, and be stored in described memory middle;
部署模块,用于通过所述K8S集群根据所述部署文件部署所述容器镜像到 CDN节点,同时将所述存储器中的数据备份到预设CDN节点中,当所述CDN节点发生故障时,通过所述K8S集群按照预设规则从所述预设CDN节点中提取备份数据进行发生故障的所述CDN节点重置。A deployment module, configured to deploy the container image to a CDN node through the K8S cluster according to the deployment file, and at the same time back up the data in the storage to a preset CDN node, when the CDN node fails, through The K8S cluster extracts backup data from the preset CDN node according to preset rules to reset the faulty CDN node.
可选的,当扩展新的CDN节点,所述K8S集群根据所述新的CDN节点的类型调用所述容器镜像部署所述新的CDN节点;所述类别包括中心CDN节点、区域CDN节点或边缘CDN节点。Optionally, when expanding a new CDN node, the K8S cluster calls the container image to deploy the new CDN node according to the type of the new CDN node; the category includes a central CDN node, a regional CDN node or an edge CDN nodes.
可选的,当所述CDN节点发生错误,所述K8S集群根据所述CDN节点的类型调用所述容器镜像重新部署所述CDN节点;所述类别包括中心CDN节点、区域CDN节点或边缘CDN节点。Optionally, when an error occurs in the CDN node, the K8S cluster invokes the container image to redeploy the CDN node according to the type of the CDN node; the category includes a central CDN node, a regional CDN node or an edge CDN node .
可选的,所述容器镜像包括:Docker镜像。Optionally, the container image includes: a Docker image.
可选的,所述应用服务包括:web应用服务器。Optionally, the application service includes: a web application server.
本申请相对与现有技术的优点:Advantages of the present application relative to the prior art:
本申请提供本申请提供一种CDN节点的自动编排方法,包括:在中心服务器中部署K8S集群;将CDN节点的应用服务打包成容器镜像,包括:中心节点镜像、区域节点镜像和边缘节点镜像;根据所述容器镜像编写K8S部署文件,包括:与中心节点镜像、区域节点镜像和边缘节点镜像对应的中心部署文件、区域部署文件和边缘部署文件;通过所述K8S集群根据所述部署文件部署所述容器镜像到CDN节点。通过K8S统一管理部署CDN节点,不需要人工在实地进行CDN节点的安装部署,节省时间、人力成本,部署更为容易。This application provides an automatic orchestration method for CDN nodes, including: deploying K8S clusters in the central server; packaging the application services of CDN nodes into container images, including: central node images, regional node images, and edge node images; Write the K8S deployment file according to the container image, including: the central deployment file, the regional deployment file and the edge deployment file corresponding to the central node image, the regional node image and the edge node image; deploy the K8S cluster according to the deployment file through the K8S cluster The above container image is uploaded to the CDN node. Through K8S unified management and deployment of CDN nodes, there is no need to manually install and deploy CDN nodes on the spot, saving time and labor costs, and making deployment easier.
附图说明Description of drawings
图1是本申请中CDN节点的自动编排的流程图。Fig. 1 is a flow chart of automatic arrangement of CDN nodes in this application.
图2是本申请中K8S框架示意图。Figure 2 is a schematic diagram of the K8S framework in this application.
图3是本申请中CDN节点的自动编排装置示意图。FIG. 3 is a schematic diagram of an automatic orchestration device for CDN nodes in this application.
具体实施方式Detailed ways
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。In the following description, numerous specific details are set forth in order to provide a thorough understanding of the application. However, the present application can be implemented in many other ways different from those described here, and those skilled in the art can make similar promotions without violating the connotation of the present application. Therefore, the present application is not limited by the specific implementation disclosed below.
本申请提供本申请提供一种CDN节点的自动编排方法,包括:在中心服务器中部署K8S集群;将CDN节点的应用服务打包成容器镜像,包括:中心节点镜像、区域节点镜像和边缘节点镜像;根据所述容器镜像编写K8S部署文件,包括:与中心节点镜像、区域节点镜像和边缘节点镜像对应的中心部署文件、区域部署文件和边缘部署文件;通过所述K8S集群根据所述部署文件部署所述容器镜像到CDN节点。通过K8S统一管理部署CDN节点,不需要人工在实地进行CDN节点的安装部署,节省时间、人力成本,部署更为容易。This application provides an automatic orchestration method for CDN nodes, including: deploying K8S clusters in the central server; packaging the application services of CDN nodes into container images, including: central node images, regional node images, and edge node images; Write the K8S deployment file according to the container image, including: the central deployment file, the regional deployment file and the edge deployment file corresponding to the central node image, the regional node image and the edge node image; deploy the K8S cluster according to the deployment file through the K8S cluster The above container image is uploaded to the CDN node. Through K8S unified management and deployment of CDN nodes, there is no need to manually install and deploy CDN nodes on the spot, saving time and labor costs, and making deployment easier.
图1是本申请中CDN节点的自动编排的流程图。Fig. 1 is a flow chart of automatic arrangement of CDN nodes in this application.
请参照图1所示,S101在中心服务器中部署K8S集群。Please refer to Figure 1, S101 deploys a K8S cluster in the central server.
本申请中,所示中心服务器是提供计算服务的设备,所示中心服务器的构成包括处理器、硬盘、内存、系统总线等,和通用的计算机架构类似。本申请中所示中心服务器包括:文件服务器,数据库服务器,应用程序服务器,WEB服务器等。In this application, the central server shown is a device that provides computing services, and the composition of the central server includes a processor, hard disk, memory, system bus, etc., and is similar to a general-purpose computer architecture. The central server shown in this application includes: file server, database server, application program server, WEB server and so on.
在所述中心服务器中部署K8S(kubernetes)集群,所述K8S集群是为容器服务而生的一个可移植容器的编排管理工具。A K8S (kubernetes) cluster is deployed in the central server, and the K8S cluster is a portable container orchestration management tool for container services.
图2是本申请中K8S框架示意图。Figure 2 is a schematic diagram of the K8S framework in this application.
请参照图2所示,所述K8S集群包括:用户的命令输入端201,该命令输入端201连接到集群控制端202,所述集群控制端202连接到多个节点端203。Referring to FIG. 2 , the K8S cluster includes: a user's command input terminal 201 , the command input terminal 201 is connected to a cluster control terminal 202 , and the cluster control terminal 202 is connected to a plurality of node terminals 203 .
具体的,所述集群控制端202负载控制和管理整个K8S集群,包括:故障检测,自动扩展,滚动更新等,是用户的命令执行端;所述节点端203负责容 器的创建和启动停止,在本申请中所述节点端203部署在CDN节点中。Specifically, the cluster control terminal 202 load controls and manages the entire K8S cluster, including: fault detection, automatic expansion, rolling update, etc., and is the user's command execution terminal; the node terminal 203 is responsible for the creation, start and stop of the container, in The node end 203 described in this application is deployed in a CDN node.
请参照图1所示,S102将CDN节点的应用服务打包成容器镜像,包括:中心节点镜像、区域节点镜像和边缘节点镜像,并将所述容器镜像存储到存储器中。Referring to FIG. 1, S102 packages the application services of the CDN nodes into container images, including: central node images, regional node images, and edge node images, and stores the container images in storage.
在本申请中,所述CDN节点具有多种类型,包括中心服务器,与所述中心服务器连接的一级CDN节点,和与所述一级CDN节点连接二级CDN节点,所述二级CDN节点即连接客户端。In this application, the CDN node has multiple types, including a central server, a first-level CDN node connected to the central server, and a second-level CDN node connected to the first-level CDN node, and the second-level CDN node That is, connect the client.
所述中心服务器是主要的计算和存储设备,其通过一级CDN节点和二级CDN节点链接到客户端,并依据客户请求提供计算和存储服务。在另外的一种实施方式中,所述一级CDN节点和二级CDN节点也可以提供有限的计算和存储服务,有利于客户端获取数据的时效性提高。The central server is the main computing and storage device, which is connected to the client through the first-level CDN node and the second-level CDN node, and provides computing and storage services according to the client's request. In another implementation manner, the first-level CDN node and the second-level CDN node may also provide limited computing and storage services, which is beneficial to improve the timeliness of data acquisition by the client.
在本申请中,全部或者部分的CDN节点中的应用服务通过K8S提供的容器配置进程打包成容器镜像,该容器镜像根据CDN节点类型的不同,分别为中心节点镜像、区域节点镜像和边缘节点镜像。所述中心节点镜像是部署到中心服务器中的,所述区域节点镜像和边缘节点镜像分别用于部署到一级CDN节点和二级CDN节点。In this application, all or part of the application services in the CDN nodes are packaged into container images through the container configuration process provided by K8S. The container images are respectively center node images, regional node images, and edge node images according to different types of CDN nodes. . The central node image is deployed to the central server, and the regional node image and the edge node image are used to deploy to the first-level CDN node and the second-level CDN node respectively.
具体的,所述容器镜像将存储到一个镜像存储器中,并在部署过程中从所述镜像存储器中调用所述容器镜像,同时将所述容器镜像存储到备份存储器中。Specifically, the container image will be stored in an image storage, and the container image will be called from the image storage during deployment, and the container image will be stored in a backup storage at the same time.
请参照图1所示,S103根据所述容器镜像编写K8S部署文件,包括:分别与中心节点镜像、区域节点镜像和边缘节点镜像对应的中心部署文件、区域部署文件和边缘部署文件,并存储到所述备份存储器中。Please refer to Fig. 1, S103 writes the K8S deployment file according to the container image, including: the central deployment file, the regional deployment file and the edge deployment file respectively corresponding to the central node image, the regional node image and the edge node image, and store them in in the backup memory.
容器镜像创建完成后,即可编写K8S的部署文件,该部署文件主要包括:1)创建用户和导入数据库;2)在节点上进行容器镜像的部署,包括:容器镜像文件复制到CDN节点上,解码并存放在预设的目录下面,在本申请中,所述容器镜像的配置参数已经预先配置完成。After the container image is created, the K8S deployment file can be written. The deployment file mainly includes: 1) creating a user and importing the database; 2) deploying the container image on the node, including: copying the container image file to the CDN node, It is decoded and stored under the preset directory. In this application, the configuration parameters of the container image have been pre-configured.
完成所述部署文件后,将所述部署文件存储到备份存储器中。After the deployment file is completed, the deployment file is stored in a backup memory.
请参照图1所示,S104通过所述K8S集群根据所述部署文件部署所述容器镜像到CDN节点,同时将所述备份存储器中的数据备份到预设CDN节点中,当所述CDN节点发生故障时,通过所述K8S集群按照预设规则从所述预设CDN节点中提取备份数据进行发生故障的所述CDN节点重置。Please refer to Figure 1, S104 deploys the container image to the CDN node through the K8S cluster according to the deployment file, and at the same time backs up the data in the backup storage to the preset CDN node. In case of a failure, the K8S cluster extracts backup data from the preset CDN node according to preset rules to reset the failed CDN node.
本申请中所述部署文件还根据每个CDN节点的类型选择对应的中心部署文件、区域部署文件和边缘部署文件部署到中心服务器、一级CDN节点服务器和二级CDN节点服务器中。The deployment file described in this application also selects the corresponding central deployment file, regional deployment file and edge deployment file according to the type of each CDN node and deploys it to the central server, first-level CDN node server and second-level CDN node server.
每个CDN节点在完成部署后,启动并运行所述容器镜像,根据所述运行的结果发送结果报文到中心服务器。所述结果报文包括,CDN节点服务器的应用服务是否运行,运行速度,资源占用比等。After completing the deployment, each CDN node starts and runs the container image, and sends a result message to the central server according to the result of the operation. The result message includes whether the application service of the CDN node server is running, running speed, resource occupation ratio, etc.
所述结果报文在K8S的显示界面显示,根据所述应用服务是否运行可以判断所述容器镜像是否安装成功,根据所述运行速度可以判读所述CDN节点是否陈旧老化,是否需要维修,根据所述资源占用,可以判断所述CDN节点硬件设备是否需要维修。The result message is displayed on the display interface of K8S. According to whether the application service is running, it can be judged whether the container image is installed successfully. According to the running speed, it can be judged whether the CDN node is old and needs maintenance. According to the occupancy of the resource, it can be judged whether the hardware device of the CDN node needs to be maintained.
一个优选的实施例,根据所述CDN节点是否运行,运行速度,资源占用比加权求和可以计算所述CDN节点的评估分数,根据该评估分数判断所述CDN节点可承载用户连接数。通过多个相邻的CDN节点用户连接数,按照预设比例重新进行用户连接分配。所述预设比例是预先确定的评估分数和用户连接数对应表确定的。In a preferred embodiment, the evaluation score of the CDN node can be calculated according to whether the CDN node is running, the running speed, and the weighted sum of resource occupation ratios, and the number of user connections that the CDN node can carry is determined according to the evaluation score. According to the number of user connections of multiple adjacent CDN nodes, the user connection allocation is re-allocated according to the preset ratio. The preset ratio is determined by a predetermined correspondence table between the evaluation score and the number of user connections.
优选的,当扩展新的CDN节点,所述K8S集群根据所述新的CDN节点的类型调用所述容器镜像部署所述新的CDN节点;所述类别包括中心CDN节点、区域CDN节点或边缘CDN节点。Preferably, when expanding a new CDN node, the K8S cluster calls the container image to deploy the new CDN node according to the type of the new CDN node; the category includes a central CDN node, a regional CDN node or an edge CDN node.
优选的,当所述CDN节点发生错误,所述K8S集群根据所述CDN节点的类型调用所述容器镜像重新部署所述CDN节点;所述类别包括中心CDN节点、区域CDN节点或边缘CDN节点。Preferably, when an error occurs in the CDN node, the K8S cluster invokes the container image to redeploy the CDN node according to the type of the CDN node; the category includes a central CDN node, a regional CDN node or an edge CDN node.
在进行所述容器镜像部署的过程中,所述备份存储器中的数据或者文件将一起发送到预设CDN节点中进行存储。一种优选的实施方式是,所述预设 CDN节点是根据CDN节点密度和CDN节点的位置区域进行设置的。例如:During the process of deploying the container image, the data or files in the backup storage will be sent together to a preset CDN node for storage. A preferred implementation manner is that the preset CDN nodes are set according to the CDN node density and the location area of the CDN nodes. For example:
第一步,区域判断,根据所述CDN节点的区域位置和中心服务器的距离进行判断是否需要设置预设CDN节点。具体的可以通过预先设置一个预设的距离长度,若一个区域距离所述中心服务器超过所述预设的距离长度,即可进行预设CDN节点的设置。The first step is regional judgment, judging whether a preset CDN node needs to be set according to the regional location of the CDN node and the distance from the central server. Specifically, a preset distance length can be set in advance, and if an area is more than the preset distance length from the central server, the preset CDN node can be set.
第二步,CDN节点密度判断,既计算一个区域的CDN节点数量,并将所述CDN节点的密度质心作为所述预设CDN节点。所述密度质心是指所述预设CDN节点到一个区域中其他所以CDN节点的距离和最短。The second step is to judge the density of CDN nodes, which is to calculate the number of CDN nodes in an area, and use the density centroid of the CDN nodes as the preset CDN nodes. The density centroid refers to the shortest sum of distances from the preset CDN node to all other CDN nodes in an area.
当所述CDN节点发生故障时,通过所述K8S集群按照预设规则从所述预设CDN节点中提取备份数据进行发生故障的所述CDN节点重置。When the CDN node fails, the K8S cluster extracts backup data from the preset CDN node according to preset rules to reset the failed CDN node.
对应于上述方法,本申请还提供一种CDN节点的自动编排装置,包括:Corresponding to the above method, the present application also provides an automatic arrangement device for CDN nodes, including:
安装模块301,用于在中心服务器中部署K8S集群;The installation module 301 is used to deploy the K8S cluster in the central server;
打包模块302,用于将CDN节点的应用服务打包成容器镜像,包括:中心节点镜像、区域节点镜像和边缘节点镜像;The packaging module 302 is used to package the application services of CDN nodes into container images, including: central node images, regional node images and edge node images;
编写模块303,用于根据所述容器镜像编写K8S部署文件,包括:与中心节点镜像、区域节点镜像和边缘节点镜像对应的中心部署文件、区域部署文件和边缘部署文件;The writing module 303 is used to write the K8S deployment file according to the container image, including: a central deployment file, a regional deployment file and an edge deployment file corresponding to the central node image, the regional node image and the edge node image;
部署模块304,用于通过所述K8S集群根据所述部署文件部署所述容器镜像到CDN节点。A deployment module 304, configured to deploy the container image to a CDN node through the K8S cluster according to the deployment file.
图3是本申请中CDN节点的自动编排装置示意图。FIG. 3 is a schematic diagram of an automatic orchestration device for CDN nodes in this application.
请参照图3所示,安装模块301,用于在中心服务器中部署K8S集群。Please refer to FIG. 3 , the installation module 301 is used to deploy the K8S cluster in the central server.
本申请中,所示中心服务器是提供计算服务的设备,所示中心服务器的构成包括处理器、硬盘、内存、系统总线等,和通用的计算机架构类似。本申请中所示中心服务器包括:文件服务器,数据库服务器,应用程序服务器,WEB 服务器等。In this application, the central server shown is a device that provides computing services, and the composition of the central server includes a processor, hard disk, memory, system bus, etc., and is similar to a general-purpose computer architecture. The central server shown in this application includes: file server, database server, application program server, WEB server and so on.
在所述中心服务器中部署K8S(kubernetes)集群,所述K8S集群是为容器服务而生的一个可移植容器的编排管理工具。A K8S (kubernetes) cluster is deployed in the central server, and the K8S cluster is a portable container orchestration management tool for container services.
请参照图2所示,所述K8S集群包括:用户的命令输入端201,该命令输入端201连接到集群控制端202,所述集群控制端202连接到多个节点端203。Referring to FIG. 2 , the K8S cluster includes: a user's command input terminal 201 , the command input terminal 201 is connected to a cluster control terminal 202 , and the cluster control terminal 202 is connected to a plurality of node terminals 203 .
具体的,所述集群控制端202负载控制和管理整个K8S集群,包括:故障检测,自动扩展,滚动更新等,是用户的命令执行端;所述节点端203负责容器的创建和启动停止,在本申请中所述节点端203部署在CDN节点中。Specifically, the cluster control terminal 202 load controls and manages the entire K8S cluster, including: fault detection, automatic expansion, rolling update, etc., and is the user's command execution terminal; the node terminal 203 is responsible for the creation, start and stop of the container, in The node end 203 described in this application is deployed in a CDN node.
请参照图3所示,打包模块302,用于将CDN节点的应用服务打包成容器镜像,包括:中心节点镜像、区域节点镜像和边缘节点镜像,并将所述容器镜像存储到存储器中。Please refer to FIG. 3 , the packaging module 302 is configured to package the application services of the CDN nodes into container images, including: central node images, regional node images and edge node images, and store the container images in memory.
在本申请中,所述CDN节点具有多种类型,包括中心服务器,与所述中心服务器连接的一级CDN节点,和与所述一级CDN节点连接二级CDN节点,所述二级CDN节点即连接客户端。In this application, the CDN node has multiple types, including a central server, a first-level CDN node connected to the central server, and a second-level CDN node connected to the first-level CDN node, and the second-level CDN node That is, connect the client.
所述中心服务器是主要的计算和存储设备,其通过一级CDN节点和二级CDN节点链接到客户端,并依据客户请求提供计算和存储服务。在另外的一种实施方式中,所述一级CDN节点和二级CDN节点也可以提供有限的计算和存储服务,有利于客户端获取数据的时效性提高。The central server is the main computing and storage device, which is connected to the client through the first-level CDN node and the second-level CDN node, and provides computing and storage services according to the client's request. In another implementation manner, the first-level CDN node and the second-level CDN node may also provide limited computing and storage services, which is beneficial to improve the timeliness of data acquisition by the client.
在本申请中,全部或者部分的CDN节点中的应用服务通过K8S提供的容器配置进程打包成容器镜像,该容器镜像根据CDN节点类型的不同,分别为中心节点镜像、区域节点镜像和边缘节点镜像。所述中心节点镜像是部署到中心服务器中的,所述区域节点镜像和边缘节点镜像分别用于部署到一级CDN节点和二级CDN节点。In this application, all or part of the application services in the CDN nodes are packaged into container images through the container configuration process provided by K8S. The container images are respectively center node images, regional node images, and edge node images according to different types of CDN nodes. . The central node image is deployed to the central server, and the regional node image and the edge node image are used to deploy to the first-level CDN node and the second-level CDN node respectively.
具体的,所述容器镜像将存储到一个镜像存储器中,并在部署过程中从所述镜像存储器中调用所述容器镜像,同时将所述容器镜像存储到备份存储器中。Specifically, the container image will be stored in an image storage, and the container image will be called from the image storage during deployment, and the container image will be stored in a backup storage at the same time.
请参照图3所示,编写模块303,用于根据所述容器镜像编写K8S部署文件,包括:与中心节点镜像、区域节点镜像和边缘节点镜像对应的中心部署文件、区域部署文件和边缘部署文件,并存储到所述备份存储器中。Please refer to shown in Figure 3, write module 303, be used for writing K8S deployment file according to described container mirror image, include: center deployment file, regional deployment file and edge deployment file corresponding to central node image, regional node image and edge node image , and stored in the backup memory.
容器镜像创建完成后,即可编写K8S的部署文件,该部署文件主要包括:1)创建用户和导入数据库;2)在节点上进行容器镜像的部署,包括:容器镜像文件复制到CDN节点上,解码并存放在预设的目录下面,在本申请中,所述容器镜像的配置参数已经预先配置完成。After the container image is created, the K8S deployment file can be written. The deployment file mainly includes: 1) creating a user and importing the database; 2) deploying the container image on the node, including: copying the container image file to the CDN node, It is decoded and stored under the preset directory. In this application, the configuration parameters of the container image have been pre-configured.
完成所述部署文件后,将所述部署文件存储到备份存储器中。After the deployment file is completed, the deployment file is stored in a backup memory.
请参照图1所示,部署模块304,用于通过所述K8S集群根据所述部署文件部署所述容器镜像到CDN节点,同时将所述备份存储器中的数据备份到预设CDN节点中,当所述CDN节点发生故障时,通过所述K8S集群按照预设规则从所述预设CDN节点中提取备份数据进行发生故障的所述CDN节点重置。Please refer to FIG. 1 , the deployment module 304 is configured to deploy the container image to a CDN node through the K8S cluster according to the deployment file, and at the same time back up the data in the backup storage to a preset CDN node. When the CDN node fails, the K8S cluster extracts backup data from the preset CDN node according to preset rules to reset the failed CDN node.
本申请中所述部署文件还根据每个CDN节点的类型选择对应的中心部署文件、区域部署文件和边缘部署文件部署到中心服务器、一级CDN节点服务器和二级CDN节点服务器中。The deployment file described in this application also selects the corresponding central deployment file, regional deployment file and edge deployment file according to the type of each CDN node and deploys it to the central server, first-level CDN node server and second-level CDN node server.
本申请中所述CDN节点的自动编排装置还可以执行,当扩展新的CDN节点,所述K8S集群根据所述新的CDN节点的类型调用所述容器镜像部署所述新的CDN节点;所述类别包括中心CDN节点、区域CDN节点或边缘CDN节点。The automatic orchestration device of the CDN node described in this application can also be executed. When expanding a new CDN node, the K8S cluster invokes the container image to deploy the new CDN node according to the type of the new CDN node; Categories include central CDN nodes, regional CDN nodes, or edge CDN nodes.
本申请中所述CDN节点的自动编排装置还可以执行,当所述CDN节点发生错误,所述K8S集群根据所述CDN节点的类型调用所述容器镜像重新部署所述CDN节点;所述类别包括中心CDN节点、区域CDN节点或边缘CDN节点。The automatic orchestration device of the CDN node described in this application can also be executed. When an error occurs in the CDN node, the K8S cluster calls the container image to redeploy the CDN node according to the type of the CDN node; the categories include Central CDN node, regional CDN node or edge CDN node.
在进行所述容器镜像部署的过程中,所述备份存储器中的数据或者文件将一起发送到预设CDN节点中进行存储。一种优选的实施方式是,所述预设CDN节点是根据CDN节点密度和CDN节点的位置区域进行设置的。例如:During the process of deploying the container image, the data or files in the backup storage will be sent together to a preset CDN node for storage. A preferred implementation manner is that the preset CDN nodes are set according to the CDN node density and the location area of the CDN nodes. For example:
第一步,区域判断,根据所述CDN节点的区域位置和中心服务器的距离进行判断是否需要设置预设CDN节点。具体的可以通过预先设置一个预设的距离长度,若一个区域距离所述中心服务器超过所述预设的距离长度,即可进行预设CDN节点的设置。The first step is regional judgment, judging whether a preset CDN node needs to be set according to the regional location of the CDN node and the distance from the central server. Specifically, a preset distance length can be set in advance, and if an area is more than the preset distance length from the central server, the preset CDN node can be set.
第二步,CDN节点密度判断,既计算一个区域的CDN节点数量,并将所述CDN节点的密度质心作为所述预设CDN节点。所述密度质心是指所述预设CDN节点到一个区域中其他所以CDN节点的距离和最短。The second step is to judge the density of CDN nodes, which is to calculate the number of CDN nodes in an area, and use the density centroid of the CDN nodes as the preset CDN nodes. The density centroid refers to the shortest sum of distances from the preset CDN node to all other CDN nodes in an area.
当所述CDN节点发生故障时,通过所述K8S集群按照预设规则从所述预设CDN节点中提取备份数据进行发生故障的所述CDN节点重置。When the CDN node fails, the K8S cluster extracts backup data from the preset CDN node according to preset rules to reset the failed CDN node.

Claims (10)

  1. 一种CDN节点的自动编排方法,其特征在于,包括:A method for automatically orchestrating CDN nodes, comprising:
    在中心服务器中部署K8S集群;Deploy the K8S cluster in the central server;
    将CDN节点的应用服务打包成容器镜像,包括:中心节点镜像、区域节点镜像和边缘节点镜像,并将所述容器镜像存储到备份存储器中;Packaging the application service of the CDN node into a container image, including: a central node image, an area node image and an edge node image, and storing the container image in a backup storage;
    根据所述容器镜像编写K8S部署文件,包括:分别与中心节点镜像、区域节点镜像和边缘节点镜像对应的中心部署文件、区域部署文件和边缘部署文件,并存储到所述备份存储器中;Write the K8S deployment file according to the container image, including: the central deployment file, the regional deployment file and the edge deployment file corresponding to the central node image, the regional node image and the edge node image respectively, and store them in the backup memory;
    通过所述K8S集群根据所述部署文件部署所述容器镜像到CDN节点,同时将所述备份存储器中的数据备份到预设CDN节点中,当所述CDN节点发生故障时,通过所述K8S集群按照预设规则从所述预设CDN节点中提取备份数据进行发生故障的所述CDN节点重置。Deploy the container image to the CDN node through the K8S cluster according to the deployment file, and at the same time back up the data in the backup storage to the preset CDN node, when the CDN node fails, through the K8S cluster The backup data is extracted from the preset CDN node according to preset rules to reset the faulty CDN node.
  2. 根据权利要求1所述CDN节点的自动编排方法,其特征在于,当扩展新的CDN节点,所述K8S集群根据所述新的CDN节点的类型调用所述容器镜像部署所述新的CDN节点;所述类别包括中心CDN节点、区域CDN节点或边缘CDN节点。According to the automatic orchestration method of the CDN node described in claim 1, it is characterized in that, when expanding a new CDN node, the K8S cluster invokes the container image to deploy the new CDN node according to the type of the new CDN node; The categories include central CDN nodes, regional CDN nodes or edge CDN nodes.
  3. 根据权利要求1所述CDN节点的自动编排方法,其特征在于,当所述CDN节点发生错误,所述K8S集群根据所述CDN节点的类型调用所述容器镜像重新部署所述CDN节点;所述类别包括中心CDN节点、区域CDN节点或边缘CDN节点。According to the automatic orchestration method of the CDN node described in claim 1, it is characterized in that, when an error occurs in the CDN node, the K8S cluster invokes the container image to redeploy the CDN node according to the type of the CDN node; Categories include central CDN nodes, regional CDN nodes, or edge CDN nodes.
  4. 根据权利要求1所述CDN节点的自动编排方法,其特征在于,所述容器镜像包括:Docker镜像。The method for automatically orchestrating CDN nodes according to claim 1, wherein the container image comprises: a Docker image.
  5. 根据权利要求1所述CDN节点的自动编排方法,其特征在于,所述应用服务包括:web应用服务器。The method for automatically orchestrating CDN nodes according to claim 1, wherein the application service comprises: a web application server.
  6. 一种CDN节点的自动编排装置,其特征在于,包括:An automatic orchestration device for a CDN node, characterized in that it includes:
    安装模块,用于在中心服务器中部署K8S集群;Install modules for deploying K8S clusters in the central server;
    打包模块,用于将CDN节点的应用服务打包成容器镜像,包括:中心节点镜像、区域节点镜像和边缘节点镜像,并将所述容器镜像存储到备份存储器中;The packaging module is used to package the application service of the CDN node into a container image, including: a central node image, a regional node image and an edge node image, and store the container image in a backup memory;
    编写模块,用于根据所述容器镜像编写K8S部署文件,包括:分别与中心节点镜像、区域节点镜像和边缘节点镜像对应的中心部署文件、区域部署文件和边缘部署文件,并存储到所述备份存储器中;Compose module, be used for writing K8S deployment file according to described container mirror image, comprise: the central deployment file corresponding to center node mirror image, area node mirror image and edge node mirror image respectively, regional deployment file and edge deployment file, and store in described backup in memory;
    部署模块,用于通过所述K8S集群根据所述部署文件部署所述容器镜像到CDN节点,同时将所述备份存储器中的数据备份到预设CDN节点中,当所述CDN节点发生故障时,通过所述K8S集群按照预设规则从所述预设CDN节点中提取备份数据进行发生故障的所述CDN节点重置。A deployment module, configured to deploy the container image to a CDN node through the K8S cluster according to the deployment file, and at the same time back up the data in the backup storage to a preset CDN node, when the CDN node fails, The K8S cluster extracts the backup data from the preset CDN node according to preset rules to reset the faulty CDN node.
  7. 根据权利要求6所述CDN节点的自动编排装置,其特征在于,当扩展新的CDN节点,所述K8S集群根据所述新的CDN节点的类型调用所述容器镜像部署所述新的CDN节点;所述类别包括中心CDN节点、区域CDN节点或边缘CDN节点。According to the automatic orchestration device of the CDN node described in claim 6, it is characterized in that, when expanding a new CDN node, the K8S cluster invokes the container image to deploy the new CDN node according to the type of the new CDN node; The categories include central CDN nodes, regional CDN nodes or edge CDN nodes.
  8. 根据权利要求6所述CDN节点的自动编排装置,其特征在于,当所述CDN节点发生错误,所述K8S集群根据所述CDN节点的类型调用所述容器镜像重新部署所述CDN节点;所述类别包括中心CDN节点、区域CDN节点或边缘CDN节点。According to the automatic orchestration device of the CDN node according to claim 6, it is characterized in that, when an error occurs in the CDN node, the K8S cluster invokes the container image to redeploy the CDN node according to the type of the CDN node; Categories include central CDN nodes, regional CDN nodes, or edge CDN nodes.
  9. 根据权利要求6所述CDN节点的自动编排装置,其特征在于,所述容器镜像包括:Docker镜像。The device for automatically orchestrating CDN nodes according to claim 6, wherein the container image comprises: a Docker image.
  10. 根据权利要求6所述CDN节点的自动编排装置,其特征在于,所述应用服务包括:web应用服务器。The device for automatically orchestrating CDN nodes according to claim 6, wherein the application service comprises: a web application server.
PCT/CN2021/141410 2021-12-20 2021-12-25 Automatic arrangement method and apparatus for cdn nodes WO2023115591A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111564129.1A CN114327507B (en) 2021-12-20 2021-12-20 Automatic arranging method and device for CDN nodes
CN202111564129.1 2021-12-20

Publications (1)

Publication Number Publication Date
WO2023115591A1 true WO2023115591A1 (en) 2023-06-29

Family

ID=81052616

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/141410 WO2023115591A1 (en) 2021-12-20 2021-12-25 Automatic arrangement method and apparatus for cdn nodes

Country Status (2)

Country Link
CN (1) CN114327507B (en)
WO (1) WO2023115591A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246224A (en) * 2018-09-25 2019-01-18 麒麟合盛网络技术股份有限公司 The containerization dispositions method and device of CDN system
CN109800055A (en) * 2018-12-27 2019-05-24 北京航天智造科技发展有限公司 Container dispatches method of combination and system
CN111984366A (en) * 2020-07-24 2020-11-24 苏州浪潮智能科技有限公司 Method and system for deploying disaster recovery mechanism in containerization manner
US20210014113A1 (en) * 2020-09-25 2021-01-14 Intel Corporation Orchestration of meshes
CN112698992A (en) * 2021-03-23 2021-04-23 腾讯科技(深圳)有限公司 Disaster recovery management method and related device for cloud cluster
CN113296882A (en) * 2021-02-10 2021-08-24 阿里巴巴集团控股有限公司 Container arranging method, device, system and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023375B (en) * 2013-02-28 2017-06-23 株式会社理光 Network node finds method and apparatus
WO2017039579A1 (en) * 2015-08-28 2017-03-09 Hewlett Packard Enterprise Development Lp Recovering from an origination node failure during an asynchronous replication
CN109067890B (en) * 2018-08-20 2021-06-29 广东电网有限责任公司 CDN node edge computing system based on docker container
CN110460628A (en) * 2019-06-11 2019-11-15 国网浙江省电力有限公司宁波供电公司 Distributed mist calculates mirror image processing storage method
CN112087312B (en) * 2019-06-15 2023-02-03 华为云计算技术有限公司 Method, device and equipment for providing edge service
CN111682973B (en) * 2020-08-17 2020-11-13 烽火通信科技股份有限公司 Method and system for arranging edge cloud
CN112994937A (en) * 2021-02-10 2021-06-18 北京交通大学 Deployment and migration system of virtual CDN in intelligent fusion identification network
CN113259447B (en) * 2021-05-26 2022-12-20 中国电子信息产业集团有限公司第六研究所 Cloud platform deployment method and device, electronic equipment and storage medium
CN113377519B (en) * 2021-07-07 2022-03-22 江苏云工场信息技术有限公司 CDN-based content scheduling method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246224A (en) * 2018-09-25 2019-01-18 麒麟合盛网络技术股份有限公司 The containerization dispositions method and device of CDN system
CN109800055A (en) * 2018-12-27 2019-05-24 北京航天智造科技发展有限公司 Container dispatches method of combination and system
CN111984366A (en) * 2020-07-24 2020-11-24 苏州浪潮智能科技有限公司 Method and system for deploying disaster recovery mechanism in containerization manner
US20210014113A1 (en) * 2020-09-25 2021-01-14 Intel Corporation Orchestration of meshes
CN113296882A (en) * 2021-02-10 2021-08-24 阿里巴巴集团控股有限公司 Container arranging method, device, system and storage medium
CN112698992A (en) * 2021-03-23 2021-04-23 腾讯科技(深圳)有限公司 Disaster recovery management method and related device for cloud cluster

Also Published As

Publication number Publication date
CN114327507B (en) 2022-07-15
CN114327507A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN108965485B (en) Container resource management method and device and cloud platform
US20120311111A1 (en) Dynamic reconfiguration of cloud resources
CN112882790B (en) Cloud edge collaborative management method based on distributed cloud platform
CN107566165B (en) Method and system for discovering and deploying available resources of power cloud data center
CN106656630A (en) Electric marketing service application system, and construction method and platform thereof
WO2020248507A1 (en) Container cloud-based system resource monitoring method and related device
CN112583648B (en) Intelligent service fault processing method based on DNS
CN112698992B (en) Disaster recovery management method and related device for cloud cluster
CN104615606A (en) Hadoop distributed file system and management method thereof
CN113190378A (en) Edge cloud disaster recovery method based on distributed cloud platform
CN106452836B (en) main node setting method and device
CN113296882A (en) Container arranging method, device, system and storage medium
CN114116909A (en) Distributed cloud native database management method and system
KR20220141070A (en) Apparatus for container orchestration in geographically distributed multi cloud environment and method using the same
CN114301972A (en) Block chain link point hierarchical deployment method and system based on cloud edge cooperation
CN106972970A (en) A kind of method for avoiding oVirt cloud platform management node Single Point of Faliures
US11025688B1 (en) Automated streaming data platform
CN111866210A (en) Virtual IP balance distribution method, system, terminal and storage medium
CN114338670B (en) Edge cloud platform and network-connected traffic three-level cloud control platform with same
WO2023115591A1 (en) Automatic arrangement method and apparatus for cdn nodes
CN113760461A (en) Version upgrading method and computer readable storage medium
CN111459416B (en) Distributed storage-based thermal migration system and migration method thereof
CN112540827A (en) Load balancing system based on k8s platform and implementation method
CN111405072A (en) Hybrid cloud optimization method based on cloud manufacturer cost scheduling
CN107707398B (en) Method and device for managing physical host in cloud computing system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21968720

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE