CN117234660A - Method for deploying and operating software under micro-service architecture based on Docker container technology - Google Patents

Method for deploying and operating software under micro-service architecture based on Docker container technology Download PDF

Info

Publication number
CN117234660A
CN117234660A CN202310988480.6A CN202310988480A CN117234660A CN 117234660 A CN117234660 A CN 117234660A CN 202310988480 A CN202310988480 A CN 202310988480A CN 117234660 A CN117234660 A CN 117234660A
Authority
CN
China
Prior art keywords
container
management platform
database
container management
micro
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
CN202310988480.6A
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.)
Anhui Keli Information Industry Co Ltd
Original Assignee
Anhui Keli Information Industry 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 Anhui Keli Information Industry Co Ltd filed Critical Anhui Keli Information Industry Co Ltd
Priority to CN202310988480.6A priority Critical patent/CN117234660A/en
Publication of CN117234660A publication Critical patent/CN117234660A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a method for deploying and operating software under a micro-service architecture based on a Docker container technology, which comprises the steps of packaging an application program and dependent items of the application program into a portable container by utilizing the Docker container technology; automatically allocating and scheduling the locations and numbers of the containers to the application using container scheduling techniques; and the container management platform is integrated with the Docker container technology and the container arrangement technology and supports various micro-service architectures, and the containerized application program is managed and deployed through a WEB interface of the container management platform. The method for displaying service deployment, middleware deployment and data backup through the WEB interface simplifies deployment flow and professional parameters, provides a visual operation interface, is used after being opened, and provides great convenience for deployment and operation and maintenance of software projects.

Description

Method for deploying and operating software under micro-service architecture based on Docker container technology
Technical Field
The invention relates to the technical field of software development, in particular to a method for deploying and operating software under a micro-service architecture based on a Docker container technology.
Background
The micro-service architecture in the existing software development field is attracting more and more attention, and the micro-service architecture splits a large application program into a plurality of small services, and each service can be independently operated and deployed. The micro service architecture has the advantages that the flexibility and the expandability of the software development can be improved, and meanwhile, the software development can be more modularized and is easy to maintain. However, under a micro-service architecture, software deployment and operation becomes more complex and cumbersome, requiring higher skill levels and experience by the operation staff to be able to perform these tasks.
In the prior art, kubernetes and Docker Swarm are the most commonly used container orchestration tools that can help users manage containerized applications. However, they require the operators to be familiar with complex configuration and management, and require the use of command line tools for operation, which adds a number of technical thresholds. In addition, they do not provide a visual interface, need to be managed through configuration files, and are not intuitive and easy to use.
In addition, there are similar implementations, such as Rancher, portainer, openShift, etc., that provide a visual interface and easy-to-use tools that can help a user easily manage a containerized application. However, they do not address the software deployment and operation problems under micro-service architecture, lacking corresponding solutions and functional support. At the same time, these solutions typically require the user to build the environment and configure themselves, which can be difficult for users with low technical thresholds.
In summary, the software deployment and operation process under the micro-service architecture in the prior art mainly has three defects:
1. cumbersome configuration and deployment procedure: the use of Kubernetes and Docker Swarm for container organization requires a high level of skill and experience by the operation and maintenance personnel, requiring familiarity with their complex configuration and management.
2. The operation threshold is higher: the use of command line tools requires a certain technical threshold and may present certain difficulties for beginners and non-professionals.
3. The lack of visual interface: the existing container arrangement tool does not provide a visual interface, needs to be managed through configuration files, and is not intuitive and easy to use.
Disclosure of Invention
The technical problem to be solved by the invention is how to realize a method which has high visualization degree and usability and reduces the technical threshold of users and is focused on software deployment and operation and maintenance under a micro-service architecture.
In order to solve the technical problems, the invention provides a method for deploying and operating software under a micro-service architecture based on a Docker container technology, which comprises the following steps:
packaging an application program and dependent items of the application program into a portable container by utilizing a Docker container technology;
automatically assigning the application program a location of the container and scheduling the number of containers using a container orchestration technique;
and the container management platform is integrated with the Docker container technology and the container arrangement technology and supports various micro-service architectures, and the containerized application program is managed and deployed through a WEB interface of the container management platform.
Further, the method for managing and deploying the containerized application program through the WEB interface of the container management platform specifically comprises the following steps:
cluster registration: selecting a server, and registering the container management platform as the cluster master node; the container management platform judges whether to join a cluster according to the unique token returned by the server and added into the cluster; after the servers join the cluster successfully, the container management platform starts real-time monitoring;
middleware deployment: the container management platform defaults the installation path and the advanced parameters, only exposes the personalized parameters to user operation, and completes the installation of the middleware through a WEB interface selection server;
batch import deployment: the container management platform is used for importing micro services and environment variables in batches; and creating a docker service, wherein the container management platform automatically creates and schedules the containers, and the containers are communicated with each other.
Preferably, the user selects the mirror image of the application program through the WEB interface of the container management platform, sets the number and resource limit of the containers, and configures the parameters and environment variables of the application program.
Further, the method for providing database inspection by the container management platform comprises the following steps:
entering a database server, and checking the CPU, the memory and the stored utilization rate of the server;
if the utilization rate is higher than 85%, analyzing whether the utilization rate is related to the database, if the utilization rate is related to the database, entering a fault processing flow of the database, if the utilization rate is not related to the database, informing related personnel to process, entering the database after finishing the processing, and executing a patrol script;
if the utilization rate is lower than 85%, entering the database, executing a patrol script, analyzing related data to obtain a patrol report, if the data of the patrol report is abnormal, entering the database fault processing flow, if the result of the patrol report is good, recording a patrol log, and exiting the server.
Further, the container management platform provides good results of inspection reports when the database is inspected, and inspects the external environment, if the inspection results of the external environment have errors, the container management platform analyzes whether the inspection results are related to the database, if the inspection results are related to the database, the container management platform enters the database fault processing flow, if the inspection results are not related to the database, inspection logs are recorded, and the server is exited; and if the external environment inspection result has no error reporting, recording an inspection log, and exiting the server.
Preferably, the container management platform needs to be deployed and configured in an operating environment, specifically including installing and configuring related software, configuring networks and storage, setting security policies, and access control.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a method for displaying service deployment, middleware deployment and data backup through a WEB interface based on a Docker container technology, simplifies deployment flow and professional parameters, provides a visual operation interface, is used after being opened, and provides great convenience for deployment and operation and maintenance of software projects.
Drawings
FIG. 1 is a timing diagram of a visual deployment in the present invention;
FIG. 2 is a flow chart of database patrol in the present invention;
FIG. 3 is a diagram of a visual inspection interface for database inspection reports in accordance with the present invention.
Detailed Description
In order to make the technical solutions and technical effects of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments.
The invention discloses a method for deploying and operating software under a micro-service architecture based on a Docker container technology, which comprises the following steps:
s1, packaging the application program and the dependent items of the application program into a portable container by utilizing a Docker container technology.
Developers use a container technology such as Docker to package application programs and their dependent items into a portable container, wherein the container includes code, running environment, configuration files and the like of the application programs.
The containerized application can be quickly deployed and run in different environments, and is also more convenient to manage and maintain.
S2, automatically distributing and scheduling the positions and the quantity of the containers by the application program by utilizing a container arrangement technology.
The container orchestration technique may automatically manage and schedule the containerized application in S1, including the creation, deployment, expansion, monitoring, and maintenance of containers. The container arrangement technology can automatically allocate and schedule the positions and the number of the containers according to the requirements and the resource conditions of the application programs, so that the reliability and the expandability of the system are improved.
And S3, integrating the Docker container technology and the container arrangement technology, and supporting a plurality of micro-service architecture container management platforms, and managing and deploying the containerized application programs through the WEB interfaces of the container management platforms.
The container management platform can integrate containerization technology and container orchestration technology, provides a series of management and operation interfaces, and helps users easily manage and deploy containerized applications.
The container management platform needs to be deployed and configured in the operating environment, including installing and configuring related software, configuring network and storage, setting security policies, and access control.
The user can easily deploy and manage the containerized application through the interface of the container management platform.
The user may select the mirror image of the application, set the number of containers and resource limitations, configure parameters and environment variables of the application, etc. The container management platform can automatically create and schedule containers, monitor the running state and the resource use condition of the containers, provide log and alarm functions and the like, and help users to better manage and maintain containerized application programs.
As shown in fig. 1, the method for providing visual deployment by the container management platform includes:
cluster registration: selecting a server, and registering a container management platform as a cluster master node; the container management platform judges whether to join the cluster according to the unique token returned by the server to join the cluster; after a plurality of servers join a cluster successfully, a container management platform is started for real-time monitoring;
middleware deployment: the container management platform defaults to install the path and high-level parameters, only exposes personalized parameters such as a host, a port, a user name, a password and the like to user operation, and simplifies complicated installation flow and parameter configuration. The installation of the middleware such as Mysql, postgresql, redis, elasticsearch can be completed by selecting a host on the web interface;
batch import deployment: the container management platform is used for importing micro services and environment variables in batches; and (3) creating a Docker Service, wherein the container management platform automatically creates and dispatches containers, and the containers are communicated with each other. The hosts are visually added and deleted, so that the dynamic expansion capability of the application service cluster is realized, meanwhile, the server is monitored in real time, and early warning can be carried out when the occupancy rate of resources such as CPU, memory, storage and the like is too high.
The configuration and deployment of the software service based on the Docker mirror image can visualize the environment variable, data mounting, DNS network, resource (memory, CPU) limitation and port opening of the added service, and can freely increase the node number, one-key restarting, log checking, container command executing and the like of the service, and push the service running state and the use conditions of the CPU and the memory in real time.
As shown in fig. 2, the method for providing database inspection by the container management platform includes:
entering a database server, and checking the CPU, the memory and the stored utilization rate of the server;
if the utilization rate is higher than 85%, analyzing whether the data is related to the database, if the data is related to the database, entering a database fault processing flow, if the data is not related to the database, informing related personnel to process, and after the processing is completed, entering the database, and executing a patrol script;
if the utilization rate is lower than 85%, entering a database, executing a patrol script, analyzing related data to obtain a patrol report, if the data of the patrol report is abnormal, entering a database fault processing flow, if the result of the patrol report is good, recording a patrol log, and exiting the server.
The result of the inspection report is good, the external environment is inspected, if the inspection result of the external environment has errors, whether the inspection result is related to the database is analyzed, if the inspection result is related to the database, the inspection result enters a database fault processing flow, if the inspection result is not related to the database, an inspection log is recorded, and the server is exited; if the external environment inspection result has no error, recording the inspection log, and exiting the server.
As shown in FIG. 3, the invention realizes one-key inspection of 20 databases, and the inspection report of the databases is visually checked through web pages, thus being visual and easy to use.
The method for safely setting the invention comprises the following steps:
according to the national information security level protection requirements, detecting and identifying malicious codes such as botnet, mining programs, malicious rootkits and the like, detecting and identifying abnormal super account numbers, process right lifting and other invasion behaviors, and providing alarms; in addition, the access mode or the network address range of the terminal can be dynamically set to limit the management terminal which manages through the network; enabling a security audit function, enabling audit coverage to each user, auditing important user behaviors and important security events, enabling audit records to comprise date and time of the events, users, event types, whether the events are successful or not and other information related to the audit, protecting the audit records, and regularly backing up the audit records to avoid unexpected deletion, modification or coverage and the like. All audit results can be visually checked through the WEB page. In addition, the database login settings can be dynamically modified, and the database login addresses are limited.
Aiming at the visual configuration of the data cold standby and hot standby of Mysql, postgresql, the invention uploads the data backup file to the Minio distributed file system.
The invention uses the Docker container technology to solve the complexity of software deployment and operation under the micro-service architecture, installs the basic environment and middleware by one key, simplifies the deployment flow and professional parameters, enables a user to easily complete the installation and initialization configuration of the system through a WEB interface, is used after unpacking, and provides great convenience for the deployment and operation of software projects.
The application product of the technology may be a container management platform software product, such as the container management platform described herein. The container management platform can support various micro-service architectures, provides functions of one-key deployment and management, database inspection, monitoring and alarming, container arrangement, data backup, safety setting and the like, can help users to easily manage and deploy containerized application programs, and improves the stability and reliability of the system. The container management platform can be applied to various industries and fields, such as the Internet, finance, electronic commerce, logistics, education and the like, and can help enterprises and organizations to better manage and operate containerized applications.
In addition to the container management platform software product, the application product of the technology may also be a cloud service product or a hosted service product based on the container management platform. The product can provide the management and deployment service of the containerized application program in the cloud based on the container management platform, so that a user can easily deploy and manage the containerized application program in the cloud, and services such as high availability, expandability, safety, performance guarantee and the like are provided.
The application product of the technology may also be a containerized application, for example an application based on the Docker container technology. The containerized application can help the developer to package the application and the required dependent items into a portable container, which is convenient for deployment and migration. The containerized application may be applied in a variety of scenarios and fields, such as web sites, mobile applications, data processing, machine learning, etc., which may improve the reliability, portability, and security of the application.
In summary, the application products of the technology include container management platform software products, cloud service products or hosting service products based on the container management platform, containerized application programs and the like, and can be applied to various industries and fields, so that users can be helped to better manage and deploy the containerized application programs, and the reliability and the expandability of the system are improved.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (6)

1. The method for deploying and operating software under a micro-service architecture based on a Docker container technology is characterized by comprising the following steps:
packaging an application program and dependent items of the application program into a portable container by utilizing a Docker container technology;
automatically allocating and scheduling the locations and numbers of the containers to the application using container scheduling techniques;
and the container management platform is integrated with the Docker container technology and the container arrangement technology and supports various micro-service architectures, and the containerized application program is managed and deployed through a WEB interface of the container management platform.
2. The method for deploying and operating software under a micro-service architecture based on the Docker container technology according to claim 1, wherein the method for managing and deploying the containerized application program through the WEB interface of the container management platform specifically comprises the following steps:
cluster registration: selecting a server, and registering the container management platform as the cluster master node; the container management platform judges whether to join a cluster according to the unique token returned by the server and added into the cluster; after the servers join the cluster successfully, the container management platform starts real-time monitoring;
middleware deployment: the container management platform defaults the installation path and the advanced parameters, only exposes the personalized parameters to user operation, and completes the installation of the middleware through the WEB interface selection server;
batch import deployment: the container management platform is used for importing micro services and environment variables in batches; and creating a Docker Service, wherein the container management platform automatically creates and schedules the containers, and the containers are communicated with each other.
3. The method for deploying and operating software under a micro-service architecture based on the dock container technology according to claim 2, wherein a user selects the mirror image of the application program, sets the number and resource limitation of the containers, and configures the parameters and environment variables of the application program through a WEB interface of the container management platform.
4. The method for deploying and operating software under a micro-service architecture based on dock container technology according to claim 1, wherein the method for providing database patrol by the container management platform comprises:
entering a database server, and checking the CPU, the memory and the stored utilization rate of the server;
if the utilization rate is higher than 85%, analyzing whether the utilization rate is related to the database, if the utilization rate is related to the database, entering a fault processing flow of the database, if the utilization rate is not related to the database, informing related personnel to process, entering the database after finishing the processing, and executing a patrol script;
if the utilization rate is lower than 85%, entering the database, executing a patrol script, analyzing related data to obtain a patrol report, if the data of the patrol report is abnormal, entering the database fault processing flow, if the result of the patrol report is good, recording a patrol log, and exiting the server.
5. The method for deploying and operating software under a micro-service architecture based on a Docker container technology according to claim 4, wherein the container management platform provides a good result of a inspection report during inspection of a database, inspects an external environment, analyzes whether the inspection result of the external environment is related to the database if the inspection result of the external environment is wrong, enters the database fault processing flow if the inspection result is related to the database, records an inspection log if the inspection result is not related to the database, and exits the server; and if the external environment inspection result has no error reporting, recording an inspection log, and exiting the server.
6. The method for deploying and operating software under a micro-service architecture based on the Docker container technology according to claim 1, wherein the container management platform needs to be deployed and configured in an operating environment, specifically including installing and configuring related software, configuring network and storage, setting security policies, and access control.
CN202310988480.6A 2023-08-04 2023-08-04 Method for deploying and operating software under micro-service architecture based on Docker container technology Pending CN117234660A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310988480.6A CN117234660A (en) 2023-08-04 2023-08-04 Method for deploying and operating software under micro-service architecture based on Docker container technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310988480.6A CN117234660A (en) 2023-08-04 2023-08-04 Method for deploying and operating software under micro-service architecture based on Docker container technology

Publications (1)

Publication Number Publication Date
CN117234660A true CN117234660A (en) 2023-12-15

Family

ID=89088726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310988480.6A Pending CN117234660A (en) 2023-08-04 2023-08-04 Method for deploying and operating software under micro-service architecture based on Docker container technology

Country Status (1)

Country Link
CN (1) CN117234660A (en)

Similar Documents

Publication Publication Date Title
EP3511824A1 (en) Method and system of providing artifacts in a cloud computing environment
US7316016B2 (en) Homogeneous monitoring of heterogeneous nodes
US8521865B2 (en) Method and apparatus for populating a software catalog with automated use signature generation
US20180159887A1 (en) Enterprise level cybersecurity automatic remediation
CA3050627A1 (en) Continuous security delivery fabric
US10778526B2 (en) Automated creation of test tenants for data center technical issue detection
KR20010072108A (en) Change monitoring system for a computer system
CN112989330B (en) Container intrusion detection method, device, electronic equipment and storage medium
CN110995511A (en) Cloud computing operation and maintenance management method and device based on micro-service architecture and terminal equipment
US10261771B1 (en) Environment mapping and patching synthesis
Bass et al. Eliciting operations requirements for applications
US20220197770A1 (en) Software upgrade stability recommendations
CN110971464A (en) Operation and maintenance automatic system suitable for disaster recovery center
CN112162761A (en) Method, system and equipment for automatically deploying project to public cloud containerization platform
CN114168471A (en) Test method, test device, electronic equipment and storage medium
CN114006815A (en) Automatic deployment method and device for cloud platform nodes, nodes and storage medium
CN117234660A (en) Method for deploying and operating software under micro-service architecture based on Docker container technology
CN116319242A (en) Cloud management platform micro-service scheduling method and device based on RPA technology
CN113515293B (en) Method and system for managing DevOps toolchain
WO2019018316A1 (en) Enterprise level cybersecurity automatic remediation
CN115080309A (en) Data backup system, method, storage medium, and electronic device
US11061725B2 (en) Managing a set of computing resources
Flora et al. µDetector: Automated Intrusion Detection for Microservices
CN114217950B (en) Node scheduling state control method and system
CN117632753A (en) Automatic intelligent operation and maintenance platform

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