CN112667281B - Configuration information processing method and device - Google Patents

Configuration information processing method and device Download PDF

Info

Publication number
CN112667281B
CN112667281B CN202011613645.4A CN202011613645A CN112667281B CN 112667281 B CN112667281 B CN 112667281B CN 202011613645 A CN202011613645 A CN 202011613645A CN 112667281 B CN112667281 B CN 112667281B
Authority
CN
China
Prior art keywords
configuration
file
configuration file
data
real
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011613645.4A
Other languages
Chinese (zh)
Other versions
CN112667281A (en
Inventor
陆明
王友焱
张健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202011613645.4A priority Critical patent/CN112667281B/en
Publication of CN112667281A publication Critical patent/CN112667281A/en
Application granted granted Critical
Publication of CN112667281B publication Critical patent/CN112667281B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a configuration information processing method, a device and a storage medium. According to the method, baseline data are thinned into data of a configuration item level and stored in a baseline database for being used in consistency check, when the consistency check is carried out, a real-time configuration file is correspondingly converted into data of the configuration item level corresponding to the data of the configuration item level in the baseline database, and then a check result of whether the real-time configuration file is consistent with the baseline data or not is obtained by comparing the data of the configuration item level. Since the consistency check in this method is based on data comparison at the configuration item level, when the check result is inconsistent, an inconsistent exception configuration item may also be returned. Therefore, the automatic checking of the consistency of the configuration files is realized, and the automatic checking of the consistency of the batch configuration files can be further realized on the basis.

Description

Configuration information processing method and device
Technical Field
The present invention relates to the field of computer information processing, and in particular, to a method and apparatus for processing configuration information, and a computer readable storage medium.
Background
With the increasing degree of informatization, applications deployed by various enterprises are more and more complex, and in order to ensure high availability of these applications, most applications are deployed in a clustered environment, thereby generating application configuration files with various numbers and forms.
In a clustered environment, certain configuration options among application configuration files are kept completely consistent among nodes, otherwise, operation and maintenance risks are generated. Thus, whenever a configuration option changes, it must be ensured that the configuration option in all relevant configuration files on all relevant nodes is updated accordingly.
However, in practice, since the number of application configuration files is too large and the application configuration files are usually deployed in each node in numerous cluster environments, when updating configuration, omission or failure is likely to occur, which may cause inconsistent configuration options, so that some standardized operations of clustering cannot be successfully performed.
Therefore, how to perform a large-scale configuration file consistency check and locate inconsistent configuration files and abnormal configuration options is a technical problem of the operation and maintenance system.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a method, an apparatus, and a computer-readable storage medium for processing configuration information.
According to a first aspect of an embodiment of the present invention, a method for processing configuration information, the method includes: determining a target node and a configuration file according to request parameters carried in the configuration information processing request, and capturing the configuration file from the target node to obtain a real-time configuration file; converting the real-time profile into first data of at least one profile level; obtaining baseline data corresponding to the target node from a baseline database, wherein the baseline data comprises data of at least one configuration item level; and comparing the first data with the baseline data to obtain a consistency check result.
According to an embodiment of the present invention, after obtaining the consistency check result, the method further includes: the consistency check result is stored to a consistency check result database to generate reports and/or to generate alert mails.
According to an embodiment of the present invention, before converting the real-time configuration file into the first data of the plurality of configuration item levels, the method further includes: acquiring historical information content corresponding to the real-time configuration file from a pre-established baseline database; and comparing the real-time information content with the historical information content in the real-time configuration file, and if the real-time information content is consistent with the historical information content, storing the real-time information in the real-time configuration file and returning a consistency check result.
According to an embodiment of the present invention, the real-time information content and the history information content are summary information of the corresponding configuration file.
According to an embodiment of the present invention, before the baseline data corresponding to the target node is acquired from the baseline database, the method further includes: acquiring a node and a configuration file of the node; performing rule set conversion on the configuration file to obtain a rule set file; storing the rule set file to a baseline database; and storing the association relation between the nodes and the rule set file into a baseline database.
According to an embodiment of the present invention, obtaining a node and a configuration file of the node includes: acquiring a node and a first configuration file associated with the node; and acquiring a second configuration file associated with the first configuration file through the first configuration file.
According to an embodiment of the present invention, performing rule set conversion on a configuration file to obtain a rule set file includes: converting the configuration file into second data of a configuration item level; and taking the second data as a rule set to obtain a rule set file.
According to an embodiment of the present invention, after the rule set is converted into the rule set file, the method further includes: the information content of the configuration file is stored to a baseline database.
According to an embodiment of the present invention, after storing the association relationship between the node and the rule set file in the baseline database, the method further includes: and updating the association relation between the nodes and the rule set file.
According to a second aspect of the embodiment of the present invention, there is provided a configuration information processing apparatus including: the real-time configuration file grabbing module is used for determining a target node and a configuration file according to request parameters carried in the configuration information processing request, and grabbing the configuration file from the target node to obtain a real-time configuration file; the real-time configuration file conversion module is used for converting the real-time configuration file into first data of at least one configuration item level; a baseline data acquisition module, configured to acquire baseline data corresponding to a target node from a baseline database, where the baseline data includes data of at least one configuration item level; and the consistency check module is used for comparing the first data with the baseline data to obtain a consistency check result.
According to an embodiment of the present invention, the apparatus further includes: and the result storage module is used for storing the consistency check result into a consistency check result database so as to generate a report and/or generate an alarm mail.
According to an embodiment of the present invention, the apparatus further includes: the historical information content acquisition module is used for acquiring historical information content corresponding to the real-time configuration file from a pre-established baseline database; and the information content comparison module is used for comparing the real-time information content in the real-time configuration file with the historical information content, and if the real-time information content is consistent with the historical information content, storing the real-time information in the real-time configuration file and returning a consistency check result.
According to an embodiment of the present invention, the apparatus further includes: the configuration file acquisition module is used for acquiring the nodes and configuration files of the nodes; the rule set conversion module is used for carrying out rule set conversion on the configuration file to obtain a rule set file; the rule set file storage module is used for storing the rule set file into the baseline database; and the association relation storage module is used for storing the association relation between the nodes and the rule set file into the baseline database.
According to an embodiment of the present invention, the profile acquisition module includes: the first configuration file acquisition sub-module is used for acquiring the node and a first configuration file associated with the node; and the second configuration file acquisition sub-module is used for acquiring a second configuration file associated with the first configuration file through the first configuration file.
According to an embodiment of the present invention, the rule set conversion module includes: the second data conversion sub-module is used for converting the configuration file into second data of the configuration item level; and the rule set file acquisition sub-module is used for taking the second data as a rule set to obtain a rule set file.
According to an embodiment of the present invention, the apparatus further includes a profile storage module for storing information content of the profile in the baseline database.
According to an embodiment of the present invention, the device further includes a management relationship updating module, configured to update an association relationship between the node and the rule set file.
According to a third aspect of embodiments of the present invention, there is provided a computer storage medium comprising a set of computer executable instructions which, when executed, perform the method of dynamically controlling message caching of any one of the above.
The embodiment of the invention provides a configuration information processing method, a device and a computer readable storage medium, wherein the method comprises the steps of firstly determining a target node and a configuration file according to request parameters carried in a configuration information processing request, and grabbing the configuration file from the target node to obtain a real-time configuration file; and then converting the real-time configuration file into data of the configuration item level, comparing the data of the configuration item level with the data of the configuration item level in the baseline data corresponding to the target node obtained from the baseline database, and returning the relevant information of the real-time configuration file and the inconsistent configuration item if the data of the configuration item level and the data of the configuration item level are inconsistent.
According to the method, baseline data are thinned into data of a configuration item level and stored in a baseline database for being used in consistency check, when the consistency check is carried out, a real-time configuration file is correspondingly converted into data of the configuration item level corresponding to the data of the configuration item level in the baseline database, and then a check result of whether the real-time configuration file is consistent with the baseline data or not is obtained by comparing the data of the configuration item level. Since the consistency check in this method is based on data comparison at the configuration item level, when the check result is inconsistent, an inconsistent exception configuration item may also be returned. Therefore, the automatic checking of the consistency of the configuration files is realized, and the automatic checking of the consistency of the batch configuration files can be further realized on the basis.
It should be understood that the teachings of the present invention need not achieve all of the benefits set forth above, but rather that certain technical solutions may achieve certain technical effects, and that other embodiments of the present invention may also achieve benefits not set forth above.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
FIG. 1 is a schematic diagram of an implementation flow of a configuration information processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of an implementation of an application of the configuration information processing method according to an embodiment of the present invention;
Fig. 3 is a schematic diagram of a configuration information processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more comprehensible, the technical solutions according to the embodiments of the present invention will be clearly described in the following with reference to the accompanying drawings, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Fig. 1 shows an implementation flow of a configuration information processing method according to an embodiment of the present invention. Referring to fig. 1, the method includes: operation 110, determining a target node and a configuration file according to request parameters carried in the configuration information processing request, and capturing the configuration file from the target node to obtain a real-time configuration file; operation 120, converting the real-time profile into at least one configuration item level first data; operation 130, obtaining baseline data corresponding to the target node from a baseline database, wherein the baseline data includes data of at least one configuration item level; at operation 140, the first data and the baseline data are compared to obtain a consistency check result.
In operation 110, the configuration information processing request is mainly assigned to the information consistency check request, which may be triggered periodically by a periodic task or may be triggered actively by a command.
The request parameters carried in the configuration information processing request mainly comprise a file path, a file name, user connection information, an IP address of a target node, a domain name and the like.
The node refers to a server or a container for deploying an application or a service, and may be an independent node, or one of multiple nodes in a cluster environment. The target node is the node where the configuration file to be checked for consistency is located.
The configuration file may be a single file or a batch of files, and is mainly determined by the file path and the file name in the request parameters. The file path and the file name can be detailed specific values or matching values with regular expressions; when there is only a file path and no file name, it means that all files under the path are to be checked.
The user connection information in the request parameters, the IP address of the target node and the domain name are mainly used for connecting the target node, and after the connection between the user connection information and the target node is established through the information, the file path and the configuration file appointed by the file name can be grabbed from the target node through a network transmission command.
The configuration file specified in operation 110 is the configuration file to be subjected to the consistency check. However, in operation 110, a file is grabbed, and it is difficult to directly compare the file with the baseline data, so in the configuration information processing method of the embodiment of the present invention, after the configuration file to be subjected to consistency check is obtained, the configuration file is further converted by operation 120, and the configuration information in the configuration file is extracted and converted into data of multiple configuration item levels, that is, first data.
In operation 120, the first data of the configuration item level refers to structured data that is similar to a key value pair formed by each configuration item and its corresponding value extracted from the configuration information, and is stored in a file of a specific format, such as Json, in a certain order. The structured data in the form of key-value pairs may be objects (objects), records (structures), dictionaries (dictionary), hash tables (hash tables), keyed lists (KEYED LIST), or associative arrays (associative array), among others.
So far, the data to be tested for consistency is ready, and the next step is to obtain baseline data corresponding to the target node from the baseline database via operation 130. A baseline database broadly refers to a data storage system for storing baselines and may be any data storage system capable of meeting the needs of baseline data management, such as databases, network file systems, LDAP and configuration management systems, and the like. The baseline number stored in the baseline database is also data at the configuration item level. The data of the configuration item level obtained by converting the real-time configuration file is compared with the data of the configuration item level in the baseline data, so that the comparison operation can be simplified, and the comparison result is more accurate; and under the condition that the real-time configuration file is inconsistent with the baseline data, the inconsistent configuration item can be accurately positioned, so that a more accurate basis is provided for the next analysis of the reasons of the dyssynchrony or the subsequent processing of the information for repairing the dyssynchrony and the like.
After obtaining the configuration item level data converted from the real-time configuration file and the configuration item level data in the baseline data, the configuration item level data may be compared and a consistency check result may be obtained through operation 140.
When the real-time profile conversion results in the data of the configuration item level being consistent with the data of the configuration item level in the baseline data, the consistency check result may only include one conclusion, such as "the consistency check result is passed"; when the real-time configuration file is converted to obtain that the data of the configuration item level is consistent with the data of the configuration item level in the baseline data, the consistency result returns relevant information such as a target node, a file path, a file name and the like where the inconsistent configuration file is located, and inconsistent abnormal configuration item information is given.
Therefore, the configuration information processing method of the embodiment of the invention refines the baseline data into the data of the configuration item level and stores the data into the baseline database; when consistency checking is performed, a real-time configuration file to be subjected to consistency checking is obtained through operations 110 to 130, the real-time configuration file is also converted into configuration item level data corresponding to the configuration item level data in the baseline database, and then the configuration item level data is compared one by one through operation 140 to obtain a checking result of whether the real-time configuration file is consistent with the baseline data. Since the consistency check in this method is based on data comparison at the configuration item level, when the check result is inconsistent, an inconsistent exception configuration item may also be returned. Therefore, the automatic checking of the consistency of the configuration files is realized, and the automatic checking of the consistency of the batch configuration files can be further realized on the basis.
According to an embodiment of the present invention, after obtaining the consistency check result, the method further includes: the consistency check result is stored to a consistency check result database to generate reports and/or to generate alert mails.
In this embodiment, the final consistency check result is collected, and the consistency check result, including information such as conclusion information, a target node where the inconsistent configuration file is located, a file path, a file name, and an inconsistent abnormal configuration item, is stored in a consistency check result database, so as to integrate an external system, for example, prometheous, a warning system such as zabix, ITSM, and a message, mail, and notification system, so as to implement recording and notification of abnormal warning information, and enable related managers to receive the abnormal information at the first time.
According to an embodiment of the present invention, before converting the real-time configuration file into the first data of the plurality of configuration item levels, the method further includes: acquiring historical information content corresponding to the real-time configuration file from a pre-established baseline database; and comparing the real-time information content with the historical information content in the real-time configuration file, and if the real-time information content is consistent with the historical information content, storing the real-time information in the real-time configuration file and returning a consistency check result.
In this embodiment, not only the baseline data of the configuration item level but also the history information content corresponding to the configuration information in the real-time configuration file are stored in the baseline database, so as to determine whether the real-time configuration file has changed.
The history information content here does not refer to the history information content of a single file alone, but the history information of all configuration files that need to keep the configuration information consistent. For example, profile 1, profile 2, and profile 3 are profiles of the same Cluster (Cluster) at different nodes, and the configuration information in these profiles is to be kept completely consistent. Thus, profile 1, profile 2, or profile 3 corresponds to the same historical information content, and any changes in profile 1, profile 2, or profile 3 are noted in the historical information content.
Therefore, when the real-time information content and the history information content in the real-time configuration file are the same, the configuration information corresponding to the real-time configuration file is not changed, at this time, the real-time information content in the real-time configuration file can be stored, and a consistency check result representing that the configuration information is consistent or the configuration information is unchanged can be returned.
Therefore, when the real-time configuration file is not changed, subsequent operation is not needed, so that the computing resource and the computing power can be greatly saved, and the efficiency of consistency check is higher.
According to an embodiment of the present invention, the real-time information content and the history information content are summary information of the corresponding configuration file.
In this embodiment, the real-time information content and the history information content are summary information of the corresponding configuration file, and are not the entire content of the corresponding configuration file. The summary information is information obtained after a summary algorithm (for example, a Hash algorithm) is performed on the corresponding configuration file, and the same content can often obtain the same summary information, so that the summary information is often used to verify whether the content of the file changes.
In addition, the summary information is shorter than the file content, and the summary information is used for replacing the whole content of the corresponding configuration file, so that the data volume transmitted by the network can be greatly reduced, and the bandwidth is saved. Particularly, under the condition of global network interconnection, the network bandwidth consumption in a nationwide and cloudy environment can be greatly reduced, and the method can be better suitable for complex operations with high network delay requirements, such as large-scale data analysis, high-frequency analysis and the like.
According to an embodiment of the present invention, before the baseline data corresponding to the target node is acquired from the baseline database, the method further includes: acquiring a node and a configuration file of the node; performing rule set conversion on the configuration file to obtain a rule set file; storing the rule set file to a baseline database; and storing the association relation between the nodes and the rule set file into a baseline database.
In this embodiment, establishing the baseline data is further included before acquiring the baseline data corresponding to the target node from the baseline database. These baseline data are the basis for checking the consistency of the configuration information.
In general, configuration information consistency means that configuration information in certain configuration files is kept consistent within a certain range. This range may be bounded by groups, e.g., configuration information for each server making up a cluster in a database cluster system is to be kept consistent; with the application as a boundary, for example, relevant configuration information about user authentication in all systems using a certain user unified login application needs to be kept consistent; with some kind of label as a boundary, for example, all nodes deploying a certain component, the basic configuration information of the component is kept consistent, the configuration of the component is relatively standardized, and spans the boundary of clusters and applications, and is mainly delimited by the label identifying the component.
This determination of scope may be obtained from a Configuration Management Database (CMDB) that records cluster composition, application composition, and component deployment files, or may be obtained by an automated tool in a scanning system mode.
Once a range determination is needed that keeps the configuration information consistent, the nodes in the range and the configuration files on the nodes can be obtained as sources of baseline data.
In this embodiment, the obtained node and the configuration file of the node are the node and the configuration file on the node in the range where the configuration information needs to be kept consistent.
Rule sets are used to make data comparisons at the profile level, and are a collection of data at the profile level extracted from a profile. For data about the configuration item level, please refer to the related description above, and the description is omitted here.
Rule set translation refers to the process of extracting configuration item level data from a configuration file.
A rule set file is a file that stores rule sets using some particular format, such as Json.
The association relationship between the nodes and the rule set files refers to the corresponding relationship between each node and the rule set files in the range where the configuration information needs to be kept consistent, and usually one rule set file corresponds to at least one node.
And storing the association relation between the nodes and the rule set file into a baseline database, so that baseline data can be rapidly positioned according to the target node when the configuration information consistency check is carried out, and the baseline data corresponding to the target node can be obtained.
According to an embodiment of the present invention, obtaining a node and a configuration file of the node includes: acquiring a node and a first configuration file associated with the node; and acquiring a second configuration file associated with the first configuration file through the first configuration file.
Other configuration files are also typically referred to in the configuration file, and in this embodiment, configuration information in the referred other configuration files is also added to the baseline data.
When the baseline data is established, different processing modes are not needed according to the type of the relation between the first configuration file and the second configuration file.
For example, if the configuration file a includes the related files under the directory B, the configuration information of the related files under the configuration file a and the directory B is obtained as the baseline data.
The configuration file C contains configuration chapters such as C1, C2, and C3, where each configuration chapter is combined together due to the reason of installing a certain component, but actually is independent of each other, at this time, configuration information of C1, C2, and C3 is extracted, and multiple baselines corresponding to C1, C2, and C3 are established, respectively, and when performing configuration information consistency check, different combinations of baselines are selected according to configurations used in specific applications or services in each component, and then checked.
According to an embodiment of the present invention, performing rule set conversion on a configuration file to obtain a rule set file includes: converting the configuration file into second data of a configuration item level; and taking the second data as a rule set to obtain a rule set file.
In this embodiment, the conversion process of converting the rule set into the rule set file is the same as the file conversion process of extracting the data of the configuration item level from the real-time configuration file, and will not be described again here.
According to an embodiment of the present invention, after the rule set is converted into the rule set file, the method further includes: the information content of the configuration file is stored to a baseline database.
In this embodiment, in the process of establishing the baseline, the information content of the configuration file, which is also the source of the baseline data, is stored in the baseline database as the history information content corresponding to the configuration file. In this way, when the consistency check of the configuration information is performed, whether the configuration information is changed, whether the comparison of the configuration item level data is required or not and the like can be judged according to the information content.
According to an embodiment of the present invention, after storing the association relationship between the node and the rule set file in the baseline database, the method further includes: and updating the association relation between the nodes and the rule set file.
In most cases, the association between the node and the rule set file is not fixed, and in this embodiment, when the association between the node and the rule set file changes, the baseline database is updated accordingly.
Fig. 2 shows a basic flow of a configuration information consistency check by an application using the configuration information processing method according to the embodiment of the present invention. As shown in fig. 2, mainly includes:
Step 210, triggering a configuration information consistency check request (a configuration information processing request) through a timing scheduling task;
step 220, determining a target node and a configuration file through request parameters carried in a configuration information consistency check request, and capturing the configuration file from the target node to obtain a real-time configuration file;
Step 230, obtaining the historical information content corresponding to the real-time configuration file from a pre-established baseline database, wherein the historical information content is summary information of related configuration information, analyzing and comparing whether the real-time information content (also summary information) in the real-time configuration file is consistent with the historical information content through a summary algorithm, if so, storing the real-time information in the real-time configuration file and returning a consistency check result, and if not, continuing step 240;
step 240, converting the real-time configuration file into configuration item level data;
Step 250, obtaining baseline data corresponding to the target node from a baseline database through a rule engine, wherein the baseline data is also data of a configuration item level;
Step 260, comparing the configuration item level data obtained by converting the real-time configuration file with the baseline data to obtain a consistency check result, and storing the result in a consistency check result database before the result is returned.
The baseline database is used for storing baseline data, and the baseline data is acquired through the baseline data acquisition method, namely, nodes in a range which needs to keep the configuration information consistent and configuration files of the nodes which need to keep the configuration information consistent are extracted to form a rule set, and the rule set is stored in the baseline database in the form of a rule set file.
The base line database also stores the corresponding relation between the nodes and the rule set file and the historical information content of the configuration information stored in the form of abstract information, wherein the historical information content is derived from the base line data and the implementation configuration file.
It should be noted that the above application is only an exemplary illustration of the configuration information processing method according to the embodiment of the present invention, and is not limited to a specific implementation manner or a specific application scenario of the configuration information processing method according to the embodiment of the present invention. The implementer may apply to any applicable application scenario using any implementation in accordance with the specific implementation conditions.
Further, the embodiment of the invention also provides a configuration information processing device. As shown in fig. 3, the apparatus 30 includes: the real-time configuration file grabbing module 301 is configured to determine a target node and a configuration file according to a request parameter carried in the configuration information processing request, and grab the configuration file from the target node to obtain a real-time configuration file; a real-time profile conversion module 302, configured to convert a real-time profile into first data of at least one profile level; a baseline data obtaining module 303, configured to obtain baseline data corresponding to the target node from a baseline database, where the baseline data includes data of at least one configuration item level; a consistency check module 304, configured to compare the first data with the baseline data to obtain a consistency check result.
According to an embodiment of the present invention, the apparatus 30 further includes: and the result storage module is used for storing the consistency check result into a consistency check result database so as to generate a report and/or generate an alarm mail.
According to an embodiment of the present invention, the apparatus 30 further includes: the historical information content acquisition module is used for acquiring historical information content corresponding to the real-time configuration file from a pre-established baseline database; and the information content comparison module is used for comparing the real-time information content in the real-time configuration file with the historical information content, and if the real-time information content is consistent with the historical information content, storing the real-time information in the real-time configuration file and returning a consistency check result.
According to an embodiment of the present invention, the apparatus 30 further includes: the configuration file acquisition module is used for acquiring the nodes and configuration files of the nodes; the rule set conversion module is used for carrying out rule set conversion on the configuration file to obtain a rule set file; the rule set file storage module is used for storing the rule set file into the baseline database; and the association relation storage module is used for storing the association relation between the nodes and the rule set file into the baseline database.
According to an embodiment of the present invention, the profile acquisition module includes: the first configuration file acquisition sub-module is used for acquiring the node and a first configuration file associated with the node; and the second configuration file acquisition sub-module is used for acquiring a second configuration file associated with the first configuration file through the first configuration file.
According to an embodiment of the present invention, the rule set conversion module includes: the second data conversion sub-module is used for converting the configuration file into second data of the configuration item level; and the rule set file acquisition sub-module is used for taking the second data as a rule set to obtain a rule set file.
According to an embodiment of the present invention, the apparatus 30 further includes a profile storage module for storing information content of the profile in a baseline database.
According to an embodiment of the present invention, the apparatus 30 further includes a management relationship updating module, configured to update the association relationship between the node and the rule set file.
According to a third aspect of embodiments of the present invention, there is provided a computer storage medium comprising a set of computer executable instructions which, when executed, perform the method of dynamically controlling message caching of any one of the above.
It should be noted here that: the above description of the configuration information processing apparatus embodiment and the above description of the computer-readable storage medium embodiment are similar to those of the foregoing method embodiment, and have similar advantageous effects as those of the foregoing method embodiment, so that a detailed description thereof will be omitted. For technical details that have not been disclosed in the description of the embodiments of the configuration information processing apparatus and the description of the embodiments of the computer-readable storage medium according to the present invention, please refer to the description of the foregoing method embodiments of the present invention for economy of description, and thus will not be repeated.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of units is only one logical function division, and there may be other divisions in actual implementation, such as: multiple units or components may be combined or may be integrated into another device, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a removable storage medium, a Read Only Memory (ROM), a magnetic disk or an optical disk, or the like, which can store program codes.
Or the above-described integrated units of the invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage medium, a ROM, a magnetic disk or an optical disk, or the like, and can store program codes.
The foregoing is merely illustrative embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think about variations or substitutions within the technical scope of the present invention, and the invention should be covered. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (9)

1. A method of processing configuration information, the method comprising:
Determining a target node and a configuration file according to request parameters carried in a configuration information processing request, and capturing the configuration file from the target node to obtain a real-time configuration file;
Converting the real-time profile into first data of at least one profile level;
acquiring a node and a configuration file of the node;
performing rule set conversion on the configuration file to obtain a rule set file;
Storing the rule set file to a baseline database;
Storing the association relation between the nodes and the rule set file into a baseline database;
Obtaining baseline data corresponding to the target node from a baseline database, wherein the baseline data comprises data of at least one configuration item level;
And comparing the first data with the baseline data to obtain a consistency check result.
2. The method of claim 1, after the obtaining of the consistency check result, the method further comprising:
Storing the consistency check result in a consistency check result database to generate a report and/or generate an alarm mail.
3. The method of claim 1, prior to said converting said real-time profile into at least one profile level first data, said method further comprising:
Acquiring historical information content corresponding to the real-time configuration file from a pre-established baseline database;
comparing the real-time information content in the real-time configuration file with the historical information content, and if the real-time information content is consistent with the historical information content, storing the real-time information in the real-time configuration file and returning a consistency check result.
4. A method according to claim 3, wherein the real-time information content and the history information content are summary information of the respective configuration files.
5. The method of claim 1, the obtaining the node and the configuration file of the node comprising:
acquiring a node and a first configuration file associated with the node;
And acquiring a second configuration file associated with the first configuration file through the first configuration file.
6. The method of claim 1, the rule set converting the configuration file to a rule set file, comprising:
Converting the configuration file into second data of a configuration item level;
And taking the second data as a rule set to obtain a rule set file.
7. The method of claim 1, after said rule set converting the configuration file to a rule set file, the method further comprising:
And storing the information content of the configuration file into a baseline database.
8. The method of claim 1, after said storing the association of the node and the rule set file to a baseline database, the method further comprising:
and updating the association relation between the nodes and the rule set file.
9. A configuration information processing apparatus, the apparatus comprising:
The real-time configuration file grabbing module is used for determining a target node and a configuration file according to request parameters carried in the configuration information processing request, and grabbing the configuration file from the target node to obtain a real-time configuration file;
the real-time configuration file conversion module is used for converting the real-time configuration file into first data of at least one configuration item level;
The configuration file acquisition module is used for acquiring the nodes and configuration files of the nodes;
The rule set conversion module is used for carrying out rule set conversion on the configuration file to obtain a rule set file;
a rule set file storage module for storing the rule set file to a baseline database;
The association relation storage module is used for storing the association relation between the nodes and the rule set file into a baseline database;
A baseline data acquisition module, configured to acquire baseline data corresponding to the target node from a baseline database, where the baseline data includes data of at least one configuration item level;
and the consistency check module is used for comparing the first data with the baseline data to obtain a consistency check result.
CN202011613645.4A 2020-12-30 2020-12-30 Configuration information processing method and device Active CN112667281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011613645.4A CN112667281B (en) 2020-12-30 2020-12-30 Configuration information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011613645.4A CN112667281B (en) 2020-12-30 2020-12-30 Configuration information processing method and device

Publications (2)

Publication Number Publication Date
CN112667281A CN112667281A (en) 2021-04-16
CN112667281B true CN112667281B (en) 2024-04-23

Family

ID=75411237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011613645.4A Active CN112667281B (en) 2020-12-30 2020-12-30 Configuration information processing method and device

Country Status (1)

Country Link
CN (1) CN112667281B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106610853A (en) * 2015-10-26 2017-05-03 阿里巴巴集团控股有限公司 Application deployment method and device
CN109271210A (en) * 2017-07-17 2019-01-25 中兴通讯股份有限公司 A kind of check method and device of configuration file
CN109582485A (en) * 2018-10-26 2019-04-05 阿里巴巴集团控股有限公司 A kind of configuration change method for detecting abnormality and device
EP3470978A1 (en) * 2017-10-13 2019-04-17 Yokogawa Electric Corporation System and method for design data analyzing
US10719503B1 (en) * 2019-05-02 2020-07-21 Servicenow, Inc. Interface for supporting integration with cloud-based service providers
CN111651405A (en) * 2020-04-28 2020-09-11 中国平安财产保险股份有限公司 Configuration file management method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106610853A (en) * 2015-10-26 2017-05-03 阿里巴巴集团控股有限公司 Application deployment method and device
CN109271210A (en) * 2017-07-17 2019-01-25 中兴通讯股份有限公司 A kind of check method and device of configuration file
EP3470978A1 (en) * 2017-10-13 2019-04-17 Yokogawa Electric Corporation System and method for design data analyzing
CN109582485A (en) * 2018-10-26 2019-04-05 阿里巴巴集团控股有限公司 A kind of configuration change method for detecting abnormality and device
US10719503B1 (en) * 2019-05-02 2020-07-21 Servicenow, Inc. Interface for supporting integration with cloud-based service providers
CN111651405A (en) * 2020-04-28 2020-09-11 中国平安财产保险股份有限公司 Configuration file management method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112667281A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN109032824B (en) Database verification method, database verification device, computer equipment and storage medium
US10445069B2 (en) System and method for generating an application structure for an application in a computerized organization
CN108039959B (en) Data situation perception method, system and related device
US11816586B2 (en) Event identification through machine learning
US20110191394A1 (en) Method of processing log files in an information system, and log file processing system
CN110088744B (en) Database maintenance method and system
US20100088197A1 (en) Systems and methods for generating remote system inventory capable of differential update reports
CN110209518A (en) A kind of multi-data source daily record data, which is concentrated, collects storage method and device
US20220277033A1 (en) Computer-implemented methods, systems comprising computer-readable media, and electronic devices for narrative-structured representation of and intervention into a network computing environment
CN111078513A (en) Log processing method, device, equipment, storage medium and log alarm system
CN113190426B (en) Stability monitoring method for big data scoring system
CN112799785A (en) Virtual machine cluster migration method, device, equipment and medium
CN114942875A (en) Container cloud cluster node anomaly detection method and system
CN112667281B (en) Configuration information processing method and device
CN115658441B (en) Method, equipment and medium for monitoring abnormality of household service system based on log
CN115879014A (en) Data scanning method, device, equipment and storage medium
CN117194668A (en) Knowledge graph construction method, device, equipment and storage medium
Mijumbi et al. MAYOR: machine learning and analytics for automated operations and recovery
CN112583761B (en) Management method and device of security entity, computer equipment and storage medium
CN113609111A (en) Big data testing method and system
CN113434382A (en) Database performance monitoring method and device, electronic equipment and computer readable medium
CN112468443A (en) Method and system for realizing optimization decision through big data situation analysis
CN117389997B (en) Fault detection method and device for database installation flow, electronic equipment and medium
CN114979132B (en) Cluster component state detection method and device
CN113051749B (en) Aircraft reliability data asset metadata decomposition method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant