A CDN-based combined instruction issuing method and device

By using the combined command delivery method of the CDN system, a combined command set containing Docker, shell, and configuration file commands is generated and delivered. This solves the problem that the command delivery method in the CDN system cannot meet the needs of high-load tasks, and improves network resource utilization and system performance.

CN115842845BActive Publication Date: 2026-04-28CHINA TELECOM CLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA TELECOM CLOUD TECH CO LTD
Filing Date
2022-11-17
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

The existing CDN system command delivery method cannot meet the growing task demand, resulting in wasted network resources and system bottlenecks, affecting the operation of the configuration system and customer experience.

Method used

A CDN-based combined instruction delivery method is adopted. Task information is obtained through the agent parent node, a combined instruction set is generated and delivered to the agent child nodes, including Docker instructions, shell instructions and configuration file instructions, which reduces the number of instructions and improves network resource utilization.

Benefits of technology

This implementation of a combined instruction set delivery method reduces network resource consumption, improves the flexibility of agent instruction delivery and system performance, and avoids file update failures and task timeouts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115842845B_ABST
    Figure CN115842845B_ABST
Patent Text Reader

Abstract

The application provides a CDN-based combined instruction issuing method and device, and is committed to solving the network resource waste and system performance bottleneck problem caused by the existing instruction issuing mode. The application increases a type of file instruction to the original instruction set by the combined instruction issuing mode, and expands it into a set of file operation instructions. This mode can issue multiple instruction operations at a time without causing additional system overhead, thereby improving the utilization of network resources and the performance of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet data communication technology, specifically to a CDN-based method and apparatus for issuing combined instructions. Background Technology

[0002] With the continuous development of CDN systems, business volume and demand have increased accordingly. The volume of configuration system tasks being issued has grown exponentially, leading to a similar exponential increase in the volume of task-related commands. The original command issuance methods can no longer meet the ever-growing task demands. The original command issuance methods only supported shell and Docker commands. If operations such as hot reloading of configuration files were required, separate commands needed to be issued, interacting with downstream services. If such file operations were too frequent, it would result in a significant waste of network resources, creating system bottlenecks and affecting the overall operation of the configuration system. This could lead to file update failures, task timeouts, and other issues, impacting the customer experience. Summary of the Invention

[0003] To address the aforementioned technical problems, this invention proposes a CDN-based method and apparatus for issuing combined instructions. The technical solution adopted in this application is as follows:

[0004] A CDN-based method for issuing combined commands, which uses an agent to issue combined commands, includes the following steps:

[0005] Step 1: The task information acquisition module sends a task information acquisition request to the upstream task platform through the agent parent node, and obtains the task information of the task platform obtained from the task platform by the agent parent node, and transmits the task information of the task platform to the instruction set generation module for processing.

[0006] Step 2: The instruction set generation module parses the task information of the task platform, obtains the instruction parameters, file operations and the IP of the agent child node carried in the task information, configures the instruction parameters and file operations according to preset requirements to generate a combined instruction set, adds other necessary parameters to the combined instruction set and then transmits it to the instruction set distribution module.

[0007] Step 3: The instruction set distribution module distributes the combined instruction set to each agent sub-node according to the IP address of the distribution agent sub-node.

[0008] Furthermore, in step 2, the file operation is the configuration file command `conf`.

[0009] Furthermore, in step 2, the instruction parameter is a cmd instruction, including docker and shell instructions.

[0010] Furthermore, in step 2, the instruction parameters and file operations are combined into a whole, aggregated into a combined instruction set conf_cmd.

[0011] Furthermore, in step 2, the other necessary parameters include the type parameter and the time parameter.

[0012] A CDN-based combined instruction delivery device includes a task information acquisition module, an instruction set generation module, and an instruction set delivery module.

[0013] The task information acquisition module is used to send a task information acquisition request to the upstream task platform through the agent parent node, and to acquire the task information of the task platform obtained from the task platform by the agent parent node, and to transmit the task information of the task platform to the instruction set generation module for processing.

[0014] The instruction set generation module is used to parse the task information of the task platform, obtain the instruction parameters, file operations and the IP of the agent child node carried in the task information, configure the instruction parameters and file operations according to preset requirements to generate a combined instruction set, add other necessary parameters to the combined instruction set and then transmit it to the instruction set distribution module.

[0015] The instruction set distribution module is used to distribute the combined instruction set to each agent sub-node according to the distribution agent sub-node IP.

[0016] Furthermore, in the instruction set generation module, the file operation is the configuration file instruction `conf`.

[0017] Furthermore, the instruction parameters are cmd instructions, including docker instructions and shell instructions.

[0018] Furthermore, command parameters and file operations are combined into a single unit, aggregated into a combined command set conf_cmd.

[0019] Furthermore, the other necessary parameters include the type parameter and the time parameter.

[0020] The following technical effects can be achieved through the embodiments of this application: This application enables the agent to support the issuance of combined instruction sets, which can reduce the number of instructions issued and reduce the consumption of network resources; the expansion of the instruction set improves the flexibility of agent instruction issuance. Attached Figure Description

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

[0022] Figure 1 A flowchart illustrating the method for issuing combined instructions;

[0023] Figure 2 This is a schematic diagram of the combined instruction issuing device. Detailed Implementation

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

[0025] Figure 1 This is a flowchart illustrating the method for issuing combined commands. This method, based on an agent, issues combined commands and includes the following steps:

[0026] Step 1: The task information acquisition module sends a task information acquisition request to the upstream task platform through the agent parent node, and obtains the task information of the task platform obtained from the task platform by the agent parent node, and transmits the task information of the task platform to the instruction set generation module for processing.

[0027] Step 2: The instruction set generation module parses the task information of the task platform, obtains the instruction parameters, file operations and the IP of the agent child node carried in the task information, configures the instruction parameters and file operations according to preset requirements to generate a combined instruction set, adds other necessary parameters to the combined instruction set and then transmits it to the instruction set distribution module.

[0028] Step 3: The instruction set distribution module distributes the combined instruction set to each agent sub-node according to the IP address of the distribution agent sub-node.

[0029] In step 2, the file operation is the configuration file command `conf`.

[0030] The command parameters are cmd commands, including docker commands and shell commands.

[0031] Command parameters and file operations are combined into a single unit, aggregated into the combined command set conf_cmd.

[0032] Other necessary parameters include the type parameter and the time parameter.

[0033] In the above method, the combined instruction set is sent as a single task to the obtained agent sub-node IP. This method sends instruction operations and file operations to the specified node operation at once, improving task efficiency and saving network resources.

[0034] Figure 2 This is a schematic diagram of the combined instruction issuing device. The device includes a task information acquisition module, an instruction set generation module, and an instruction set issuing module.

[0035] The task information acquisition module is used to send a task information acquisition request to the upstream task platform through the agent parent node, and to acquire the task information of the task platform obtained from the task platform by the agent parent node, and to transmit the task information of the task platform to the instruction set generation module for processing.

[0036] The instruction set generation module is used to parse the task information of the task platform, obtain the instruction parameters, file operations and the IP of the agent child node carried in the task information, configure the instruction parameters and file operations according to preset requirements to generate a combined instruction set, add other necessary parameters to the combined instruction set and then transmit it to the instruction set distribution module.

[0037] The instruction set distribution module is used to distribute the combined instruction set to each agent sub-node according to the distribution agent sub-node IP.

[0038] In the instruction set generation module, the file operation is the configuration file instruction `conf`;

[0039] The command parameters are cmd commands, including docker commands and shell commands;

[0040] Command parameters and file operations are combined into a single unit, aggregated into the combined command set conf_cmd;

[0041] Other necessary parameters include the type parameter and the time parameter.

[0042] In summary, the combined command delivery method of this application expands the original command set (which only includes shell and Docker commands) into a set including file operation commands by adding a new category of file commands. This allows for the delivery of multiple command operations (including file operation commands) in a single operation without incurring additional system overhead, thereby improving network resource utilization and system performance. Currently, this combined command delivery method is applied in the CDN system agent service, which provides an important foundation for other task modules, such as the CDN system refresh platform (with a daily peak refresh rate of nearly 200 million records).

[0043] While specific embodiments of this application have been described above, those skilled in the art should understand that these are merely illustrative examples, and the scope of protection of this application is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of this application, but all such changes and modifications fall within the scope of protection of this application.

Claims

1. A CDN-based method for issuing combined commands, characterized in that, This method uses an agent to issue combined commands, and includes the following steps: Step 1: The task information acquisition module sends a task information acquisition request to the upstream task platform through the agent parent node, and obtains the task information of the task platform obtained from the task platform by the agent parent node, and transmits the task information of the task platform to the instruction set generation module for processing. Step 2: The instruction set generation module parses the task information of the task platform, obtains the instruction parameters, file operations and the IP of the agent child node carried in the task information, configures the instruction parameters and file operations according to preset requirements to generate a combined instruction set, adds other necessary parameters to the combined instruction set and then transmits it to the instruction set distribution module. Step 3: The instruction set distribution module distributes the combined instruction set to each agent sub-node according to the IP address of the distribution agent sub-node; In step 2, the file operation is the configuration file command `conf`; In step 2, the instruction parameter is a cmd instruction, including docker and shell instructions; This method distributes the combined instruction set as a single task to the acquired agent sub-node IP, and distributes instruction operations and file operations to the specified node at once for execution. In step 2, the command parameters and file operations are combined into a single unit, which is aggregated into a combined command set conf_cmd.

2. The method according to claim 1, characterized in that, In step 2, the other necessary parameters include the type parameter and the time parameter.

3. A CDN-based combined instruction delivery device, characterized in that, The distribution device includes a task information acquisition module, an instruction set generation module, and an instruction set distribution module; The task information acquisition module is used to send a task information acquisition request to the upstream task platform through the agent parent node, and to acquire the task information of the task platform obtained from the task platform by the agent parent node, and to transmit the task information of the task platform to the instruction set generation module for processing. The instruction set generation module is used to parse the task information of the task platform, obtain the instruction parameters, file operations and the IP of the agent child node carried in the task information, configure the instruction parameters and file operations according to preset requirements to generate a combined instruction set, add other necessary parameters to the combined instruction set and then transmit it to the instruction set distribution module. The instruction set distribution module is used to distribute the combined instruction set to each agent sub-node according to the distribution agent sub-node IP; In the instruction set generation module, the file operation is the configuration file instruction `conf`; The command parameters are cmd commands, including docker commands and shell commands; The device combines instruction parameters and file operations into a single unit, which is aggregated into a combined instruction set conf_cmd; The combined instruction set is sent as a task to the obtained agent sub-node IP, and the instruction operation and file operation are sent to the specified node at the same time for operation.

4. The apparatus according to claim 3, characterized in that, Other necessary parameters include the type parameter and the time parameter.

Citation Information

Patent Citations

  • CDN content management system

    CN113660178A

  • Aggregation method and device for CDN (Content Delivery Network) node task issuing and computer equipment

    CN114448893A