CN118051278A - Operation and maintenance configuration management method and device, electronic equipment and storage medium - Google Patents

Operation and maintenance configuration management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN118051278A
CN118051278A CN202410227979.XA CN202410227979A CN118051278A CN 118051278 A CN118051278 A CN 118051278A CN 202410227979 A CN202410227979 A CN 202410227979A CN 118051278 A CN118051278 A CN 118051278A
Authority
CN
China
Prior art keywords
online
environment
configuration data
data
acquiring
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.)
Pending
Application number
CN202410227979.XA
Other languages
Chinese (zh)
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.)
Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd
Original Assignee
Chongqing Selis Phoenix Intelligent Innovation 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 Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd filed Critical Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd
Priority to CN202410227979.XA priority Critical patent/CN118051278A/en
Publication of CN118051278A publication Critical patent/CN118051278A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application relates to the technical field of data resource management, and discloses an operation and maintenance configuration management method, an operation and maintenance configuration management device, electronic equipment and a storage medium, wherein the operation and maintenance configuration management method comprises the following steps: acquiring online configuration data; the online configuration data comprise configuration data corresponding to at least one environment of an item to be online; performing online operation of at least one environment based on the online configuration data, and acquiring online log data of the corresponding environment when the online operation is performed; and matching the configuration data of each environment with the corresponding online log data to obtain a matching result of the corresponding environment. The embodiment of the application performs matching based on the online log data and the configuration data, can judge whether the configuration of the environment is correct, improves the matching degree between the environment and the configuration data, improves the online reliability of the environment, and ensures the normal operation of the item to be online.

Description

Operation and maintenance configuration management method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of data resource management, in particular to an operation and maintenance configuration management method, an operation and maintenance configuration management device, electronic equipment and a storage medium.
Background
In the operation and maintenance configuration process, programs of the project need to be online to various environments (such as test environments and production environments), related data needs to be manually configured in the operation and maintenance management process, and because the number of the environments of the project is large, familiarity of different operation and maintenance personnel to the environments is inconsistent, the accuracy of configuration after the environments are online cannot be ensured, after the environments are online, the environments possibly have configuration errors, so that the environments cannot normally execute corresponding functions or are configured to unmatched environments, and finally, the project cannot normally operate.
Disclosure of Invention
In view of the above problems, embodiments of the present application provide an operation and maintenance configuration management method, apparatus, electronic device, and storage medium, which are used to ensure the matching between configuration and environment.
According to an aspect of the embodiment of the present application, there is provided an operation and maintenance configuration management method, including: acquiring online configuration data; the online configuration data comprise configuration data corresponding to at least one environment of an item to be online; performing online operation of the at least one environment based on the online configuration data, and acquiring online log data of the corresponding environment when the online operation is performed; and matching the configuration data of each environment with the corresponding online log data to obtain a matching result of the corresponding environment.
In an alternative manner, before the acquiring the online configuration data, the method further includes: acquiring an online plan of the item to be online, wherein the online plan comprises an online program and configuration data of at least one environment in the item to be online; the online plans are reviewed to obtain review results; and if the evaluation result indicates that the online plan evaluation passes, executing the step of acquiring the online configuration data.
In an optional manner, the obtaining the online plan of the item to be online further includes: acquiring at least one environment required by an item to be online; setting up facilities of each environment in the at least one environment, and acquiring configuration data of the facilities of each environment; and acquiring the online plan based on the online flow of the at least one environment in the item to be online and configuration data of each environment in the at least one environment.
In an optional manner, the acquiring the online configuration data further includes: acquiring configuration data corresponding to each environment in the at least one environment based on an online plan of the item to be online; and processing the configuration data of each environment according to a preset format to obtain the online configuration data.
In an optional manner, the performing the online operation of the at least one environment based on the online configuration data further includes: acquiring an online plan of the item to be online; the online plan comprises online flows of a plurality of environments in the item to be online; and on the basis of the online flow and the online configuration data, sequentially carrying out online of each environment in the plurality of environments.
In an optional manner, the acquiring the online log data of the corresponding environment when the online operation is performed further includes: when each environment performs online operation, recording online operation data corresponding to each environment; acquiring parameters to be verified from configuration data of each environment; and acquiring the online log data from the online operation data of the corresponding environment based on the parameters to be verified of each environment.
In an optional manner, the matching the configuration data of each environment with the corresponding online log data to obtain a matching result of the corresponding environment further includes: matching the online log data of each environment with parameters to be verified in the configuration data of the corresponding environment; if the matching is successful, a matching result of successful online of the corresponding environment is obtained; if the matching fails, recording parameters to be verified which fail to match, and obtaining a matching result corresponding to the online abnormality of the environment.
According to another aspect of the embodiments of the present application, there is provided an operation and maintenance configuration management apparatus including: the online configuration data acquisition module is used for acquiring online configuration data; the online configuration data comprise configuration data corresponding to at least one environment of an item to be online; the online log data module is used for carrying out online operation of the at least one environment based on the online configuration data and acquiring online log data of the corresponding environment when the online operation is carried out; and the matching module is used for matching the configuration data of each environment with the corresponding online log data to obtain a matching result of the corresponding environment.
According to an aspect of an embodiment of the present application, there is provided an electronic apparatus including: a controller; and a memory for storing one or more programs which, when executed by the controller, perform the operation and maintenance configuration management method described above.
According to an aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having stored thereon computer-readable instructions which, when executed by a processor of a computer, cause the computer to perform the above-described operation and maintenance configuration management method.
According to an aspect of embodiments of the present application, there is also provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the operation and maintenance configuration management method described above.
When the environment is online based on the configuration data, the embodiment of the application acquires the online log data of the environment during the online operation based on the online operation of the environment, so that the configuration of the environment can be judged to be correct based on the matching of the online log data and the configuration data, the matching degree between the environment and the configuration data is improved, the reliability of the online of the environment is improved, and the normal operation of an item to be online is ensured.
The foregoing description is only an overview of the technical solutions of the embodiments of the present application, and may be implemented according to the content of the specification, so that the technical means of the embodiments of the present application can be more clearly understood, and the following specific embodiments of the present application are given for clarity and understanding.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is evident that the drawings in the following description are only some embodiments of the present application and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a schematic diagram of an exemplary embodiment of the present application illustrating the structure of items and environments.
Fig. 2 is a flow chart illustrating an operation and maintenance configuration management method according to an exemplary embodiment of the present application.
Fig. 3 is a flow chart illustrating another operation and maintenance configuration management method according to an exemplary embodiment of the present application.
Fig. 4 is a schematic structural view of an operation and maintenance configuration management apparatus according to an exemplary embodiment of the present application.
Fig. 5 is a schematic diagram of a computer system of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
In the present application, the term "plurality" means two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., a and/or B may represent: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
As shown in fig. 1, it shows an environment included in a project a, which includes a TEST environment (TEST environment), a UAT environment (acceptance environment), and a PRO environment (production environment), and when the project a is applied to a plurality of zones, a plurality of environments of corresponding zones may be included in one environment, that is, when the project a is applied to a, b, and c zones, the 3 zones correspond to environment configuration data of corresponding zones, for the TEST environment, a zone has configuration data test_configuration_a of the TEST environment in a zone, b zone has configuration data test_configuration_b of the TEST environment in b zone, c zone has configuration data test_configuration_c of the TEST environment in c zone; similarly, for the UAT environment, there are configuration data UAT _configuration_a for the UAT environment in the a-zone, configuration data UAT _configuration_b for the UAT environment in the b-zone, and configuration data UAT _configuration_c for the UAT environment in the c-zone in the a-zone; for the PRO environment, the a region has the configuration data pro_configuration_a of the PRO environment in the a region, the b region has the configuration data pro_configuration_b of the PRO environment in the b region, and the c region has the configuration data pro_configuration_c of the PRO environment in the c region.
It will be appreciated that the environment included in project a shown in fig. 1 is illustrative, and that other environments may be included in other embodiments.
Version data of the environment may be included in the configuration data.
One project can correspond to a plurality of different environments (such as a test environment, a UAT environment and a production environment), each environment can be divided into a plurality of sets according to different areas, when different project programs are on line to different environments in operation and maintenance, operation and maintenance personnel need to manually perform configuration, such as configuration related databases, kafka, XXLJOB and the like, different operation and maintenance personnel are inconsistent in familiarity degree with different projects and different environments, the accuracy of configuration after the environments are on line cannot be ensured, the problem can be exposed only after the environments are on line for a period of time, the environments cannot normally execute corresponding functions, and the projects cannot normally operate; especially after the production environment is online, due to the specificity of the production environment, corresponding tests cannot be carried out in the production environment, errors such as data reading and writing cannot be caused on database connection due to configuration errors, or the corresponding data presentation and statistics inaccuracy can be caused when the database connection is configured to an unmatched environment.
To this end, an aspect of the present application provides an operation and maintenance configuration management method. Referring specifically to fig. 2, fig. 2 is a flow chart illustrating an operation and maintenance configuration management method according to an exemplary embodiment of the application. The operation and maintenance configuration management method at least comprises S210 to S230, and is described in detail as follows:
S210: acquiring online configuration data; the online configuration data comprises configuration data corresponding to at least one environment of the item to be online.
In this embodiment, the environment of the project to be online is an environment where the program of the project to be online needs to be online, and the number of the environments may be one or more, for example, in an embodiment, the environment of one project to be online includes a development environment, a test environment, a UAT environment, a production environment, and the like.
The online configuration data comprises configuration data corresponding to environments, when the environments of the items to be online are multiple, the configuration data corresponding to each environment exists, and the configuration data of different environments can be the same or different.
In some embodiments, before the online configuration data is acquired, a review before the online may be performed, so as to ensure the accuracy of the online configuration data.
In one embodiment, before S210, the method further includes the steps of:
S10: and acquiring an online plan of the item to be online, wherein the online plan comprises an online flow and configuration data of at least one environment in the item to be online.
S11: and (5) evaluating the online plan to obtain an evaluation result.
S12: if the review result indicates that the online plan review passes, S210 is performed.
In this embodiment, before the to-be-online item corresponds to the online environment, an online plan may be formulated, where the online plan includes an online process of the environment and configuration data, the online process may include online time and steps of different environments and a rollback plan, and the configuration data is configuration data of different environments, and may include data such as online services and corresponding versions, required resources, online ranges, and the like of different environments.
The result of the review can be obtained by the review of the online plan, and the review can be performed by the operation and maintenance configuration management device based on a preset rule, manually, or by setting a related algorithm in operation and maintenance configuration management, which is not particularly limited herein.
In some embodiments, S10 may further include:
S20: at least one environment required for the item to be online is acquired.
S21: setting up facilities of each environment in at least one environment, and acquiring configuration data of the facilities of each environment.
S22: and acquiring an online plan based on the online flow of at least one environment in the item to be online and configuration data of each environment in the at least one environment.
In this embodiment, environments required by the project to be online are determined, and then facilities of each environment are built according to the plan, wherein the facilities of the environment are resources and data required by the online realization of the environment, including servers, networks, storage and the like, software installation, configuration management and dependence management.
Based on the facility, configuration data required by the environment can be configured.
For the environment of the item to be online, there may be a precedence relationship, so as to first online the TSET environment, and then online from the TSET environment to the UAT environment, as shown in fig. 1, so as to obtain an online flow of the environment of the item to be online, where the online flow may include online time and steps of different environments and a rollback plan.
Thus, an online plan can be obtained from the online flow and configuration data.
In some embodiments, after the review passes, the configuration data corresponding to each environment in at least one environment may be obtained based on the online plan, and the configuration data of each environment may be processed according to a preset format to obtain the online configuration data.
In this embodiment, version flow control management is performed according to each relevant configuration data of a corresponding online environment prepared by an online plan, configuration data of different facilities are uniformly managed according to a preset format, for example, configuration data of a database may be included in the configuration data of the one environment, configuration data of Kafka (a high throughput distributed publish-subscribe message system), configuration data of dis (remote automatic service), version information of a server, and the like, configuration data in each environment is managed according to a format of yaml files, so as to obtain configuration data after processing the preset format of each environment, for example, online configuration data project a_ut_yaml after processing the preset format of a UAT environment of an online project a may include the following information:
environmental (Environment): UAT
Host (Host): xx
Release (Release version): xx
Owner (administrator): xxx
MySql (database, configuration data for database below):
version (Version): xx
Count (x)
Instance (example) xxx
Db (data block): xx
Script (Script) xxx
Redis (configuration data for Redis):
Version:xx
Count:x
Instance:xxx
Kafka (hereinafter, configuration data of Kafka):
Version:xx
Count:x
Instance:xxx
Topic (subject) xxx
Script:xxx
Service m (server m):
Version:xx
service n (server n):
Version:x
In this embodiment, after the configuration data of each environment is processed in a preset format, configuration data after the processing in the preset format is obtained, and the configuration data after the processing in the preset format of all the environments of the item to be online is used as online configuration data, so that the environment of the item to be online can be online in turn based on the online configuration data.
S220: and performing online operation of at least one environment based on the online configuration data, and acquiring online log data of the corresponding environment when the online operation is performed.
In this embodiment, an online plan of an item to be online is obtained, where the online plan includes online procedures of a plurality of environments in the item to be online, and online of each of the plurality of environments is sequentially performed based on the online procedures and online configuration data.
In this embodiment, the online process includes data such as an online time and a step of the environment, so that the online of the environment can be sequentially performed based on the online process, and in this process, the online of the environment is performed based on configuration data of each environment in the online configuration data.
In the online process of each environment, the online operation data corresponding to each environment is recorded; acquiring parameters to be verified from configuration data of each environment; and acquiring online log data from the online operation data of the corresponding environment based on the parameters to be verified of each environment.
In this embodiment, related tools (e.g., selenium) may be used to record online operation data in the process of online operation of an environment, for example, when a database operation is performed in a certain environment, data such as an environment, a data source, a current auditor, a database content result, etc. when the database is performed in the environment online can be obtained, where the data set is the online operation data when the database is performed in the environment online, for the same environment, online operation data of corresponding tasks can be obtained in the process of online execution of related tasks in the environment, and all the online operation data of tasks of the environment are collectively referred to as online operation data of the environment.
In this embodiment, the online operation data includes all data in the online process of the environment, and in the process of performing online and matching between the environment and the configuration, all data in the configuration data is not verified, but only the data to be verified is matched.
In this way, the parameters to be verified of the configuration data in each environment are obtained, and the parameters to be verified of different environments can be the same or different.
And extracting the online log data corresponding to the parameter to be verified from the online operation data of the corresponding environment, and if the parameter to be verified in a certain environment is the version of the server, extracting the version data of the server from the online operation data of the corresponding environment as the online log data.
In this embodiment, the shell script may be written to extract online log data corresponding to the parameter to be verified from the online operation data.
In this embodiment, the parameter to be verified is configuration data that needs to be configured for the environment, and the online log data is actual configuration data when the environment is online.
S230: and matching the configuration data of each environment with the corresponding online log data to obtain a matching result of the corresponding environment.
In this embodiment, a plurality of tasks may exist in the online process of the environment, and different tasks may obtain corresponding online log data, and the online log data of all the tasks of the environment is used as the online log data of the environment.
It will be appreciated that a task is an operation performed when the environment is online.
In this embodiment, the online log data is also processed according to a preset format, so as to obtain online log data processed in the preset format, so that, for an environment, the formats of the online log data processed in the preset format and the configuration data processed in the preset format are the same, so that subsequent matching is facilitated.
In other embodiments, before the processing of the preset format, the specific time of the related operation is added to the online log data, when the online log data is actually used, the step execution result, the actual operator and other key information are calculated, and then the processing of the preset format is performed to obtain the online log data after the processing of the preset format.
In some embodiments, the script program is used to compare the online log data with the parameters to be verified in the configuration data of the corresponding environment, and to compare whether all the information is matched and consistent one by one, so as to ensure accuracy, record inconsistent data in a distinguishing way, output a result and give a final conclusion.
In this embodiment, the online log data of each environment is matched with the parameters to be verified in the configuration data of the corresponding environment; if the matching is successful, a matching result of successful online of the corresponding environment is obtained; if the matching fails, recording parameters to be verified which fail to match, and obtaining a matching result corresponding to the online abnormality of the environment.
In this embodiment, if the matching is successful, it indicates that the environment is configured correctly, and if the matching is failed, the environment is configured incorrectly, which may cause that the environment cannot normally execute the corresponding function or is configured to the unmatched environment, and finally, the project cannot normally run, and the operations of reconfiguring the environment or modifying the configuration data to be on line again are required.
In this embodiment, when the environment is online based on the configuration data, the online log data of the environment is acquired during the online operation based on the online operation of the environment, so that the configuration of the environment can be judged to be correct based on the matching between the online log data and the configuration data, the matching degree between the environment and the configuration data is improved, the reliability of the online environment is improved, and the normal operation of the item to be online is ensured.
Specifically, when the operation and maintenance configuration management method in the embodiment is on line in the environment and performs tasks, relevant on-line operation data are updated and maintained, so that the problem can be rapidly positioned, rapid investigation and repair can be performed, the risk of program error caused by improper on-line operation is pre-judged in advance, and the fault time is reduced; after the online operation is finished, the running state, performance index, online operation data and the like of the software can be monitored in real time by a monitoring tool, abnormal behaviors and potential threats can be found in time, and the safety of the system is improved; after certain data is precipitated, the online data analysis of the environment is carried out, and the online data analysis can be embodied in projects, environments, operation and maintenance personnel, success and failure probability, online frequency, online time duration and the like, so that the tracing and backtracking are convenient, and the optimization and improvement of the flow and the process are carried out after relevant data are obtained, and the working efficiency is improved.
Fig. 3 is a flowchart of an operation and maintenance configuration management method according to another embodiment of the present application, first, performing environment planning for an online item: determining various environments required, such as a development environment, a test environment, a UAT environment and a production environment; then, carrying out environment deployment: setting up facilities of each environment according to the planning, including servers, networks, storage and the like, installing software, configuring and managing, and depending on the management; and then making an online plan: determining online time and steps, and rolling back a plan, developing online documents ready for corresponding environments, wherein the online documents comprise online ranges, required resources, online services and corresponding versions, and each configuration file is subjected to review; after the review is passed, unified management is carried out on the configuration data according to a preset format to obtain online configuration data; then, carrying out environmental online according to online configuration data and online plans; recording online operation data in an environmental online process; then acquiring online log data from online operation data according to parameters to be verified; and matching the online log data with parameters to be verified in the configuration data of the corresponding environment to finally obtain a matching result.
The operation and maintenance configuration management method in the embodiment can be applied to a vehicle networking system or a server, and of course, can also be applied to other systems or servers needing operation and maintenance configuration management, and is not particularly limited herein.
In another aspect of the present application, an operation and maintenance configuration management device is provided, as shown in fig. 4, and fig. 4 is a schematic structural diagram of an operation and maintenance configuration management device according to an exemplary embodiment of the present application. The operation and maintenance configuration management apparatus 400 includes: an online configuration data acquisition module 410, configured to acquire online configuration data; the online configuration data comprise configuration data corresponding to at least one environment of an item to be online; the online log data module 430 is configured to perform online operation of at least one environment based on the online configuration data, and obtain online log data of the corresponding environment when performing the online operation; and the matching module 450 is used for matching the configuration data of each environment with the corresponding online log data to obtain a matching result of the corresponding environment.
In an alternative manner, the operation and maintenance configuration management apparatus 400 further includes:
The online plan acquisition module is used for acquiring an online plan of an item to be online, wherein the online plan comprises an online program of at least one environment in the item to be online and configuration data; the review module is used for reviewing the online plans to obtain review results; and the review execution module is used for executing the step of acquiring the online configuration data if the review result indicates that the online plan review passes.
In an alternative manner, the online plan obtaining module further includes: the environment acquisition unit is used for acquiring at least one environment required by the item to be online; the configuration data acquisition unit is used for building facilities of each environment in at least one environment and acquiring configuration data of the facilities of each environment; the online plan acquiring unit is used for acquiring an online plan based on the online flow of at least one environment in the item to be online and the configuration data of each environment in the at least one environment.
In an optional manner, the online configuration data acquisition module further includes: the configuration data acquisition unit is used for acquiring configuration data corresponding to each environment in at least one environment based on an online plan of an item to be online; the online configuration data acquisition unit is used for processing the configuration data of each environment according to a preset format to obtain online configuration data.
In an alternative manner, the online log data module further includes: the online plan confirming unit is used for acquiring an online plan of an item to be online; the online plan comprises online flows of a plurality of environments in an item to be online; the online unit is used for sequentially carrying out online of each environment in the plurality of environments based on the online flow and the online configuration data.
In an alternative manner, the online log data module further includes:
The online operation data acquisition unit is used for recording online operation data corresponding to each environment when the environments perform online operation; the parameter to be verified acquisition unit is used for acquiring parameters to be verified in the configuration data of each environment; the online log data unit is used for acquiring online log data from online operation data of the corresponding environments based on parameters to be verified of each environment.
In an alternative manner, the matching module further includes:
The matching unit is used for matching the online log data of each environment with the parameters to be verified in the configuration data of the corresponding environment; the first matching result acquisition unit is used for acquiring a matching result of successful online corresponding to the environment if the matching is successful; and the second matching result acquisition unit is used for recording parameters to be verified which are failed to match if the matching is failed, and obtaining the matching result corresponding to the online abnormality of the environment.
It should be noted that, the operation and maintenance configuration management device provided in the foregoing embodiment and the operation and maintenance configuration management method provided in the foregoing embodiment belong to the same concept, and a specific manner in which each module and unit perform an operation has been described in detail in the method embodiment, which is not repeated herein.
Another aspect of the present application also provides an electronic device, including: a controller; and a memory for storing one or more programs which, when executed by the controller, perform the operation and maintenance configuration management method described above.
Referring to fig. 5, fig. 5 is a schematic diagram of a computer system of an electronic device according to an exemplary embodiment of the present application, which is suitable for implementing the electronic device according to the embodiment of the present application.
It should be noted that, the computer system 500 of the electronic device shown in fig. 5 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 5, the computer system 500 includes a central processing unit (Central Processing Unit, CPU) 501, which can perform various appropriate actions and processes, such as performing the methods in the above-described embodiments, according to a program stored in a Read-Only Memory (ROM) 502 or a program loaded from a storage portion 508 into a random access Memory (Random Access Memory, RAM) 503. In the RAM 503, various programs and data required for the system operation are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other through a bus 504. An Input/Output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), and a speaker, etc.; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN (Local Area Network ) card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. When executed by a Central Processing Unit (CPU) 501, performs the various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), a flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
Another aspect of the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements an operation and maintenance configuration management method as before. The computer-readable storage medium may be included in the electronic device described in the above embodiment or may exist alone without being incorporated in the electronic device.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the operation and maintenance configuration management method provided in the above-described respective embodiments.
According to an aspect of the embodiment of the present application, there is also provided a computer system including a central processing unit (Central Processing Unit, CPU) that can perform various appropriate actions and processes, such as performing the method in the above-described embodiment, according to a program stored in a Read-Only Memory (ROM) or a program loaded from a storage section into a random access Memory (Random Access Memory, RAM). In the RAM, various programs and data required for the system operation are also stored. The CPU, ROM and RAM are connected to each other by a bus. An Input/Output (I/O) interface is also connected to the bus.
The following components are connected to the I/O interface: an input section including a keyboard, a mouse, etc.; an output section including a Cathode Ray Tube (CRT), a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), and a speaker; a storage section including a hard disk or the like; and a communication section including a network interface card such as a LAN (Local Area Network ) card, a modem, or the like. The communication section performs communication processing via a network such as the internet. The drives are also connected to the I/O interfaces as needed. Removable media such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, and the like are mounted on the drive as needed so that a computer program read therefrom is mounted into the storage section as needed.
The foregoing is merely illustrative of the preferred embodiments of the present application and is not intended to limit the embodiments of the present application, and those skilled in the art can easily make corresponding variations or modifications according to the main concept and spirit of the present application, so that the protection scope of the present application shall be defined by the claims.

Claims (10)

1. An operation and maintenance configuration management method, which is characterized by comprising the following steps:
acquiring online configuration data; the online configuration data comprise configuration data corresponding to at least one environment of an item to be online;
performing online operation of the at least one environment based on the online configuration data, and acquiring online log data of the corresponding environment when the online operation is performed;
And matching the configuration data of each environment with the corresponding online log data to obtain a matching result of the corresponding environment.
2. The method of claim 1, wherein prior to the acquiring the online configuration data, the method further comprises:
acquiring an online plan of the item to be online, wherein the online plan comprises an online program and configuration data of at least one environment in the item to be online;
The online plans are reviewed to obtain review results;
and if the evaluation result indicates that the online plan evaluation passes, executing the step of acquiring the online configuration data.
3. The method of claim 2, wherein the obtaining the online plan for the item to be online further comprises:
Acquiring at least one environment required by an item to be online;
Setting up facilities of each environment in the at least one environment, and acquiring configuration data of the facilities of each environment;
and acquiring the online plan based on the online flow of the at least one environment in the item to be online and configuration data of each environment in the at least one environment.
4. The method of claim 1, wherein the obtaining the online configuration data further comprises:
acquiring configuration data corresponding to each environment in the at least one environment based on an online plan of the item to be online;
and processing the configuration data of each environment according to a preset format to obtain the online configuration data.
5. The method of claim 1, wherein the performing the online operation of the at least one environment based on the online configuration data further comprises:
acquiring an online plan of the item to be online; the online plan comprises online flows of a plurality of environments in the item to be online;
And on the basis of the online flow and the online configuration data, sequentially carrying out online of each environment in the plurality of environments.
6. The method of claim 5, wherein the obtaining the online log data of the corresponding environment when the online operation is performed, further comprises:
When each environment performs online operation, recording online operation data corresponding to each environment;
acquiring parameters to be verified from configuration data of each environment;
And acquiring the online log data from the online operation data of the corresponding environment based on the parameters to be verified of each environment.
7. The method of claim 1, wherein the matching the configuration data of each environment with the corresponding online log data to obtain a matching result of the corresponding environment further comprises:
Matching the online log data of each environment with parameters to be verified in the configuration data of the corresponding environment;
If the matching is successful, a matching result of successful online of the corresponding environment is obtained;
If the matching fails, recording parameters to be verified which fail to match, and obtaining a matching result corresponding to the online abnormality of the environment.
8. An operation and maintenance configuration management device, comprising:
The online configuration data acquisition module is used for acquiring online configuration data; the online configuration data comprise configuration data corresponding to at least one environment of an item to be online;
the online log data module is used for carrying out online operation of the at least one environment based on the online configuration data and acquiring online log data of the corresponding environment when the online operation is carried out;
And the matching module is used for matching the configuration data of each environment with the corresponding online log data to obtain a matching result of the corresponding environment.
9. An electronic device, comprising:
a controller;
A memory for storing one or more programs that, when executed by the controller, cause the controller to implement the operation and maintenance configuration management method of any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon computer-readable instructions which, when executed by a processor of a computer, cause the computer to perform the operation and maintenance configuration management method according to any one of claims 1 to 7.
CN202410227979.XA 2024-02-29 2024-02-29 Operation and maintenance configuration management method and device, electronic equipment and storage medium Pending CN118051278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410227979.XA CN118051278A (en) 2024-02-29 2024-02-29 Operation and maintenance configuration management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410227979.XA CN118051278A (en) 2024-02-29 2024-02-29 Operation and maintenance configuration management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118051278A true CN118051278A (en) 2024-05-17

Family

ID=91053414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410227979.XA Pending CN118051278A (en) 2024-02-29 2024-02-29 Operation and maintenance configuration management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118051278A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309584A (en) * 2018-12-11 2020-06-19 迈普通信技术股份有限公司 Data processing method and device, electronic equipment and storage medium
CN112100060A (en) * 2020-08-21 2020-12-18 杭州安恒信息安全技术有限公司 Operation environment self-adaption method and device and computer readable storage medium
CN113391853A (en) * 2021-06-15 2021-09-14 中国工商银行股份有限公司 Method, apparatus, device, medium, and program product for configuring an environment across systems
US20230051461A1 (en) * 2021-08-10 2023-02-16 International Business Machines Corporation Obtaining information for security configuration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309584A (en) * 2018-12-11 2020-06-19 迈普通信技术股份有限公司 Data processing method and device, electronic equipment and storage medium
CN112100060A (en) * 2020-08-21 2020-12-18 杭州安恒信息安全技术有限公司 Operation environment self-adaption method and device and computer readable storage medium
CN113391853A (en) * 2021-06-15 2021-09-14 中国工商银行股份有限公司 Method, apparatus, device, medium, and program product for configuring an environment across systems
US20230051461A1 (en) * 2021-08-10 2023-02-16 International Business Machines Corporation Obtaining information for security configuration

Similar Documents

Publication Publication Date Title
CN108984418B (en) Software test management method and device, electronic equipment and storage medium
US20210064518A1 (en) Methods Circuits Devices Systems and Functionally Associated Machine Executable Code For Automatic Failure Cause Identification in Software Code Testing
US7895565B1 (en) Integrated system and method for validating the functionality and performance of software applications
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN112561370B (en) Method and device for managing software release, computer equipment and storage medium
CN110659202A (en) Client automatic testing method and device
CN109254912A (en) A kind of method and device of automatic test
CN111221727A (en) Test method, test device, electronic equipment and computer readable medium
CN110990289A (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN117474306A (en) Production flow control method and device, electronic equipment and readable storage medium
CN118051278A (en) Operation and maintenance configuration management method and device, electronic equipment and storage medium
CN113992491B (en) Application server group operation and maintenance management system, method and device
CN112612702B (en) Automatic testing method and device based on web
CN117667643A (en) Evolution method and device of test case set, computing device cluster and storage medium
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN115903720A (en) Fault diagnosis system and method for rail transit, and storage medium
CN112181855A (en) API-based automatic testing method and device and computer equipment
CN112988555B (en) Interface testing method, device, equipment and storage medium
CN117193798A (en) Application deployment method, apparatus, device, readable storage medium and program product
CN117149234A (en) Database upgrading method and device
CN115129502A (en) Code scanning problem tracking method, device, system, equipment and storage medium
CN117640357A (en) Processing method and device for network element data acquisition abnormality and related equipment
CN117331841A (en) Interface testing method and device, electronic equipment and storage medium
CN115729606A (en) Research and development hidden danger analysis method, device, equipment and medium
CN114942780A (en) Code version management method, device, system 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