CN116431277A - Multi-place operation and maintenance containerization method and device, computer equipment and storage medium - Google Patents

Multi-place operation and maintenance containerization method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN116431277A
CN116431277A CN202310237266.7A CN202310237266A CN116431277A CN 116431277 A CN116431277 A CN 116431277A CN 202310237266 A CN202310237266 A CN 202310237266A CN 116431277 A CN116431277 A CN 116431277A
Authority
CN
China
Prior art keywords
container
maintenance
deployment
containerization
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310237266.7A
Other languages
Chinese (zh)
Inventor
张勇
李剑平
管为进
彭海
田丽军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Haigui Technology Co ltd
Original Assignee
Zhejiang Haigui Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Haigui Technology Co ltd filed Critical Zhejiang Haigui Technology Co ltd
Priority to CN202310237266.7A priority Critical patent/CN116431277A/en
Publication of CN116431277A publication Critical patent/CN116431277A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a multi-place operation and maintenance containerization method, a multi-place operation and maintenance containerization device, computer equipment and a storage medium. The method comprises the following steps: acquiring application program codes; packaging the application program code into a mirror image; uploading the mirror image to a mirror image warehouse; obtaining a visual interface custom deployment template; converting the visual interface custom deployment template into a container layout file through a container layout tool; the container orchestration file is sent to the deployment node, such that the deployment node parses the container orchestration file through the container orchestration tool, creating the container locally. By implementing the method of the embodiment of the invention, different operation and maintenance environments can be uniformly managed, the consistency of business operation and maintenance in different areas is ensured, and the operation and maintenance efficiency is improved.

Description

Multi-place operation and maintenance containerization method and device, computer equipment and storage medium
Technical Field
The present invention relates to an operation and maintenance method, and more particularly, to a multi-place operation and maintenance containerization method, apparatus, computer device, and storage medium.
Background
In recent years, with the continuous development of software services, the complexity of service operation and maintenance is also continuously increasing. The traditional operation and maintenance method, such as manual execution script and manual operation, is difficult to ensure the consistency of operation, and is also easy to cause the problems of operation difference, human error and the like. Meanwhile, under the condition of operation and maintenance in different areas, due to the difference of the areas, the consistency of the service is difficult to ensure, and the operation and maintenance conditions of each area are difficult to uniformly manage and monitor. Therefore, it is necessary to explore a new operation and maintenance method, which can simplify the operation flow, improve the consistency of operation, and ensure the consistency of operation and maintenance of businesses in different areas.
The existing service operation and maintenance mode comprises deployment and operation and maintenance of application programs by using virtual machines, in the scheme, the application programs are operated in independent virtual machines, each virtual machine has own operating system and resources, however, the virtual machine scheme has the defects that the resource cost is high and the management and maintenance are difficult. In addition, some organizations also use container technology, which is a promising approach to greatly simplify deployment and management of applications while also improving consistency and repeatability of deployment, but containers that use container technology are similar to virtual machines, however, container technology still has problems such as difficulty in maintaining consistent operation and maintenance standards in different environments at multiple sites.
In summary, the existing business operation and maintenance schemes are often different in different areas and groups, and the operation and maintenance effects are inconsistent, so that the business stability is reduced, and the consistency is lacking; when the operation and maintenance environment is deployed, maintained and upgraded, the efficiency is low, and a great deal of manpower and time investment is required.
Therefore, a new method is necessary to be designed to realize unified management of different operation and maintenance environments, ensure the consistency of operation and maintenance of the businesses in different areas and improve the operation and maintenance efficiency.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a multi-place operation and maintenance containerization method, a multi-place operation and maintenance containerization device, computer equipment and a storage medium.
In order to achieve the above purpose, the present invention adopts the following technical scheme: a multi-place operation and maintenance containerization method comprising:
acquiring application program codes;
packaging the application program code into a mirror image;
uploading the mirror image to a mirror image warehouse;
obtaining a visual interface custom deployment template;
converting the visual interface custom deployment template into a container layout file through a container layout tool;
the container orchestration file is sent to the deployment node, such that the deployment node parses the container orchestration file through the container orchestration tool, creating the container locally.
The further technical scheme is as follows: the method comprises the steps of sending the container programming file to a deployment node, enabling the deployment node to analyze the container programming file through a container programming tool, and after the container is locally created, further comprising:
and periodically checking the running state of the container, and informing the corresponding deployment node to restart the container when the container fails.
The further technical scheme is as follows: the visual interface custom deployment template comprises the name, mirror image, port mapping, environment variable, quantity, network setting and resource quota of the container.
The further technical scheme is as follows: the periodic checking of the operational status of the container, when the container fails, notifying the corresponding deployment node to restart the container, includes:
installing a monitoring agent in the container;
configuring a monitoring alarm rule;
monitoring the running state of the container in real time by using the monitoring agent;
and when the container fails, notifying the corresponding deployment node to restart the container.
The further technical scheme is as follows: after notifying the corresponding deployment node to restart the container when the container fails, the method further comprises:
record the historical data of the container and provide data query and analysis functions.
The invention also provides a multi-place operation and maintenance containerization device, which comprises:
a code acquisition unit configured to acquire an application program code;
a packaging unit, configured to package the application program code into a mirror image;
the uploading unit is used for uploading the mirror image to a mirror image warehouse;
the template acquisition unit is used for acquiring the custom deployment template of the visual interface;
the conversion unit is used for converting the visual interface custom deployment template into a container arrangement file through a container arrangement tool;
and the sending unit is used for sending the container programming file to the deployment node so that the deployment node analyzes the container programming file through a container programming tool and creates a container locally.
The further technical scheme is as follows: further comprises:
and the monitoring unit is used for periodically checking the running state of the container, and notifying the corresponding deployment node to restart the container when the container fails.
The further technical scheme is as follows: the monitoring unit includes:
an installation subunit for installing a monitoring agent in the container;
a configuration subunit, configured to configure a monitoring alarm rule;
the real-time monitoring subunit is used for monitoring the running state of the container in real time by utilizing the monitoring agent;
and the alarm subunit is used for notifying the corresponding deployment node to restart the container when the container fails.
The invention also provides a computer device which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the method when executing the computer program.
The present invention also provides a storage medium storing a computer program which, when executed by a processor, performs the above-described method.
Compared with the prior art, the invention has the beneficial effects that: the invention packages the application program codes into mirror images, creates and manages containers, and deploys and manages the application program codes in different deployment environments, and as the same custom template is used in different environments, the consistency of deployment is ensured, different operation and maintenance environments are uniformly managed, the consistency of business operation and maintenance in different areas is ensured, and the operation and maintenance efficiency is improved.
The invention is further described below with reference to the drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of a multi-place operation and maintenance containerization method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a multi-place operation and maintenance containerization method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a multi-place operation and maintenance containerization method according to another embodiment of the present invention;
FIG. 4 is a schematic flow chart of a multi-place operation and maintenance containerization method according to another embodiment of the present invention;
FIG. 5 is a schematic block diagram of a multi-place operation and maintenance containerization apparatus provided by an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a multi-place operation and maintenance containerization apparatus provided by another embodiment of the present invention;
FIG. 7 is a schematic block diagram of a monitoring unit of a multi-place operation and maintenance containerization apparatus according to another embodiment of the present invention;
fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic diagram of an application scenario of a multi-place operation and maintenance containerization method according to an embodiment of the present invention. Fig. 2 is a schematic flow chart of a multi-place operation and maintenance containerization method provided by an embodiment of the present invention. The multi-place operation and maintenance containerization method is applied to the server. The server performs data interaction with the terminal, and is responsible for deployment of containerized applications, including packaging application code into images, creating and managing containers, and deploying and managing in different deployment environments. The server can automatically manage the deployment process of the containerized application and provide a visual interface, so that a user can conveniently manage and monitor the deployment of the containerized application. In addition, the server also supports a custom deployment template, so that the deployment efficiency and consistency are improved.
Fig. 2 is a flow chart of a multi-place operation and maintenance containerization method according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S160.
S110, acquiring application program codes.
In this embodiment, the application code refers to the code of an application program that needs to be managed in operation and maintenance, and the corresponding application code is mainly obtained through the code location of the application program and some basic configuration information.
S120, packaging the application program codes into mirror images.
In this embodiment, the image refers to an image file formed by packaging application program codes.
Packaging application code as an image may use containerization techniques, such as Docker. The following are some basic steps:
creating a Dockerfile: dockerfile is a text file that describes the application image construction steps. Where dependencies, runtime environments, and other settings of the application are specified.
And (3) constructing a mirror image: mirroring is built using Docker commands, such as Docker build. The command will read the Dockerfile and build a mirror image on the local computer. The build process will execute commands specified in Dockerfile, such as install dependencies and set environment variables.
S130, uploading the mirror image to a mirror image warehouse.
In this embodiment, the image is uploaded to the image repository for storage.
S140, acquiring a custom deployment template of the visual interface.
In this embodiment, the visual interface custom deployment template includes a name of a container, a mirror image, a port map, an environment variable, a number, a network setting, and a resource quota. This template can be customized according to the actual situation.
S150, converting the visual interface custom deployment template into a container editing file through a container editing tool.
In this embodiment, container orchestration of a file refers to orchestrating a visual interface custom deployment template into a file, such as a docker-composition. Yaml or kubernetes. Yaml, by a container orchestration tool. The relationship between the image and the container profile is such that: the container orchestration file describes the architecture and deployment of the application, while the mirror image is a building block of the containerized application. The container layout file needs to specify the desired images and how to combine the images into an application. Therefore, when deploying a containerized application, it is necessary to construct an image first and then specify the deployment of the image using the container layout file.
And S160, sending the container programming file to a deployment node, so that the deployment node analyzes the container programming file through a container programming tool and creates a container locally.
The method of the embodiment can automatically manage the deployment process of the containerized application and provide a visual interface, thereby facilitating the management and monitoring of the deployment of the containerized application by a user. In addition, a custom deployment template is supported, and the deployment efficiency and consistency are improved.
A company is provided with a plurality of branches, each of which needs to run the same containerized application and which needs to rely on shared resources such as databases and the like. With the conventional deployment method, each branch office needs to deploy the application program and related resources separately, and the problem of inconsistent deployment methods among different environments may occur, so that the operation and maintenance efficiency is low and the maintenance is difficult. This containerized application and associated resources can be centrally managed using the method of the present embodiment so that each remote terminal device can share the same application and resources. The deployment module on the server may automatically package the applications and resources into images according to the user-defined templates and send the images to the respective remote terminal devices for deployment. Because the same template is used, all containers are arranged according to the same rule in different deployment environments, so that the consistency of deployment can be ensured.
According to the multi-place operation and maintenance containerization method, application program codes are packaged into images, containers are created and managed, and deployment and management are carried out in different deployment environments, and as the same custom template is used in different environments, the consistency of deployment is ensured, different operation and maintenance environments are uniformly managed, the consistency of business operation and maintenance in different areas is ensured, and the operation and maintenance efficiency is improved.
Fig. 3 is a flow chart of a multi-place operation and maintenance containerization method according to another embodiment of the present invention. As shown in fig. 3, the multi-place operation and maintenance containerization method of the present embodiment includes steps S210 to S270. Steps S210 to S250 are similar to steps S110 to S150 in the above embodiment, and are not described herein. Step S270 added in the present embodiment is described in detail below.
S270, checking the running state of the container periodically, and informing the corresponding deployment node to restart the container when the container fails.
In this embodiment, the monitoring is responsible for monitoring the service operation and maintenance conditions in different areas, and relevant information is timely reported to the management system, and the alarm subunit 3074 alarms when abnormal conditions occur, so as to remind the management personnel to process.
In one embodiment, referring to fig. 4, the step S270 may include steps S271 to S275.
S271, installing a monitoring agent in the container.
In this embodiment, when the container is deployed, a monitoring agent is installed to collect data such as the running state of the container, the use condition of the resource, and the like, and send the data to the server.
S272, configuring monitoring alarm rules.
In this embodiment, a monitoring alarm rule is configured in the server, and when the monitoring agent detects that a problem occurs in the container, such as insufficient resources, abnormal services, etc., an alarm is triggered, and alarm information is sent to a designated person or group.
S273, monitoring the running state of the container in real time by using the monitoring agent.
In this embodiment, the server may view information such as the running state of the container and the use condition of the resource in real time, and may set a monitoring threshold according to needs, and when the state of the container exceeds the threshold, an alarm may be triggered.
S274, when the container fails, notifying the corresponding deployment node to restart the container;
the server provides a health check function to determine whether a container has failed by periodically checking the health status of the container. Health checks may detect problems with failure inside the container, network failure, or incompatibility of image updates. When a failure occurs, the server will notify the corresponding deployment node to restart the container.
S275, recording historical data of the container and providing data query and analysis functions.
In this embodiment, the server may also record historical data of the container and provide data query and analysis functions. Through data analysis, information such as performance trend of the containers, utilization rate of container resources, interaction among the containers and the like can be obtained, and the information can be used for performance optimization, resource management, fault removal and the like.
Performance optimization: by analyzing the historical data of the container, the law and trend of the change of the container performance can be found, and further, the aspects of resource allocation, application program optimization and the like of the container are improved.
And (3) resource management: by monitoring the historical data of the container, the resource use condition of the container can be known, so that the resource allocation of the container is adjusted, and the resource utilization rate is improved.
Troubleshooting: by analyzing the historical data of the container, the root cause of the container performance abnormality can be found, thereby solving the container failure more quickly.
The server of the embodiment can monitor all containerized application programs and provide real-time monitoring information and alarm, so that operation and maintenance personnel can discover and solve problems in time. Meanwhile, the upgrading module on the central management server can automatically upgrade all containers, so that all branch institutions use the latest version, and the upgrading efficiency and consistency are improved. The server also ensures that operators in each region follow the same criteria by providing business process guidance. An operator can query the business operation flow through the user interface and ensure the consistency of business operation through the flow.
The method of the embodiment manages and coordinates the operation and maintenance work of the business in different areas through the unified management container, and realizes the monitoring and unified scheduling of the operation and maintenance of the business in different areas, thereby improving the efficiency and consistency of the operation and maintenance of the business. Through the containerization mode, the consistency of service operation and maintenance in different areas can be ensured, and the service stability is improved. The investment of manpower and time can be reduced in an automatic mode, and the operation and maintenance efficiency is improved. The containerization scheme can integrally manage the operation and maintenance environment, and is convenient for operation and maintenance.
Fig. 5 is a schematic block diagram of a multi-place operation and maintenance containerization apparatus 300 provided by an embodiment of the present invention. As shown in fig. 5, the present invention also provides a multi-operation and maintenance containerization apparatus 300 corresponding to the above multi-operation and maintenance containerization method. The multi-place operation and maintenance containerization apparatus 300, which may be configured in a server, includes a unit for performing the above-described multi-place operation and maintenance containerization method. Specifically, referring to fig. 5, the multi-place operation and maintenance containerization apparatus 300 includes a code acquisition unit 301, a packaging unit 302, an uploading unit 303, a template acquisition unit 304, a conversion unit 305, and a transmission unit 306.
A code acquisition unit 301 for acquiring an application code; a packaging unit 302, configured to package the application program code into a mirror image; an uploading unit 303, configured to upload the image to an image repository; the template acquisition unit 304 is used for acquiring a custom deployment template of the visual interface; a conversion unit 305, configured to convert the visual interface custom deployment template into a container layout file through a container layout tool; and a sending unit 306, configured to send the container orchestration file to the deployment node, so that the deployment node parses the container orchestration file through the container orchestration tool, and creates the container locally.
Fig. 6 is a schematic block diagram of a multi-place operation and maintenance containerization apparatus 300 according to another embodiment of the present invention. As shown in fig. 6, the multi-place operation and maintenance container apparatus 300 of the present embodiment is added with the monitoring unit 307 on the basis of the above-described embodiment.
And the monitoring unit 307 is used for periodically checking the running state of the container, and notifying the corresponding deployment node to restart the container when the container fails.
In one embodiment, as shown in fig. 7, the monitoring unit 307 includes a mounting subunit 3071, a configuration subunit 3072, a real-time monitoring subunit 3073, an alarm subunit 3074, and a recording subunit 3075.
An installation subunit 3071 for installing a monitoring agent in the container; a configuration subunit 3072 configured to configure the monitoring alarm rules; a real-time monitoring subunit 3073 for monitoring the operation state of the container in real time using the monitoring agent; an alarm subunit 3074 for notifying the corresponding deployment node to restart the container when the container fails. A recording subunit 3075 for recording historical data of the container and providing data query and analysis functions
It should be noted that, as will be clearly understood by those skilled in the art, the specific implementation process of the multi-purpose operation and maintenance container apparatus 300 and each unit may refer to the corresponding description in the foregoing method embodiments, and for convenience and brevity of description, the description is omitted here.
The multi-modal operation and maintenance containerization apparatus 300 described above may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, where the server may be a stand-alone server or may be a server cluster formed by a plurality of servers.
With reference to FIG. 8, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a multi-purpose operation and maintenance containerization method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a multi-purpose operation and maintenance containerization method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device 500 to which the present application is applied, and that a particular computer device 500 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to execute a computer program 5032 stored in a memory to implement the steps of:
acquiring application program codes; packaging the application program code into a mirror image; uploading the mirror image to a mirror image warehouse; obtaining a visual interface custom deployment template; converting the visual interface custom deployment template into a container layout file through a container layout tool; the container orchestration file is sent to the deployment node, such that the deployment node parses the container orchestration file through the container orchestration tool, creating the container locally.
The visual interface custom deployment template comprises names of containers, images, port mapping, environment variables, quantity, network settings and resource quota.
In one embodiment, after the step of locally creating the container, the processor 502 further performs the following steps in implementing the step of sending the container layout file to the deployment node, so that the deployment node parses the container layout file through the container layout tool:
and periodically checking the running state of the container, and informing the corresponding deployment node to restart the container when the container fails.
In one embodiment, when the processor 502 implements the periodic checking of the running state of the container, and when the container fails, the corresponding deployment node is notified to restart the container, the following steps are specifically implemented:
installing a monitoring agent in the container; configuring a monitoring alarm rule; monitoring the running state of the container in real time by using the monitoring agent; and when the container fails, notifying the corresponding deployment node to restart the container.
In one embodiment, after implementing the step of notifying the corresponding deployment node to restart the container when the container fails, the processor 502 further implements the following steps:
record the historical data of the container and provide data query and analysis functions.
It should be appreciated that in embodiments of the present application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program comprises program instructions, and the computer program can be stored in a storage medium, which is a computer readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring application program codes; packaging the application program code into a mirror image; uploading the mirror image to a mirror image warehouse; obtaining a visual interface custom deployment template; converting the visual interface custom deployment template into a container layout file through a container layout tool; the container orchestration file is sent to the deployment node, such that the deployment node parses the container orchestration file through the container orchestration tool, creating the container locally.
The visual interface custom deployment template comprises names of containers, images, port mapping, environment variables, quantity, network settings and resource quota.
In one embodiment, the processor, upon executing the computer program, performs the step of sending the container orchestration file to the deployment node, so that the deployment node parses the container orchestration file through a container orchestration tool, and after the step of creating the container locally, performs the further steps of:
and periodically checking the running state of the container, and informing the corresponding deployment node to restart the container when the container fails.
In one embodiment, the processor, when executing the computer program to implement the periodic checking of the running state of the container, when the container fails, notifies the corresponding deployment node to restart the container step, specifically implementing the following steps:
installing a monitoring agent in the container; configuring a monitoring alarm rule; monitoring the running state of the container in real time by using the monitoring agent; and when the container fails, notifying the corresponding deployment node to restart the container.
In one embodiment, after executing the computer program to implement the step of notifying the corresponding deployment node to restart the container when the container fails, the processor further implements the steps of:
record the historical data of the container and provide data query and analysis functions.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A multi-place operation and maintenance containerization method, comprising:
acquiring application program codes;
packaging the application program code into a mirror image;
uploading the mirror image to a mirror image warehouse;
obtaining a visual interface custom deployment template;
converting the visual interface custom deployment template into a container layout file through a container layout tool;
the container orchestration file is sent to the deployment node, such that the deployment node parses the container orchestration file through the container orchestration tool, creating the container locally.
2. The multi-place operation and maintenance containerization method of claim 1, wherein the sending the container orchestration file to the deployment node, so that the deployment node parses the container orchestration file through a container orchestration tool, further comprising, after creating the container locally:
and periodically checking the running state of the container, and informing the corresponding deployment node to restart the container when the container fails.
3. The multi-place operation and maintenance containerization method of claim 1, wherein the visual interface custom deployment template comprises a name of a container, a mirror image, a port map, an environment variable, a number, a network setting, and a resource quota.
4. The multi-place operation and maintenance containerization method of claim 2, wherein the periodically checking the operational status of the container, when the container fails, notifying the corresponding deployment node to restart the container, comprises:
installing a monitoring agent in the container;
configuring a monitoring alarm rule;
monitoring the running state of the container in real time by using the monitoring agent;
and when the container fails, notifying the corresponding deployment node to restart the container.
5. The multi-place operation and maintenance containerization method of claim 2, wherein after notifying the corresponding deployment node to restart the container when the container fails, further comprising:
record the historical data of the container and provide data query and analysis functions.
6. A multi-place operation and maintenance containerization apparatus, comprising:
a code acquisition unit configured to acquire an application program code;
a packaging unit, configured to package the application program code into a mirror image;
the uploading unit is used for uploading the mirror image to a mirror image warehouse;
the template acquisition unit is used for acquiring the custom deployment template of the visual interface;
the conversion unit is used for converting the visual interface custom deployment template into a container arrangement file through a container arrangement tool;
and the sending unit is used for sending the container programming file to the deployment node so that the deployment node analyzes the container programming file through a container programming tool and creates a container locally.
7. The multi-place operation and maintenance containerization apparatus of claim 6, further comprising:
and the monitoring unit is used for periodically checking the running state of the container, and notifying the corresponding deployment node to restart the container when the container fails.
8. The multi-place operation and maintenance containerization apparatus of claim 6, wherein said monitoring unit comprises:
an installation subunit for installing a monitoring agent in the container;
a configuration subunit, configured to configure a monitoring alarm rule;
the real-time monitoring subunit is used for monitoring the running state of the container in real time by utilizing the monitoring agent;
and the alarm subunit is used for notifying the corresponding deployment node to restart the container when the container fails.
9. A computer device, characterized in that it comprises a memory on which a computer program is stored and a processor which, when executing the computer program, implements the method according to any of claims 1-5.
10. A storage medium storing a computer program which, when executed by a processor, performs the method of any one of claims 1 to 5.
CN202310237266.7A 2023-03-13 2023-03-13 Multi-place operation and maintenance containerization method and device, computer equipment and storage medium Pending CN116431277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310237266.7A CN116431277A (en) 2023-03-13 2023-03-13 Multi-place operation and maintenance containerization method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310237266.7A CN116431277A (en) 2023-03-13 2023-03-13 Multi-place operation and maintenance containerization method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116431277A true CN116431277A (en) 2023-07-14

Family

ID=87088050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310237266.7A Pending CN116431277A (en) 2023-03-13 2023-03-13 Multi-place operation and maintenance containerization method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116431277A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108196843A (en) * 2018-01-09 2018-06-22 成都睿码科技有限责任公司 Visualization Docker containers compile the O&M method of deployment automatically
CN111090437A (en) * 2019-11-19 2020-05-01 平安科技(深圳)有限公司 Application deployment method and device and computer readable storage medium
CN114237686A (en) * 2021-11-19 2022-03-25 北京百度网讯科技有限公司 Installation package generation method and device, electronic equipment and storage medium
WO2022127420A1 (en) * 2020-12-18 2022-06-23 中兴通讯股份有限公司 Service choreography and deployment method and system, network device, and storage medium
CN114860269A (en) * 2022-04-25 2022-08-05 浪潮通用软件有限公司 K8S-based product pushing method, device and medium
CN115220863A (en) * 2022-04-12 2022-10-21 特斯联科技集团有限公司 Operation and maintenance method and device for container application, computer equipment and storage medium
CN115390982A (en) * 2021-05-20 2022-11-25 中移动信息技术有限公司 Method and device for realizing SAAS application arrangement engine, electronic equipment and storage medium
CN115658237A (en) * 2022-11-08 2023-01-31 招银云创信息技术有限公司 Container application automatic deployment method, device, apparatus, equipment and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108196843A (en) * 2018-01-09 2018-06-22 成都睿码科技有限责任公司 Visualization Docker containers compile the O&M method of deployment automatically
CN111090437A (en) * 2019-11-19 2020-05-01 平安科技(深圳)有限公司 Application deployment method and device and computer readable storage medium
WO2022127420A1 (en) * 2020-12-18 2022-06-23 中兴通讯股份有限公司 Service choreography and deployment method and system, network device, and storage medium
CN115390982A (en) * 2021-05-20 2022-11-25 中移动信息技术有限公司 Method and device for realizing SAAS application arrangement engine, electronic equipment and storage medium
CN114237686A (en) * 2021-11-19 2022-03-25 北京百度网讯科技有限公司 Installation package generation method and device, electronic equipment and storage medium
CN115220863A (en) * 2022-04-12 2022-10-21 特斯联科技集团有限公司 Operation and maintenance method and device for container application, computer equipment and storage medium
CN114860269A (en) * 2022-04-25 2022-08-05 浪潮通用软件有限公司 K8S-based product pushing method, device and medium
CN115658237A (en) * 2022-11-08 2023-01-31 招银云创信息技术有限公司 Container application automatic deployment method, device, apparatus, equipment and medium

Similar Documents

Publication Publication Date Title
CN108513655B (en) Software defined automation system and architecture thereof
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
US20220091583A1 (en) Updating operational technology devices using container orchestration systems
US20220091572A1 (en) Integrating container orchestration systems with operational technology devices
EP2661014A1 (en) Polling sub-system and polling method for communication network system and communication apparatus
US20100125360A1 (en) Methods for performing data management for a recipe-and-component control module
CN101840228A (en) Method and device for collecting data of equipment of third party in distributed control system
CN103188088A (en) Equipment information acquisition system and equipment information acquisition method
CN102819478B (en) A kind of data handling system monitoring and management method without agency
CN111752637B (en) Multi-service inspection management method and device, computer equipment and storage medium
US20220091899A1 (en) Implementing serverless functions using container orchestration systems and operational technology devices
CN107992392A (en) A kind of automatic monitoring repair system and method for cloud rendering system
WO2019109108A2 (en) Method and apparatus for creating and managing smart programmable logic controller (plc) solutions
US11934855B2 (en) System and method to autonomously manage hybrid information technology (IT) infrastructure
CN111966465A (en) Method, system, equipment and medium for modifying configuration parameters of host machine in real time
CN111970158B (en) Processing system, method, device and equipment for edge access
CN109299789A (en) Equipment point-detecting method and device
CN109901830A (en) A kind of symbol arranging method and system for scada system development
CN111711695B (en) Distributed equipment management system based on cloud platform
US11431571B2 (en) Monitoring time-base policy domain architecture
CN116431277A (en) Multi-place operation and maintenance containerization method and device, computer equipment and storage medium
CN111045697A (en) Automatic rapid deployment method and system
CN115421847A (en) Management method and equipment for research, development, operation and maintenance platform and CICD (common information carrier) assembly line supporting multiple engines
CN109687984B (en) Configuration system and configuration method of wind power SCADA system
RU2575991C2 (en) Network configuration management in communication networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination