Configuration file processing method, device, computer equipment and storage medium
By splitting and parsing code configuration files, combined with historical change frequency and configuration risk models, the problem of insufficient identification of unchanged configurations in code configuration file processing is solved, processing accuracy and maintenance efficiency are improved, and it is suitable for configuration file processing in smart cities. .
Patent Information
- Application Number
- CN202111531981.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-14
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-12-14
AI Technical Summary
Existing code configuration file processing methods fail to effectively identify and process a large number of unchanged configurations during classification processing, resulting in poor accuracy in code configuration file processing and increasing the difficulty of system maintenance.
By splitting and processing the combing strategy of the initial code configuration file, determine the classification dimension, parse the intermediate code configuration file, obtain the frequency of historical configuration changes, select configuration items with low change frequency, use the pre-trained configuration risk calculation model, and adjust the configuration items to Improve the accuracy of configuration files.
Effectively identify and process unchanged configurations in code configuration files, reduce system maintenance, improve the accuracy of code configuration file processing, avoid application errors, and are suitable for configuration file processing in smart cities.
Smart Images

Figure CN114201212B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a configuration file processing method, device, computer equipment and storage medium. Background Art
[0002] At present, with the rapid development of the Internet, application software is becoming more and more complex, and operation and maintenance are becoming more and more difficult. Code configuration files are the most important components of application software, which determine the business capabilities and technical availability of application software. For example, according to statistics, a credit card application has about 60,000 code configurations, including a large number of business configurations, switch configurations, etc., and the code configurations need to be sorted out to ensure the availability and maintainability of the application.
[0003] In the process of implementing this application, the applicant found that the prior art has the following technical problems: Most of the existing code configuration combing is to classify the code configuration according to specific dimensions, and then generate a unified format for the code configuration under each classification dimension to facilitate system personnel to maintain the application. However, the code configuration file of an application may contain a large number of unchanged configurations. If the code configuration is only classified without identifying and confirming a large number of unchanged configurations, the amount of code configuration files that system personnel need to maintain is still huge, and the accuracy of code configuration file processing is poor.
[0004] Therefore, it is necessary to provide a configuration file processing method that can improve the accuracy of code configuration file processing. Summary of the invention
[0005] In view of the above, it is necessary to propose a configuration file processing method, a configuration file processing device, a computer device and a storage medium, which can improve the accuracy of code configuration file processing.
[0006] A first aspect of an embodiment of the present application provides a configuration file processing method, the configuration file processing method comprising:
[0007] Splitting and processing the combing strategy corresponding to the initial code configuration file to obtain a plurality of category strategies, and determining the classification dimension of the initial code configuration file according to the category strategies;
[0008] Obtaining a target execution node corresponding to the category strategy, and calling the target execution node to classify and process the initial code configuration file according to the classification dimension to obtain an intermediate code configuration file;
[0009] Parsing the intermediate code configuration file to obtain an initial configuration item set;
[0010] Obtaining a historical configuration change frequency corresponding to each initial configuration item in the initial configuration item set, and selecting configuration items whose historical configuration change frequency is lower than a preset configuration change frequency threshold and belong to a target classification dimension to form a target configuration item set;
[0011] Selecting a first code configuration file corresponding to a preset number of first target configuration items in the target configuration item set, and calling a pre-trained configuration risk calculation model to process configuration update information corresponding to the first code configuration file to obtain a configuration risk value;
[0012] When the configuration risk value is lower than a preset risk threshold, the second code configuration file corresponding to the remaining second target configuration item in the target configuration item set is adjusted according to the configuration update information to obtain a target code configuration file.
[0013] Furthermore, in the configuration file processing method provided in the embodiment of the present application, the combing strategy corresponding to the splitting processing initial code configuration file is obtained to obtain several category strategies including:
[0014] Obtaining combing requirement information corresponding to the initial code configuration file;
[0015] Analyze the combing requirement information to obtain a number of items to be combed and a combing instruction corresponding to each of the items to be combed;
[0016] Combine the items to be combed and the combing instructions according to a preset data format to obtain a combing strategy corresponding to the initial code configuration file;
[0017] The combing strategy is split and processed according to the items to be combed, to obtain several category strategies.
[0018] Furthermore, in the configuration file processing method provided in the embodiment of the present application, determining the classification dimension of the initial code configuration file according to the category strategy includes:
[0019] Obtaining items to be sorted out in the category strategy;
[0020] Determine the mapping relationship between the preset items to be sorted and the classification dimensions;
[0021] The mapping relationship is traversed according to the items to be sorted out to obtain a classification dimension corresponding to each item to be sorted out.
[0022] Furthermore, in the configuration file processing method provided in the embodiment of the present application, obtaining the target execution node corresponding to the category policy includes:
[0023] Obtaining the number of the category strategies and establishing the number of initial execution nodes;
[0024] Determine initial configuration information of the initial execution node, and obtain an initial execution code at a preset position of the initial configuration information;
[0025] The target execution code corresponding to the category policy is obtained, and the initial execution code is replaced with the target execution code to obtain a target execution node.
[0026] Further, in the above configuration file processing method provided in the embodiment of the present application, the calling of the target execution node to classify and process the initial code configuration file according to the classification dimension to obtain the intermediate code configuration file includes:
[0027] Determine the target classification dimension corresponding to the target execution node;
[0028] Obtaining an initial sub-code configuration file under the target classification dimension;
[0029] Calling the target execution node to process the initial sub-code configuration file to obtain a target sub-code configuration file;
[0030] Combining several of the target sub-code configuration files to obtain an intermediate code configuration file.
[0031] Further, in the configuration file processing method provided in the embodiment of the present application, parsing the intermediate code configuration file to obtain the initial configuration item set includes:
[0032] Detecting whether the intermediate code configuration file contains preset keywords;
[0033] When the detection result is that the preset keyword exists in the intermediate code configuration file, determining an initial configuration item that has a mapping relationship with the preset keyword;
[0034] The initial configuration items are combined to obtain an initial configuration item set.
[0035] Furthermore, in the configuration file processing method provided in the embodiment of the present application, obtaining the historical configuration change frequency corresponding to each initial configuration item in the initial configuration item set includes:
[0036] Obtaining a configuration log corresponding to each initial configuration item in the initial configuration set;
[0037] Obtaining historical configuration information in the configuration log, wherein the historical configuration information includes the number of historical configurations and the historical configuration time;
[0038] A preset mathematical model is called to process the historical configuration times and the historical configuration time to obtain the historical configuration change frequency corresponding to the initial configuration item.
[0039] A second aspect of the embodiment of the present application further provides a configuration file processing device, the configuration file processing device comprising:
[0040] A strategy splitting module is used to split the combing strategy corresponding to the initial code configuration file to obtain a plurality of category strategies, and determine the classification dimension of the initial code configuration file according to the category strategies;
[0041] A node acquisition module, used to acquire a target execution node corresponding to the category strategy, and call the target execution node to classify and process the initial code configuration file according to the classification dimension to obtain an intermediate code configuration file;
[0042] A file parsing module, used to parse the intermediate code configuration file to obtain an initial configuration item set;
[0043] A frequency acquisition module, used to acquire the historical configuration change frequency corresponding to each initial configuration item in the initial configuration item set, and select configuration items whose historical configuration change frequency is lower than a preset configuration change frequency threshold and belong to the target classification dimension to form a target configuration item set;
[0044] A file selection module, used to select a first code configuration file corresponding to a preset number of first target configuration items in the target configuration item set, and call a pre-trained configuration risk calculation model to process configuration update information corresponding to the first code configuration file to obtain a configuration risk value;
[0045] The configuration adjustment module is used to adjust the second code configuration file corresponding to the remaining second target configuration item in the target configuration item set according to the configuration update information to obtain the target code configuration file when the configuration risk value is lower than a preset risk threshold.
[0046] A third aspect of an embodiment of the present application further provides a computer device, the computer device comprising a processor, the processor being configured to implement any one of the above configuration file processing methods when executing a computer program stored in a memory.
[0047] A fourth aspect of the embodiments of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, any one of the above-mentioned configuration file processing methods is implemented.
[0048] The above-mentioned configuration file processing method, configuration file processing device, computer equipment and computer-readable storage medium provided in the embodiments of the present application can identify and confirm the unchanged configuration in a large number of code configuration files according to the historical configuration change frequency corresponding to the initial configuration item, and process the unchanged configuration, which can reduce the amount of code configuration files that system personnel need to maintain, thereby improving the accuracy of code configuration file processing; in addition, the present application first selects the first code configuration file corresponding to the first target configuration item of the preset sorting for pilot configuration, and then calls the pre-trained configuration risk calculation model to process the first code configuration file to obtain the configuration risk value, and determines whether the code configuration file needs to be updated based on the configuration risk value, thereby avoiding the problem of application errors caused by directly updating a large number of code configuration files, and can improve the accuracy of configuration file processing. The present application can be applied to various functional modules of smart cities such as smart government affairs and smart transportation, such as the configuration file processing module of smart government affairs, etc., which can promote the rapid development of smart cities. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 This is a flowchart of the configuration file processing method provided in Example 1 of the present application.
[0050] Figure 2 It is a structural diagram of the configuration file processing device provided in Example 2 of the present application.
[0051] Figure 3 It is a structural diagram of the computer device provided in Example 3 of the present application.
[0052] The following specific implementation methods will further illustrate the present application in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0053] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0054] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0056] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0057] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0058] The configuration file processing method provided in the embodiment of the present invention is executed by a computer device, and accordingly, the configuration file processing apparatus runs in the computer device. Figure 1 : is a flowchart of the configuration file processing method provided in Example 1 of the present application. Figure 1 As shown, the configuration file processing method may include the following steps. According to different requirements, the order of the steps in the flowchart may be changed, and some steps may be omitted:
[0059] S11, splitting and processing the combing strategy corresponding to the initial code configuration file to obtain a plurality of category strategies, and determining the classification dimension of the initial code configuration file according to the category strategies.
[0060] In at least one embodiment of the present application, the initial code configuration file may be a file written by system personnel to interpret the application to ensure the normal operation of the application. The initial code configuration file contains codes corresponding to several configuration items, and the configuration items may include switch configuration items, business configuration items, technical configuration items, and environmental configuration items, etc., which are not limited here. For each of the configuration items, code information is set accordingly, and the initial code configuration file can be obtained by combining the code information. The initial code configuration file can be stored in a preset database. Considering the reliability and privacy of data storage, the preset database can be a target node on the blockchain. In one embodiment, there is a mapping relationship between the initial code configuration file and the application. The initial code configuration file corresponding to the application can be obtained by querying the mapping relationship, which is not limited here.
[0061] In one embodiment, the combing strategy is a pre-set control instruction for the initial code configuration file, and the combing strategy includes a plurality of category strategies, and the category strategy can be a control instruction for the code configuration file set for each of the classification dimensions. For example, for the "technology / business" classification dimension, the technical code configuration files can be uniformly processed according to a specific data format, and the business code configuration files need to be stored in a preset database.
[0062] Optionally, the splitting process may be performed by processing a combing strategy corresponding to the initial code configuration file to obtain several category strategies including:
[0063] Obtaining combing requirement information corresponding to the initial code configuration file;
[0064] Analyze the combing requirement information to obtain a number of items to be combed and a combing instruction corresponding to each of the items to be combed;
[0065] Combine the items to be combed and the combing instructions according to a preset data format to obtain a combing strategy corresponding to the initial code configuration file;
[0066] The combing strategy is split and processed according to the items to be combed, to obtain several category strategies.
[0067] The combing requirement information may be a control instruction pre-set by a system personnel according to the application corresponding to the initial code configuration file. The combing requirement information includes a number of items to be combed and combing instructions corresponding to each of the items to be combed. The combing instructions are used to comb and control the code configuration of the items to be combed to obtain a configuration file that meets the combing requirements. The preset data format is a format pre-set by a system personnel for combining the items to be combed and the combing instructions. For example, the preset data format may be [items to be combed, combing instructions], which is not limited here. In one embodiment, [items to be combed, combing instructions] may be used as a category policy, and a number of the category policies may constitute the combing policy.
[0068] In one embodiment, the classification dimensions may include: whether to use, switch / configuration, technology / business, public / private, change / unchanged, etc. Among them, the "whether to use" classification dimension refers to whether the configuration is used in the production process, the "switch / configuration" classification dimension refers to determining whether there is a switch configuration in the code configuration file by means of keywords or feature words, the "technology / business" classification dimension refers to whether the code configuration file belongs to the technology configuration or the business configuration, the "public / private" classification dimension refers to whether the code configuration file is applied to multiple systems or to a single system, and the "change / unchanged" classification dimension refers to whether the code configuration file has changed.
[0069] Optionally, determining the classification dimension of the initial code configuration file according to the category strategy includes:
[0070] Obtaining items to be sorted out in the category strategy;
[0071] Determine the mapping relationship between the preset items to be sorted and the classification dimensions;
[0072] The mapping relationship is traversed according to the items to be sorted out to obtain a classification dimension corresponding to each item to be sorted out.
[0073] Among them, the category strategy includes items to be sorted and sorting instructions. There is a mapping relationship between the items to be sorted and the classification dimensions. In one embodiment, there is a one-to-one mapping relationship between the items to be sorted and the classification dimensions. By querying the mapping relationship, the classification dimensions corresponding to the items to be sorted can be obtained.
[0074] S12, obtaining a target execution node corresponding to the category strategy, and calling the target execution node to classify and process the initial code configuration file according to the classification dimension to obtain an intermediate code configuration file.
[0075] In at least one embodiment of the present application, the target execution node refers to a program for executing various instructions in the category strategy, and the target execution node is called to process the initial code configuration file under each of the classification dimensions to obtain an intermediate code configuration file. The processing of the target execution node may include but is not limited to: format unification processing, code configuration file migration processing, etc.
[0076] Optionally, obtaining a target execution node corresponding to the category policy includes:
[0077] Obtaining the number of the category strategies and establishing the number of initial execution nodes;
[0078] Determine initial configuration information of the initial execution node, and obtain an initial execution code at a preset position of the initial configuration information;
[0079] The target execution code corresponding to the category policy is obtained, and the initial execution code is replaced with the target execution code to obtain a target execution node.
[0080] Wherein, a corresponding target execution node is established for each of the category policies, and the category policy is executed by the target execution node. The initial execution node is a node whose configuration information is initialized. By adjusting the initial configuration information to include the configuration information of the category policy, the target execution node can be obtained. In one embodiment, a preset position in the initial configuration information of the initial execution node is used to store the initial execution code of the execution node. By updating the initial execution code to the target execution code corresponding to the category policy, the configuration information of the node can be updated, thereby obtaining the target configuration node.
[0081] Optionally, the calling of the target execution node to classify and process the initial code configuration file according to the classification dimension to obtain the intermediate code configuration file includes:
[0082] Determine the target classification dimension corresponding to the target execution node;
[0083] Obtaining an initial sub-code configuration file under the target classification dimension;
[0084] Calling the target execution node to process the initial sub-code configuration file to obtain a target sub-code configuration file;
[0085] Combining several of the target sub-code configuration files to obtain an intermediate code configuration file.
[0086] Wherein, the initial sub-code configuration file refers to the code information under the target classification dimension. The acquisition of the initial sub-code configuration file under the target classification dimension is to classify each configuration item in the initial code configuration file according to the classification dimension to obtain the initial sub-code configuration file under each classification dimension. Wherein, each classification dimension has a corresponding classification rule, for example, the "whether to use" classification dimension refers to whether the configuration is used in the production process, and the classification process is performed by detecting whether the code configuration file of each configuration item is used in the production process; for another example, the "switch / configuration" classification dimension refers to determining whether there is a switch configuration in the code configuration file by means of keywords or feature words, and the classification process is performed by detecting whether there are keywords or feature words in the code configuration file of each configuration item, which will not be repeated here. The classification dimensions can be sorted, and the target sub-code configuration files can be combined in this order to obtain an intermediate code configuration file. In one embodiment, the sorting can be performed according to the attributes such as the importance of the classification dimension, and the importance of the classification dimension can be preset, which is not limited here.
[0087] S13, parsing the intermediate code configuration file to obtain an initial configuration item set.
[0088] In at least one embodiment of the present application, the intermediate code configuration file contains codes corresponding to several configuration items, and the configuration items may include switch configuration items, business configuration items, technical configuration items, and environment configuration items. For each of the configuration items, there is a corresponding preset keyword or preset feature word. By querying the preset keyword or the preset feature word, several initial configuration items can be obtained from the intermediate code configuration file, and several initial configuration items can be combined to obtain an initial configuration item set. Exemplarily, for the switch configuration item, the preset keyword may be "circuit", etc., and the preset feature word may be "on-off", "1-0", "yes-no", etc. The preset keyword and the preset feature word may be pre-set by the system personnel. In one embodiment, an example is given by determining the initial configuration item according to the preset keyword.
[0089] Optionally, parsing the intermediate code configuration file to obtain an initial configuration item set includes:
[0090] Detecting whether the intermediate code configuration file contains preset keywords;
[0091] When the detection result is that the preset keyword exists in the intermediate code configuration file, determining an initial configuration item that has a mapping relationship with the preset keyword;
[0092] The initial configuration items are combined to obtain an initial configuration item set.
[0093] There is a one-to-one mapping relationship between the preset keyword and the initial configuration item, and the initial configuration item corresponding to the preset keyword can be determined by querying the mapping relationship.
[0094] S14, obtaining a historical configuration change frequency corresponding to each initial configuration item in the initial configuration item set, and selecting configuration items whose historical configuration change frequency is lower than a preset configuration change frequency threshold and belong to a target classification dimension to form a target configuration item set.
[0095] In at least one embodiment of the present application, the preset configuration change frequency is a frequency pre-set by a system personnel for evaluating whether a configuration file remains unchanged for a long time. When the historical configuration change frequency is higher than the preset configuration change frequency, it is determined that the code configuration file corresponding to the initial configuration item does not belong to the type that remains unchanged for a long time; when the historical configuration change frequency is lower than the preset configuration change frequency, it is determined that the code configuration file corresponding to the initial configuration item belongs to the type that remains unchanged for a long time.
[0096] In one embodiment, for each initial configuration item, there is a configuration log, and by querying the content of the configuration log, the historical configuration information corresponding to the initial configuration item can be obtained, and the historical configuration information may include: historical configuration times, historical configuration time, historical configuration content, etc. The historical configuration change frequency corresponding to the initial configuration item can be obtained by obtaining a mathematical model corresponding to the historical configuration time and the historical configuration times.
[0097] Optionally, obtaining the historical configuration change frequency corresponding to each initial configuration item in the initial configuration item set includes:
[0098] Obtaining a configuration log corresponding to each initial configuration item in the initial configuration set;
[0099] Obtaining historical configuration information in the configuration log, wherein the historical configuration information includes the number of historical configurations and the historical configuration time;
[0100] A preset mathematical model is called to process the historical configuration times and the historical configuration time to obtain the historical configuration change frequency corresponding to the initial configuration item.
[0101] The preset mathematical model refers to a model preset by system personnel for calculating the historical configuration change frequency based on the historical configuration times and the historical configuration time. The historical configuration information can be obtained by querying specific keywords in the configuration log.
[0102] Optionally, the selecting the configuration items whose historical configuration change frequency is lower than a preset configuration change frequency threshold and belong to the target classification dimension to form a target configuration item set includes:
[0103] Obtaining a historical configuration change frequency corresponding to each initial configuration item in the initial configuration item set, and selecting configuration items whose historical configuration frequency is lower than a preset configuration change frequency threshold as an intermediate configuration item set;
[0104] Determine a classification dimension corresponding to each intermediate configuration item in the intermediate configuration item set;
[0105] Select configuration items belonging to the target classification dimension to form a target configuration item set.
[0106] Among them, when the historical configuration change frequency is lower than the preset configuration change frequency, it is determined that the code configuration file corresponding to the initial configuration item is of a long-term unchanged type. For configuration items that remain unchanged for a long time, it means that the configuration item may belong to a project with lower importance, or it means that the configuration item belongs to a project with higher importance but stable operation. The target classification dimension refers to the classification dimension pre-set by the system personnel to evaluate whether the configuration item is important. When the configuration item belongs to the target classification dimension, it means that the importance of the configuration item is low; when the configuration item does not belong to the target classification dimension, it means that the importance of the configuration item is high.
[0107] S15, selecting a first code configuration file corresponding to a preset number of first target configuration items in the target configuration item set, and calling a pre-trained configuration risk calculation model to process configuration update information corresponding to the first code configuration file to obtain a configuration risk value.
[0108] In at least one embodiment of the present application, the preset number is the number pre-set by system personnel for pilot configuration, and the method of selecting the first target configuration item from the target configuration item set may be random selection, or selection according to attributes such as the importance of the configuration item, which is not limited here. The first code configuration file refers to the code corresponding to the first target configuration item. The configuration update information refers to information for updating the first code configuration file, and the configuration update information may be offline processing of the first code configuration file, etc., which is not limited here. The configuration risk calculation model refers to a model for evaluating the risk value calculated by the configuration update information for the normal operation of the application. The input information of the configuration risk calculation model may be vectorized configuration update information, and the output information may be a configuration risk value. The training process of the model is a prior art and will not be described here.
[0109] Optionally, calling a pre-trained configuration risk calculation model to process the configuration update information corresponding to the first code configuration file to obtain the configuration risk value includes:
[0110] Obtaining configuration update information corresponding to the first code configuration information;
[0111] Vectorizing the configuration update information to obtain a configuration update vector;
[0112] The configuration update vector is input into the configuration risk calculation model to obtain a configuration risk value corresponding to the configuration update.
[0113] The present application first selects the first code configuration file corresponding to the preset first target configuration item for pilot configuration, then calls the pre-trained configuration risk calculation model to process the first code configuration file, obtains the configuration risk value, and determines whether the code configuration file needs to be updated based on the configuration risk value, thereby avoiding the problem of application errors caused by directly updating a large number of code configuration files, and can improve the accuracy of configuration file processing.
[0114] S16: When the configuration risk value is lower than a preset risk threshold, adjust the second code configuration file corresponding to the remaining second target configuration item in the target configuration item set according to the configuration update information to obtain a target code configuration file.
[0115] In at least one embodiment of the present application, when the configuration risk value is lower than the preset risk threshold, it means that when the target configuration item in the target configuration item set is processed according to the configuration update information, the normal operation of the application is not affected. At this time, the second code configuration file corresponding to the second target configuration item remaining in the target configuration item set can be adjusted according to the configuration update information to obtain the target code configuration file. When the configuration risk value is higher than the preset risk threshold, it means that when the target configuration item in the target configuration item set is processed according to the configuration update information, the normal operation of the application is affected. At this time, the second code configuration file corresponding to the second target configuration item remaining in the target configuration item set is not adjusted according to the configuration update information.
[0116] The above-mentioned configuration file processing method provided in the embodiment of the present application can identify and confirm the unchanged configuration in a large number of code configuration files according to the historical configuration change frequency corresponding to the initial configuration item, and process the unchanged configuration, which can reduce the amount of code configuration files that system personnel need to maintain, thereby improving the accuracy of code configuration file processing; in addition, the present application first selects the first code configuration file corresponding to the first target configuration item of the preset sorting for pilot configuration, and then calls the pre-trained configuration risk calculation model to process the first code configuration file to obtain the configuration risk value, and determines whether the code configuration file needs to be updated based on the configuration risk value, thereby avoiding the problem of application errors caused by directly updating a large number of code configuration files, and can improve the accuracy of configuration file processing. The present application can be applied to various functional modules of smart cities such as smart government affairs and smart transportation, such as the configuration file processing module of smart government affairs, etc., which can promote the rapid development of smart cities.
[0117] Figure 2 It is a structural diagram of the configuration file processing device provided in Example 2 of the present application.
[0118] In some embodiments, the configuration file processing device 20 may include a plurality of functional modules composed of computer program segments. The computer programs of the various program segments in the configuration file processing device 20 may be stored in a memory of a computer device and executed by at least one processor to perform (see Figure 1 Description) Functionality of profile processing.
[0119] In this embodiment, the configuration file processing device 20 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: a strategy splitting module 201, a node acquisition module 202, a file parsing module 203, a frequency acquisition module 204, a file selection module 205 and a configuration adjustment module 206. The module referred to in this application refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0120] The strategy splitting module 201 is used to split the combing strategy corresponding to the initial code configuration file to obtain a plurality of category strategies, and determine the classification dimension of the initial code configuration file according to the category strategies.
[0121] In at least one embodiment of the present application, the initial code configuration file may be a file written by system personnel to interpret the application to ensure the normal operation of the application. The initial code configuration file contains codes corresponding to several configuration items, and the configuration items may include switch configuration items, business configuration items, technical configuration items, and environmental configuration items, etc., which are not limited here. For each of the configuration items, code information is set accordingly, and the initial code configuration file can be obtained by combining the code information. The initial code configuration file can be stored in a preset database. Considering the reliability and privacy of data storage, the preset database can be a target node on the blockchain. In one embodiment, there is a mapping relationship between the initial code configuration file and the application. The initial code configuration file corresponding to the application can be obtained by querying the mapping relationship, which is not limited here.
[0122] In one embodiment, the combing strategy is a pre-set control instruction for the initial code configuration file, and the combing strategy includes a plurality of category strategies, and the category strategy can be a control instruction for the code configuration file set for each of the classification dimensions. For example, for the "technology / business" classification dimension, the technical code configuration files can be uniformly processed according to a specific data format, and the business code configuration files need to be stored in a preset database.
[0123] Optionally, the splitting process may be performed by processing a combing strategy corresponding to the initial code configuration file to obtain several category strategies including:
[0124] Obtaining combing requirement information corresponding to the initial code configuration file;
[0125] Analyze the combing requirement information to obtain a number of items to be combed and a combing instruction corresponding to each of the items to be combed;
[0126] Combine the items to be combed and the combing instructions according to a preset data format to obtain a combing strategy corresponding to the initial code configuration file;
[0127] The combing strategy is split and processed according to the items to be combed, to obtain several category strategies.
[0128] The combing requirement information may be a control instruction pre-set by a system personnel according to the application corresponding to the initial code configuration file. The combing requirement information includes a number of items to be combed and combing instructions corresponding to each of the items to be combed. The combing instructions are used to comb and control the code configuration of the items to be combed to obtain a configuration file that meets the combing requirements. The preset data format is a format pre-set by a system personnel for combining the items to be combed and the combing instructions. For example, the preset data format may be [items to be combed, combing instructions], which is not limited here. In one embodiment, [items to be combed, combing instructions] may be used as a category policy, and a number of the category policies may constitute the combing policy.
[0129] In one embodiment, the classification dimensions may include: whether to use, switch / configuration, technology / business, public / private, change / unchanged, etc. Among them, the "whether to use" classification dimension refers to whether the configuration is used in the production process, the "switch / configuration" classification dimension refers to determining whether there is a switch configuration in the code configuration file by means of keywords or feature words, the "technology / business" classification dimension refers to whether the code configuration file belongs to the technology configuration or the business configuration, the "public / private" classification dimension refers to whether the code configuration file is applied to multiple systems or to a single system, and the "change / unchanged" classification dimension refers to whether the code configuration file has changed.
[0130] Optionally, determining the classification dimension of the initial code configuration file according to the category strategy includes:
[0131] Obtaining items to be sorted out in the category strategy;
[0132] Determine the mapping relationship between the preset items to be sorted and the classification dimensions;
[0133] The mapping relationship is traversed according to the items to be sorted out to obtain a classification dimension corresponding to each item to be sorted out.
[0134] Among them, the category strategy includes items to be sorted and sorting instructions. There is a mapping relationship between the items to be sorted and the classification dimensions. In one embodiment, there is a one-to-one mapping relationship between the items to be sorted and the classification dimensions. By querying the mapping relationship, the classification dimensions corresponding to the items to be sorted can be obtained.
[0135] The node acquisition module 202 is used to acquire the target execution node corresponding to the category strategy, and call the target execution node to classify and process the initial code configuration file according to the classification dimension to obtain an intermediate code configuration file.
[0136] In at least one embodiment of the present application, the target execution node refers to a program for executing various instructions in the category strategy, and the target execution node is called to process the initial code configuration file under each of the classification dimensions to obtain an intermediate code configuration file. The processing of the target execution node may include but is not limited to: format unification processing, code configuration file migration processing, etc.
[0137] Optionally, obtaining a target execution node corresponding to the category policy includes:
[0138] Obtaining the number of the category strategies and establishing the number of initial execution nodes;
[0139] Determine initial configuration information of the initial execution node, and obtain an initial execution code at a preset position of the initial configuration information;
[0140] The target execution code corresponding to the category policy is obtained, and the initial execution code is replaced with the target execution code to obtain a target execution node.
[0141] Wherein, a corresponding target execution node is established for each of the category policies, and the category policy is executed by the target execution node. The initial execution node is a node whose configuration information is initialized. By adjusting the initial configuration information to include the configuration information of the category policy, the target execution node can be obtained. In one embodiment, a preset position in the initial configuration information of the initial execution node is used to store the initial execution code of the execution node. By updating the initial execution code to the target execution code corresponding to the category policy, the configuration information of the node can be updated, thereby obtaining the target configuration node.
[0142] Optionally, the calling of the target execution node to classify and process the initial code configuration file according to the classification dimension to obtain the intermediate code configuration file includes:
[0143] Determine the target classification dimension corresponding to the target execution node;
[0144] Obtaining an initial sub-code configuration file under the target classification dimension;
[0145] Calling the target execution node to process the initial sub-code configuration file to obtain a target sub-code configuration file;
[0146] Combining several of the target sub-code configuration files to obtain an intermediate code configuration file.
[0147] Among them, the initial sub-code configuration file refers to the code information under the target classification dimension. The acquisition of the initial sub-code configuration file under the target classification dimension is to classify the various configuration items in the initial code configuration file according to the classification dimension to obtain the initial sub-code configuration file under each classification dimension. Among them, each classification dimension has a corresponding classification rule. For example, the "whether to use" classification dimension refers to whether the configuration is used in the production process, and the classification process is performed by detecting whether the code configuration file of each configuration item is used in the production process; for example, the "switch / configuration" classification dimension refers to determining whether there is a switch configuration in the code configuration file by means of keywords or feature words, and the classification process is performed by detecting whether there are keywords or feature words in the code configuration file of each configuration item, which will not be repeated here. The classification dimensions can be sorted, and the target sub-code configuration files can be combined in this order to obtain an intermediate code configuration file. In one embodiment, the sorting can be performed according to the attributes such as the importance of the classification dimension, which is not limited here.
[0148] The file parsing module 203 is used to parse the intermediate code configuration file to obtain an initial configuration item set.
[0149] In at least one embodiment of the present application, the intermediate code configuration file contains codes corresponding to several configuration items, and the configuration items may include switch configuration items, business configuration items, technical configuration items, and environment configuration items, etc. For each of the configuration items, there is a corresponding preset keyword or preset feature word. By querying the preset keyword or the preset keyword, several initial configuration items can be obtained from the intermediate code configuration file, and several initial configuration items can be combined to obtain an initial configuration item set. Exemplarily, for the switch configuration item, the preset keyword may be "circuit", etc., and the preset feature word may be "on-off", "1-0", "yes-no", etc. The preset keyword and the preset feature word may be pre-set by the system personnel. In one embodiment, an example is given by determining the initial configuration item according to the preset keyword.
[0150] Optionally, parsing the intermediate code configuration file to obtain an initial configuration item set includes:
[0151] Detecting whether the intermediate code configuration file contains preset keywords;
[0152] When the detection result is that the preset keyword exists in the intermediate code configuration file, determining an initial configuration item that has a mapping relationship with the preset keyword;
[0153] The initial configuration items are combined to obtain an initial configuration item set.
[0154] There is a one-to-one mapping relationship between the preset keyword and the initial configuration item, and the initial configuration item corresponding to the preset keyword can be determined by querying the mapping relationship.
[0155] The frequency acquisition module 204 is used to acquire the historical configuration change frequency corresponding to each initial configuration item in the initial configuration item set, and select configuration items whose historical configuration change frequency is lower than a preset configuration change frequency threshold and belong to the target classification dimension to form a target configuration item set.
[0156] In at least one embodiment of the present application, the preset configuration change frequency is a frequency preset by system personnel for evaluating whether the configuration file remains unchanged for a long time. When the historical configuration change frequency is higher than the preset configuration change frequency, it is determined that the code configuration file corresponding to the initial configuration item does not belong to the type that remains unchanged for a long time; when the historical configuration change frequency is lower than the preset configuration change frequency, it is determined that the code configuration file corresponding to the initial configuration item belongs to the type that remains unchanged for a long time. In one embodiment, for each initial configuration item, there is a configuration log. By querying the content of the configuration log, the historical configuration information corresponding to the initial configuration item can be obtained. The historical configuration information may include: historical configuration times, historical configuration time, historical configuration content, etc. The historical configuration change frequency corresponding to the initial configuration item can be obtained by obtaining a mathematical model corresponding to the historical configuration time and the historical configuration times.
[0157] Optionally, obtaining the historical configuration change frequency corresponding to each initial configuration item in the initial configuration item set includes:
[0158] Obtaining a configuration log corresponding to each initial configuration item in the initial configuration set;
[0159] Obtaining historical configuration information in the configuration log, wherein the historical configuration information includes the number of historical configurations and the historical configuration time;
[0160] A preset mathematical model is called to process the historical configuration times and the historical configuration time to obtain the historical configuration change frequency corresponding to the initial configuration item.
[0161] The preset mathematical model refers to a model preset by system personnel for calculating the historical configuration change frequency based on the historical configuration times and the historical configuration time. The historical configuration information can be obtained by querying specific keywords in the configuration log.
[0162] Optionally, the selecting the configuration items whose historical configuration change frequency is lower than a preset configuration change frequency threshold and belong to the target classification dimension to form a target configuration item set includes:
[0163] Obtaining a historical configuration change frequency corresponding to each initial configuration item in the initial configuration item set, and selecting configuration items whose historical configuration frequency is lower than a preset configuration change frequency threshold as an intermediate configuration item set;
[0164] Determine a classification dimension corresponding to each intermediate configuration item in the intermediate configuration item set;
[0165] Select configuration items belonging to the target classification dimension to form a target configuration item set.
[0166] Among them, when the historical configuration change frequency is lower than the preset configuration change frequency, it is determined that the code configuration file corresponding to the initial configuration item is of a long-term unchanged type. For configuration items that remain unchanged for a long time, it means that the configuration item may belong to a project with lower importance, or it means that the configuration item belongs to a project with higher importance but stable operation. The target classification dimension refers to the classification dimension pre-set by the system personnel to evaluate whether the configuration item is important. When the configuration item belongs to the target classification dimension, it means that the importance of the configuration item is low; when the configuration item does not belong to the target classification dimension, it means that the importance of the configuration item is high.
[0167] The file selection module 205 is used to select a first code configuration file corresponding to a preset number of first target configuration items in the target configuration item set, and call a pre-trained configuration risk calculation model to process configuration update information corresponding to the first code configuration file to obtain a configuration risk value.
[0168] In at least one embodiment of the present application, the preset number is the number pre-set by system personnel for pilot configuration, and the method of selecting the first target configuration item from the target configuration item set may be random selection, or selection according to attributes such as the importance of the configuration item, which is not limited here. The first code configuration file refers to the code corresponding to the first target configuration item. The configuration update information refers to information for updating the first code configuration file, and the configuration update information may be offline processing of the first code configuration file, etc., which is not limited here. The configuration risk calculation model refers to a model for evaluating the risk value calculated by the configuration update information for the normal operation of the application. The input information of the configuration risk calculation model may be vectorized configuration update information, and the output information may be a configuration risk value. The training process of the model is a prior art and will not be described here.
[0169] Optionally, calling a pre-trained configuration risk calculation model to process the configuration update information corresponding to the first code configuration file to obtain the configuration risk value includes:
[0170] Obtaining configuration update information corresponding to the first code configuration information;
[0171] Vectorizing the configuration update information to obtain a configuration update vector;
[0172] The configuration update vector is input into the configuration risk calculation model to obtain a new configuration risk value corresponding to the configuration update.
[0173] The present application first selects the first code configuration file corresponding to the preset first target configuration item for pilot configuration, then calls the pre-trained configuration risk calculation model to process the first code configuration file, obtains the configuration risk value, and determines whether the code configuration file needs to be updated based on the configuration risk value, thereby avoiding the problem of application errors caused by directly updating a large number of code configuration files, and can improve the accuracy of configuration file processing.
[0174] The configuration adjustment module 206 is used for adjusting the second code configuration file corresponding to the remaining second target configuration item in the target configuration item set according to the configuration update information to obtain a target code configuration file when the configuration risk value is lower than a preset risk threshold.
[0175] In at least one embodiment of the present application, when the configuration risk value is lower than the preset risk threshold, it means that when the target configuration item in the target configuration item set is processed according to the configuration update information, the normal operation of the application is not affected. At this time, the second code configuration file corresponding to the second target configuration item remaining in the target configuration item set can be adjusted according to the configuration update information to obtain the target code configuration file. When the configuration risk value is higher than the preset risk threshold, it means that when the target configuration item in the target configuration item set is processed according to the configuration update information, the normal operation of the application is affected. At this time, the second code configuration file corresponding to the second target configuration item remaining in the target configuration item set is not adjusted according to the configuration update information.
[0176] See also Figure 3 FIG. 2 is a schematic diagram of the structure of a computer device provided in Embodiment 3 of the present application. In a preferred embodiment of the present application, the computer device 3 includes a memory 31 , at least one processor 32 , at least one communication bus 33 and a transceiver 34 .
[0177] Those skilled in the art should understand that Figure 3 The structure of the computer device shown does not constitute a limitation of the embodiments of the present application, and may be either a bus structure or a star structure. The computer device 3 may also include more or less other hardware or software than shown in the figure, or a different arrangement of components.
[0178] In some embodiments, the computer device 3 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The computer device 3 may also include client devices, which include but are not limited to any electronic product that can interact with the client through a keyboard, mouse, remote control, touchpad, or voice control device, such as a personal computer, tablet computer, smart phone, digital camera, etc.
[0179] It should be noted that the computer device 3 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.
[0180] In some embodiments, the memory 31 stores a computer program, and when the computer program is executed by the at least one processor 32, all or part of the steps in the configuration file processing method are implemented. The memory 31 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0181] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0182] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0183] In some embodiments, the at least one processor 32 is the control core (Control Unit) of the computer device 3, and uses various interfaces and lines to connect various components of the entire computer device 3, and executes various functions and processes data of the computer device 3 by running or executing programs or modules stored in the memory 31, and calling data stored in the memory 31. For example, when the at least one processor 32 executes the computer program stored in the memory, it implements all or part of the steps of the configuration file processing method described in the embodiment of the present application; or implements all or part of the functions of the configuration file processing device. The at least one processor 32 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same function or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips.
[0184] In some embodiments, the at least one communication bus 33 is configured to implement connection and communication between the memory 31 and the at least one processor 32, etc.
[0185] Although not shown, the computer device 3 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 32 through a power management device, so that the power management device can manage charging, discharging, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The computer device 3 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0186] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute part of the method described in each embodiment of the present application.
[0187] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0188] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0189] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0190] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "including" does not exclude other units or, and the singular does not exclude the plural. Multiple units or devices stated in the specification can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0191] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A configuration file processing method, characterized in that: The configuration file processing method comprises: Splitting and processing the combing strategy corresponding to the initial code configuration file to obtain a plurality of category strategies, and determining the classification dimension of the initial code configuration file according to the category strategies; Obtaining a target execution node corresponding to the category strategy, and calling the target execution node to classify and process the initial code configuration file according to the classification dimension to obtain an intermediate code configuration file; Parsing the intermediate code configuration file to obtain an initial configuration item set; Obtaining the historical configuration change frequency corresponding to each initial configuration item in the initial configuration item set, including: obtaining a configuration log corresponding to each initial configuration item in the initial configuration item set; obtaining historical configuration information in the configuration log, wherein the historical configuration information includes a historical configuration count and a historical configuration time; calling a preset mathematical model to process the historical configuration count and the historical configuration time to obtain the historical configuration change frequency corresponding to the initial configuration item; Selecting configuration items whose historical configuration change frequency is lower than a preset configuration change frequency threshold and belong to the target classification dimension to form a target configuration item set; Selecting a first code configuration file corresponding to a preset number of first target configuration items in the target configuration item set, and calling a pre-trained configuration risk calculation model to process configuration update information corresponding to the first code configuration file to obtain a configuration risk value; When the configuration risk value is lower than a preset risk threshold, the second code configuration file corresponding to the remaining second target configuration item in the target configuration item set is adjusted according to the configuration update information to obtain a target code configuration file.
2. The configuration file processing method according to claim 1, characterized in that: The split processing of the combing strategy corresponding to the initial code configuration file obtains several category strategies including: Obtaining combing requirement information corresponding to the initial code configuration file; Analyze the combing requirement information to obtain a number of items to be combed and a combing instruction corresponding to each of the items to be combed; Combine the items to be combed and the combing instructions according to a preset data format to obtain a combing strategy corresponding to the initial code configuration file; The combing strategy is split and processed according to the items to be combed, to obtain several category strategies.
3. The configuration file processing method according to claim 2, characterized in that: Determining the classification dimension of the initial code configuration file according to the category strategy includes: Obtaining items to be sorted out in the category strategy; Determine the mapping relationship between the preset items to be sorted and the classification dimensions; The mapping relationship is traversed according to the items to be sorted out to obtain a classification dimension corresponding to each item to be sorted out.
4. The configuration file processing method according to claim 1, characterized in that: The step of obtaining the target execution node corresponding to the category strategy includes: Obtaining the number of the category strategies and establishing the number of initial execution nodes; Determine initial configuration information of the initial execution node, and obtain an initial execution code at a preset position of the initial configuration information; The target execution code corresponding to the category policy is obtained, and the initial execution code is replaced with the target execution code to obtain a target execution node.
5. The configuration file processing method according to claim 1, characterized in that: The calling of the target execution node to classify and process the initial code configuration file according to the classification dimension to obtain the intermediate code configuration file comprises: Determine the target classification dimension corresponding to the target execution node; Obtaining an initial sub-code configuration file under the target classification dimension; Calling the target execution node to process the initial sub-code configuration file to obtain a target sub-code configuration file; Combining several of the target sub-code configuration files to obtain an intermediate code configuration file.
6. The configuration file processing method according to claim 1, characterized in that: The initial configuration item set obtained by parsing the intermediate code configuration file includes: Detecting whether the intermediate code configuration file contains preset keywords; When the detection result is that the preset keyword exists in the intermediate code configuration file, determining an initial configuration item that has a mapping relationship with the preset keyword; The initial configuration items are combined to obtain an initial configuration item set.
7. A configuration file processing device, characterized in that: The configuration file processing device comprises: A strategy splitting module is used to split the combing strategy corresponding to the initial code configuration file to obtain a plurality of category strategies, and determine the classification dimension of the initial code configuration file according to the category strategies; A node acquisition module, used to acquire a target execution node corresponding to the category strategy, and call the target execution node to classify and process the initial code configuration file according to the classification dimension to obtain an intermediate code configuration file; A file parsing module, used to parse the intermediate code configuration file to obtain an initial configuration item set; A frequency acquisition module is used to acquire the historical configuration change frequency corresponding to each initial configuration item in the initial configuration item set, including: acquiring a configuration log corresponding to each initial configuration item in the initial configuration item set; acquiring historical configuration information in the configuration log, wherein the historical configuration information includes the number of historical configurations and the historical configuration time; calling a preset mathematical model to process the number of historical configurations and the historical configuration time to obtain the historical configuration change frequency corresponding to the initial configuration item; The frequency acquisition module is further used to select configuration items whose historical configuration change frequency is lower than a preset configuration change frequency threshold and belong to the target classification dimension to form a target configuration item set; A file selection module, used to select a first code configuration file corresponding to a preset number of first target configuration items in the target configuration item set, and call a pre-trained configuration risk calculation model to process configuration update information corresponding to the first code configuration file to obtain a configuration risk value; The configuration adjustment module is used to adjust the second code configuration file corresponding to the remaining second target configuration item in the target configuration item set according to the configuration update information to obtain the target code configuration file when the configuration risk value is lower than a preset risk threshold.
8. A computer device, characterized in that: The computer device comprises a processor, and the processor is used to implement the configuration file processing method according to any one of claims 1 to 6 when executing a computer program stored in a memory.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the configuration file processing method according to any one of claims 1 to 6 is implemented.
