Database monitoring automated deployment method, device, equipment and medium

By automatically deploying initial file packages using multiple initial configuration parameter information in high-availability deployment scenarios and updating middleware configuration information, the problem of cumbersome deployment process and lack of flexibility is solved, and efficient and global automated deployment is achieved.

CN119226094BActive Publication Date: 2025-04-11TIANJIN NANKAI UNIV GENERAL DATA TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411748772.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-04-11
Estimated Expiration
2044-12-02

AI Technical Summary

Technical Problem

In high availability deployment scenarios, the project deployment process is complicated and complex, the time cost is high, middleware deployment lacks close integration with the actual project environment, lacks flexibility, and traditional projects mainly focus on local configurations and lacks unified global configuration management.

Method used

Through a variety of initial configuration parameter information corresponding to the target project (including installation path parameter information, address parameter information, port information, and database tag information), the initial file package is automatically deployed to the server to be deployed, and the initial middleware configuration information is updated according to the environment information of different servers to be deployed, the target middleware configuration information is determined, and the target configuration parameter information is generated to realize the automated deployment of highly available deployment scenarios.

Benefits of technology

It realizes automated and flexible deployment of high-availability deployment scenarios, improves the globality and efficiency of project deployment, and avoids the cumbersome deployment process of local configurations in traditional technologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119226094B_ABST
    Figure CN119226094B_ABST
Patent Text Reader

Abstract

The present invention provides a database monitoring automatic deployment method, device, equipment and medium, and relates to the field of automatic deployment technology. The method comprises: determining configuration file information and code to be deployed based on acquired server information to be deployed corresponding to a target project; processing project tag information, initial middleware configuration information, system version information and code to be deployed to generate an initial file package; deploying the initial file package to the server to be deployed based on initial configuration parameter information corresponding to the target project, and determining target middleware configuration information according to environment information corresponding to the server to be deployed; updating the initial configuration parameter information using the target middleware configuration information to determine the target configuration parameter information; and realizing automatic deployment for the target project based on the target configuration parameter information and the target file package corresponding to the target configuration parameter information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated deployment technology, and in particular to a database monitoring automated deployment method, device, equipment and medium. Background Art

[0002] With the development of project iteration speed and the continuous decoupling of technology fields, the use of middleware in projects has grown rapidly, especially for high-availability deployment scenarios, and the project deployment workflow has become cumbersome and complicated. In related technologies, developers generally develop and test projects for specific hardware and software environments, and project operation and maintenance personnel then carry out subsequent deployment work.

[0003] In the process of conceiving the present invention, the inventors found that the relevant technologies have the following defects in project deployment: for high-availability deployment scenarios, the deployment process is cumbersome and complicated, and the time cost of the entire deployment work is high; the deployment of the middleware lacks close integration with the actual project environment information, and the deployment work lacks flexibility; traditional projects are mostly based on local configuration, and each deployment node needs to be independently configured and installed, lacking unified global configuration management. Summary of the invention

[0004] In view of this, the present invention provides a method, device, equipment and medium for automatic deployment of database monitoring.

[0005] According to a first aspect of the present invention, a method for automatic deployment of database monitoring is provided, comprising: determining information of files to be configured and codes to be configured based on information of a server to be configured corresponding to a target project, wherein the information of files to be configured includes project label information, initial middleware configuration information and system version information, and the codes to be configured are associated with the system version information; processing the project label information, the initial middleware configuration information, the system version information and the codes to be configured to generate an initial file package; deploying the initial file package to the server to be configured based on initial configuration parameter information corresponding to the target project, determining target middleware configuration information for environment information corresponding to the server to be configured, wherein the server to be configured includes multiple server nodes, and different server nodes have different operation permissions, and the initial configuration parameter information includes installation path parameter information, address parameter information, port information, object information, permission information and database label information; updating the initial configuration parameter information using the target middleware configuration information to determine the target configuration parameter information; and realizing automatic deployment for the target project based on the target configuration parameter information and the target file package corresponding to the target configuration parameter information.

[0006] According to an embodiment of the present invention, the above-mentioned server information to be deployed includes information of multiple server nodes to be deployed, and the above-mentioned method also includes: determining a first server node and a second server node from the servers to be deployed including multiple server nodes, wherein the above-mentioned operation authority characterizes that the above-mentioned second server node includes multiple second server sub-nodes; and determining the operation authority between the above-mentioned first server node and the above-mentioned second server node based on the environmental information corresponding to the above-mentioned server to be deployed, wherein the operation authority level of the above-mentioned first server node is greater than the operation authority level of the above-mentioned second server, and the above-mentioned first server node has non-confidential operation access to the multiple above-mentioned second server sub-nodes.

[0007] According to an embodiment of the present invention, the method for determining the above-mentioned initial configuration parameter information includes: determining the initial project configuration parameter information and the initial middleware configuration information based on parameter information corresponding to the above-mentioned environment information; and generating the above-mentioned initial configuration parameter information based on the above-mentioned initial project configuration parameter information and the above-mentioned initial middleware configuration information.

[0008] According to an embodiment of the present invention, the above-mentioned determining the target middleware configuration information for the environment information corresponding to the above-mentioned server to be deployed includes: updating the above-mentioned initial middleware configuration information based on the environment information corresponding to the above-mentioned target project to determine the above-mentioned target middleware configuration information.

[0009] According to an embodiment of the present invention, the above-mentioned determination of configuration file information and code to be deployed based on the acquired server information to be deployed corresponding to the target project includes: determining the project tag information, the initial middleware configuration information and the system version information based on the server information to be deployed; selecting the initial code corresponding to the project tag information from the source code library; and updating the initial code based on the project tag information, the initial middleware configuration information and the system version information to generate the code to be deployed.

[0010] According to an embodiment of the present invention, the above-mentioned project tag information, the above-mentioned initial middleware configuration information, the above-mentioned system version information and the above-mentioned code to be deployed are processed to generate an initial file package, including: selecting the target middleware based on the above-mentioned initial middleware configuration information and the above-mentioned system version information; packaging the above-mentioned target middleware and the above-mentioned code to be deployed to generate an initial packaging file; testing the above-mentioned initial packaging file to generate a testing result; and when the above-mentioned testing result indicates that the above-mentioned initial packaging file meets the preset testing condition, determining the above-mentioned initial packaging file as the above-mentioned initial file package.

[0011] According to an embodiment of the present invention, the method further comprises: monitoring the running status of the target project and the target middleware using a monitoring tool.

[0012] The second aspect of the present invention provides a project automation deployment device, characterized in that the above-mentioned device includes: an information and code determination module, which is used to determine the configuration file information and the code to be deployed based on the acquired server information to be deployed corresponding to the target project, wherein the above-mentioned configuration file information includes project label information, initial middleware configuration information and system version information, and the above-mentioned code to be deployed is associated with the above-mentioned system version information; an initial file package generation module, which is used to process the above-mentioned project label information, the above-mentioned initial middleware configuration information, the above-mentioned system version information and the above-mentioned code to be deployed to generate an initial file package; a target middleware configuration information determination module, which is used to convert the above-mentioned initial file package into a new file package based on the initial configuration parameter information corresponding to the above-mentioned target project. The target middleware package is deployed to the server to be deployed, and the target middleware configuration information is determined according to the environment information corresponding to the above-mentioned server to be deployed, wherein the above-mentioned server to be deployed includes multiple server nodes, and the operation permissions of different server nodes are different, and the above-mentioned initial configuration parameter information includes installation path parameter information, address parameter information, port information, object information, permission information and database label information; a target configuration parameter information determination module is used to update the above-mentioned initial configuration parameter information with the above-mentioned target middleware configuration information to determine the target configuration parameter information; and an automatic deployment module is used to realize automatic deployment for the above-mentioned target project based on the above-mentioned target configuration parameter information and the target file package corresponding to the above-mentioned target configuration parameter information.

[0013] A third aspect of the present invention provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above method.

[0014] The fourth aspect of the present invention also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above method.

[0015] The fifth aspect of the present invention also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0016] According to the database monitoring automatic deployment method, device, equipment and medium provided by the present invention, the initial file package can be automatically deployed to the server to be deployed through various initial configuration parameter information corresponding to the target project (including installation path parameter information, address parameter information, port information, database tag information), and the initial middleware configuration information is updated according to the environmental information of different servers to be deployed, so as to determine the target middleware configuration information, and flexibly generate the target configuration parameter information on this basis, thereby completing the automatic deployment of the high-availability deployment scenario; at the same time, the deployment nodes in the server to be deployed are determined through the operation permissions between different server nodes, thereby achieving the effect of managing the whole at one point, avoiding the cumbersome deployment process of local configuration in traditional technology, and improving the globality and efficiency of project deployment. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0018] Figure 1 An application scenario diagram of a database monitoring automation deployment method, apparatus, device, and medium according to an embodiment of the present invention is shown;

[0019] Figure 2 A flowchart of a database monitoring automation deployment method according to an embodiment of the present invention is shown;

[0020] Figure 3 A flowchart of packaging a target project and target middleware according to an embodiment of the present invention is shown;

[0021] Figure 4 An installation flow chart based on a database operation and maintenance management system project, middleware automatic deployment and service management according to an embodiment of the present invention is shown;

[0022] Figure 5 It shows an uninstallation flow chart in database operation and maintenance management system project, middleware automatic deployment and service management according to an embodiment of the present invention;

[0023] Figure 6 A flowchart of a database operation and maintenance management system project, middleware automatic deployment and service management according to an embodiment of the present invention is shown;

[0024] Figure 7 It shows a structural block diagram of a project automatic deployment device according to an embodiment of the present invention;

[0025] Figure 8 A block diagram of an electronic device suitable for implementing a database monitoring automatic deployment method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0026] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.

[0027] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0028] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0029] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0030] In the technical solution of the present invention, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0031] In the process of conceiving the present invention, the inventor found that in the related technology, for the high-availability deployment scenario, the deployment process is cumbersome and complicated, and the time cost of the entire deployment work is high; the deployment of the middleware lacks close integration with the actual project environment information, and the deployment work lacks flexibility; most traditional projects are mainly local configuration, and each deployment node needs to be independently configured and installed, lacking unified global configuration management. In view of this, the present invention can realize the automatic deployment of the initial file package to the server to be deployed through a variety of initial configuration parameter information corresponding to the target project (including installation path parameter information, address parameter information, port information, database tag information), and at the same time, the initial middleware configuration information is updated according to the environment information of different servers to be deployed, so as to determine the target middleware configuration information, and generate the target configuration parameter information on this basis, thereby completing the automatic and flexible deployment of the high-availability deployment scenario; at the same time, the deployment node in the server to be deployed is determined by the operation authority between different server nodes, thereby achieving the effect of managing the whole at one point, avoiding the cumbersome deployment process of local configuration in traditional technology, and improving the globality and efficiency of project deployment.

[0032] The embodiment of the present invention provides a method, device, equipment and medium for automatic deployment of database monitoring, the method comprising: determining the configuration file information and the code to be deployed based on the acquired information of the server to be deployed corresponding to the target project, wherein the configuration file information comprises project label information, initial middleware configuration information and system version information, and the code to be deployed is associated with the system version information; processing the project label information, the initial middleware configuration information, the system version information and the code to be deployed to generate an initial file package; deploying the initial file package to the server to be deployed based on the initial configuration parameter information corresponding to the target project, determining the target middleware configuration information according to the environment information corresponding to the server to be deployed, wherein the server to be deployed comprises a plurality of server nodes, and the operation permissions between different server nodes are different, and the initial configuration parameter information comprises installation path parameter information, address parameter information, port information, object information, permission information and database label information; updating the initial configuration parameter information by using the target middleware configuration information to determine the target configuration parameter information; and realizing automatic deployment for the target project based on the target configuration parameter information and the target file package corresponding to the target configuration parameter information.

[0033] Figure 1 An application scenario diagram of a database monitoring automation deployment method, apparatus, device, and medium according to an embodiment of the present invention is shown.

[0034] like Figure 1As shown, the application scenario according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0035] The user may use at least one of the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).

[0036] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0037] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0038] It should be noted that the database monitoring automatic deployment method provided in the embodiment of the present invention can generally be executed by the server 105. Accordingly, the project automatic deployment device provided in the embodiment of the present invention can generally be set in the server 105. The database monitoring automatic deployment method provided in the embodiment of the present invention can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Correspondingly, the project automatic deployment device provided in the embodiment of the present invention can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.

[0039] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0040] Figure 2 A flow chart of a method for automatic deployment of database monitoring according to an embodiment of the present invention is shown.

[0041] like Figure 2 As shown, the database monitoring automatic deployment method of this embodiment includes operations S210 to S250.

[0042] In operation S210, based on the acquired server information to be deployed corresponding to the target project, the configuration file information and the code to be deployed are determined, wherein the configuration file information includes project tag information, initial middleware configuration information and system version information, and the code to be deployed is associated with the system version information.

[0043] According to an embodiment of the present invention, the target project can represent a project based on a database operation and maintenance management and monitoring system. The server information to be deployed includes but is not limited to the version information, quantity information and environment information of the server to be deployed. The configuration file information may include project label information, initial middleware configuration information and system version information; the project label information may include the project name and project number; the initial middleware information may include cache server information and message queue information corresponding to the target project; the system version information may represent the version information of the database operation and maintenance management system. It can be understood that when the version information of the database operation and maintenance management system conflicts with the version of the middleware or is not applicable, the version information of the database operation and maintenance management system can be updated and adjusted accordingly according to the actual situation. The code to be deployed can represent the project code corresponding to the system version pulled from the source code library.

[0044] In operation S220, the project tag information, the initial middleware configuration information, the system version information and the code to be deployed are processed to generate an initial file package.

[0045] According to an embodiment of the present invention, the pulled code to be deployed can be transmitted to the packaging server, so that the code to be deployed can be updated and compiled according to the tag information of the project and the version information of the system, and then the compiled program code is copied to the release package, and at the same time, the corresponding middleware is copied to the release package according to the initial middleware configuration information and the system version information, and the project and the middleware are packaged as a whole on this basis to generate an initial file package. Furthermore, after the initial file package is generated, the information of the presented file package can be compared with the information of the configuration file to be configured to check the validity and integrity of the files in the initial file package.

[0046] In operation S230, the initial file package is deployed to the server to be deployed based on the initial configuration parameter information corresponding to the target project, and the target middleware configuration information is determined according to the environmental information corresponding to the server to be deployed, wherein the server to be deployed includes multiple server nodes, and the operation permissions between different server nodes are different, and the initial configuration parameter information includes installation path parameter information, address parameter information, port information, object information, permission information and database label information.

[0047] According to an embodiment of the present invention, the initial file package is deployed and installed, and the target project or middleware is sent to the server to be deployed, so that the initial file package in each server is decompressed and installed. It should be noted that the installation path should be kept consistent when the initial file package is installed. The initial configuration parameter information can represent the configuration parameter information corresponding to the target project, and can include initial project parameter information and initial middleware parameter information. Taking into account the incompatibility between the initial middleware and the actual environment information, the initial middleware parameter information can be updated according to the actual environment information of the target project to obtain the target middleware configuration information. Different server nodes in the server to be deployed can be determined as the first server node and the second server node according to different operation permissions.

[0048] In operation S240, the initial configuration parameter information is updated using the target middleware configuration information to determine the target configuration parameter information.

[0049] According to an embodiment of the present invention, after determining the target middleware configuration information in consideration of the actual environment information, the initial configuration information may be updated to obtain the target configuration parameter information, thereby completing the deployment of the target project.

[0050] In operation S250 , automated deployment is implemented for the target project based on the target configuration parameter information and the target file package corresponding to the target configuration parameter information.

[0051] According to an embodiment of the present invention, after the target configuration parameter information is determined, the automatic deployment and startup of the target project can be performed according to the target file package.

[0052] According to an embodiment of the present invention, the initial file package can be automatically deployed to the server to be deployed through a variety of initial configuration parameter information corresponding to the target project (including installation path parameter information, address parameter information, port information, and database label information). At the same time, the initial middleware configuration information is updated according to the environmental information of different servers to be deployed, so as to determine the target middleware configuration information, and generate the target configuration parameter information on this basis, thereby completing the automated and flexible deployment of high-availability deployment scenarios. At the same time, the deployment nodes in the server to be deployed are determined through the operation permissions between different server nodes, thereby achieving the effect of managing the whole at one point, avoiding the cumbersome deployment process of local configuration in traditional technologies, and improving the globality and efficiency of project deployment.

[0053] According to an embodiment of the present invention, the information of the server to be deployed includes information of multiple server nodes to be deployed, and the method also includes: determining a first server node and a second server node from the server to be deployed including multiple server nodes, wherein the operation authority characterizing the second server node includes multiple second server sub-nodes; and determining the operation authority between the first server node and the second server node based on the environmental information corresponding to the server to be deployed, wherein the operation authority level of the first server node is greater than the operation authority level of the second server, and the first server node has confidentiality-free operation access to the multiple second server sub-nodes.

[0054] According to an embodiment of the present invention, in consideration of deployment efficiency and deployment management, by setting different operation permissions between the first server node and the second server node, one-way mutual trust is implemented between different server nodes. For example, the servers to be deployed include server node A, server node B, server node C, server node D and server node E. By setting server node C as the first server node, and server node A, server node B, server node D and server node E as the second server node, server node C can access server node A, server node B, server node D and server node E without secrets, and vice versa, the second server node cannot achieve secret-free access to the first server node, so that other server nodes can be controlled through server node C.

[0055] According to an embodiment of the present invention, by performing specific operations or accessing specific resources through one-way mutual trust between the first server node and the second server node, the security and compliance within the system can be ensured. At the same time, in a complex system composed of multiple subsystems, one-way mutual trust can help integrate different subsystems, and some subsystems can trust the services or data provided by other subsystems, thereby realizing the collaborative work of system functions. Global node service management only needs to start, stop, and view each second server sub-node on the first server node, and there is no need to pay attention to the order of starting and stopping projects and middleware, thereby realizing one-click management of nodes.

[0056] According to an embodiment of the present invention, the method for determining initial configuration parameter information includes: determining initial project configuration parameter information and initial middleware configuration information based on parameter information corresponding to environment information; and generating initial configuration parameter information based on the initial project configuration parameter information and initial middleware configuration information.

[0057] According to an embodiment of the present invention, the initial configuration parameter information may include initial project configuration parameter information and initial middleware configuration information, the initial project configuration parameter information includes but is not limited to IP address information and port information, the initial middleware configuration information includes but is not limited to IP address information, port information, object information (such as access user), permission information (such as password), database tag information (such as database name). It should be noted that the middleware in the present invention may be middleware within the scope supported by the database operation and maintenance management system project and the middleware automatic deployment and service management method.

[0058] According to an embodiment of the present invention, determining target middleware configuration information for environment information corresponding to a server to be deployed includes: updating initial middleware configuration information based on environment information corresponding to a target project to determine target middleware configuration information.

[0059] According to the embodiment of the present invention, considering the difference in actual application environment information, different environment information may have different characteristics and requirements. Therefore, it is possible to consider updating the initial middleware configuration information according to the actual application environment, such as updating the cache server and message queue version, and then determine the updated target middleware configuration information.

[0060] According to an embodiment of the present invention, in different deployment environments, the system may face different resource limitations and constraints. By updating the middleware configuration information, the system's resource usage can be better managed and optimized, such as adjusting the cache size, limiting the number of concurrent connections, etc., thereby more effectively utilizing available resources and avoiding resource waste.

[0061] According to an embodiment of the present invention, based on the acquired information of the server to be deployed corresponding to the target project, the configuration file information and the code to be deployed are determined, including: based on the information of the server to be deployed, determining the project label information, the initial middleware configuration information and the system version information; selecting the initial code corresponding to the project label information from the source code library; and updating the initial code based on the project label information, the initial middleware configuration information and the system version information to generate the code to be deployed.

[0062] According to an embodiment of the present invention, the configuration file information may include project tag information, initial middleware configuration information and system version information. The project tag information, initial middleware configuration information and system version information corresponding to the target project are packaged, and the code information corresponding to the project tag information is selected from the source code library, and the initial code is updated and compiled on this basis to obtain the compiled code to be deployed.

[0063] According to an embodiment of the present invention, project tag information, initial middleware configuration information, system version information and code to be deployed are processed to generate an initial file package, including: selecting target middleware based on the initial middleware configuration information and the system version information; packaging the target middleware and the code to be deployed to generate an initial packaging file; testing the initial packaging file to generate a test result; and when the test result indicates that the initial packaging file meets a preset test condition, determining the initial packaging file as an initial file package.

[0064] According to an embodiment of the present invention, the middleware and the code to be deployed corresponding to the initial middleware configuration information and the system version information are packaged as a whole to generate an initial package file. To ensure that all necessary configuration files are included in the packaged program and that these files are the latest versions, it is possible to check whether the configuration files are missing or damaged, and to check the validity, integrity and consistency of the initial package file by comparing the information corresponding to the initial package file with the project tag information, the initial middleware configuration information and the system version information.

[0065] Figure 3 A target project and target middleware packaging flow chart according to an embodiment of the present invention is shown.

[0066] like Figure 3 As shown, the target project and target middleware packaging process may include operations S301 to S306.

[0067] In operation S301, the configuration information is updated and packaged. The updated configuration information may include target project tag information, initial middleware configuration information, and system version information of the adaptation operation.

[0068] In operation S302, an initial code corresponding to a target project is pulled.

[0069] In operation S303, the initial code is updated and compiled. The pulled initial code is updated and compiled according to the updated configuration information.

[0070] In operation S304, the target project and the target middleware are packaged as a whole to generate an initial packaging file.

[0071] In operation S305, the initial packaged file is checked using the updated configuration information to obtain an initial file package.

[0072] In operation S306, the encryption number of the initial file package is set to generate an information file of the initial file package. It can be understood that the encryption number (hash value or digest) can be a unique identifier generated according to the file content. Regardless of the size of the file, the encryption number is a string of fixed length. By performing encryption operation on the file, a unique encryption number can be obtained, which is used to verify the integrity and uniqueness of the file when the initial file package is updated or modified.

[0073] According to the embodiment of the present invention, by checking the final packaging program and the configuration information, the validity of the packaging file and the accuracy of the configuration information can be ensured, thereby improving the stability and reliability of the system.

[0074] According to an embodiment of the present invention, the method further includes: monitoring the running status of the target project and the target middleware using a monitoring tool.

[0075] According to an embodiment of the present invention, after the deployment of the target project is completed, the deployment project may be started, stopped, and the running status may be checked. For example, Prometheus may be used to monitor the services and resources of the project.

[0076] In a feasible embodiment, log monitoring tools, application performance monitoring tools, network monitoring tools, container monitoring tools, etc. can be used to monitor the running status of the target project and the target middleware to ensure the healthy operation of the system.

[0077] In a feasible embodiment, the startup method based on the database operation and maintenance management system project, middleware automatic deployment and service management may include operations S311-S312.

[0078] In operation S311, the middleware is started. All or some of the middleware of all the middleware installation nodes can be started at one time by deploying the node.

[0079] In operation S312, the project is started, and the project services of all project installation nodes can be started at one time by deploying the node.

[0080] It can be understood that operation S311 and operation S312 can be performed independently.

[0081] In a feasible embodiment, the stopping method based on the database operation and maintenance management system project, middleware automatic deployment and service management may include operations S321-S322.

[0082] In operation S321, the middleware is stopped. All or some of the middleware of all the middleware installation nodes can be stopped at once by deploying the node.

[0083] In operation S322, the project is stopped, and the deployment node may stop the project services of all project installation nodes at one time.

[0084] It can be understood that operation S321 and operation S322 can be performed independently.

[0085] In a feasible embodiment, the operation status monitoring method based on the database operation and maintenance management system project, middleware automatic deployment and service management may include operations S331-S332.

[0086] In operation S331, the middleware status is detected. The start and stop status of the middleware of all middleware installation nodes can be queried through the deployment node.

[0087] In operation S332, the project status is checked, and the start and stop status of all project installation nodes can be queried through the deployment node.

[0088] It can be understood that operation S331 and operation S332 can be performed independently.

[0089] Figure 4 The installation flow chart of the database operation and maintenance management system project, middleware automatic deployment and service management according to an embodiment of the present invention is shown.

[0090] like Figure 4 As shown, the installation process based on the database operation and maintenance management system project, middleware automatic deployment and service management may include operations S401 to S404.

[0091] In operation S401, an installation package is issued, and a project or middleware may be sent to a pre-installation server.

[0092] In operation S402, the installation package in each server is decompressed.

[0093] In operation S403, the database operation and maintenance management system project and middleware configuration may be used to initialize the configuration of the project and the middleware, and establish an associated configuration relationship between the middleware and the project.

[0094] In operation S404, the database operation and maintenance management system project and middleware are initialized, and the database and the knowledge base used by the project can be initialized and data preparation can be performed.

[0095] Figure 5 The invention shows an uninstallation flow chart based on database operation and maintenance management system project, middleware automatic deployment and service management according to an embodiment of the invention.

[0096] like Figure 5 As shown, the uninstallation process based on the database operation and maintenance management system project, middleware automatic deployment and service management may include operations S501 to S503.

[0097] In operation S501, the database operation and maintenance management system project, the middleware automatic deployment and the service management are stopped.

[0098] In operation S502, the running status of each service is detected to check whether all projects and middleware node services have stopped.

[0099] In operation S503, the installation directory is cleaned up. All projects and middleware may be cleaned up according to the installation directory specified in the "Installation Configuration".

[0100] It can be understood that operations S501, S502, and S503 are connection actions, wherein operations S501 and S502 are calls to "stop" and "running status check"; and operation S503 can clean up the installation directory according to the global installation path.

[0101] In a feasible embodiment, the deployment based on the automatic deployment and service management method of database operation and maintenance management system projects and middleware can be completed by the following components: a project packaging component, which can package the project and the middleware into a project release package; a deployment component, which can be responsible for installing the project release package to each server of the specified configuration, and complete a series of configurations and initializations of the project and the middleware; a service management component, which can uniformly manage the start, stop, and query of the running status of the database operation and maintenance management system projects and middleware; an uninstall component, which can uninstall the database operation and maintenance management system projects and middleware from each node and clean up the installation directory.

[0102] Figure 6 A flowchart of database operation and maintenance management system project, middleware automatic deployment and service management according to an embodiment of the present invention is shown.

[0103] like Figure 6 As shown, the process based on the database operation and maintenance management system project, middleware automatic deployment and service management may include S601 to S606.

[0104] In operation S601, initial configuration parameter information is updated according to environment information of a target project.

[0105] In operation S602, a mutual trust mode between multiple server nodes is detected.

[0106] In operation S6021, if mutual trust has not been established between the server nodes, a single mutual trust authentication is performed; if mutual trust has been established between the server nodes, this step can be skipped.

[0107] In operation S603, the database operation and maintenance management system project and middleware are installed.

[0108] In operation S604, after the installation of the database operation and maintenance management system project and the middleware is completed, the database operation and maintenance management system project and the middleware may be started.

[0109] In operation S605, the running status of the database operation and maintenance management system project and the middleware being started is detected, or the database operation and maintenance management system project and the middleware service are stopped.

[0110] In operation S606, an uninstallation operation is performed on the database operation and maintenance management system project and the middleware.

[0111] Based on the above database monitoring automatic deployment method, the present invention also provides a project automatic deployment device. Figure 7 The device is described in detail.

[0112] Figure 7 A structural block diagram of a project automatic deployment device according to an embodiment of the present invention is shown.

[0113] like Figure 7 As shown, the project automatic deployment device of this embodiment includes an information and code determination module 710 , an initial file package generation module 720 , a target middleware configuration information determination module 730 , a target configuration parameter information determination module 740 and an automatic deployment module 750 .

[0114] The information and code determination module 710 is used to determine the configuration file information and the code to be deployed based on the acquired server information to be deployed corresponding to the target project, wherein the configuration file information includes project tag information, initial middleware configuration information and system version information, and the code to be deployed is associated with the system version information. In one embodiment, the information and code determination module 710 can be used to perform the operation S210 described above, which will not be repeated here.

[0115] The initial file package generation module 720 is used to process the project tag information, the initial middleware configuration information, the system version information and the code to be deployed to generate an initial file package. In one embodiment, the initial file package generation module 720 can be used to perform the operation S220 described above, which will not be repeated here.

[0116] The target middleware configuration information determination module 730 is used to deploy the initial file package to the server to be deployed based on the initial configuration parameter information corresponding to the target project, and determine the target middleware configuration information according to the environment information corresponding to the server to be deployed, wherein the server to be deployed includes multiple server nodes, and the operation permissions between different server nodes are different. The initial configuration parameter information includes installation path parameter information, address parameter information, port information, object information, permission information and database label information. In one embodiment, the target middleware configuration information determination module 730 can be used to perform the operation S230 described above, which will not be repeated here.

[0117] The target configuration parameter information determination module 740 is used to update the initial configuration parameter information using the target middleware configuration information to determine the target configuration parameter information. In one embodiment, the target configuration parameter information determination module 740 can be used to perform the operation S240 described above, which will not be described in detail here.

[0118] The automatic deployment module 750 is used to implement automatic deployment for the target project based on the target configuration parameter information and the target file package corresponding to the target configuration parameter information. In one embodiment, the automatic deployment module 750 can be used to perform the operation S250 described above, which will not be described in detail here.

[0119] According to an embodiment of the present invention, through the information and code determination module 710, the initial file package generation module 720, the target middleware configuration information determination module 730, the target configuration parameter information determination module 740 and the automatic deployment module 750 in the project automatic deployment device, through a variety of initial configuration parameter information corresponding to the target project (including installation path parameter information, address parameter information, port information, database label information), the initial file package can be automatically deployed to the server to be deployed, and the initial middleware configuration information is updated according to the environmental information of different servers to be deployed, so as to determine the target middleware configuration information, and generate the target configuration parameter information on this basis, thereby completing the automated and flexible deployment of high-availability deployment scenarios; at the same time, the deployment nodes in the server to be deployed are determined through the operation permissions between different server nodes, thereby achieving the effect of managing the whole at one point, avoiding the cumbersome deployment process of local configuration in traditional technologies, and improving the globality and efficiency of project deployment.

[0120] According to an embodiment of the present invention, the information of the server to be deployed includes information of multiple server nodes to be deployed, and the device further includes: a server node determination module and an operation authority determination module.

[0121] The server node determination module is used to determine a first server node and a second server node from a server to be deployed that includes multiple server nodes, wherein the operation authority represents that the second server node includes multiple second server sub-nodes.

[0122] An operation authority determination module is used to determine the operation authority between the first server node and the second server node based on the environmental information corresponding to the server to be deployed, wherein the operation authority level of the first server node is greater than the operation authority level of the second server, and the first server node has confidentiality-free operation access to multiple second server sub-nodes.

[0123] According to an embodiment of the present invention, the method for determining initial configuration parameter information includes: determining initial project configuration parameter information and initial middleware configuration information based on parameter information corresponding to environment information; and generating initial configuration parameter information based on the initial project configuration parameter information and initial middleware configuration information.

[0124] According to an embodiment of the present invention, determining target middleware configuration information for environment information corresponding to a server to be deployed includes: updating initial middleware configuration information based on environment information corresponding to a target project to determine target middleware configuration information.

[0125] According to an embodiment of the present invention, the information and code determination module includes: an information determination submodule, an initial code selection submodule and a to-be-deployed code generation submodule.

[0126] The information determination submodule is used to determine the project tag information, initial middleware configuration information and system version information based on the server information to be deployed.

[0127] The initial code selection submodule is used to select the initial code corresponding to the project tag information from the source code library.

[0128] The submodule for generating code to be deployed is used to update the initial code based on project tag information, initial middleware configuration information and system version information to generate code to be deployed.

[0129] According to an embodiment of the present invention, the initial file package generation module includes: a target middleware selection submodule, an initial package file generation submodule, a detection result generation submodule and an initial file package determination submodule.

[0130] The target middleware selection submodule is used to select the target middleware based on the initial middleware configuration information and system version information.

[0131] The initial package file generation submodule is used to package the target middleware and the code to be deployed to generate the initial package file.

[0132] The detection result generation submodule is used to detect the initial packaged file and generate the detection result.

[0133] The initial file package determination submodule is used to determine the initial package file as the initial file package when the detection result indicates that the initial package file meets the preset detection condition.

[0134] According to an embodiment of the present invention, the device further comprises: a monitoring module, configured to monitor the running status of the target project and the target middleware using a monitoring tool.

[0135] According to an embodiment of the present invention, any multiple modules among the information and code determination module 710, the initial file package generation module 720, the target middleware configuration information determination module 730, the target configuration parameter information determination module 740 and the automatic deployment module 750 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present invention, at least one of the information and code determination module 710, the initial file package generation module 720, the target middleware configuration information determination module 730, the target configuration parameter information determination module 740 and the automatic deployment module 750 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a proper combination of any of them. Alternatively, at least one of the information and code determination module 710, the initial file package generation module 720, the target middleware configuration information determination module 730, the target configuration parameter information determination module 740 and the automated deployment module 750 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is executed.

[0136] Figure 8 A block diagram of an electronic device suitable for implementing a database monitoring automatic deployment method according to an embodiment of the present invention is shown.

[0137] like Figure 8As shown, the electronic device according to an embodiment of the present invention includes a processor 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 to a random access memory (RAM) 803. The processor 801 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 801 may also include an onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present invention.

[0138] In RAM 803, various programs and data required for the operation of the electronic device are stored. The processor 801, ROM 802 and RAM 803 are connected to each other via a bus 804. The processor 801 performs various operations of the method flow according to the embodiment of the present invention by executing the programs in ROM 802 and / or RAM 803. It should be noted that the program can also be stored in one or more memories other than ROM 802 and RAM 803. The processor 801 can also perform various operations of the method flow according to the embodiment of the present invention by executing the programs stored in the one or more memories.

[0139] According to an embodiment of the present invention, the electronic device may further include an input / output (I / O) interface 805, which is also connected to the bus 804. The electronic device may further include one or more of the following components connected to the input / output (I / O) interface 805: an input portion 806 including a keyboard, a mouse, etc.; an output portion 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 808 including a hard disk, etc.; and a communication portion 809 including a network interface card such as a LAN card, a modem, etc. The communication portion 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output (I / O) interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that the computer program read therefrom is installed into the storage portion 808 as needed.

[0140] The present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.

[0141] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present invention, the computer-readable storage medium may include the ROM 802 and / or RAM 803 described above and / or one or more memories other than ROM 802 and RAM 803.

[0142] The embodiment of the present invention also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the database monitoring automatic deployment method provided by the embodiment of the present invention.

[0143] The computer program executes the above functions defined in the system / device of the embodiment of the present invention when the processor 801 executes the computer program. According to the embodiment of the present invention, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0144] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 809, and / or installed from a removable medium 811. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0145] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the processor 801, the above functions defined in the system of the embodiment of the present invention are performed. According to the embodiment of the present invention, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0146] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0147] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a 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 from 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 flow chart, and the combination of the boxes in the block diagram or flow chart 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.

[0148] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present invention may be combined and / or combined in various ways, even if such combinations and / or combinations are not explicitly described in the present invention. In particular, the features described in the various embodiments and / or claims of the present invention may be combined and / or combined in various ways without departing from the spirit and teachings of the present invention. All of these combinations and / or combinations fall within the scope of the present invention.

[0149] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although each embodiment is described above, it does not mean that the measures in each embodiment cannot be used in combination. The scope of the present invention is defined by the attached claims and their equivalents. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.

Claims

1. A database monitoring automatic deployment method, characterized in that: The method comprises: Based on the acquired information of the server to be deployed corresponding to the target project, determine the configuration file information and the code to be deployed, wherein the configuration file information includes project tag information, initial middleware configuration information and system version information, the code to be deployed is associated with the system version information, and the target project represents a project based on the database operation and maintenance management and monitoring system; Processing the project tag information, the initial middleware configuration information, the system version information and the code to be deployed to generate an initial file package; Deploy the initial file package to the server to be deployed based on the initial configuration parameter information corresponding to the target project, and determine the target middleware configuration information according to the environment information corresponding to the server to be deployed, wherein the server to be deployed includes a plurality of server nodes, and the operation permissions of different server nodes are different, and the initial configuration parameter information includes installation path parameter information, address parameter information, port information, object information, permission information and database label information; Using the target middleware configuration information to update the initial configuration parameter information, and determine the target configuration parameter information; and Implementing automated deployment for the target project based on the target configuration parameter information and the target file package corresponding to the target configuration parameter information; The method further comprises: Determining a first server node and a second server node from the servers to be deployed including a plurality of server nodes, wherein the operation authority indicates that the second server node includes a plurality of second server sub-nodes; and The operation authority between the first server node and the second server node is determined based on the environmental information corresponding to the server to be deployed, wherein the operation authority level of the first server node is greater than the operation authority level of the second server, and the first server node has non-confidential operation access to multiple second server sub-nodes.

2. The method according to claim 1, characterized in that The method for determining the initial configuration parameter information includes: Determining initial project configuration parameter information and initial middleware configuration information based on parameter information corresponding to the environment information; and The initial configuration parameter information is generated based on the initial project configuration parameter information and the initial middleware configuration information.

3. The method according to claim 2, characterized in that The step of determining target middleware configuration information according to the environment information corresponding to the server to be deployed includes: The initial middleware configuration information is updated based on the environment information corresponding to the target project to determine the target middleware configuration information.

4. The method according to claim 1, characterized in that The step of determining the configuration file information and the code to be deployed based on the acquired server information to be deployed corresponding to the target project includes: Based on the server information to be deployed, determining the project tag information, the initial middleware configuration information and the system version information; Selecting initial code corresponding to the project tag information from a source code library; and The initial code is updated based on the project tag information, the initial middleware configuration information and the system version information to generate the code to be deployed.

5. The method according to claim 1, characterized in that The processing of the project tag information, the initial middleware configuration information, the system version information and the code to be deployed to generate an initial file package includes: Selecting target middleware based on the initial middleware configuration information and the system version information; Packaging the target middleware and the code to be deployed to generate an initial packaging file; Testing the initial packaged file and generating a test result; and When the detection result indicates that the initial packaged file meets a preset detection condition, the initial packaged file is determined as the initial file package.

6. The method according to claim 1, characterized in that The method further comprises: The running status of the target project and the target middleware is monitored using a monitoring tool.

7. A project automation deployment device, characterized in that: The device comprises: An information and code determination module, configured to determine the configuration file information and the code to be deployed based on the acquired server information to be deployed corresponding to the target project, wherein the configuration file information includes project tag information, initial middleware configuration information and system version information, the code to be deployed is associated with the system version information, and the target project represents a project based on a database operation and maintenance management and monitoring system; An initial file package generation module, used to process the project tag information, the initial middleware configuration information, the system version information and the code to be deployed to generate an initial file package; a target middleware configuration information determination module, configured to deploy the initial file package to a server to be deployed based on initial configuration parameter information corresponding to the target project, and determine the target middleware configuration information according to the environment information corresponding to the server to be deployed, wherein the server to be deployed includes a plurality of server nodes, and different server nodes have different operation permissions, and the initial configuration parameter information includes installation path parameter information, address parameter information, port information, object information, permission information, and database tag information; a target configuration parameter information determining module, configured to update the initial configuration parameter information using the target middleware configuration information to determine the target configuration parameter information; and An automated deployment module, used to implement automated deployment for the target project based on the target configuration parameter information and a target file package corresponding to the target configuration parameter information; The device also includes: A server node determination module, configured to determine a first server node and a second server node from a server to be deployed that includes a plurality of server nodes, wherein the operation authority indicates that the second server node includes a plurality of second server sub-nodes; and An operation authority determination module is used to determine the operation authority between the first server node and the second server node based on the environmental information corresponding to the server to be deployed, wherein the operation authority level of the first server node is greater than the operation authority level of the second server, and the first server node has confidentiality-free operation access to multiple second server sub-nodes.

8. An electronic device comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Weblogic cluster one-key automatic deployment method

    CN106325953A

  • Control method for cloud computing platform deployment, server and storage medium

    CN109067877A