CN118051278A - A method, device, electronic device and storage medium for operation and maintenance configuration management - Google Patents
A method, device, electronic device and storage medium for operation and maintenance configuration management Download PDFInfo
- 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
- environment
- online
- configuration data
- data
- configuration
- 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
Links
- 238000012423 maintenance Methods 0.000 title claims abstract description 46
- 238000000034 method Methods 0.000 title claims description 58
- 238000007726 management method Methods 0.000 claims abstract description 47
- 230000008569 process Effects 0.000 claims description 40
- 238000012552 review Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 11
- 238000012360 testing method Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 238000004519 manufacturing process Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 5
- 230000002159 abnormal effect Effects 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 206010000117 Abnormal behaviour Diseases 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- BUGBHKTXTAQXES-UHFFFAOYSA-N Selenium Chemical compound [Se] BUGBHKTXTAQXES-UHFFFAOYSA-N 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 229910052711 selenium Inorganic materials 0.000 description 1
- 239000011669 selenium Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording 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/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- Y—GENERAL 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
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS 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/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/50—Systems 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
Description
技术领域Technical Field
本申请实施例涉及数据资源管理技术领域,具体涉及一种运维配置管理方法、装置、电子设备及存储介质。The embodiments of the present application relate to the technical field of data resource management, and specifically to an operation and maintenance configuration management method, device, electronic device and storage medium.
背景技术Background technique
运维配置过程中,项目的程序需要上线到多种环境(如测试环境、生产环境等)中,运维管理过程需要手动配置相关数据,而由于项目的环境数量较多,不同运维人员对环境的熟悉程度不一致,无法保证环境上线后配置的准确性,在环境上线后,可能存在配置出错造成环境无法正常执行对应功能或是配置到了不匹配的环境,最终造成项目无法正常运行。During the operation and maintenance configuration process, the project's programs need to be launched in multiple environments (such as test environment, production environment, etc.). The operation and maintenance management process requires manual configuration of relevant data. However, due to the large number of project environments and the different familiarity of different operation and maintenance personnel with the environment, the accuracy of the configuration after the environment is launched cannot be guaranteed. After the environment is launched, there may be configuration errors that cause the environment to be unable to perform the corresponding functions normally or be configured to an incompatible environment, ultimately causing the project to fail to operate normally.
发明内容Summary of the invention
鉴于上述问题,本申请实施例提供了一种运维配置管理方法、装置、电子设备及存储介质,用于保证配置与环境的匹配性。In view of the above problems, the embodiments of the present application provide an operation and maintenance configuration management method, device, electronic device and storage medium to ensure the matching of configuration and environment.
根据本申请实施例的一个方面,提供了一种运维配置管理方法,所述运维配置管理方法包括:获取上线配置数据;其中,所述上线配置数据包括待上线项目的至少一个环境所对应的配置数据;基于所述上线配置数据进行所述至少一个环境的上线操作,并获取对应环境在进行上线操作时的上线日志数据;将各环境的配置数据与对应的上线日志数据进行匹配,得到对应环境的匹配结果。According to one aspect of an embodiment of the present application, an operation and maintenance configuration management method is provided, and the operation and maintenance configuration management method includes: obtaining online configuration data; wherein the online configuration data includes configuration data corresponding to at least one environment of a project to be launched; performing an online operation of the at least one environment based on the online configuration data, and obtaining online log data of the corresponding environment when performing the online operation; matching the configuration data of each environment with the corresponding online log data to obtain a matching result for the corresponding environment.
在一种可选的方式中,在所述获取上线配置数据之前,所述方法进一步还包括:获取所述待上线项目的上线计划,其中,所述上线计划包括所述待上线项目中至少一个环境的上线流程以及配置数据;对所述上线计划进行评审,得到评审结果;若所述评审结果指示所述上线计划评审通过,则执行所述获取所述上线配置数据的步骤。In an optional manner, before obtaining the online configuration data, the method further includes: obtaining an online plan for the project to be launched, wherein the online plan includes the online process and configuration data of at least one environment in the project to be launched; reviewing the online plan to obtain a review result; if the review result indicates that the online plan has passed the review, executing the step of obtaining the online configuration data.
在一种可选的方式中,所述获取所述待上线项目的上线计划,进一步包括:获取待上线项目所需的至少一个环境;搭建所述至少一个环境中各环境的设施,并获取各环境的设施的配置数据;基于所述至少一个环境在所述待上线项目中的上线流程以及所述至少一个环境中各环境的配置数据,获取所述上线计划。In an optional manner, obtaining the launch plan for the project to be launched further includes: obtaining at least one environment required for the project to be launched; building facilities for each environment in the at least one environment, and obtaining configuration data of the facilities in each environment; obtaining the launch plan based on the launch process of the at least one environment in the project to be launched and the configuration data of each environment in the at least one environment.
在一种可选的方式中,所述获取上线配置数据,进一步包括:基于所述待上线项目的上线计划,获取所述至少一个环境中各环境对应的配置数据;将所述各环境的配置数据按照预设格式进行处理,得到所述上线配置数据。In an optional manner, the obtaining of online configuration data further includes: obtaining configuration data corresponding to each environment in the at least one environment based on the online plan of the project to be launched; and processing the configuration data of each environment according to a preset format to obtain the online configuration data.
在一种可选的方式中,所述基于所述上线配置数据进行所述至少一个环境的上线操作,进一步包括:获取所述待上线项目的上线计划;其中,所述上线计划包括所述待上线项目中多个环境的上线流程;基于所述上线流程以及所述上线配置数据,依次进行所述多个环境中各环境的上线。In an optional manner, the online operation of performing at least one environment based on the online configuration data further includes: obtaining an online plan for the project to be launched; wherein the online plan includes the online process of multiple environments in the project to be launched; based on the online process and the online configuration data, each of the multiple environments is launched in turn.
在一种可选的方式中,所述获取对应环境在进行上线操作时的上线日志数据,进一步包括:在各环境进行上线操作时,记录各环境所对应的上线操作数据;在各环境的配置数据中获取待验证参数;基于各环境的待验证参数,在对应环境的上线操作数据中获取所述上线日志数据。In an optional manner, the obtaining of online log data of the corresponding environment when performing online operations further includes: recording the online operation data corresponding to each environment when performing online operations in each environment; obtaining parameters to be verified in the configuration data of each environment; and obtaining the online log data in the online operation data of the corresponding environment based on the parameters to be verified in each environment.
在一种可选的方式中,所述将各环境的配置数据与对应的上线日志数据进行匹配,得到对应环境的匹配结果,进一步包括:将各环境的上线日志数据与对应环境的配置数据中的待验证参数进行匹配;若匹配成功,则得到对应环境上线成功的匹配结果;若匹配失败,则记录匹配失败的待验证参数,并得到对应环境上线异常的匹配结果。In an optional manner, the configuration data of each environment is matched with the corresponding online log data to obtain the matching result of the corresponding environment, further including: matching the online log data of each environment with the parameters to be verified in the configuration data of the corresponding environment; if the match is successful, a matching result of successful online operation of the corresponding environment is obtained; if the match fails, the parameters to be verified that failed to match are recorded, and a matching result of abnormal online operation of the corresponding environment is obtained.
根据本申请实施例的另一方面,提供了一种运维配置管理装置,所述运维配置管理装置包括:上线配置数据获取模块,用于获取上线配置数据;其中,所述上线配置数据包括待上线项目的至少一个环境所对应的配置数据;上线日志数据模块,用于基于所述上线配置数据进行所述至少一个环境的上线操作,并获取对应环境在进行上线操作时的上线日志数据;匹配模块,用于将各环境的配置数据与对应的上线日志数据进行匹配,得到对应环境的匹配结果。According to another aspect of an embodiment of the present application, an operation and maintenance configuration management device is provided, and the operation and maintenance configuration management device includes: an online configuration data acquisition module, used to acquire online configuration data; wherein the online configuration data includes configuration data corresponding to at least one environment of the project to be launched; an online log data module, used to perform online operations on the at least one environment based on the online configuration data, and acquire online log data of the corresponding environment when performing the online operation; a matching module, used to match the configuration data of each environment with the corresponding online log data to obtain a matching result for the corresponding environment.
根据本申请实施例的一个方面,提供了一种电子设备,包括:控制器;存储器,用于存储一个或多个程序,当一个或多个程序被所述控制器执行时,以执行上述的运维配置管理方法。According to one aspect of an embodiment of the present application, an electronic device is provided, including: a controller; and a memory for storing one or more programs, which, when the one or more programs are executed by the controller, execute the above-mentioned operation and maintenance configuration management method.
根据本申请实施例的一个方面,还提供了一种计算机可读存储介质,其上存储有计算机可读指令,当所述计算机可读指令被计算机的处理器执行时,使计算机执行上述的运维配置管理方法。According to one aspect of an embodiment of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned operation and maintenance configuration management method.
根据本申请实施例的一个方面,还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述的运维配置管理方法。According to one aspect of the embodiments of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above-mentioned operation and maintenance configuration management method.
本申请实施例在基于配置数据进行环境上线时,基于环境的上线操作,获取环境在上线操作时的上线日志数据,以此,基于上线日志数据和配置数据进行匹配,可判断环境的配置是否正确,提高环境与配置数据之间的匹配度,提高环境上线的可靠性,保证待上线项目的正常运行。When the embodiment of the present application carries out an environment online based on the configuration data, the online log data of the environment during the online operation is obtained based on the online operation of the environment. Thus, based on the matching of the online log data and the configuration data, it can be determined whether the configuration of the environment is correct, thereby improving the matching degree between the environment and the configuration data, improving the reliability of the environment online, and ensuring the normal operation of the project to be launched.
上述说明仅是本申请实施例技术方案的概述,为了能够更清楚了解本申请实施例的技术手段,而可依照说明书的内容予以实施,并且为了让本申请实施例的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术者来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1是本申请一示例性实施例示出的项目与环境的结构示意图。FIG. 1 is a schematic diagram of the structure of a project and an environment shown in an exemplary embodiment of the present application.
图2是本申请一示例性实施例示出的一种运维配置管理方法的流程示意图。FIG2 is a flow chart of an operation and maintenance configuration management method shown in an exemplary embodiment of the present application.
图3是本申请一示例性实施例示出的另一种运维配置管理方法的流程示意图。FIG3 is a flow chart of another operation and maintenance configuration management method shown in an exemplary embodiment of the present application.
图4是本申请一示例性实施例示出的运维配置管理装置的结构示意图。FIG. 4 is a schematic diagram of the structure of an operation and maintenance configuration management device shown in an exemplary embodiment of the present application.
图5是本申请的一示例性实施例示出的电子设备的计算机系统的结构示意图。FIG. 5 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例执行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations/steps, nor must they be executed in the order described. For example, some operations/steps can be decomposed, and some operations/steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
在本申请中提及的“多个”是指两个或者两个以上。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。The term "plurality" used in this application refers to two or more than two. "And/or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and/or B can represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the related objects are in an "or" relationship.
如图1所示,其示出了一个项目project A包括的环境,如图1,该project A包括有TEST环境(测试环境)、UAT环境(验收环境)以及PRO环境(生产环境),且当该project A应用于多个地区时,一个环境中还可以包括有对应地区的多套环境,即当project A应用于a、b以及c地区时,该3个地区对应有对应套的环境配置数据,对于TEST环境,a地区有TEST环境在a地区的配置数据test_configuration_a,b地区有TEST环境在b地区的配置数据test_configuration_b,c地区有TEST环境在c地区的配置数据test_configuration_c;同样地,对于UAT环境,a地区有UAT环境在a地区的配置数据uat_configuration_a,b地区有UAT环境在b地区的配置数据uat_configuration_b,c地区有UAT环境在c地区的配置数据uat_configuration_c;对于PRO环境,a地区有PRO环境在a地区的配置数据pro_configuration_a,b地区有PRO环境在b地区的配置数据pro_configuration_b,c地区有PRO环境在c地区的配置数据pro_configuration_c。As shown in Figure 1, it shows the environment included in a project A. As shown in Figure 1, the project A includes a TEST environment (test environment), a UAT environment (acceptance environment) and a PRO environment (production environment). When the project A is applied to multiple regions, one environment can also include multiple environments in the corresponding regions. When A is applied to regions a, b and c, the three regions have corresponding sets of environment configuration data. For the TEST environment, region a has the configuration data test_configuration_a of the TEST environment in region a, region b has the configuration data test_configuration_b of the TEST environment in region b, and region c has the configuration data test_configuration_c of the TEST environment in region c; similarly, for the UAT environment, region a has the configuration data uat_configuration_a of the UAT environment in region a, region b has the configuration data uat_configuration_b of the UAT environment in region b, and region c has the configuration data uat_configuration_c of the UAT environment in region c; for the PRO environment, region a has the configuration data pro_configuration_a of the PRO environment in region a, region b has the configuration data pro_configuration_b of the PRO environment in region b, and region c has the configuration data pro_configuration_c of the PRO environment in region c.
可以理解的,图1中示出的project A所包括的环境为示意性的,在其他实施例中,还可以包括有其他的环境。It can be understood that the environment included in project A shown in FIG. 1 is schematic, and in other embodiments, other environments may also be included.
该配置数据中可以包括环境的版本数据。The configuration data may include version data of the environment.
一个项目可对应多套不同的环境(如测试环境、UAT环境和生产环境),每个环境又可以根据地区不同划分多套,运维上线不同项目程序到不同环境时,运维人员需要手动进行配置,如配置相关的数据库,Kafka,XXLJOB等,不同的运维人员对不同的项目和不同的环境熟悉程度不一致,不能保证环境上线后配置的准确性,只有环境在线上运行一段时间后才能暴露问题,导致环境无法正常执行相应功能,导致项目无法正常运行;尤其是在上线生产环境之后,由于生产环境的特殊性,不能在该生产环境进行对应的测试,会因为配置错误出现数据库连接不上导致数据读取写入等错误,或者配置到了不匹配的环境,也会导致对应的数据呈现和统计的不准确性。A project can correspond to multiple different environments (such as test environment, UAT environment and production environment). Each environment can be divided into multiple sets according to different regions. When the operation and maintenance personnel launch different project programs to different environments, they need to manually configure them, such as configuring related databases, Kafka, XXLJOB, etc. Different operation and maintenance personnel have different familiarity with different projects and different environments, and cannot guarantee the accuracy of the configuration after the environment is launched. Problems can only be exposed after the environment has been online for a period of time, resulting in the environment being unable to perform corresponding functions normally, resulting in the project being unable to run normally; especially after the production environment is launched, due to the particularity of the production environment, corresponding tests cannot be performed in the production environment. Errors such as database connection failure and data reading and writing may occur due to configuration errors, or configuration to an incompatible environment will also lead to inaccurate corresponding data presentation and statistics.
为此,本申请的一方面提供了一种运维配置管理方法。具体请参阅图2,图2是本申请一示例性实施例示出的一种运维配置管理方法的流程示意图。该运维配置管理方法至少包括S210至S230,详细介绍如下:To this end, one aspect of the present application provides an operation and maintenance configuration management method. Please refer to Figure 2 for details. Figure 2 is a flow chart of an operation and maintenance configuration management method shown in an exemplary embodiment of the present application. The operation and maintenance configuration management method includes at least S210 to S230, which are described in detail as follows:
S210:获取上线配置数据;其中,上线配置数据包括待上线项目的至少一个环境所对应的配置数据。S210: Acquire online configuration data; wherein the online configuration data includes configuration data corresponding to at least one environment of the project to be launched.
本实施例中,待上线项目的环境为待上线项目的程序需要上线的环境,该环境的数量可以是一个也可以是多个,如在一实施例中,一个待上线项目的环境包括开发环境、测试环境、UAT环境和生产环境等。In this embodiment, the environment of the project to be launched is the environment in which the program of the project to be launched needs to be launched. The number of such environments can be one or more. For example, in one embodiment, the environment of a project to be launched includes a development environment, a test environment, a UAT environment, and a production environment.
上线配置数据包括环境对应的配置数据,当待上线项目的环境为多个时,各环境对应存在配置数据,不同环境的配置数据可以相同也可以不同。The online configuration data includes configuration data corresponding to the environment. When there are multiple environments for the project to be online, there is configuration data corresponding to each environment. The configuration data of different environments can be the same or different.
在一些实施例中,在获取上线配置数据之前,还可先进行上线前的评审,以此保证上线的配置数据的准确性。In some embodiments, before obtaining the online configuration data, a pre-online review may be performed to ensure the accuracy of the online configuration data.
在一实施例中,在S210之前,还包括步骤:In one embodiment, before S210, the method further includes the following steps:
S10:获取待上线项目的上线计划,其中,上线计划包括待上线项目中至少一个环境的上线流程以及配置数据。S10: Obtaining a launch plan for the project to be launched, wherein the launch plan includes a launch process and configuration data of at least one environment in the project to be launched.
S11:对上线计划进行评审,得到评审结果。S11: Review the launch plan and obtain the review results.
S12:若评审结果指示上线计划评审通过,则执行S210。S12: If the review result indicates that the launch plan has passed the review, execute S210.
本实施例中,在待上线项目对应环境上线之前,可进行上线计划的制定,该上线计划包括环境的上线流程以及配置数据,上线流程可以包括不同环境的上线时间和步骤以及回滚计划,配置数据为不同环境的配置数据,可以包括不同环境上线的服务和对应的版本、所需要的资源、上线范围等数据。In this embodiment, before the environment corresponding to the project to be launched is launched, an online plan can be formulated. The online plan includes the online process and configuration data of the environment. The online process can include the online time and steps of different environments and the rollback plan. The configuration data is the configuration data of different environments, which can include the services launched in different environments and the corresponding versions, the required resources, the online scope and other data.
通过对上线计划的评审,可得到评审结果,该评审可以是运维配置管理装置基于预设的规则进行评审,也可以是人工进行评审,还可以是运维配置管理中设置相关算法进行评审,此处不做具体限制。The review results can be obtained by reviewing the launch plan. The review can be conducted by the operation and maintenance configuration management device based on preset rules, or it can be conducted manually, or it can be conducted by setting relevant algorithms in the operation and maintenance configuration management. No specific restrictions are made here.
在一些实施例中,S10还可以包括:In some embodiments, S10 may further include:
S20:获取待上线项目所需的至少一个环境。S20: Obtain at least one environment required for the project to be launched.
S21:搭建至少一个环境中各环境的设施,并获取各环境的设施的配置数据。S21: Building facilities for each environment in at least one environment, and obtaining configuration data of the facilities for each environment.
S22:基于至少一个环境在待上线项目中的上线流程以及至少一个环境中各环境的配置数据,获取上线计划。S22: Obtain an online plan based on the online process of at least one environment in the project to be online and the configuration data of each environment in the at least one environment.
本实施例中,确定待上线项目所需要的环境,然后根据规划,搭建各个环境的设施,环境的设施为实现环境上线所需要的资源和数据,包括服务器、网络和存储等,软件安装,配置管理,依赖管理。In this embodiment, the environment required by the project to be launched is determined, and then the facilities of each environment are built according to the plan. The facilities of the environment are the resources and data required to implement the environment online, including servers, networks and storage, software installation, configuration management, and dependency management.
基于该设施,即可配置环境所需要的配置数据。Based on this facility, the configuration data required for the environment can be configured.
对于待上线项目的环境而言,其可存在先后关系,以此,如图1,先上线TSET环境,然后从TSET环境上线到UAT环境,以此,可获取待上线项目的环境的上线流程,该上线流程可以包括不同环境的上线时间和步骤以及回滚计划。For the environment of the project to be launched, there may be a sequence relationship. As shown in Figure 1, the TSET environment is launched first, and then the UAT environment is launched from the TSET environment. In this way, the launch process of the environment of the project to be launched can be obtained. The launch process can include the launch time and steps of different environments and the rollback plan.
从而,可通过该上线流程和配置数据得到上线计划。Therefore, the launch plan can be obtained through the launch process and configuration data.
在一些实施例中,在评审通过后,则可基于上线计划,获取至少一个环境中各环境对应的配置数据,将各环境的配置数据按照预设格式进行处理,得到上线配置数据。In some embodiments, after the review is passed, configuration data corresponding to each environment in at least one environment can be obtained based on the online plan, and the configuration data of each environment can be processed according to a preset format to obtain online configuration data.
本实施例中,根据上线计划准备好对应的上线的环境的各个相关配置数据,进行版本流程化控制管理,将不同设施的配置数据按照预设格式进行统一管理,比如该一个环境的配置数据中可包含数据库的配置数据,Kafka(一种高吞吐量的分布式发布订阅消息系统)的配置数据、Redis(远程自动服务)的配置数据、服务器的版本信息等,将各环境中的配置数据按照yaml文件的格式进行管理,得到各环境进行预设格式处理后的配置数据,如待上线项目project A的UAT环境的进行预设格式处理后的上线配置数据project A_uat.yaml可以包括以下信息:In this embodiment, various relevant configuration data of the corresponding online environment are prepared according to the online plan, and version process control management is performed, and the configuration data of different facilities are uniformly managed according to a preset format. For example, the configuration data of one environment may include the configuration data of the database, the configuration data of Kafka (a high-throughput distributed publish-subscribe messaging system), the configuration data of Redis (remote automatic service), the version information of the server, etc. The configuration data in each environment is managed according to the format of a yaml file, and the configuration data of each environment after being processed in a preset format is obtained. For example, the online configuration data project A_uat.yaml of the UAT environment of the project A to be launched after being processed in a preset format may include the following information:
Environment(环境):UATEnvironment: UAT
Host(主机):xxHost: xx
Release(发布版本):xxRelease: xx
Owner(管理员):xxxOwner(Administrator):xxx
MySql(数据库,以下为数据库的配置数据):MySql (database, the following is the database configuration data):
Version(版本):xxVersion: xx
Count(计数):xCount:x
Instance(实例):xxxInstance: xxx
Db(数据块):xxDb(data block):xx
Script(脚本):xxxScript: xxx
Redis(以下为Redis的配置数据):Redis (the following is the configuration data of Redis):
Version:xxVersion:xx
Count:xCount:x
Instance:xxxInstance:xxx
Kafka(以下为Kafka的配置数据):Kafka (The following is the configuration data of Kafka):
Version:xxVersion:xx
Count:xCount:x
Instance:xxxInstance:xxx
Topic(主题):xxxTopic:xxx
Script:xxxScript:xxx
Service m(服务器m):Service m:
Version:xxVersion:xx
Service n(服务器n):Service n:
Version:xVersion:x
本实施例中,各环境的配置数据进行预设格式处理后,得到预设格式进行处理后的配置数据,将待上线项目的所有环境的预设格式进行处理后的配置数据作为上线配置数据,以此,可基于该上线配置数据,进行待上线项目的环境的依次上线。In this embodiment, after the configuration data of each environment is processed in a preset format, the configuration data processed in the preset format is obtained, and the configuration data processed in the preset format of all environments of the project to be launched is used as the online configuration data. In this way, the environments of the project to be launched can be launched one by one based on the online configuration data.
S220:基于上线配置数据进行至少一个环境的上线操作,并获取对应环境在进行上线操作时的上线日志数据。S220: Perform an 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.
本实施例中,获取待上线项目的上线计划,上线计划包括待上线项目中多个环境的上线流程,基于上线流程以及上线配置数据,依次进行多个环境中各环境的上线。In this embodiment, the launch plan of the project to be launched is obtained, and the launch plan includes the launch process of multiple environments in the project to be launched. Based on the launch process and the launch configuration data, each environment in the multiple environments is launched in turn.
本实施例中,上线流程中包括环境的上线时间、步骤等数据,以此可基于上线流程依次进行环境的上线,在此过程中,还基于上线配置数据中各环境的配置数据,进行环境的上线。In this embodiment, the online process includes data such as the online time and steps of the environment, so that the environment can be put online in sequence based on the online process. In this process, the environment is also put online based on the configuration data of each environment in the online configuration data.
在各环境的上线过程中,记录各环境所对应的上线操作数据;在各环境的配置数据中获取待验证参数;基于各环境的待验证参数,在对应环境的上线操作数据中获取上线日志数据。During the launch process of each environment, the launch operation data corresponding to each environment is recorded; the parameters to be verified are obtained from the configuration data of each environment; based on the parameters to be verified of each environment, the launch log data is obtained from the launch operation data of the corresponding environment.
本实施例中,可运用相关工具,(例如Selenium)录制环境上线操作过程中的上线操作数据,如在某一环境上线执行数据库操作时,可得到该环境上线执行数据库时的环境、数据源、当前审核人、数据库内容结果等数据,该数据集为该环境上线执行数据库时的上线操作数据,对于同一环境而言,在环境上线执行相关任务过程中,均可得到对应任务的上线操作数据,该环境的所有任务的上线操作数据,统称为该环境的上线操作数据。In this embodiment, relevant tools (such as Selenium) can be used to record the online operation data of the environment online operation process. For example, when a database operation is performed online in a certain environment, the environment, data source, current reviewer, database content results and other data when the environment is online to execute the database can be obtained. This data set is the online operation data when the environment is online to execute the database. For the same environment, the online operation data of the corresponding task can be obtained during the process of the environment going online to execute related tasks. The online operation data of all tasks of the environment are collectively referred to as the online operation data of the environment.
本实施例中,上线操作数据包括该环境上线过程中的所有数据,而在进行环境上线以及环境与配置匹配过程中,不会对配置数据中的所有数据进行验证,而是仅对需要验证的数据进行匹配。In this embodiment, the online operation data includes all data in the process of the environment online. During the process of the environment online and the matching of the environment and the configuration, not all data in the configuration data will be verified, but only the data that needs to be verified will be matched.
以此,而获取各环境中配置数据的待验证参数,不同环境的待验证参数可以相同也可以不同。In this way, the parameters to be verified of the configuration data in each environment are obtained, and the parameters to be verified in different environments may be the same or different.
然后从对应环境的上线操作数据中提取与待验证参数所对应的上线日志数据,如某一环境中待验证参数为服务器的版本,以此,则在对应环境的上线操作数据中提取服务器的版本数据作为上线日志数据。Then, the online log data corresponding to the parameter to be verified is extracted from the online operation data of the corresponding environment. For example, if the parameter to be verified in a certain environment is the server version, the server version data is extracted from the online operation data of the corresponding environment as the online log data.
本实施例中,可通过编写shell脚本从上线操作数据中提取与待验证参数对应的上线日志数据。In this embodiment, the online log data corresponding to the parameter to be verified can be extracted from the online operation data by writing a shell script.
本实施例中,待验证参数为需要对环境进行配置的配置数据,而上线日志数据为环境在上线时,实际的配置数据。In this embodiment, the parameters to be verified are configuration data required to configure the environment, and the online log data are actual configuration data when the environment is online.
S230:将各环境的配置数据与对应的上线日志数据进行匹配,得到对应环境的匹配结果。S230: Match the configuration data of each environment with the corresponding online log data to obtain a matching result of the corresponding environment.
本实施例中,环境在上线过程中可能存在多个任务,不同任务可得到对应的上线日志数据,将该环境的所有任务的上线日志数据作为该环境的上线日志数据。In this embodiment, there may be multiple tasks in the online process of the environment, and different tasks can obtain corresponding online log data. The online log data of all tasks of the environment is used as the online log data of the environment.
可以理解的,任务为该环境在上线时,所进行的操作。It can be understood that the task is the operation performed when the environment is online.
本实施例中,上线日志数据同样按照预设格式进行处理,得到预设格式处理后的上线日志数据,从而,对于一个环境而言,预设格式处理后的上线日志数据以及预设格式处理后的配置数据的格式相同,以便于后续的匹配。In this embodiment, the online log data is also processed according to the preset format to obtain the online log data processed in the preset format. Therefore, for an environment, the format of the online log data processed in the preset format and the configuration data processed in the preset format are the same to facilitate subsequent matching.
在另一些实施例中,上线日志数据在进行预设格式处理之前,还需要加上相关操作具体的时间,计算出上线实际用时,步骤执行结果,实际操作人等关键信息,然后进行预设格式进行处理,得到预设格式处理后的上线日志数据。In other embodiments, before the online log data is processed in a preset format, it is necessary to add the specific time of the relevant operations, calculate the actual time taken to go online, the results of the step execution, the actual operator and other key information, and then process it in a preset format to obtain the online log data after processing in the preset format.
在一些实施例中,运用脚本程序对比上线日志数据与对应环境的配置数据中的待验证参数,逐一对比所有信息是否匹配一致,确保准确性,将不一致的数据进行区别记录,输出结果,并给出最终结论。In some embodiments, a script program is used to compare the online log data with the parameters to be verified in the configuration data of the corresponding environment, compare all the information one by one to see if they match, ensure accuracy, record inconsistent data separately, output results, 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 match is successful, a matching result indicating successful online operation of the corresponding environment is obtained; if the match fails, the parameters to be verified that failed to match are recorded, and a matching result indicating abnormal online operation of the corresponding environment is obtained.
本实施例中,匹配成功,则表明该环境配置正确,匹配失败,则表面该环境配置错误,可能会导致环境无法正常执行对应功能或是配置到了不匹配的环境,最终造成项目无法正常运行,需要进行环境的重新配置或是修改配置数据重新上线等操作。In this embodiment, if the match is successful, it indicates that the environment is configured correctly. If the match fails, it means that the environment is configured incorrectly, which may cause the environment to be unable to perform the corresponding function normally or to be configured in an incompatible environment, ultimately causing the project to fail to operate normally, requiring the environment to be reconfigured or the configuration data to be modified and put back online.
本实施例中提出一种运维配置管理方法,在基于配置数据进行环境上线时,基于环境的上线操作,获取环境在上线操作时的上线日志数据,以此,基于上线日志数据和配置数据进行匹配,可判断环境的配置是否正确,提高环境与配置数据之间的匹配度,提高环境上线的可靠性,保证待上线项目的正常运行。In this embodiment, an operation and maintenance configuration management method is proposed. When the environment is put online based on configuration data, based on the online operation of the environment, the online log data of the environment during the online operation is obtained. In this way, based on the matching of the online log data and the configuration data, it can be judged whether the configuration of the environment is correct, the matching degree between the environment and the configuration data is improved, the reliability of the environment online is improved, and the normal operation of the project to be put online is guaranteed.
具体而言,本实施例中的运维配置管理方法在环境上线且进行任务时,更新和维护相关的上线操作数据,以此可迅速定位问题,并可进行快速排查和修复,提早预判了上线操作不当导致程序出错的风险,以减少故障时间;在上线完毕后,可通过监控工具对软件运行状态、性能指标、上线操作数据等进行实时监控,及时发现异常行为和潜在威胁,提高系统安全性;待一定数据沉淀后,进行环境的上线数据分析,可以体现在项目,环境,运维人员,成功失败概率,上线频率,上线用时时长等,方便追溯和回溯,得到相关数据后进行流程和过程优化改进,提高工作效率。Specifically, the operation and maintenance configuration management method in this embodiment updates and maintains relevant online operation data when the environment is online and tasks are performed, so that problems can be quickly located, and rapid investigation and repair can be carried out, and the risk of program errors caused by improper online operations can be predicted in advance to reduce downtime; after the online operation is completed, the software running status, performance indicators, online operation data, etc. can be monitored in real time through monitoring tools to promptly detect abnormal behaviors and potential threats and improve system security; after a certain amount of data has been accumulated, the online data analysis of the environment is carried out, which can be reflected in the project, environment, operation and maintenance personnel, success and failure probability, online frequency, online time duration, etc., which is convenient for tracing and backtracking, and after obtaining relevant data, the process and process are optimized and improved to improve work efficiency.
图3是本申请的另一实施例提供的一种运维配置管理方法流程图,首先,进行待上线项目的环境规划:确定需要的各种环境,如开发环境、测试环境、UAT环境和生产环境;然后进行环境部署:根据规划,搭建各个环境的设施,包括服务器、网络和存储等,软件安装,配置管理,依赖管理;然后制定上线计划:确定上线时间和步骤,以及回滚计划,开发准备好对应环境的上线文档,包括上线范围,需要的资源,上线的服务和对应的版本,各个配置文件,并进行评审;在评审通过后,按照预设格式对配置数据进行统一管理得到上线配置数据;然后根据上线配置数据和上线计划进行环境上线;在环境上线过程中记录上线操作数据;然后根据待验证参数在上线操作数据中获取上线日志数据;通过上线日志数据与对应环境的配置数据中的待验证参数进行匹配,最终得到匹配结果。3 is a flow chart of an operation and maintenance configuration management method provided by another embodiment of the present application. First, environmental planning of the project to be launched is carried out: various environments required, such as development environment, test environment, UAT environment and production environment are determined; then environmental deployment is carried out: according to the plan, facilities of each environment are built, including servers, networks and storage, software installation, configuration management, and dependency management; then an online plan is formulated: the online time and steps, as well as the rollback plan, are determined, and online documents for the corresponding environment are developed and prepared, including the online scope, required resources, online services and corresponding versions, and various configuration files, and are reviewed; after the review is passed, the configuration data is uniformly managed in a preset format to obtain the online configuration data; then the environment is launched according to the online configuration data and the online plan; the online operation data is recorded during the environment online process; then the online log data is obtained from the online operation data according to the parameters to be verified; the online log data is matched with the parameters to be verified in the configuration data of the corresponding environment, and finally a matching result is obtained.
本实施例中的运维配置管理方法可应用于车联网系统或服务器中,当然也可以应用于其他需要进行运维配置管理的系统或服务器中,此处不做具体限制。The operation and maintenance configuration management method in this embodiment can be applied to the Internet of Vehicles system or server, and of course can also be applied to other systems or servers that require operation and maintenance configuration management, and no specific restrictions are made here.
本申请的另一方面还提供了一种运维配置管理装置,如图4所示,图4是本申请一示例性实施例示出的运维配置管理装置的结构示意图。运维配置管理装置400包括:上线配置数据获取模块410,用于获取上线配置数据;其中,上线配置数据包括待上线项目的至少一个环境所对应的配置数据;上线日志数据模块430,用于基于上线配置数据进行至少一个环境的上线操作,并获取对应环境在进行上线操作时的上线日志数据;匹配模块450,用于将各环境的配置数据与对应的上线日志数据进行匹配,得到对应环境的匹配结果。Another aspect of the present application also provides an operation and maintenance configuration management device, as shown in Figure 4, which is a structural diagram of an operation and maintenance configuration management device shown in an exemplary embodiment of the present application. The operation and maintenance configuration management device 400 includes: an online configuration data acquisition module 410, which is used to obtain online configuration data; wherein the online configuration data includes configuration data corresponding to at least one environment of the project to be online; an online log data module 430, which is used to perform online operations on at least one environment based on the online configuration data, and obtain the online log data of the corresponding environment when performing the online operation; a matching module 450, which is used to match the configuration data of each environment with the corresponding online log data to obtain the matching result of the corresponding environment.
在一种可选的方式中,运维配置管理装置400进一步还包括:In an optional manner, the operation and maintenance configuration management device 400 further includes:
上线计划获取模块,用于获取待上线项目的上线计划,其中,上线计划包括待上线项目中至少一个环境的上线流程以及配置数据;评审模块,用于对上线计划进行评审,得到评审结果;评审执行模块,用于若评审结果指示上线计划评审通过,则执行获取上线配置数据的步骤。An online plan acquisition module is used to obtain the online plan of the project to be launched, wherein the online plan includes the online process and configuration data of at least one environment in the project to be launched; a review module is used to review the online plan and obtain the review result; and a review execution module is used to execute the step of obtaining the online configuration data if the review result indicates that the online plan review is passed.
在一种可选的方式中,上线计划获取模块,进一步包括:环境获取单元,用于获取待上线项目所需的至少一个环境;配置数据获取单元,用于搭建至少一个环境中各环境的设施,并获取各环境的设施的配置数据;上线计划获取单元,用于基于至少一个环境在待上线项目中的上线流程以及至少一个环境中各环境的配置数据,获取上线计划。In an optional manner, the online plan acquisition module further includes: an environment acquisition unit, used to acquire at least one environment required for the project to be launched; a configuration data acquisition unit, used to build facilities for each environment in at least one environment and acquire configuration data of the facilities in each environment; an online plan acquisition unit, used to acquire the online plan based on the online process of at least one environment in the project to be launched and the configuration data of each environment in at least one environment.
在一种可选的方式中,上线配置数据获取模块,进一步包括:配置数据获取单元,用于基于待上线项目的上线计划,获取至少一个环境中各环境对应的配置数据;上线配置数据获取单元,用于将各环境的配置数据按照预设格式进行处理,得到上线配置数据。In an optional manner, the online configuration data acquisition module further includes: a configuration data acquisition unit, used to obtain configuration data corresponding to each environment in at least one environment based on the online plan of the project to be launched; and an online configuration data acquisition unit, used to process the configuration data of each environment according to a preset format to obtain online configuration data.
在一种可选的方式中,上线日志数据模块,进一步包括:上线计划确认单元,用于获取待上线项目的上线计划;其中,上线计划包括待上线项目中多个环境的上线流程;上线单元,用于基于上线流程以及上线配置数据,依次进行多个环境中各环境的上线。In an optional manner, the online log data module further includes: an online plan confirmation unit, used to obtain the online plan of the project to be launched; wherein the online plan includes the online process of multiple environments in the project to be launched; and an online unit, used to carry out the online of each environment in multiple environments in sequence based on the online process and the online configuration data.
在一种可选的方式中,上线日志数据模块,进一步包括:In an optional manner, the online log data module further includes:
上线操作数据获取单元,用于在各环境进行上线操作时,记录各环境所对应的上线操作数据;待验证参数获取单元,用于在各环境的配置数据中获取待验证参数;上线日志数据单元,用于基于各环境的待验证参数,在对应环境的上线操作数据中获取上线日志数据。The online operation data acquisition unit is used to record the online operation data corresponding to each environment when performing online operations in each environment; the parameter acquisition unit to be verified is used to obtain the parameters to be verified in the configuration data of each environment; the online log data unit is used to obtain the online log data in the online operation data of the corresponding environment based on the parameters to be verified in each environment.
在一种可选的方式中,匹配模块,进一步包括:In an optional manner, the matching module further includes:
匹配单元,用于将各环境的上线日志数据与对应环境的配置数据中的待验证参数进行匹配;第一匹配结果获取单元,用于若匹配成功,则得到对应环境上线成功的匹配结果;第二匹配结果获取单元,用于若匹配失败,则记录匹配失败的待验证参数,并得到对应环境上线异常的匹配结果。The matching unit is used to match 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 to obtain the matching result of the successful online of the corresponding environment if the match is successful; the second matching result acquisition unit is used to record the parameters to be verified that failed to match if the match fails, and obtain the matching result of the abnormal online of the corresponding environment.
需要说明的是,上述实施例所提供的运维配置管理装置与前述实施例所提供的运维配置管理方法属于同一构思,其中各个模块和单元执行操作的具体方式已经在方法实施例中进行了详细描述,这里不再赘述。It should be noted that the operation and maintenance configuration management device provided in the above embodiment and the operation and maintenance configuration management method provided in the above embodiment belong to the same concept, and the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.
本申请的另一方面还提供了一种电子设备,包括:控制器;存储器,用于存储一个或多个程序,当一个或多个程序被控制器执行时,以执行上述的运维配置管理方法。Another aspect of the present application provides an electronic device, including: a controller; a memory for storing one or more programs, and when the one or more programs are executed by the controller, the above-mentioned operation and maintenance configuration management method is executed.
请参阅图5,图5是本申请的一示例性实施例示出的电子设备的计算机系统的结构示意图,其示出了适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。Please refer to FIG. 5 , which is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.
需要说明的是,图5示出的电子设备的计算机系统500仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。It should be noted that the computer system 500 of the electronic device shown in FIG. 5 is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
如图5所示,计算机系统500包括中央处理单元(Central Processing Unit,CPU)501,其可以根据存储在只读存储器(Read-Only Memory,ROM)502中的程序或者从存储部分508加载到随机访问存储器(Random Access Memory,RAM)503中的程序而执行各种适当的动作和处理,例如执行上述实施例中的方法。在RAM 503中,还存储有系统操作所需的各种程序和数据。CPU 501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(Input/Output,I/O)接口505也连接至总线504。As shown in Figure 5, computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In RAM 503, various programs and data required for system operation are also stored. CPU 501, ROM 502 and RAM 503 are connected to each other through bus 504. Input/output (I/O) interface 505 is also connected to bus 504.
以下部件连接至I/O接口505:包括键盘、鼠标等的输入部分506;包括诸如阴极射线管(Cathode Ray Tube,CRT)、液晶显示器(Liquid Crystal Display,LCD)等以及扬声器等的输出部分507;包括硬盘等的存储部分508;以及包括诸如LAN(Local Area Network,局域网)卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分508。The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A 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, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的计算机程序。在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。在该计算机程序被中央处理单元(CPU)501执行时,执行本申请的系统中限定的各种功能。In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and/or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.
需要说明的是,本申请实施例所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的计算机程序。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的计算机程序可以用任何适当的介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained 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 above.
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。其中,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不相同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not constitute limitations on the units themselves in some cases.
本申请的另一方面还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如前的运维配置管理方法。该计算机可读存储介质可以是上述实施例中描述的电子设备中所包含的,也可以是单独存在,而未装配入该电子设备中。Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the operation and maintenance configuration management method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
本申请的另一方面还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各个实施例中提供的运维配置管理方法。Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the operation and maintenance configuration management method provided in each of the above embodiments.
根据本申请实施例的一个方面,还提供了一种计算机系统,包括中央处理单元(Central Processing Unit,CPU),其可以根据存储在只读存储器(Read-Only Memory,ROM)中的程序或者从存储部分加载到随机访问存储器(Random Access Memory,RAM)中的程序而执行各种适当的动作和处理,例如执行上述实施例中的方法。在RAM中,还存储有系统操作所需的各种程序和数据。CPU、ROM以及RAM通过总线彼此相连。输入/输出(Input/Output,I/O)接口也连接至总线。According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. Input/output (I/O) interface is also connected to the bus.
以下部件连接至I/O接口:包括键盘、鼠标等的输入部分;包括诸如阴极射线管(Cathode Ray Tube,CRT)、液晶显示器(Liquid Crystal Display,LCD)等以及扬声器等的输出部分;包括硬盘等的存储部分;以及包括诸如LAN(Local Area Network,局域网)卡、调制解调器等的网络接口卡的通信部分。通信部分经由诸如因特网的网络执行通信处理。驱动器也根据需要连接至I/O接口。可拆卸介质,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器上,以便于从其上读出的计算机程序根据需要被安装入存储部分。The following components are connected to the I/O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I/O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
上述内容,仅为本申请的较佳示例性实施例,并非用于限制本申请的实施方案,本领域普通技术人员根据本申请的主要构思和精神,可以十分方便地进行相应的变通或修改,故本申请的保护范围应以权利要求书所要求的保护范围为准。The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410227979.XA CN118051278A (en) | 2024-02-29 | 2024-02-29 | A method, device, electronic device and storage medium for operation and maintenance configuration management |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410227979.XA CN118051278A (en) | 2024-02-29 | 2024-02-29 | A method, device, electronic device and storage medium for operation and maintenance configuration management |
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 | A method, device, electronic device and storage medium for operation and maintenance configuration management |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118051278A (en) |
Citations (4)
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 |
-
2024
- 2024-02-29 CN CN202410227979.XA patent/CN118051278A/en active Pending
Patent Citations (4)
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 |
---|---|---|
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 | |
CN112631919A (en) | Comparison test method and device, computer equipment and storage medium | |
CN113515297A (en) | Version updating method and device, electronic equipment and storage medium | |
CN112988555A (en) | Interface test method, device, equipment and storage medium | |
CN109299124B (en) | Method and apparatus for updating a model | |
CN113687859B (en) | A branch management method, device, electronic device and medium for software development | |
CN110865806A (en) | Code processing method, device, server and storage medium | |
US11687441B2 (en) | Intelligent dynamic web service testing apparatus in a continuous integration and delivery environment | |
US20230007894A1 (en) | Intelligent Dynamic Web Service Testing Apparatus in a Continuous Integration and Delivery Environment | |
CN113986263A (en) | Code automation testing method, device, electronic device, storage medium | |
CN113849186A (en) | Script file processing method and device, storage medium and electronic equipment | |
CN118885455A (en) | Multi-database data migration method, storage medium and electronic device | |
CN112988578A (en) | An automated testing method and device | |
CN117609038A (en) | A process management method, equipment, device and storage medium for project automation testing | |
CN118051278A (en) | A method, device, electronic device and storage medium for operation and maintenance configuration management | |
CN112612702B (en) | Automatic testing method and device based on web | |
CN112328473A (en) | Code automation integration test method and device and electronic equipment | |
CN113791818B (en) | Code improvement method, device, medium and equipment based on measurement platform | |
CN113778842B (en) | Fault-tolerance testing method, device, electronic device and storage medium | |
CN107818048B (en) | Quality checking method and related equipment for computer code branch integration | |
CN112650663B (en) | A code processing method, device, equipment and medium | |
CN118519922A (en) | Garbage recycling method and device of system, storage medium and computer equipment | |
CN120162258A (en) | Model automatic test method, device, equipment, storage medium and program product | |
CN118132135A (en) | Method, device, equipment and medium for continuously integrating software |
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 |