Operation and maintenance platform based on DevOps background

By introducing task creation, execution modules and databases into the operation and maintenance platform, combined with open source tools such as Jenkins and Ansible, the automation of server and Redis management is realized, solving the iteration and stability problems of the traditional operation and maintenance platform, and improving operation and maintenance efficiency and The accuracy of information collection breaks down the barriers between R&D and operation and maintenance.

CN112394946BActive Publication Date: 2024-08-30BEIJING ZHICHI BOCHUANG TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011287951.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-17
Publication Date
2024-08-30
Estimated Expiration
2040-11-17

AI Technical Summary

Technical Problem

Traditional operation and maintenance platforms are difficult to achieve rapid iteration and automated management, resulting in low product stability and operation and maintenance efficiency. There are barriers between R&D and operation and maintenance, making it difficult to respond quickly to customer needs.

Method used

Design an operation and maintenance platform based on the DevOps background, including a task creation module, a task execution module and a database, to realize full automation of server management, database Redis management and application release management. It receives task requests through the Web and calls open source tools such as Jenkins. Use Ansible to perform automated task execution and information collection.

Benefits of technology

It realizes automated management of server and Redis configurations, improves the accuracy of information collection and operation and maintenance efficiency, reduces human maintenance, ensures timely updates of configuration information and rapid deployment of applications, and improves the collaboration capabilities and capabilities of the overall technical team. Communication skills.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112394946B
    Figure CN112394946B
Patent Text Reader

Abstract

The present invention discloses an operation and maintenance platform based on the background of DevOps, including: a task creation module, which includes a receiving creation module for creating a task request received by a Web end as a task, and a periodic creation module for creating a preset periodic request as a task; wherein the task request received by the Web end is a Redis configuration modification request and an application package deployment request; the preset periodic request is an information collection request for a storage server; a task execution module, which is used to execute the task issued by the task creation module; a database, which is used for the task execution module to execute the data storage of the task issued by the task creation module. It realizes the full automation of server management, database Redis management and application release management, and effectively improves the accuracy of information collection and the operation and maintenance efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of operation and maintenance platforms, and in particular to an operation and maintenance platform based on a DevOps background. Background Art

[0002] As automated operation and maintenance and DevOps thinking become more popular, rapid continuous integration, continuous deployment, and continuous delivery are becoming increasingly important. The ability to quickly provide products to customers has become another core competitiveness of an Internet company.

[0003] In the previous traditional thinking, for the operation and R&D departments, the rapid iteration of product functions is what they expect. The focus is on how to meet customer needs as quickly as possible, occupy the market, give users a refined experience, and achieve a win-win situation. For traditional operation and maintenance, the focus is on product stability. Changes to the basic environment, changes to the middleware, and rapid iteration of applications are relatively excluded. In fact, from a macro perspective, all of this is to ensure the superiority of the product. In order to solve this problem, we need a general DevOps-based operation and maintenance platform to connect various tool chains, thereby breaking down the barriers between R&D and operation and maintenance and improving productivity. Summary of the invention

[0004] An object of the present invention is to solve at least the above problems and to provide at least the advantages which will be described hereinafter.

[0005] Another object of the present invention is to provide an operation and maintenance platform based on the DevOps background, which realizes the full automation of server management, database Redis management and application release management, and effectively improves the accuracy of information collection and operation and maintenance efficiency.

[0006] In order to achieve these purposes and other advantages according to the present invention, an operation and maintenance platform based on the DevOps background is provided, including:

[0007] The task creation module includes a receiving creation module for creating a task request received by the Web end as a task, and a periodic creation module for creating a preset periodic request as a task; wherein the task request received by the Web end is a Redis configuration modification request and an application package deployment request; and the preset periodic request is an information collection request for a storage server;

[0008] A task execution module, which is used to execute the task issued by the task creation module;

[0009] The database is used for storing data of the tasks sent by the task creation module when the task execution module executes the tasks.

[0010] Preferably, in the operation and maintenance platform based on the DevOps background, after the task execution module receives the task created by the receiving and creating module according to the Redis configuration modification request, it connects to the host's Redis, and modifies the configuration of Redis according to the Redis configuration modification request, and returns the configuration change result to the receiving and creating module after the modification is successful.

[0011] Preferably, in the operation and maintenance platform based on the DevOps background, after the task execution module receives the task created by the receiving creation module according to the application package deployment request, it calls the open source packaging tool Jenkins interface to package the application package into an application package, and after downloading the application package, stops the application service corresponding to the application package, and then restarts the corresponding application service after replacing the original application package with the application package.

[0012] Preferably, in the operation and maintenance platform based on the DevOps background, after the task execution module receives the task created by the period creation module according to the information collection request of the storage server, the host obtains the server information and then saves the server information.

[0013] Preferably, the operation and maintenance platform based on the DevOps background further includes:

[0014] A display module displays the server information stored by the task execution module on a page.

[0015] Preferably, in the operation and maintenance platform based on the DevOps background, the specific method by which the task execution module obtains and saves the server information from the host is: using the open source Ansible tool, automatically collecting the server information according to a predetermined period through the setup module of the Ansible interface, and saving it in the database.

[0016] Preferably, in the operation and maintenance platform based on the DevOps background, the database also stores Redis configuration modification information and application package deployment information.

[0017] Preferably, in the operation and maintenance platform based on the DevOps background, the task execution module calls the open source packaging tool Jenkins interface to package the application package into an application package, and after downloading the application package, stops the application service corresponding to the application package, and then replaces the original application package with the application package, and restarts the corresponding application service, including: after saving the parameters built by Jenkins in the database, after generating the job Job in the background of the host, using the Celery distributed task Queue background to call the Jenkins interface to build the application to generate an application package, and then downloading the application package, and then passing the service node information of the Job to the Ansible interface to complete the deployment, and saving the data in the database.

[0018] The present invention has at least the following beneficial effects:

[0019] In the operation and maintenance platform based on the DevOps background of the present invention, the automation of server management, database Redis management and application release management is realized through the cooperation of a task creation module, a task execution module and a database, so that a comprehensive automatic collection method can be realized for a host with the main characteristics of numerous types and release versions, various information collection methods and greater difficulty in information collection, thereby avoiding the trouble of manual maintenance and the disadvantage of not being able to update the changed configuration information in a timely and accurate manner, and improving the timeliness and accuracy of collection; the configuration change of Redis with the characteristics of various types of middleware, different management methods of different versions of message queues, databases, agents and load balancing can be automatically completed, and the continuous release and rapid deployment of application programs are realized, thereby effectively improving the operation and maintenance efficiency.

[0020] Other advantages, objectives and features of the present invention will be embodied in part through the following description, and in part will be understood by those skilled in the art through study and practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a flow chart of executing Redis configuration modification tasks based on the operation and maintenance platform under the DevOps background described in the present invention;

[0022] Figure 2 The present invention is a flowchart of executing the application package deployment task based on the operation and maintenance platform in the DevOps context. DETAILED DESCRIPTION

[0023] The present invention is further described in detail below in conjunction with the accompanying drawings so that those skilled in the art can implement the invention with reference to the description.

[0024] It should be understood that terms such as “having”, “including” and “comprising” used herein do not exclude the existence or addition of one or more other elements or combinations thereof.

[0025] like Figure 1 and Figure 2 As shown, the present invention provides an operation and maintenance platform based on the DevOps background, including:

[0026] The task creation module includes a receiving creation module for creating a task request received by the Web end as a task, and a periodic creation module for creating a preset periodic request as a task; wherein the task request received by the Web end is a Redis configuration modification request and an application package deployment request; and the preset periodic request is an information collection request for a storage server;

[0027] A task execution module, which is used to execute the task issued by the task creation module;

[0028] The database is used for storing data of the tasks sent by the task creation module when the task execution module executes the tasks.

[0029] In the above solution, host-related management mainly includes: automatic collection of information, configuration management, deployment and maintenance of middleware, application deployment, configuration management, and continuous delivery. If the above contents are effectively managed, the collaboration and communication capabilities of the entire technical team can be improved, facilitating rapid iteration of products. First, when the server information is mainly stored in Excell, it requires a certain amount of manpower to maintain it. On the other hand, when the server configuration changes, it is difficult to update the changed configuration information to Excell in a timely and accurate manner. Secondly, Redis is widely used in Internet companies as an in-memory database. How to uniformly manage the dynamic adjustment and audit of Redis configuration is particularly important. Thirdly, the product will be continuously updated, so a big problem is how to quickly deploy the application package to the environment. Therefore, the technical solution of this application realizes the automation of server management, database Redis management and application release management through the cooperation of task creation module, task execution module and database, that is, the hardware information of the host, such as SN, host name, CPU, memory, disk, network, etc., is collected in an automated manner, and then maintained through the collected information to provide basic data for subsequent upper-level applications; the intermediate version management, configuration management, role, automatic scaling of capacity, and configuration management, deployment, and management and maintenance automation of Jenkins of business applications not only ensure the timeliness and accuracy of server information, but also greatly improve the operation and maintenance efficiency.

[0030] In a preferred solution, after the task execution module receives the task created by the receiving creation module according to the Redis configuration modification request, it connects to the host's Redis and modifies the configuration of Redis according to the Redis configuration modification request, and returns the configuration change result to the receiving creation module after the modification is successful.

[0031] In a preferred solution, after the task execution module receives the task created by the receiving creation module according to the application package deployment request, it calls the open source packaging tool Jenkins interface to package the application package into an application package, and after downloading the application package, stops the application service corresponding to the application package, and then restarts the corresponding application service after replacing the original application package with the application package.

[0032] In a preferred solution, after the task execution module receives the task created by the period creation module according to the information collection request of the storage server, the host obtains the server information and then saves the server information.

[0033] In the above scheme, by receiving the task sent by the periodic creation module, the periodic preservation of the server information is achieved, especially when the server configuration is changed, the changed configuration information can be updated timely and accurately.

[0034] A preferred solution also includes:

[0035] A display module displays the server information stored by the task execution module on a page.

[0036] In a preferred solution, the specific method by which the task execution module obtains and saves the server information from the host is: using the open source Ansible tool, automatically collecting the server information according to a predetermined period through the setup module of the Ansible interface, and saving it in the database.

[0037] In the above solution, the open source Ansible tool is used to automatically collect server information according to the predetermined period through the setup module of the Ansible interface and save it in the database, which can ensure timely data update and improve data accuracy. At the same time, the running status of the host can be monitored in real time through Python's nmap module, so that the data of CMDB is the standard; and WebSSH is implemented by combining websocket and Django's built-in channel with Redis, which is convenient for operation and maintenance personnel to operate and improve productivity

[0038] In a preferred solution, the database also stores Redis configuration modification information and application package deployment information.

[0039] In the above solution, through the database settings, the Redis info information can be captured and stored in real time through the Python Redis module, and the performance of Redis can be monitored in real time. At the same time, the configuration management can be web-based through the interface provided by Redis, and the change records can be stored in the database to facilitate future review and statistics. At the same time, MySQL's DML and DDL operations can also be web-based, and MySQL configuration and status information can be captured regularly through Celery.

[0040] In a preferred solution, the task execution module calls the open source packaging tool Jenkins interface to package the application package into an application package, and after downloading the application package, stops the application service corresponding to the application package, and then replaces the original application package with the application package, and restarts the corresponding application service, including: saving the parameters built by Jenkins in the database, generating a job Job in the background of the host, using the Celery distributed task Queue background to call the Jenkins interface to build the application to generate an application package, then downloading the application package, and then passing the service node information of the Job to the Ansible interface to complete the deployment, and saving the data in the database.

[0041] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes, and they can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.

Claims

1. An operation and maintenance platform based on DevOps background, It is characterized in that include: The task creation module includes a receiving creation module for creating a task request received by the Web end as a task, and a periodic creation module for creating a preset periodic request as a task; wherein the task request received by the Web end is a Redis configuration modification request and an application package deployment request; and the preset periodic request is an information collection request for a storage server; A task execution module, which is used to execute the task issued by the task creation module; A database, which is used for storing data of the tasks issued by the task creation module when the task execution module executes the tasks; After the task execution module receives the task created by the period creation module according to the information collection request of the storage server, the host obtains the server information and saves the server information. The specific method is: using the open source Ansible tool, the setup module of the Ansible interface automatically collects the server information according to the predetermined period and saves it in the database; the database also saves the Redis configuration modification information and the application package deployment information; the running status of the host is also monitored in real time through the Python nmap module, so as to be based on the data of the CMDB; using websocket and Django's built-in channel combined with Redis to implement WebSSH, it is convenient for operation and maintenance personnel to operate and improve productivity; After receiving the task created by the receiving creation module according to the application package deployment request, the task execution module calls the open source packaging tool Jenkins interface to package the application package into an application package, including: after saving the parameters built by Jenkins in the database, after generating the job in the background of the host, using the Celery distributed task Queue background to call the Jenkins interface to build the application to generate an application package, and then downloading the application package; A display module displays the server information stored by the task execution module on a page.

2. The operation and maintenance platform based on the DevOps background as claimed in claim 1, It is characterized in that After the task execution module receives the task created by the receiving creation module according to the Redis configuration modification request, it connects to the host's Redis and modifies the configuration of Redis according to the Redis configuration modification request, and returns the configuration change result to the receiving creation module after the modification is successful.

3. The operation and maintenance platform based on the DevOps background as claimed in claim 1, It is characterized in that Also includes: After downloading the application package, the application service corresponding to the application package is stopped, and then after replacing the original application package with the application package, the corresponding application service is restarted.

4. The operation and maintenance platform based on the DevOps background as claimed in claim 3, It is characterized in that The task execution module calls the open source packaging tool Jenkins interface to package the application package into an application package, and after downloading the application package, stops the application service corresponding to the application package, and then uses the application package to replace the original application package, and restarts the corresponding application service. It also includes: downloading the application package, passing the service node information of the Job to the Ansible interface to complete the deployment, and saving the data in the database.

Citation Information

Patent Citations

  • Method for arranging and deploying Weblogic application based on Ansible

    CN110795108A

  • Scheduling method and device for code deployment, electronic equipment and storage medium

    CN111352612A