Configuration file repairing method and device for CDN (Content Delivery Network) system

By introducing the resource management system, global configuration management center, detection scheduling module and regional configuration agent into the CDN system, efficient repair of edge machine configuration files is achieved, solving the problem of poor communication quality across different networks and cross-regions, and improving repair efficiency. and system robustness, reducing bandwidth consumption and maintenance costs.

CN118677774AActive Publication Date: 2024-09-20CHINA TELECOM CLOUD TECH CO LTD

Patent Information

Application Number
CN202410864137.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-30
Publication Date
2024-09-20
Estimated Expiration
2044-06-30

AI Technical Summary

Technical Problem

In a large-scale cluster environment, the existing CDN system suffers from poor communication quality caused by different networks and cross-regions, resulting in a waste of bandwidth resources and high system pressure during the configuration file repair process, and is prone to resource bottlenecks.

Method used

Use the resource management system, global configuration management center, detection scheduling module, regional configuration agent and task system to complete the collection, comparison and repair of edge machine configuration files through the regional configuration agent, and use comprehensive consideration of the regional configuration agent health value and optimal The link scheduling strategy improves repair efficiency, eliminates fault areas, and achieves rapid capacity expansion and rapid repair of configuration files.

Benefits of technology

It improves the efficiency of configuration file repair, reduces bandwidth resource consumption, improves system robustness, enables rapid configuration file repair in different and cross-network environments, and reduces labor maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677774A
    Figure CN118677774A
Patent Text Reader

Abstract

The invention discloses a configuration file repairing method and device for a CDN (Content Delivery Network) system. The file repairing device comprises a resource management system, a global configuration management center, a detection scheduling module, a region configuration agent, an edge agent and a task system. Compared with an existing configuration file repairing method, the method has the advantages that the information of the edge machine configuration file is collected, compared and repaired through the region configuration agent, and the edge node detection task is distributed to the optimal region configuration agent by using a scheduling strategy comprehensively considering the health value of the region configuration agent and the optimal line; the repairing efficiency is improved; meanwhile, rapid capacity expansion and elimination of fault area configuration agents can be realized, and the robustness of the system is improved; and moreover, the quick repair of the configuration file in different-network, cross-network and other environments can be realized by deploying the regional configuration agent to the BGP machine room, deploying multiple instances in each region and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of configuration file repair devices for CDN systems, and in particular to a configuration file repair method and device for CDN systems. Background Art

[0002] CDN (Content Delivery Network) is a distributed network architecture that aims to improve user experience and network performance by distributing content to nodes closer to users. CDN service providers will install corresponding software on machines based on multiple factors such as node resource characteristics, business needs, and customer customization. The normal operation of different software depends on different configuration files. The accuracy of software configuration plays a vital role in the reliability of CDN services. With the continuous growth of Internet content data, the scale and complexity of CDN systems are also increasing. In actual production applications, the CDN support center usually makes unified planning and distribution of software configurations for machines across the entire network. Due to factors such as network fluctuations, machine failures, and external component abnormalities, it is often difficult to ensure that all machines in the entire network receive the correct configuration when distributing software configurations. At the same time, the generation of some configuration files depends on real-time data, such as machine service status, disk, and network card information. Once these data change, the corresponding configuration files need to be regenerated and distributed.

[0003] The existing technology mainly adopts the method of sending the file list and hash value to the machine at the same time, and the machine compares them. If they are inconsistent, they are reported to the central server. When there are a large number of configuration files to be repaired and a large number of machines need to be repaired, the file list and hash value need to be sent to the machine at a high frequency to ensure the accuracy and timeliness of the report. This process will cause a waste of bandwidth resources and put a lot of pressure on the file distribution system, which is prone to resource bottlenecks. At the same time, the existing method does not address the poor communication quality caused by different networks and cross-regions in a large-scale cluster environment. Summary of the invention

[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and invention title of this application to avoid blurring the purpose of this section specification abstract and invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0005] In view of the problems existing in the above-mentioned existing configuration file repair method and device for CDN system, the present invention is proposed.

[0006] Therefore, the object of the present invention is to provide a configuration file repair method and device for a CDN system, which is suitable for solving the problem of poor communication quality caused by different networks and cross-regions in a large-scale cluster environment that the existing methods do not address.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions: a configuration file repair device for a CDN system, the file repair device comprising:

[0008] Resource management system, global configuration management center, detection scheduling module, regional configuration agent, edge agent and task system;

[0009] Among them, the resource management system: mainly maintains server information, and conducts logical planning based on this. According to the characteristics of the servers, multiple servers are planned into a host group, and services are provided externally through load balancing;

[0010] Among them, the global configuration management center: maintains the commonly used software configurations in the CDN system, generates software configuration files based on machine information, planning information, customer information and software configuration templates on the planned host group, and sends the configuration files to the edge nodes.

[0011] As a preferred solution of a configuration file repair device for a CDN system described in the present invention, wherein: the detection and scheduling module includes selecting a suitable regional configuration agent to complete the collection of edge node data, the regional configuration agent includes a regional configuration agent deployed at a provincial or regional granularity, and based on the platform configuration file list and platform summary MD5 issued by the global configuration management center, the regional agent periodically detects the edge node configuration file information and compares it with the platform configuration file information to determine whether repair is required. If repair is required, the center interface is called to issue the correct configuration file to the edge node.

[0012] As a preferred solution of the configuration file repair device for a CDN system described in the present invention, the edge agent includes a configuration agent deployed on the edge node, which is responsible for the deployment of the configuration file, collects the configuration file information on the machine according to the platform configuration file list issued by the global configuration management center, and provides a corresponding query interface.

[0013] As a preferred solution of a configuration file repair device for a CDN system described in the present invention, the task system includes a configuration center, which can send the configuration file to a designated regional configuration agent or edge node via the task system. The global configuration management center regularly synchronizes basic data from the resource management system, including but not limited to: machine information, planning information, host group, LVS group, resource tag, customer information, customer ID and acceleration domain name, generates different software configuration files based on software configuration template rendering, sends the configuration file to the edge machine, and the platform configuration file list: the configuration center generates the expected platform configuration file list for each machine based on the historical sending records, and its content is the path of the configuration file, each configuration file is a line of record, all records are sorted according to the lexicographical order, and written into the platform configuration file list, and the machine information includes IP, memory capacity, hard disk capacity and rated service capacity.

[0014] As a preferred solution of the configuration file repair device for the CDN system described in the present invention, the configuration center periodically renders the software configuration template. When the machine information, planning information and customer information change resulting in a change in the software configuration file, the software configuration file is re-issued, and the platform configuration file list and platform summary MD5 are updated and sent to the regional configuration agent. When the edge node adds or deletes the configuration file, the platform configuration file list is updated and sent to the corresponding edge node.

[0015] As a preferred solution of a configuration file repair device for a CDN system described in the present invention, the platform configuration file list: the configuration center generates a platform configuration file list expected by each machine based on historical issuance records, and its content is the path of the configuration file and the MD5 of the configuration file content recorded when the configuration center issues the configuration, and the hash value obtained by hashing the configuration file, each configuration file is a row of record, and on the basis of the platform configuration file list, the MD5 of the content of each configuration file is appended and written into the platform configuration file list, the platform configuration file list MD5: the MD5 obtained by hashing the content of the platform configuration file list, the configuration center sends the detection task, the platform configuration file list and the list MD5 to the designated regional configuration agent according to the decision result of the detection scheduling module.

[0016] As a preferred solution of the configuration file repair device for a CDN system described in the present invention, the edge node receives information reported by the regional agent, generates corresponding repair tasks, and sends them to the edge machine detection and scheduling module. The configuration center in the detection and scheduling module periodically collects machine indicators of each regional configuration agent, and then uses the machine indicators to calculate the overall health value. The detection and scheduling module contains the health value and the optimal link.

[0017] As a preferred solution of the configuration file repair method for a CDN system described in the present invention, the health value calculation method is applicable to any of the above repair devices, and the health value calculation method includes the following steps:

[0018] S1. Smoothing and standardizing the collected indicators;

[0019] S2. Single indicator: Set the maximum and minimum thresholds. If the single indicator exceeds the maximum threshold, Q = 1; if it is less than the minimum threshold, Q = 0; if it is between the thresholds, the normalization algorithm is used for normalization;

[0020] S3. Health value algorithm:

[0021] s3.1. When any of the four indicators is greater than the maximum threshold, Q = 1

[0022] s3.2. When all four indicators are less than the minimum threshold, Q = 0

[0023] s3.3. Other cases: Q = (CPU + MEM + WID + RT80) / 4;

[0024] S4. Health value weight H = 1-Q weight∈[0,1]. When the health value is small, the assigned weight is larger.

[0025] As a preferred solution of the configuration file repair method for a CDN system described in the present invention, the optimal link allocation method includes the following steps:

[0026] S1. When the regional proxy center calls the edge node to collect data, the response time of the request is recorded. When the interface call fails, the response time is recorded as NaN;

[0027] S2. During initialization, a default empirical value s is set for the response time from the edge node to each regional configuration agent. As the center continuously assigns edge nodes to regional configuration agents for detection, the actual response time from the edge node to each regional configuration agent is obtained. The response time of each edge node to the regional configuration agent for the same recent period of time is recorded, and the average response time of the low (25%) response time is calculated. All average response times are normalized to obtain the R value.

[0028] S3. The response time weight W = 1-R value of the edge node to each regional configuration agent, weight ∈ [0,1]. When the average response time is about small, it means that the quality of the communication link from the regional agent to the edge node is better, and the assigned weight is larger;

[0029] S4. When the edge node to all regional configuration agents is NaN, the weights assigned to all regional agents are consistent.

[0030] As a preferred solution of the configuration file repair method for a CDN system described in the present invention, wherein: the configuration file repair method for a CDN system can remove regional agents with a health value of 1 and an average response time of NaN for each edge node, and the final scheduling decision is implemented by the following formula based on the comprehensive health value weight H and the response time weight W. The specific formula of the configuration file repair method for the CDN system is as follows:

[0031]

[0032] Among them, l is the number of proxy nodes configured in the area that has not been eliminated.

[0033] Beneficial effects of the present invention:

[0034] Compared with the existing configuration file repair method: the method of the present invention completes the collection, comparison and repair of edge machine configuration file information through the regional configuration agent, and uses a scheduling strategy that comprehensively considers the health value of the regional configuration agent and the optimal route to allocate the edge node detection task to the optimal regional configuration agent, thereby improving the efficiency of repair; at the same time, it can realize rapid capacity expansion and elimination of faulty regional configuration agents, thereby improving the robustness of the system; and can realize rapid repair of configuration files in heterogeneous network and cross-network environments by deploying the regional configuration agent to the BGP computer room and deploying multiple instances in various regions;

[0035] By comparing and summarizing MD5 inconsistencies and then comparing the configuration file list, the configuration file list is distributed to the edge node only when the configuration file list changes, saving the consumption of bandwidth resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0037] Figure 1 This is a main structure diagram of a configuration file repair device for a CDN system proposed by the present invention;

[0038] Figure 2 This is a resource management flow chart of a configuration file repair method for a CDN system proposed by the present invention. DETAILED DESCRIPTION

[0039] In order to make the above-mentioned objectives, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0040] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0041] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature structure or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it an embodiment that is mutually exclusive with other embodiments alone or selectively.

[0042] Secondly, the present invention is described in detail with reference to the schematic diagram. When describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional space dimensions of length, width and depth should be included.

[0043] Reference Figure 1-2 , as an embodiment of the present invention, provides a configuration file repair method and device for a CDN system, the file repair device comprising:

[0044] Resource management system, global configuration management center, detection scheduling module, regional configuration agent, edge agent and task system;

[0045] Among them, the resource management system: mainly maintains server information, and conducts logical planning based on this. According to the characteristics of the servers, multiple servers are planned into a host group, and services are provided externally through load balancing;

[0046] Among them, the global configuration management center: maintains the commonly used software configurations in the CDN system, generates software configuration files based on machine information, planning information, customer information and software configuration templates on the planned host group, and sends the configuration files to the edge nodes.

[0047] Furthermore, the detection and scheduling module includes selecting a suitable regional configuration agent to complete the collection of edge node data. The regional configuration agent includes a regional configuration agent deployed at a provincial or regional granularity. According to the platform configuration file list and platform summary MD5 issued by the global configuration management center, the regional agent periodically detects the edge node configuration file information and compares it with the platform configuration file information to determine whether it needs to be repaired. If repair is required, the central interface is called to send the correct configuration file to the edge node.

[0048] Furthermore, the edge agent includes a configuration agent deployed on the edge node, which is responsible for the deployment of configuration files, collects configuration file information on the machine according to the platform configuration file list issued by the global configuration management center, and provides a corresponding query interface.

[0049] Furthermore, the task system includes a configuration center, which can send the configuration file to the designated regional configuration agent or edge node through the task system. The global configuration management center periodically synchronizes basic data from the resource management system, including but not limited to: machine information, planning information, host group, LVS group, resource tag, customer information, customer ID and acceleration domain name, generates different software configuration files based on software configuration template rendering, sends the configuration file to the edge machine, and platform configuration file list: the configuration center generates the expected platform configuration file list for each machine based on historical issuance records, and its content is the path of the configuration file. Each configuration file is a line of record. All records are sorted according to the lexicographical order and written into the platform configuration file list. The machine information includes IP, memory capacity, hard disk capacity and rated service capacity.

[0050] Furthermore, the configuration center periodically renders the software configuration template. When changes in machine information, planning information, and customer information cause changes in the software configuration file, the software configuration file is reissued, and the platform configuration file list and platform summary MD5 are updated and sent to the regional configuration agent. When an edge node adds or deletes a configuration file, the platform configuration file list is updated and sent to the corresponding edge node.

[0051] Furthermore, the platform configuration file list: the configuration center generates a platform configuration file list expected for each machine based on historical issuance records, the content of which is the path of the configuration file and the MD5 of the configuration file content recorded when the configuration center issues the configuration, and the hash value obtained by hashing the configuration file. Each configuration file is a line of record. On the basis of the platform configuration file list, the MD5 of the content of each configuration file is appended and written into the platform configuration file list. The platform configuration file list MD5: the MD5 obtained by hashing the content of the platform configuration file list. The configuration center sends the detection task, the platform configuration file list and the list MD5 to the designated regional configuration agent based on the decision result of the detection scheduling module.

[0052] Furthermore, the edge node receives information reported by the regional agent, generates corresponding repair tasks, and sends them to the edge machine detection and scheduling module. The configuration center in the detection and scheduling module periodically collects machine indicators of each regional configuration agent, and then uses the machine indicators to calculate the overall health value. The detection and scheduling module contains the health value and the optimal link.

[0053] Further, the regional configuration agent includes the following steps:

[0054] [1] Receive the detection tasks, platform configuration file list, and platform summary MD5 issued by the configuration center and cache them. The cache content is mainly used to record the platform configuration file list, platform summary MD5, collection summary MD5, and exception times of each machine. The cache content is as follows:

[0055] a)1.1.1.1: [Platform configuration file list, platform summary MD5, collection summary MD5, number of exceptions]

[0056] b)1.1.1.2: [Platform configuration file list, platform summary MD5, collection summary MD5, number of exceptions]

[0057] [2] The regional agent periodically pulls the collection summary MD5 from the edge machine and compares it with the platform summary MD5. If there is any inconsistency, the number of exceptions is increased by 1. If the collection summary MD5 information is inconsistent with the platform summary MD5 within several cycles (such as three cycles), the edge collection configuration file list is obtained, the difference between the platform configuration file list and the collection configuration file list is compared, the inconsistent configuration file MD5 is found, and the interface of the configuration center is called to complete the delivery of the correct configuration file.

[0058] Furthermore, the health value calculation method is applicable to any one of the above repair devices, and the health value calculation method includes the following steps:

[0059] S1. Smoothing and standardizing the collected indicators;

[0060] S2. Single indicator: Set the maximum and minimum thresholds. If the single indicator exceeds the maximum threshold, Q = 1; if it is less than the minimum threshold, Q = 0; if it is between the thresholds, the normalization algorithm is used for normalization;

[0061] S3. Health value algorithm:

[0062] s3.1. When any of the four indicators is greater than the maximum threshold, Q = 1

[0063] s3.2. When all four indicators are less than the minimum threshold, Q = 0

[0064] s3.3. Other cases: Q = (CPU + MEM + WID + RT80) / 4;

[0065] S4. Health value weight H = 1-Q weight ∈ [0,1], when the health value is small, the assigned weight is larger;

[0066] Among them, the configuration center regularly collects the main indicators of the machines of the configuration agents in each region as follows:

[0067]

[0068] Further, the optimal link allocation method comprises the following steps:

[0069] S1. When the regional proxy center calls the edge node to collect data, the response time of the request is recorded. When the interface call fails, the response time is recorded as NaN;

[0070] S2. During initialization, a default empirical value s is set for the response time from the edge node to each regional configuration agent. As the center continuously assigns edge nodes to regional configuration agents for detection, the actual response time from the edge node to each regional configuration agent is obtained. The response time of each edge node to the regional configuration agent for the same recent period of time is recorded, and the average response time of the low (25%) response time is calculated. All average response times are normalized to obtain the R value.

[0071] S3. The response time weight W = 1-R value of the edge node to each regional configuration agent, weight ∈ [0,1]. When the average response time is about small, it means that the quality of the communication link from the regional agent to the edge node is better, and the assigned weight is larger;

[0072] S4. When the edge node to all regional configuration agents is NaN, the weights assigned to all regional agents are consistent.

[0073] Furthermore, the configuration file repair method for the CDN system can remove regional agents with a health value of 1 and an average response time of NaN for each edge node, and the final scheduling decision based on the comprehensive health value weight H and the response time weight W is implemented by the following formula. The specific formula of the configuration file repair method for the CDN system is as follows:

[0074]

[0075] Among them, l is the number of proxy nodes configured in the area that has not been eliminated.

[0076] Specific working principle:

[0077] Basic data is synchronized regularly from the resource management system, including but not limited to: machine information (including IP, memory capacity, hard disk capacity, rated service capacity, etc.), planning information (host group, LVS group, resource tag, etc.), customer information (customer ID, acceleration domain name, etc.), and different software configuration files are generated based on the software configuration template rendering, and the configuration files are sent to the edge machine.

[0078] Platform configuration file list: The configuration center generates the platform configuration file list expected by each machine based on the historical distribution records. The content is the path of the configuration file. Each configuration file is a line of record. All records are sorted in lexicographic order and written into the platform configuration file list. For example:

[0079] #Configuration File

[0080] / dync_acc_ccs / conf / ccs.yaml

[0081] / etc / cluster_conf / accid.conf

[0082] / etc / cluster_conf / area.conf

[0083] Platform configuration file list: The configuration center generates the expected platform configuration file list for each machine based on the historical distribution records. The content is the path of the configuration file and the MD5 of the configuration file content recorded when the configuration center distributes the configuration (the hash value obtained by hashing the configuration file). Each configuration file is a line of record. On the basis of the platform configuration file list, the MD5 of each configuration file content is appended and written into the platform configuration file list. For example:

[0084] #Configuration file platform configuration file MD5

[0085] / dync_acc_ccs / conf / ccs.yaml d5f3d625fcc7a154e4ab24fa2184b8f1

[0086] / etc / cluster_conf / accid.conf 3b67dff001c8fcbfdb1c923c43fe6a47

[0087] / etc / cluster_conf / area.conf 74940f465e3796eae7d38e9e1f507113

[0088] Platform configuration file list MD5: MD5 obtained by performing a hash operation on the content of the platform configuration file list;

[0089] The configuration center sends the detection task, platform configuration file list and list MD5 to the designated regional configuration agent based on the decision result of the detection scheduling module;

[0090] The configuration center renders the software configuration template regularly. When the machine information, planning information, and customer information change and the software configuration file changes, the software configuration file is reissued, and the platform configuration file list and platform summary MD5 are updated and sent to the regional configuration agent. When the edge node adds or deletes the configuration file, the platform configuration file list is updated and sent to the corresponding edge node. The main process includes:

[0091] The global configuration management center generates a list of platform configuration files and a platform summary MD5 based on the configuration distribution history, distributes them to the regional configuration agents, and distributes the platform configuration file list to the edge nodes; the edge nodes generate a list of collection configuration files and a collection summary MD5 based on the platform configuration file list, and provide relevant query interfaces for the regional configuration agents to call; the detection scheduling module assigns edge node detection tasks to the optimal regional configuration agent based on the health status of the regional configuration agent node and historical detection conditions; the regional configuration agent obtains the collection summary MD5 of the edge node and compares it with the platform summary MD5. If there is any inconsistency, the collection configuration file list is obtained and compared with the platform configuration file list. For inconsistent configuration files, the global configuration management center interface is called to complete the configuration file repair.

[0092] Specifically, the purposes of the present invention include:

[0093] Improve the reliability of CDN node services: The method of the present invention can quickly and efficiently repair the software configuration files of the managed machines in the entire network. When a large number of new edge nodes are put on the shelves, rapid expansion can be achieved by deploying new regional configuration agents. The regional configuration agent can be deployed to the BGP computer room, and multiple instances can be deployed in various regions to achieve rapid repair of configuration files in different network and cross-network environments.

[0094] Reducing the manpower maintenance cost of the CDN system: The method of the present invention can adaptively eliminate faulty regional configuration agents and achieve optimal line selection without investing a lot of manpower costs for maintenance;

[0095] Save network resource overhead: Use the method of comparing and summarizing MD5 inconsistencies and then comparing the configuration file list. Only when the configuration file list changes, the configuration file list is distributed to the edge node.

[0096] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A configuration file repair device for a CDN system, It is characterized in that The file repair device comprises: Resource management system, global configuration management center, detection scheduling module, regional configuration agent, edge agent and task system; Among them, the resource management system: mainly maintains server information, and conducts logical planning based on this. According to the characteristics of the servers, multiple servers are planned into a host group, and services are provided externally through load balancing; Among them, the global configuration management center: maintains the commonly used software configurations in the CDN system, generates software configuration files based on machine information, planning information, customer information and software configuration templates on the planned host group, and sends the configuration files to the edge nodes.

2. A configuration file repairing device for a CDN system according to claim 1, Features: The detection and scheduling module includes selecting a suitable regional configuration agent to complete the collection of edge node data. The regional configuration agent includes a regional configuration agent deployed at the provincial or regional granularity. According to the platform configuration file list and platform summary MD5 issued by the global configuration management center, the regional agent regularly detects the edge node configuration file information and compares it with the platform configuration file information to determine whether it needs to be repaired. If repair is required, the central interface is called to send the correct configuration file to the edge node.

3. A configuration file repairing device for a CDN system according to claim 1, Features: The edge agent includes a configuration agent deployed on the edge node, which is responsible for the deployment of configuration files, collects configuration file information on the machine according to the platform configuration file list issued by the global configuration management center, and provides a corresponding query interface.

4. A configuration file repairing device for a CDN system according to claim 1, Features: The task system includes a configuration center, which can send configuration files to designated regional configuration agents or edge nodes through the task system. The global configuration management center synchronizes basic data from the resource management system at regular intervals, including but not limited to: machine information, planning information, host groups, LVS groups, resource tags, customer information, customer IDs and acceleration domain names, generates different software configuration files based on software configuration template rendering, sends the configuration files to edge machines, and platform configuration file list: the configuration center generates a list of platform configuration files expected for each machine based on historical sending records, and its content is the path of the configuration file. Each configuration file is a line of record, all records are sorted according to the lexicographical order, and written into the platform configuration file list. The machine information includes IP, memory capacity, hard disk capacity and rated service capacity.

5. A configuration file repairing device for a CDN system according to claim 1, Features: The configuration center periodically renders the software configuration template. When the machine information, planning information and customer information change, resulting in a change in the software configuration file, the software configuration file is reissued, and the platform configuration file list and platform summary MD5 are updated and sent to the regional configuration agent. When the edge node adds or deletes the configuration file, the platform configuration file list is updated and sent to the corresponding edge node.

6. A configuration file repairing device for a CDN system according to claim 5, Features: The platform configuration file list: the configuration center generates the platform configuration file list expected by each machine based on the historical issuance records, and the content thereof is the path of the configuration file and the MD5 of the configuration file content recorded when the configuration center issues the configuration, and the hash value obtained by hashing the configuration file. Each configuration file is a line of record. On the basis of the platform configuration file list, the MD5 of the content of each configuration file is appended and written into the platform configuration file list. The platform configuration file list MD5: the MD5 obtained by hashing the content of the platform configuration file list. The configuration center issues the detection task, the platform configuration file list and the list MD5 to the designated regional configuration agent based on the decision result of the detection scheduling module.

7. A configuration file repairing device for a CDN system according to claim 1, Features: The edge node receives the information reported by the regional agent, generates corresponding repair tasks, and sends them to the edge machine detection and scheduling module. The configuration center in the detection and scheduling module regularly collects machine indicators of each regional configuration agent, and then uses the machine indicators to calculate the overall health value. The detection and scheduling module contains the health value and the optimal link.

8. A configuration file repair method for a CDN system, It is characterized in that The health value calculation method is applicable to any one of the repair devices in claims 1-7 above, and the health value calculation method comprises the following steps: S1. Smoothing and standardizing the collected indicators; S2. Single indicator: Set the maximum and minimum thresholds. If the single indicator exceeds the maximum threshold, Q = 1; if it is less than the minimum threshold, Q = 0; if it is between the thresholds, the normalization algorithm is used for normalization; S3. Health value algorithm: s3.

1. When any of the four indicators is greater than the maximum threshold, Q = 1 s3.

2. When all four indicators are less than the minimum threshold, Q = 0 s3.

3. Other cases: Q = (CPU + MEM + WID + RT80) / 4; S4. Health value weight H = 1-Q weight∈[0,1]. When the health value is small, the assigned weight is larger.

9. A configuration file repair method for a CDN system according to claim 8, Features: The optimal link allocation method comprises the following steps: S1. When the regional proxy center calls the edge node to collect data, the response time of the request is recorded. When the interface call fails, the response time is recorded as NaN; S2. During initialization, a default empirical value s is set for the response time from the edge node to each regional configuration agent. As the center continuously assigns edge nodes to regional configuration agents for detection, the actual response time from the edge node to each regional configuration agent is obtained. The response time of each edge node to the regional configuration agent for the same recent period of time is recorded, and the average response time of the low (25%) response time is calculated. All average response times are normalized to obtain the R value. S3. The response time weight W = 1-R value of the edge node to each regional configuration agent, weight ∈ [0,1]. When the average response time is about small, it means that the quality of the communication link from the regional agent to the edge node is better, and the assigned weight is larger; S4. When the edge node to all regional configuration agents is NaN, the weights assigned to all regional agents are consistent.

10. A configuration file repair method for a CDN system according to claim 9, It is characterized in that The configuration file repair method for the CDN system can remove regional agents with a health value of 1 and an average response time of NaN for each edge node, and the final scheduling decision is implemented by the following formula based on the comprehensive health value weight H and the response time weight W. The specific formula of the configuration file repair method for the CDN system is as follows: Among them, l is the number of proxy nodes configured in the area that has not been eliminated.

Citation Information

Patent Citations

  • Dynamic strategy generation method and device, equipment and storage medium

    CN112995683A

  • Method and system for distributing large files in large-scale machine cluster

    CN115733834A

  • Regional multi-line dispatching system based on cloud architecture and train thereof

    CN115837928A

  • System and method for issuing PCDN resource configuration

    CN117834431A

Cited By

  • Domain name configuration information consistency processing method and device, equipment and medium

    CN119766779A