CN112765188B - Configuration information processing method, configuration management system, electronic device and storage medium - Google Patents

Configuration information processing method, configuration management system, electronic device and storage medium Download PDF

Info

Publication number
CN112765188B
CN112765188B CN202011641748.1A CN202011641748A CN112765188B CN 112765188 B CN112765188 B CN 112765188B CN 202011641748 A CN202011641748 A CN 202011641748A CN 112765188 B CN112765188 B CN 112765188B
Authority
CN
China
Prior art keywords
configuration information
line
information
configuration
online
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
CN202011641748.1A
Other languages
Chinese (zh)
Other versions
CN112765188A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202011641748.1A priority Critical patent/CN112765188B/en
Publication of CN112765188A publication Critical patent/CN112765188A/en
Application granted granted Critical
Publication of CN112765188B publication Critical patent/CN112765188B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a configuration information processing method, a configuration management system, electronic equipment and a storage medium, wherein the method comprises the steps that when first configuration information in a plurality of local configuration information stored in a configuration management database is changed into second configuration information, format rendering is carried out on the second configuration information through a configuration analysis template to obtain first target configuration information; according to the first target configuration information, controlling the first on-line configuration information update corresponding to the first configuration information in the on-line cluster configuration set corresponding to at least one service cluster, and triggering the updated first on-line configuration information to operate and take effect; the local configuration information stored in the configuration management database corresponds to the on-line configuration information in the on-line cluster configuration set, and the local configuration information is the same as the corresponding on-line configuration information in content and different in information format. The invention can ensure the consistency of the configuration in the configuration management database and the on-line cluster configuration set, and realize the effective management of the configuration.

Description

Configuration information processing method, configuration management system, electronic device and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a configuration information processing method, a configuration management system, an electronic device, and a storage medium.
Background
With the continuous development of the internet, the service scale of the internet company is larger and larger at present, and correspondingly, the corresponding configuration of the service is also more and more complex. In the process of providing the service, more effective management of the service is needed, and effective management of the application configuration is needed to realize efficient modification.
But in a practical production environment two problems are encountered: the service scale is more and more complex, and effective management of service configuration can be realized temporarily without effective tools; the service configuration may be modified, validated, rolled back, etc., to create a situation that is inconsistent with the configuration recorded in the system.
Disclosure of Invention
The embodiment of the invention provides a configuration information processing method, a configuration management system, electronic equipment and a storage medium, which are used for solving the problems that effective tools are lack in the prior art to effectively manage service configuration and the service configuration is asynchronous with the configuration in the system.
In a first aspect of an embodiment of the present invention, a configuration information processing method is provided, which is applied to a configuration management system, and includes:
Under the condition that first configuration information in a plurality of local configuration information stored in a Configuration Management Database (CMDB) is changed into second configuration information, format rendering is carried out on the second configuration information through a configuration analysis template, and first target configuration information is obtained;
according to the first target configuration information, controlling the first on-line configuration information in the on-line cluster configuration set corresponding to at least one service cluster to update, and triggering the updated first on-line configuration information to operate and take effect;
the local configuration information stored in the CMDB corresponds to on-line configuration information in the on-line cluster configuration set, the local configuration information has the same content and different information format as the corresponding on-line configuration information, and the first on-line configuration information corresponds to the first configuration information.
In a second aspect of the embodiment of the present invention, there is provided a configuration management system, including:
the configuration updating engine module is used for performing format rendering on the second configuration information through the configuration analysis template under the condition that first configuration information in a plurality of local configuration information stored in the configuration management database CMDB is changed into second configuration information, obtaining first target configuration information, controlling the first on-line configuration information in the on-line cluster configuration set corresponding to at least one service cluster to update according to the first target configuration information, and triggering the updated first on-line configuration information to operate effectively;
The local configuration information stored in the CMDB corresponds to on-line configuration information in the on-line cluster configuration set, the local configuration information has the same content and different information format as the corresponding on-line configuration information, and the first on-line configuration information corresponds to the first configuration information.
In a third aspect of the embodiment of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the configuration information processing method when executing the program stored in the memory.
In a fourth aspect of the present invention, there is also provided a computer-readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the above-described configuration information processing method.
In a fifth aspect of the invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the above-described configuration information processing method.
The embodiment of the invention at least comprises the following technical effects:
under the condition that the local configuration information stored in the CMDB is changed, the changed configuration in the CMDB is subjected to format rendering based on a configuration analysis template, the configuration identical to the on-line configuration information in format is obtained, the corresponding on-line configuration information is modified, and further the on-line configuration information can be updated based on the change of the configuration in the CMDB, so that the consistency of the configuration in the CMDB and the configuration in an on-line cluster configuration set is ensured, the configuration is effectively managed, and meanwhile, the on-line configuration information is ensured to be the latest configuration information.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic diagram of a system architecture corresponding to a configuration information processing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a configuration information processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a relationship among configuration information, on-line configuration information, and first target configuration information according to an embodiment of the present invention;
fig. 4 is a flowchart corresponding to a specific example of a configuration information processing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a configuration management system according to an embodiment of the present invention;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
According to the embodiment of the invention, by introducing the configuration analysis template, when the configuration in the configuration management database (Configuration Management Database, CMDB) is changed, the on-line configuration information is updated through format rendering, so that the corresponding configuration information is obtained based on the format change of rendering, and the consistency of the configuration in the CMDB and the configuration in the on-line cluster configuration set is ensured.
The system architecture corresponding to the configuration information processing method provided in the embodiment of the present invention may refer to fig. 1, and includes a configuration management system 11, a configuration management database 12, and a service cluster 13, where at least one service cluster 13 is provided. Wherein at least one service cluster 13 corresponds to an on-line cluster configuration set, a plurality of local configuration information is stored in the configuration management database 12, the local configuration information in the configuration management database 12 corresponds to the on-line configuration information in the on-line cluster configuration set, and the local configuration information has the same content and different information format with the corresponding on-line configuration information.
The configuration management system 11 may include a configuration acquisition agent component module 110 and a configuration update engine module 111, where the configuration acquisition agent component module 110 may acquire on-line configuration information corresponding to local configuration information one to one, and the configuration management system 11 may compare the acquired on-line configuration information with the local configuration information in the configuration management database 12 to implement comparison inspection.
The configuration updating engine module 111 is configured to obtain information with the same format as the on-line configuration information according to the modified local configuration information in the configuration management database 12 when the local configuration information in the configuration management database 12 is changed, and control the corresponding on-line configuration information to modify, so as to ensure the consistency of the configurations in the configuration management database 12 and the on-line cluster configuration set.
The following describes in detail a configuration information processing method provided by an embodiment of the present invention, where the configuration information processing method provided by the embodiment of the present invention is applied to a configuration management system, as shown in fig. 2, the method includes:
step 201, in the case that the first configuration information in the plurality of local configuration information stored in the configuration management database CMDB is changed to the second configuration information, format rendering is performed on the second configuration information through the configuration analysis template, so as to obtain the first target configuration information.
The CMDB may determine whether the local configuration information is changed by periodically detecting, where the change includes a change of a parameter corresponding to a configuration item in the local configuration information, a trigger device may be added in the CMDB, when the change of the local configuration information is determined, the trigger information may be sent, and when the trigger information is received, the configuration management system determines that the local configuration information stored in the CMDB is changed. Wherein the local configuration information in the CMDB can be updated manually according to actual requirements. And specific contents of configuration information (local configuration information or on-line configuration information) are different for different services. For example, for a relational database management system (My Structured Query Language, mySQL) service, the configuration information may include version number, master node identification, memory, central processing unit (Central Processing Unit, CPU) core number, etc. Or for a locktmq service, the configuration information may include file retention time, manner of flushing, number of thread pools to send messages, etc.
Under the condition that the first configuration information in the CMDB is changed into the second configuration information, the second configuration information can be subjected to format rendering through a configuration analysis template, so that first target configuration information which is the same as the second configuration information in content and different in information format is obtained, and the format of the first target configuration information is the same as the format of the on-line configuration information.
Step 202, according to the first target configuration information, controlling the update of the first online configuration information in the online cluster configuration set corresponding to at least one service cluster, and triggering the updated first online configuration information to operate effectively.
The local configuration information stored in the CMDB corresponds to on-line configuration information in the on-line cluster configuration set, the local configuration information has the same content and different information format as the corresponding on-line configuration information, and the first on-line configuration information corresponds to the first configuration information.
After the first target configuration information is obtained, the first on-line configuration information corresponding to the first configuration information in the on-line cluster configuration set can be controlled to be updated according to the first target configuration information, after the first on-line configuration information is controlled to be updated, the updated first on-line configuration information is triggered to operate and take effect, the corresponding on-line configuration information is modified according to the change of the local configuration information in the CMDB, so that the consistency of the local configuration information stored in the CMDB and the content of the on-line configuration information in the on-line cluster configuration set is ensured, and meanwhile, the on-line configuration information is ensured to be the latest configuration information.
When the first on-line configuration information is controlled to be updated according to the first target configuration information, the first on-line configuration information corresponding to the first configuration information can be determined in the on-line cluster configuration set based on the corresponding relation between the local configuration information and the on-line configuration information, and then the running first on-line configuration information is modified according to the first target configuration information which is the same as the second configuration information in content and different in information format, and the first on-line configuration information is modified to be the information which is the same as the second configuration information in content and different in information format. And triggering by the corresponding workflow system when the operation of the configuration information on the first line after triggering update is effective.
It should be noted that, for at least one service cluster, each service cluster corresponds to different on-line configuration information, and for each service cluster, there may be a plurality of servers corresponding to each service cluster, where each server includes the same on-line configuration information, so as to ensure high availability. The number of the configuration information on the first line may be N, where N is the number of servers in the service cluster corresponding to the configuration information on the first line, for example, the number of servers in one service cluster is preferably 4 to 6, and the value of N may be determined according to the number of servers, where each of the configuration information on the first line corresponds to the first configuration information respectively. The number of on-line configuration information in the on-line cluster configuration set is greater than the number of local configuration information in the CMDB. The N first on-line configuration information may be updated when the first on-line configuration information is updated.
In the implementation process, under the condition that the local configuration information stored in the CMDB is changed, the changed configuration in the CMDB can be flexibly resolved into a format consistent with the on-line configuration information based on the configuration resolving template, and then the on-line configuration information is updated based on the configuration change in the CMDB, so that the consistency of the configuration in the CMDB and the configuration in the on-line cluster configuration set is ensured, the effective management of the configuration is realized, and meanwhile, the on-line configuration information is ensured to be the latest configuration information.
Based on the foregoing embodiments, the present invention further provides an optional embodiment, in a current optional embodiment, the local configuration information is in a first information format, the online configuration information is in a second information format, where step 201 is specifically configured to, when performing format rendering on the second configuration information through a configuration parsing template, obtain first target configuration information:
rendering second configuration information in the first information format based on the second information format through a configuration analysis template to acquire first target configuration information;
the first target configuration information is in a second information format, and the content of the first target configuration information is the same as that of the second configuration information.
The local configuration information stored in the CMDB is in a first information format, the on-line configuration information is in a second information format, the number of configuration analysis templates is one, and the configuration analysis templates are used for performing format rendering, and may include different information formats and conversion modes between different information formats. When format rendering is performed on the second configuration information, the method specifically comprises the following steps: and extracting second configuration information from the CMDB, and then performing format rendering on the second configuration information based on the configuration analysis template, so as to obtain first target configuration information. Wherein the first target configuration information is not stored in the CMDB, and the second configuration information in the CMDB remains in the original information format.
In this embodiment, the configuration analysis template includes a first information format, a second information format, and a conversion relationship between the first information format and the second information format, so as to convert the first information format into the second information format through the configuration analysis template, and optionally, may also convert the second information format into the first information format.
The second configuration information is local configuration information and is in a first information format, when the first target configuration information is obtained by performing format rendering on the second configuration information through the configuration analysis template, the second configuration information in the first information format can be rendered into the second information format through the configuration analysis template to obtain the first target configuration information, namely, the first target configuration information which is the same as the second configuration information in content and is in the second information format is obtained by performing rendering on the second configuration information in the first information format based on the second information format through the configuration analysis template. After the first target configuration information is obtained, the first target configuration information may be saved, for example, the first target configuration information may be saved to a Gitlab (open source project for a warehouse management system, using Git (open source distributed version control system) as a code management tool, and a web service built on the basis of the open source project), and subsequent use of the first target configuration information may be facilitated by saving the first target configuration information.
After format rendering the second configuration information to obtain the first target configuration information, the first on-line configuration information in the on-line cluster configuration set may be updated based on the first target configuration information. The first on-line configuration information is in a second information format, the first configuration information is in a first information format, and the first on-line configuration information is the same as the first configuration information in content and different in information format. The first target configuration information is in a second information format, the information format of the first target configuration information is the same as that of the first on-line configuration information, the content of the first target configuration information is the same as that of the second configuration information, and therefore after the first on-line configuration information is updated according to the first target configuration information, the information in the second information format, which is the same as that of the second configuration information, can be obtained. After the update is completed, the operation may be triggered to take effect by the corresponding workflow system.
It should be noted that, since the online service may correspond to at least one service cluster, each service cluster may include a plurality of (two or more) servers, and for one service cluster, each server includes the same online configuration information, when the online configuration information is updated, the online configuration information of one of the servers may be updated (the online configuration information is verified) first, so as to implement local control, and the online configuration information of the plurality of servers may also be updated synchronously, so as to implement concurrent control.
According to the implementation process of the embodiment of the invention, the first target configuration information corresponding to the second information format is obtained by performing format rendering on the second configuration information, the first on-line configuration information in the on-line cluster configuration set is updated based on the first target configuration information, and the operation is triggered to take effect, so that the latest on-line configuration information is obtained by performing format change based on rendering, the consistency of the local configuration information and the on-line configuration information in the CMDB is ensured, and meanwhile, the on-line configuration information is ensured to be the latest configuration information.
The present invention also provides an optional embodiment, in the present optional embodiment, according to first target configuration information, controlling updating of first online configuration information in an online cluster configuration set corresponding to at least one service cluster, and triggering operation and validation of the updated first online configuration information, including:
pushing the first target configuration information to a workflow system and generating a first approval work order, wherein the first approval work order is used for indicating to modify the first on-line configuration information according to the first target configuration information;
under the condition that the first examination and approval worksheets pass examination and approval, controlling a workflow system to change the first online configuration information into the second online configuration information according to the first target configuration information, and triggering the second online configuration information to operate and take effect;
The first target configuration information and the second online configuration information have the same content and the same information format.
First, a relationship among the first configuration information, the second configuration information, the first on-line configuration information, the second on-line configuration information, and the first target configuration information is described through a schematic diagram. Referring to fig. 3, the first configuration information and the second configuration information are information stored in a CMDB (configuration management database), and are in a first information format, and the second configuration information is obtained after being modified by the first configuration information, and the first target configuration information is obtained by rendering the second configuration information in the second information format. The first on-line configuration information is stored in the on-line cluster configuration set and is in a second information format, the first on-line configuration information corresponds to the first configuration information, and the first on-line configuration information is identical to the first configuration information in content and different in information format. After the first configuration information is modified into the second configuration information, the first target configuration information can be obtained through format rendering, the first on-line configuration information is modified into the second on-line configuration information according to the first target configuration information, the second on-line configuration information corresponds to the second configuration information, and the second on-line configuration information is identical to the second configuration information in content and different in information format. The first target configuration information has the same content and the same information format as the second online configuration information.
When the first on-line configuration information in the on-line cluster configuration set is updated according to the first target configuration information and the updated first on-line configuration information is triggered to run effectively, the first target configuration information can be pushed to the workflow system, namely, a task of changing the first on-line configuration information in the on-line cluster configuration set according to the first target configuration information is distributed to the workflow system. The push process triggers a first approval work order for modifying the first on-line configuration information according to the first target configuration information, and a related person determines whether to modify the first on-line configuration information in the on-line cluster configuration set according to the first target configuration information. And under the condition that the approval passes, the workflow system can be controlled to execute tasks, so that the workflow system changes the first online configuration information in the online cluster configuration set according to the first target configuration information, acquires the second online configuration information and triggers the second online configuration information to operate and take effect. The number of the first on-line configuration information can be multiple, the first on-line configuration information can be changed when the first on-line configuration information is changed, and correspondingly, the number of the acquired second on-line configuration information is also multiple.
The process may be understood as invoking a corresponding workflow with the modified configuration in the CMDB as a parameter, modifying the on-line configuration information by the workflow and validating the modified on-line configuration information. The configuration items of the first target configuration information and the first on-line configuration information are the same, but the parameters corresponding to the configuration items are different, so that after the first target configuration information is pushed to the workflow system, a first approval work order for modifying the first on-line configuration information according to the first target configuration information is triggered, approval can be performed by related personnel by triggering the first approval work order, and modification is performed after approval passes, so that the modification flow is perfected.
According to the implementation process of the embodiment of the invention, the first target configuration information is pushed to the workflow system and the first examination and approval work order is generated, and under the condition that examination and approval pass, the configuration information on the first line is modified according to the first target configuration information, so that the modification flow can be perfected.
The present invention also provides an optional embodiment, in the current optional embodiment, after controlling the update of the first online configuration information in the online cluster configuration set corresponding to at least one service cluster, and triggering the updated first online configuration information to operate and take effect, the method further includes:
Detecting whether the first online configuration information is successfully modified into second online configuration information or not, and whether the second online configuration information is operated and validated or not;
and outputting the first prompt information under the condition that the first on-line configuration information is not successfully modified or under the condition that the first on-line configuration information is successfully modified but the second on-line configuration information is not operated to take effect.
After updating the first on-line configuration information in the on-line cluster configuration set according to the first target configuration information and triggering the updated first on-line configuration information to operate and take effect, a detection process may be performed, specifically, detecting whether the first on-line configuration information has been successfully modified into the second on-line configuration information, and detecting whether the second on-line configuration information has operated and takes effect. When detecting whether the first on-line configuration information is successfully modified into the second on-line configuration information, detecting whether the parameter corresponding to the configuration item is modified into the parameter corresponding to the configuration item of the first target configuration information through the first command, and if so, indicating that the first on-line configuration information is successfully modified into the second on-line configuration information.
After the first online configuration information is successfully modified into the second online configuration information, the service needs to be restarted to trigger the second online configuration information to operate effectively, but the condition that the second online configuration information is not operated effectively due to machine downtime and network fluctuation may occur, so that the first online configuration information is successfully modified into the second online configuration information but the second online configuration information is not operated effectively may be caused. In detecting whether the second on-line configuration information has been run in effect, the detection may be made by a second command.
Wherein, the detection result can be:
the first online configuration information is not successfully modified into the second online configuration information, and the second online configuration information is not operated and validated; or alternatively, the process may be performed,
the first online configuration information is successfully modified into the second online configuration information, but the second online configuration information is not operated and validated; or alternatively, the process may be performed,
the first on-line configuration information is successfully modified to the second on-line configuration information and the second on-line configuration information is in effect.
The second on-line configuration information cannot be run when the first on-line configuration information is not successfully modified to the second on-line configuration information, and thus corresponds only to the following case when the first on-line configuration information is not successfully modified: the first on-line configuration information is not successfully modified to the second on-line configuration information and the second on-line configuration information is not operational in effect.
For the case that the first online configuration information is not successfully modified into the second online configuration information, or for the case that the first online configuration information is successfully modified into the second online configuration information but the second online configuration information is not operated to take effect, the first prompting information can be output, wherein the first prompting information is alarm information and is used for prompting that the second online configuration information is not operated smoothly. And the first prompt information can be sent to the target person (responsible person related to the service) so that the target person can process, for example, send mail, short message or alarm prompt tone to the target person.
The implementation process of the embodiment of the invention can determine whether the latest on-line configuration information is operated or not by executing the detection process, and ensures the consistency of the local configuration information in the CMDB and the on-line configuration information.
The invention also provides an optional embodiment, in the current optional embodiment, after the first prompt information is output, one of the following schemes is further included:
under the condition that the first online configuration information is not successfully modified into the second online configuration information, responding to a retry instruction input by a user based on the first prompt information, controlling the workflow system to modify the first online configuration information into the second online configuration information again according to the first target configuration information, and triggering the second online configuration information to operate and take effect;
under the condition that the first online configuration information is successfully modified into the second online configuration information, and the second online configuration information is not operated to take effect, responding to a retry instruction input by a user based on the first prompt information, and controlling the workflow system to trigger the second online configuration information to operate to take effect;
under the condition that the first online configuration information is not successfully modified into the second online configuration information, responding to a first rollback instruction input by a user based on the first prompt information, and controlling the second configuration information in the CMDB to be restored into the first configuration information;
And under the condition that the first on-line configuration information is successfully modified into the second on-line configuration information and the second on-line configuration information is not operated to take effect, responding to a first rollback instruction input by a user based on the first prompt information, controlling the second configuration information in the CMDB to be restored into the first configuration information, and controlling the second on-line configuration information to be restored into the first on-line configuration information.
After outputting the first prompt information, a retry instruction or a first rollback instruction of the user may be acquired, where the user is typically a target person, i.e. a related technician. Under the condition that a retry instruction input by a user is acquired, a retry process can be executed, and the workflow system can be controlled to change the first online configuration information in the online cluster configuration set into the second online configuration information and trigger the second online configuration information to operate and take effect according to the first target configuration information rendered based on the second configuration information again aiming at the condition that the first online configuration information is not successfully modified. Because the approval of the change of the first on-line configuration information according to the first target configuration information is passed, the workflow system can be directly controlled to work at the moment, namely the workflow system is directly controlled to change the first on-line configuration information according to the first target configuration information and trigger the second on-line configuration information obtained after the change to operate effectively, so that the flow is simplified, and the efficiency of configuration change is ensured.
Aiming at the condition that the first online configuration information is successfully modified into the second online configuration information but the second online configuration information is not operated to be effective, because the first online configuration information is successfully modified into the second online configuration information, when the workflow system re-executes the modification flow, the first online configuration information is modified according to the first target configuration information and the second online configuration information acquired after the modification is triggered to be operated to be effective, and the process can be simplified to only control the workflow system to trigger the second online configuration information to be operated to be effective. The process of triggering the operation to take effect is the process of restarting the service of the workflow system.
In the case of acquiring the first rollback instruction input by the user, a rollback operation may be performed, that is, the second configuration information in the CMDB is controlled to be restored to the first configuration information, so as to achieve restoration of the configuration information. Since the second configuration information is obtained after the first configuration information is modified, and the first configuration information can store a corresponding record in the CMDB, the second configuration information can be restored to the first configuration information. The second on-line configuration information is controlled to be restored to the first on-line configuration information because the second on-line configuration information is not operated when the first on-line configuration information is successfully modified to the second on-line configuration information but the second on-line configuration information is not operated. Correspondingly, the configuration information on the second line is obtained after the configuration information on the first line is modified, and the configuration information on the first line can be correspondingly recorded, so that the restoration of the configuration information on the second line to the configuration information on the first line can be realized.
After the first prompt information is output, the first on-line configuration information is changed according to the first target configuration information again according to the retry instruction of the user and the operation is triggered to take effect, so that at least two opportunities can be provided for synchronizing the local configuration information in the CMDB with the on-line configuration information in the on-line cluster configuration set, the second on-line configuration information is triggered to take effect again according to the retry instruction of the user, at least two opportunities can be provided for restarting the service to ensure the operation of the latest on-line configuration information, and the restoration of the configuration information can be ensured by executing data rollback according to the first rollback instruction of the user, so that the original configuration information can be switched back under the condition that the configuration information cannot be synchronized.
The present invention also provides an alternative embodiment, in which the method further comprises:
after the first online configuration information is successfully modified and the second online configuration information is effectively operated, under the condition that a second rollback instruction input by a user is received, controlling the second configuration information in the CMDB to be restored to the first configuration information in response to the second rollback instruction, wherein the second rollback instruction is used for indicating and controlling the second online configuration information to be restored to the first online configuration information;
Performing format rendering on the first configuration information through a configuration analysis template, acquiring second target configuration information, pushing the second target configuration information to a workflow system, generating a second approval work order, controlling the workflow system to modify the second online configuration information into the first online configuration information according to the second target configuration information under the condition that the second approval work order passes approval, and triggering the first online configuration information to operate effectively;
the second approval worksheet is used for indicating to modify the second online configuration information according to the second target configuration information.
For the situation that the first online configuration information is successfully modified into the second online configuration information and the operation of the second online configuration information is effective, a second rollback instruction input by a user can be received, for example, when the service effect is poor due to the operation of the second online configuration information, rollback can be selected as the first online configuration information so as to ensure the service effect.
After receiving the second rollback instruction, the second configuration information in the CMDB may be first controlled to be restored to the first configuration information according to the second rollback instruction, and since the configuration information in the CMDB is changed, the update of the on-line configuration information may be triggered according to the first configuration information. For the on-line cluster configuration set, because the first on-line configuration information is successfully modified into the second on-line configuration information, the first configuration information can be subjected to format rendering through the configuration analysis template, second target configuration information which is the same as the first configuration information in content and different in information format is obtained, then the second target configuration information is pushed to the workflow system, a second approval work order for modifying the second on-line configuration information according to the second target configuration information is generated, and under the condition that approval is passed, the workflow system is controlled to modify the second on-line configuration information into the first on-line configuration information corresponding to the first configuration information according to the second target configuration information, and the first on-line configuration information is triggered to operate and take effect. Wherein the plurality of second on-line configuration information may be changed to corresponding first on-line configuration information.
According to the implementation process, under the condition that the on-line configuration information is successfully modified and normally operated, the configuration information in the CMDB is controlled to roll back according to the second roll-back instruction of the user, and the on-line configuration information is updated according to the roll-back trigger of the configuration information in the CMDB, so that the on-line configuration is restored according to the requirement of the user to ensure the service effect.
The present invention also provides an alternative embodiment, in which the method further comprises:
according to a preset period, acquiring a plurality of online configuration information corresponding to the local configuration information one by one based on the configuration acquisition agent component;
checking whether content differences exist between a plurality of local configuration information stored in the CMDB and a plurality of acquired online configuration information;
outputting second prompt information under the condition that the third configuration information in the plurality of local configuration information stored in the CMDB and the acquired third on-line configuration information have content difference.
The configuration management system can periodically collect a plurality of online configuration information corresponding to the local configuration information in the online cluster configuration set based on a configuration collection Agent component (configuration collection Agent), and store the online configuration information in a database, wherein the database can be a MySQL database, so that the online configuration information can be stored in different tables, the search efficiency can be improved, and the storage flexibility can be improved. And the collection time can be marked for each collection, and the collection batch can be determined according to the collection time. The online configuration information can be quickly acquired by acquiring the Agent based on configuration, so that the initiative and intelligence of the Agent can be exerted.
The configuration management system has a comparison inspection function, can periodically check whether the local configuration information stored in the CMDB and the corresponding online configuration information have content difference, acquires the corresponding online configuration information based on the configuration acquisition agent component for each check, and can select the online configuration information of the latest batch according to the acquisition time to execute the check by labeling the acquisition time for each acquisition.
When the verification is executed, the method specifically comprises the following steps: and checking whether the parameters of the configuration items of the local configuration information are consistent with the parameters of the configuration items of the corresponding on-line configuration information, and checking through a third command. When the parameters of the configuration items of the third configuration information stored in the CMDB and the parameters of the collected configuration items of the configuration information on the third line are different, it may be determined that there is a content difference between the third configuration information and the configuration information on the third line, and at this time, second prompt information may be output to prompt the target person, so that the target person performs processing, where the output manner of the second prompt information may include: and sending mail, short message or alarm prompting sound to the target person. By performing the timing patrol, consistency of the configuration information in the CMDB and the on-line configuration information can be doubly ensured.
Wherein after outputting the second prompt message, the method further comprises:
responding to a first modification instruction input by a user based on the second prompt information, controlling the running third on-line configuration information to update according to the third configuration information, and triggering the updated third on-line configuration information to run effectively;
or alternatively, the process may be performed,
and responding to a second modification instruction input by the user based on the second prompt information, and modifying the third configuration information according to the third on-line configuration information.
The second hint information may be output for a case where it is determined by the comparative patrol that there is a content difference between the third configuration information stored in the CMDB and the third on-line configuration information. When a first modification instruction input by a user based on the second prompt information is received, the update of the third on-line configuration information can be controlled according to the third configuration information in response to the first modification instruction. When the third on-line configuration information is controlled to be updated according to the third configuration information, format rendering can be performed on the third configuration information (corresponding to the first information format) according to the configuration analysis template, third target configuration information corresponding to the second information format is obtained, then the third on-line configuration information is changed according to the third target configuration information corresponding to the second information format, and the operation of the changed third on-line configuration information is triggered to take effect. When the configuration information on the third line is changed, the workflow system changes and triggers the first approval work order, and the detailed flow is not specifically described.
And under the condition that a second modification instruction input by a user based on the second prompt information is received, the third configuration information can be controlled to be updated according to the third configuration information in response to the second modification instruction, when the third configuration information is controlled to be updated according to the third configuration information, the configuration information (corresponding to the second information format) on the third line can be subjected to format rendering according to the configuration analysis template, four target configuration information corresponding to the first information format is obtained, and then the third configuration information is changed according to the fourth target configuration information corresponding to the first information format.
The implementation process of the invention can modify the configuration information in the CMDB or modify the on-line configuration information in the on-line cluster configuration set according to the modification instruction so as to update the on-line configuration information according to the configuration information in the CMDB or update the configuration information in the CMDB according to the on-line configuration information according to the requirement of a user, thereby ensuring the synchronization of the configuration information in the CMDB and the on-line configuration information in the on-line cluster configuration set.
The following describes a process of changing on-line configuration information according to the configuration in the CMDB according to an embodiment of the present invention, as shown in fig. 4, the on-line configuration information corresponding to the local configuration information one by one is collected based on the configuration collection Agent and stored in the database. The triggering device is added in the CMDB, for the first configuration information (corresponding to the first information format), the configuration pushing flow is triggered during modification, the second configuration information (corresponding to the first information format) obtained after the first configuration information is modified can be used as a parameter to call a configuration updating engine module (the configuration management system comprises the configuration updating engine module) through an interface, the configuration updating engine module carries out format rendering on the second configuration information through a configuration analysis template, and first target configuration information in the second information format is obtained and stored in the Gitlab, wherein the content of the first target configuration information is the same as that of the second configuration information, and the information format is different.
Comparing the first on-line configuration information with the first target configuration information, and pushing the first target configuration information under the condition that the first on-line configuration information and the first target configuration information are different. And triggering a first approval work order for changing the first on-line configuration information according to the first target configuration information in the pushing flow, and calling a corresponding workflow by taking the first target configuration information as a parameter after approval, wherein the workflow is responsible for modifying the first on-line configuration information and triggering the modified first on-line configuration information to operate and take effect. After the workflow is triggered successfully, the configuration management system can check whether the first on-line configuration information is modified successfully and whether the modified first on-line configuration information is operated effectively, if the first on-line configuration information is not modified successfully or the first on-line configuration information is modified successfully but the modified first on-line configuration information is not operated, an alarm is sent to related responsible persons, the related responsible persons determine whether to start retry operation of the whole flow, if the retry operation is performed, the workflow is triggered to execute tasks, and if the retry operation is not performed, the configuration information in the CMDB is rolled back, so that the restoration of the configuration information is realized.
Wherein, for the case that the modification of the configuration information on the first line is successful but the modified configuration information on the first line is not run, the configuration on the line may be rolled back, which is not illustrated in fig. 4. If the modification is successful and the configuration is effective, the push process is basically ended, version rollback can be performed according to the operation of the user, and the version rollback can trigger the process again with the configuration information before modification, namely, the local configuration information and the on-line configuration information in the CMDB are rolled back to the configuration before modification.
The configuration management system also has a configuration inspection function, and can compare the difference between the local configuration information in the CMDB and the on-line configuration information at regular time, send mails to related responsible persons at different points, and the related responsible persons select to take the CMDB or the on-line configuration information as the criterion, if the CMDB is taken as the criterion to trigger the configuration pushing flow, and if the on-line configuration information is taken as the criterion, the configuration information in the CMDB is modified.
According to the configuration information processing method provided by the embodiment of the invention, under the condition that the local configuration information stored in the CMDB is changed, the changed configuration in the CMDB can be flexibly analyzed into the format consistent with the on-line configuration based on the configuration analysis template, so that the on-line configuration information is updated based on the configuration change in the CMDB, the consistency of the configuration in the CMDB and the configuration in the on-line cluster configuration set is ensured, the effective management of the configuration is realized, and meanwhile, the on-line configuration information is ensured to be the latest configuration information.
The on-line configuration information can be acquired rapidly by configuring the acquisition proxy component, the configuration can be effectively managed by supporting concurrency control, local control and pushing, and the workload of service operation and maintenance personnel is reduced; by adding the configuration inspection function, the consistency of the local configuration information and the on-line configuration information in the CMDB is ensured by the double layers.
An embodiment of the present invention provides a configuration management system, as shown in fig. 5, a configuration management system 500 includes:
a configuration updating engine module 501, configured to, when first configuration information in a plurality of local configuration information stored in a configuration management database CMDB is changed to second configuration information, perform format rendering on the second configuration information through a configuration analysis template, obtain first target configuration information, control, according to the first target configuration information, update of first on-line configuration information in an on-line cluster configuration set corresponding to at least one service cluster, and trigger the updated first on-line configuration information to operate effectively;
the local configuration information stored in the CMDB corresponds to on-line configuration information in the on-line cluster configuration set, the local configuration information has the same content and different information format as the corresponding on-line configuration information, and the first on-line configuration information corresponds to the first configuration information.
Optionally, the local configuration information is in a first information format, and the online configuration information is in a second information format; the configuration update engine module 501 is further configured to:
rendering the second configuration information in a first information format based on a second information format through the configuration analysis template to acquire the first target configuration information;
The first target configuration information is in a second information format, and the content of the first target configuration information is the same as that of the second configuration information.
Optionally, the configuration update engine module 501 includes:
a first processing submodule 5011 configured to push the first target configuration information to a workflow system and generate a first approval work order, where the first approval work order is used to instruct to modify the first on-line configuration information according to the first target configuration information;
the second processing submodule 5012 is configured to control the workflow system to change the first online configuration information into second online configuration information according to the first target configuration information and trigger the second online configuration information to operate and take effect when the first approval worksheet passes approval;
the first target configuration information and the second online configuration information have the same content and the same information format.
Optionally, the configuration management system 500 further includes:
a detection module 502, configured to detect whether the first on-line configuration information has been successfully modified into the second on-line configuration information and whether the second on-line configuration information has been run into effect after the configuration update engine module 501 triggers the updated first on-line configuration information to run into effect;
The first output module 503 is configured to output a first prompt message when the first on-line configuration information is not successfully modified, or when the first on-line configuration information is successfully modified but the second on-line configuration information is not in operation and is in effect.
Optionally, the configuration management system 500 further includes one of the following modules:
a first processing module 504, configured to, in case that the first on-line configuration information is not successfully modified to the second on-line configuration information, control the workflow system to modify the first on-line configuration information to the second on-line configuration information according to the first target configuration information again and trigger the second on-line configuration information to operate and take effect in response to a retry instruction input by the user based on the first prompt information;
the second processing module 505 is configured to, when the first online configuration information is successfully modified to the second online configuration information and the second online configuration information is not in operation and validation, control the workflow system to trigger the second online configuration information to operate and validation in response to a retry instruction input by the user based on the first prompt information;
a third processing module 506, configured to, in case that the first on-line configuration information is not successfully modified into the second on-line configuration information, control the second configuration information in the CMDB to be restored into the first configuration information in response to a first rollback instruction input by a user based on the first prompt information;
And a fourth processing module 507, configured to, when the first on-line configuration information is successfully modified to the second on-line configuration information and the second on-line configuration information is not in operation and is effective, control the second configuration information in the CMDB to be restored to the first configuration information and control the second on-line configuration information to be restored to the first on-line configuration information in response to a first rollback instruction input by the user based on the first prompt information.
Optionally, the configuration management system 500 further includes:
a control module 508, configured to, after the first on-line configuration information is successfully modified and the second on-line configuration information is running in effect, control, in response to a second rollback instruction input by a user, the second configuration information in the CMDB to be restored to the first configuration information, where the second rollback instruction is used to instruct to control the restoration of the second on-line configuration information to the first on-line configuration information;
a fifth processing module 509, configured to perform format rendering on the first configuration information through the configuration analysis template, obtain second target configuration information, push the second target configuration information to the workflow system and generate a second approval work order, and control the workflow system to modify the second online configuration information into the first online configuration information according to the second target configuration information and trigger the first online configuration information to operate and take effect when the second approval work order passes approval;
The second approval worksheet is used for indicating to modify the second online configuration information according to the second target configuration information.
Optionally, the configuration management system 500 further includes:
the configuration collection agent component module 510 is configured to collect a plurality of on-line configuration information corresponding to a plurality of local configuration information one by one based on the configuration collection agent component according to a preset period;
a checking module 511, configured to check whether there is a content difference between the plurality of local configuration information stored in the CMDB and the plurality of collected online configuration information;
and a second output module 512, configured to output a second prompt message when there is a content difference between the third configuration information and the collected third configuration information in the plurality of local configuration information stored in the CMDB.
Optionally, the configuration management system 500 further includes:
the update triggering module 513 is configured to respond to a first modification instruction input by the user based on the second prompt information, control the running third on-line configuration information to update according to the third configuration information, and trigger the updated third on-line configuration information to run into effect;
or alternatively, the process may be performed,
and a modifying module 514, configured to modify the third configuration information according to the third on-line configuration information in response to a second modification instruction input by the user based on the second prompt information.
For the configuration management system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and the relevant points are referred to in the description of the method embodiment.
The embodiment of the invention also provides an electronic device, as shown in fig. 6, which comprises a processor 61, a communication interface 62, a memory 63 and a communication bus 64, wherein the processor 61, the communication interface 62 and the memory 63 are in communication with each other through the communication bus 64, and the memory 63 is used for storing a computer program; the processor 61 is configured to execute the program stored in the memory 63, and implement the following steps: under the condition that first configuration information in a plurality of local configuration information stored in a Configuration Management Database (CMDB) is changed into second configuration information, format rendering is carried out on the second configuration information through a configuration analysis template, and first target configuration information is obtained; according to the first target configuration information, controlling the first on-line configuration information in the on-line cluster configuration set corresponding to at least one service cluster to update, and triggering the updated first on-line configuration information to operate and take effect; the local configuration information stored in the CMDB corresponds to on-line configuration information in the on-line cluster configuration set, the local configuration information has the same content and different information format as the corresponding on-line configuration information, and the first on-line configuration information corresponds to the first configuration information. The processor, when executing the program stored on the memory, may also implement other steps in the embodiments of the present invention.
The communication bus mentioned by the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the configuration information processing method described in the above embodiment.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the configuration information processing method described in the above embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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 this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A configuration information processing method applied to a configuration management system, comprising:
under the condition that first configuration information in a plurality of local configuration information stored in a Configuration Management Database (CMDB) is changed into second configuration information, format rendering is carried out on the second configuration information through a configuration analysis template, and first target configuration information is obtained;
according to the first target configuration information, controlling the first on-line configuration information in the on-line cluster configuration set corresponding to at least one service cluster to update, and triggering the updated first on-line configuration information to operate and take effect;
the local configuration information stored in the CMDB corresponds to on-line configuration information in the on-line cluster configuration set, the content of the local configuration information is the same as that of the corresponding on-line configuration information, the information format is different, and the first on-line configuration information corresponds to the first configuration information;
The local configuration information is in a first information format, and the online configuration information is in a second information format;
the format rendering is carried out on the second configuration information through a configuration analysis template to obtain first target configuration information, and the method comprises the following steps:
rendering the second configuration information in a first information format based on a second information format through the configuration analysis template to acquire the first target configuration information;
the first target configuration information is in a second information format, and the content of the first target configuration information is the same as that of the second configuration information.
2. The method for processing configuration information according to claim 1, wherein the controlling, according to the first target configuration information, updating the first on-line configuration information in the on-line cluster configuration set corresponding to the at least one service cluster, and triggering the updated first on-line configuration information to operate and take effect includes:
pushing the first target configuration information to a workflow system and generating a first approval work order, wherein the first approval work order is used for indicating to modify the first on-line configuration information according to the first target configuration information;
under the condition that the first examination and approval work order passes the examination and approval, controlling the workflow system to change the first online configuration information into second online configuration information according to the first target configuration information, and triggering the second online configuration information to operate and take effect;
The first target configuration information and the second online configuration information have the same content and the same information format.
3. The method for processing configuration information according to claim 2, wherein after controlling the update of the configuration information on the first line in the configuration set of the on-line cluster corresponding to the at least one service cluster and triggering the operation of the updated configuration information on the first line to take effect, the method further comprises:
detecting whether the first on-line configuration information has been successfully modified to the second on-line configuration information and whether the second on-line configuration information has been run into effect;
and outputting first prompt information under the condition that the first on-line configuration information is not successfully modified or under the condition that the first on-line configuration information is successfully modified but the second on-line configuration information is not operated to take effect.
4. The method for processing configuration information according to claim 3, wherein after the first prompt message is output, one of the following schemes is further included:
when the first online configuration information is not successfully modified into the second online configuration information, responding to a retry instruction input by a user based on the first prompt information, controlling the workflow system to modify the first online configuration information into the second online configuration information again according to the first target configuration information, and triggering the second online configuration information to operate and take effect;
When the first online configuration information is successfully modified into the second online configuration information and the second online configuration information is not operated to take effect, responding to a retry instruction input by a user based on the first prompt information, and controlling the workflow system to trigger the second online configuration information to operate to take effect;
in the case that the first online configuration information is not successfully modified into the second online configuration information, responding to a first rollback instruction input by a user based on the first prompt information, and controlling the second configuration information in the CMDB to be restored into the first configuration information;
and under the condition that the first on-line configuration information is successfully modified into the second on-line configuration information and the second on-line configuration information is not operated to take effect, responding to a first rollback instruction input by a user based on the first prompt information, controlling the second configuration information in the CMDB to be restored into the first configuration information, and controlling the second on-line configuration information to be restored into the first on-line configuration information.
5. The configuration information processing method according to claim 3, characterized by further comprising:
after the first online configuration information is successfully modified and the second online configuration information is effectively operated, under the condition that a second rollback instruction input by a user is received, controlling the second configuration information in the CMDB to be restored to the first configuration information in response to the second rollback instruction, wherein the second rollback instruction is used for indicating and controlling the second online configuration information to be restored to the first online configuration information;
Performing format rendering on the first configuration information through the configuration analysis template, acquiring second target configuration information, pushing the second target configuration information to the workflow system, generating a second approval work order, controlling the workflow system to modify the second online configuration information into the first online configuration information according to the second target configuration information under the condition that the second approval work order passes approval, and triggering the first online configuration information to operate effectively;
the second approval worksheet is used for indicating to modify the second online configuration information according to the second target configuration information.
6. The configuration information processing method according to claim 1, characterized by further comprising:
acquiring a plurality of on-line configuration information corresponding to the local configuration information one by one based on a configuration acquisition agent component according to a preset period;
verifying whether content differences exist between a plurality of local configuration information stored in the CMDB and a plurality of acquired online configuration information;
and outputting second prompt information under the condition that content difference exists between third configuration information in the plurality of local configuration information stored in the CMDB and the acquired third on-line configuration information.
7. The configuration information processing method according to claim 6, characterized by further comprising:
responding to a first modification instruction input by a user based on the second prompt information, controlling the running third on-line configuration information to update according to the third configuration information, and triggering the updated third on-line configuration information to run effectively;
or alternatively, the process may be performed,
and responding to a second modification instruction input by a user based on the second prompt information, and modifying the third configuration information according to the third on-line configuration information.
8. A configuration management system, comprising:
the configuration updating engine module is used for performing format rendering on the second configuration information through the configuration analysis template under the condition that first configuration information in a plurality of local configuration information stored in the configuration management database CMDB is changed into second configuration information, obtaining first target configuration information, controlling the first on-line configuration information in the on-line cluster configuration set corresponding to at least one service cluster to update according to the first target configuration information, and triggering the updated first on-line configuration information to operate effectively;
the local configuration information stored in the CMDB corresponds to on-line configuration information in the on-line cluster configuration set, the content of the local configuration information is the same as that of the corresponding on-line configuration information, the information format is different, and the first on-line configuration information corresponds to the first configuration information;
The local configuration information is in a first information format, and the online configuration information is in a second information format; the configuration update engine module is further to:
rendering the second configuration information in a first information format based on a second information format through the configuration analysis template to acquire the first target configuration information;
the first target configuration information is in a second information format, and the content of the first target configuration information is the same as that of the second configuration information.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps in the configuration information processing method according to any one of claims 1 to 7 when executing a program stored on a memory.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps in the configuration information processing method according to any one of claims 1 to 7.
CN202011641748.1A 2020-12-31 2020-12-31 Configuration information processing method, configuration management system, electronic device and storage medium Active CN112765188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011641748.1A CN112765188B (en) 2020-12-31 2020-12-31 Configuration information processing method, configuration management system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011641748.1A CN112765188B (en) 2020-12-31 2020-12-31 Configuration information processing method, configuration management system, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112765188A CN112765188A (en) 2021-05-07
CN112765188B true CN112765188B (en) 2023-09-08

Family

ID=75698563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011641748.1A Active CN112765188B (en) 2020-12-31 2020-12-31 Configuration information processing method, configuration management system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112765188B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117311924A (en) * 2022-06-23 2023-12-29 华为云计算技术有限公司 Micro-service migration method and device and computing equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5838918A (en) * 1993-12-13 1998-11-17 International Business Machines Corporation Distributing system configuration information from a manager machine to subscribed endpoint machines in a distrubuted computing environment
CN110019111A (en) * 2017-08-15 2019-07-16 北京国双科技有限公司 Data processing method, device, storage medium and processor
WO2019187208A1 (en) * 2018-03-30 2019-10-03 日本電気株式会社 Information processing device, data management system, data management method, and non-temporary computer-readable medium in which data management program is stored
CN110727697A (en) * 2019-08-29 2020-01-24 北京奇艺世纪科技有限公司 Data processing method and device, storage medium and electronic device
CN111061498A (en) * 2019-12-25 2020-04-24 上海众源网络有限公司 Configuration information management system
CN111580884A (en) * 2020-04-30 2020-08-25 北京金山云网络技术有限公司 Configuration updating method and device, server and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10339128B2 (en) * 2016-05-17 2019-07-02 International Business Machines Corporation Verifying configuration management database configuration items
US10860616B2 (en) * 2016-06-06 2020-12-08 International Business Machines Corporation Test data management
EP3639159A1 (en) * 2017-06-16 2020-04-22 Amadeus S.A.S. Geographically distributed database
US11068402B2 (en) * 2019-05-15 2021-07-20 Adp, Llc Externalized configurations and caching solution

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5838918A (en) * 1993-12-13 1998-11-17 International Business Machines Corporation Distributing system configuration information from a manager machine to subscribed endpoint machines in a distrubuted computing environment
CN110019111A (en) * 2017-08-15 2019-07-16 北京国双科技有限公司 Data processing method, device, storage medium and processor
WO2019187208A1 (en) * 2018-03-30 2019-10-03 日本電気株式会社 Information processing device, data management system, data management method, and non-temporary computer-readable medium in which data management program is stored
CN110727697A (en) * 2019-08-29 2020-01-24 北京奇艺世纪科技有限公司 Data processing method and device, storage medium and electronic device
CN111061498A (en) * 2019-12-25 2020-04-24 上海众源网络有限公司 Configuration information management system
CN111580884A (en) * 2020-04-30 2020-08-25 北京金山云网络技术有限公司 Configuration updating method and device, server and electronic equipment

Also Published As

Publication number Publication date
CN112765188A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN108874558B (en) Message subscription method of distributed transaction, electronic device and readable storage medium
US8938421B2 (en) Method and a system for synchronizing data
CN110263009B (en) Method, device and equipment for generating log classification rule and readable storage medium
CN107016480B (en) Task scheduling method, device and system
CN107562556B (en) Failure recovery method, recovery device and storage medium
CN108255620B (en) Service logic processing method, device, service server and system
CN108776643B (en) Target code merging control method and system based on version control process
CN112115200B (en) Data synchronization method, device, electronic equipment and readable storage medium
CN110851471A (en) Distributed log data processing method, device and system
CN113448862B (en) Software version testing method and device and computer equipment
CN111651196B (en) Document issuing method, device and server
CN111061498A (en) Configuration information management system
CN111367531B (en) Code processing method and device
CN110865806B (en) Code processing method, device, server and storage medium
CN112765188B (en) Configuration information processing method, configuration management system, electronic device and storage medium
CN111949607A (en) Method, system and device for monitoring UDT file
CN113296796A (en) Project release method, device, system, storage medium and electronic equipment
CN110955723A (en) Master-slave database synchronization state monitoring method and device and electronic equipment
CN111367934B (en) Data consistency checking method, device, server and medium
CN112445860B (en) Method and device for processing distributed transaction
CN112597123A (en) Data multi-version dynamic switching method and device
CN111144804A (en) Order processing method, device and system
CN112988776B (en) Method, device and equipment for updating text parsing rule and readable storage medium
US20070266372A1 (en) Generating documentation from task execution
CN115220992A (en) Interface change monitoring method and device, computer equipment and storage medium

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