A fine-grained distributed cloud computing architecture based on Docker
Through a lightweight, fine-grained, loosely coupled distributed cloud computing architecture based on Docker, the problems of virtualization layer loss and cloud security in traditional cloud computing architecture are solved, achieving efficient endogenous security and resource utilization, and reducing server costs. cost, and isolate the impact in the event of an attack.
Patent Information
- Application Number
- CN202210380829.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-12
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-04-12
AI Technical Summary
Traditional cloud computing architecture suffers from virtualization layer loss in performance output and poor cloud security. In particular, there are challenges in container image and virtual machine security, making it difficult to achieve efficient endogenous security and resource utilization.
Design a lightweight, fine-grained, loosely coupled distributed cloud computing architecture based on Docker to achieve container management, resource pooling and Isolate and dismantle services into services with different functions, and use virtualization technology to generate multiple containers on the same physical facility to achieve isolation and multi-tenant computing.
It improves the security and resource utilization of the cloud computing architecture, reduces server costs, and implements a fine-grained and loosely coupled service architecture. It can isolate the impact when viruses or malicious code attacks, easily restart or replace damaged containers, and reduce costs. Business impact.
Smart Images

Figure CN114844759B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud computing, and in particular to a fine-grained distributed cloud computing architecture based on Docker. Background Art
[0002] With the advent of the information age, both scientific research and personal use are accompanied by higher and higher requirements for computing. Therefore, a new type of computing method with low cost and highly aggregated resources has become a new demand. The emergence of cloud computing has brought a solution to this problem. Cloud computing is an emerging business computing model that provides on-demand computing services to individual or corporate users through heterogeneous and autonomous services on the Internet, and eliminates tedious operations such as installation and maintenance. It has good results in both user experience and cost.
[0003] Traditional cloud computing includes three levels: the first is software as a service, which provides applications to customers mainly in a Web-based manner; the second is platform as a service, which provides an application development and deployment platform as a service to users; and the third is infrastructure as a service, which provides various underlying computing (such as virtual machines) and storage resources as services to users. The characteristics of traditional cloud computing are mainly reflected in: (1) ultra-large scale, which gives users unprecedented computing and storage capabilities by integrating and managing computer clusters; (2) on-demand services, where users can purchase resources in the resource pool on demand; and (3) high scalability, which can be adjusted and dynamically scaled according to demand. Among the current mainstream cloud computing services, there are two modes: virtual machine-based or Docker-based. Docker is a container virtualization technology. The former has better isolation and security, while the latter has the advantages of agile deployment, elastic scaling, flexible scheduling, and automatic fault recovery. However, traditional cloud computing services also have their own problems, such as the difficulty of virtualization layer loss that is difficult to avoid in terms of performance output, and cloud security issues. Under the cloud computing architecture, cloud computing open networks and business sharing scenarios are complex and changeable, and security challenges are even more severe, such as security issues of viruses or malicious programs, security issues of virtual machines, security issues of container images, and existing inherent security issues. Summary of the invention
[0004] The ubiquitous computing architecture designed in the present invention is a new type of distributed cloud computing architecture based on the lightweight, fine-grained, loosely coupled characteristics of Docker. The purpose is to establish a container-oriented, on-demand, and inherently secure cloud computing architecture, and to improve the performance of the current cloud architecture in terms of security, system resource utilization, cross-platform, continuous delivery and deployment, and migration.
[0005] To achieve the above objectives, the present invention provides the following technical solutions: a fine-grained distributed cloud computing architecture based on Docker, including a business layer, a service provider layer, a container resource layer, and an infrastructure layer. The business layer is used to provide users with interfaces for various services and send the services to the service provider layer. The service provider layer includes user interface, text processing service, algorithm service, and web service. The service provider layer is used to decompose the services required by users in the business layer into different requirements, which are storage services, computing services, and communication services, and then distribute them to containers with different functions in the lower layer. The container resource layer has two functions. The first function is to be responsible for the management and scheduling of containers and the management of their life cycle, including container The first function is to create, run, stop, and recycle the container. The second function is to pool container resources into container resource pools responsible for different functions according to the different functions of the containers, including database service container pools, web service container pools, and communication service container resource pools; the infrastructure layer is composed of various basic physical facilities, including various hardware, network devices, and storage devices. Users of various hardware, network devices, and storage devices do not actually control the underlying infrastructure, but control the operating system or application, and also control the selection of network components. At the same time, virtualization technology is used to generate multiple containers on the server of the same physical facility, and comprehensive isolation is achieved between these containers, making multi-tenant computing possible while reducing server operating costs.
[0006] The service provision layer disassembles the services required by users and subdivides a service into services with different functions according to its functions. To realize a service, it is necessary to complete all functions under a service. Through disassembly, a fine-grained service architecture is realized.
[0007] The container resource layer pools containers. Containers with different functions are responsible for different business functions. You only need to focus on the call and implementation of the container itself, which effectively decouples the association between containers with different functions and realizes a loosely coupled service architecture.
[0008] Compared with the prior art, the present invention has the following beneficial effects:
[0009] (1) At the service provider layer, the services required by users are decomposed and a service is subdivided into services with different functions according to its functions. To realize this service, all functions under this service need to be completed. Through this type of decomposition, a fine-grained service architecture is realized. At the container resource layer, containers are pooled. Containers with different functions are responsible for different business functions. There is no need to care about the details of the logical implementation of any other device. You only need to focus on your own call and implementation. This effectively decouples the association between containers with different functions and realizes a loosely coupled service architecture.
[0010] (2) The pan-content computing architecture is a cloud computing architecture based on Docker. On the one hand, from the perspective of inherent security, Docker containers use official container images and the kernel of the virtual operating system, which is less likely to have side effects, vulnerabilities, and natural failures. On the other hand, when the pan-content computing architecture is attacked by viruses or malicious code, if individual containers are damaged, other containers will not be affected. Once the container is monitored to be attacked, these containers can be easily restarted or replaced to achieve the effect of defending against attacks. Moreover, since the entire business is divided into multiple functions and handled by different functional containers, when a problem occurs in a functional container, this handling method can also minimize the impact on the entire business. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 This is a new type of distributed cloud computing architecture based on Docker's lightweight, fine-grained, loosely coupled characteristics, and a system architecture diagram of pan-capable computing.
[0012] Figure 2 It is a data flow diagram of a business based on a ubiquitous computing architecture according to an embodiment of the present invention.
[0013] Figure 3 This is a diagram of a container data storage architecture based on a pan-capable computing architecture in which three functional containers work together to complete user services according to an embodiment of the present invention.
[0014] Figure 4 It is a flowchart of the user's work in the editor business. DETAILED DESCRIPTION
[0015] The following will be combined with the drawings of the present invention in the embodiments of the present invention to clearly and completely describe the technical solutions of the present invention in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0016] The present invention provides a technical solution: a fine-grained distributed cloud computing architecture based on Docker:
[0017] like Figure 1 As shown, from top to bottom, the first level is the business layer, which is used to provide users with interfaces for various services upward and send services to the service provider layer downward. Figure 1 The user interface provides the user's access interface. The services that users access may include, for example: word processing services, algorithm services, web services, etc. The business layer service is the level closest to the user and interacts with the user the most.
[0018] The second level of service is the service provider layer, which is used to disassemble the services required by the business layer users and subdivide them into services with different functions. To realize the required business, all functions under this business need to be completed. Common functions include: business storage, business calculation, business communication, etc. After disassembly, the service provider layer will distribute the business to the containers with different functions in the lower layer, and the corresponding containers will realize the corresponding functions. Through this level of service, the pan-capable computing architecture realizes a fine-grained architecture.
[0019] The third level of service is the container resource layer. The services at this level are divided into two parts. The first part of the service is the scheduling management and life cycle management of the container. The life cycle of a container can usually be divided into creation, running, stopping, pausing and deletion. The creation of a container is the first step of a container. One or more containers are created through an image to achieve basic functions. The running of the container is the state that consumes the most time in the life cycle of the container. The container is in the running state most of the time in the life cycle. The stopped state of the container is the state when the container is abnormal or stopped actively. If you want to restart the container, you need to use the restart command to achieve it. The stopped state of the container will pause all processes in the container and collect zombie processes. The deletion of the container is the last state of the container life cycle. In this state, the system will reclaim all the space and processes allocated to the container. The second part is the pooling of container resources. The containers are divided into container resource pools with different functions according to their functions. Common resource pools include: database services, web services, storage services, etc. Containers with different functions are responsible for different business functions. They do not need to care about the details of the logical implementation of any other device. They only need to focus on their own calls and implementations, which effectively decouples the associations between containers with different functions. Through this level of service, the pan-capable computing architecture implements a loosely coupled architecture.
[0020] The last level is the infrastructure level. The services at this level mainly include three aspects. The first is the basic services, such as basic services, data storage services, network services, etc. The second aspect is to use virtualization technology to generate multiple containers on the same physical server, and achieve comprehensive isolation between these containers. Multiple users can use the resources of the same physical server at the same time, making multi-tenant computing possible while reducing server operating costs. The third aspect is the composition of various basic physical facilities, such as various hardware, network equipment, storage devices, etc. In this level of service, users do not actually control the underlying basic equipment, but control the operating system or application to operate and use these basic equipment. On the other hand, they can also control the selection of network components to a certain extent.
[0021] like Figure 2The following is a data flow diagram of a business in pan-content computing:
[0022] The difference from traditional Docker-based cloud computing is that in traditional Docker-based cloud computing services, a user issues a business request, and then the cloud computing service assigns the user a container, which has complete functions to implement the user's entire business. In the pan-capable computing architecture, a user issues a business request that first goes to the business layer, which then sends the business to the service provider layer. In the service provider layer, the business is disassembled into multiple functional parts, and then these functions are sent to the container resource layer. In the container resource layer, the container resource pool is allocated and managed, and multiple containers work together to implement the various functions of the entire business, and then returned to the service provider layer, where they are integrated and returned to the business layer, and finally to the user.
[0023] Combine the following Figure 3 , an architecture diagram for realizing data storage in the process of completing user services based on ubiquitous computing, further illustrating a method for distributed storage and monitoring of container data based on ubiquitous computing architecture of the present invention; Figure 3 As shown in the figure, the data storage architecture includes three functional containers, which are determined by the functional subdivision of user business based on the pan-capable computing architecture. Each functional container completes its own hosted service; a storage functional container is responsible for completing the functions of the storage service required during the entire business process; a Weave Scope monitoring container is responsible for monitoring the various indicators and abnormal conditions of all containers in the architecture; and a storage host is responsible for the final storage of user business data.
[0024] Among them, the pan-capable computing architecture divides the business that users need to process into three independent services. Different services are handled by container resource pools with different functions. The entire business relies on the collaborative work between multiple containers to achieve a fine-grained, loosely coupled service architecture. When the functional container needs to save data, it will send a storage request to the storage container. The functional container itself will not save the data, but will deliver all storage functions to the storage function container. In addition, the functional container can also view the list of data stored in the storage container through a request. When the previously stored data needs to be used, the functional container will send a request to the storage container, and the storage container will resend the previous data to the functional container.
[0025] For the storage container, it uses the NFS service to connect to the host and directly mounts the host directory in the container as its own storage directory. When the functional container needs to store data, the storage container accepts the storage request and writes the data directly to its own mounted directory, which is directly written to the host directory, thus realizing the storage function. This operation is invisible to other functional containers. Other functional containers will think that their data has been handed over to the storage container and are unaware of the subsequent operations of the storage container. When the storage container receives a request from other functional containers to view its previously saved data, the storage container will send its own storage directory structure to the functional container. If the functional container needs to view a previous data, the storage container will resend the data to the functional container.
[0026] For Weave Scope monitoring containers, it is responsible for monitoring the data flow in this network architecture and the status of functional containers and storage containers. Weave Scope is a powerful monitoring visualization tool that has two display modes: graphical style and table style. When using the graphical style, it also displays the topological relationship between containers.
[0027] Weave Scope monitors processes, containers, hosts, etc. It can monitor editor containers, storage containers, or the CPU, memory, etc. of hosts. When monitoring containers, you can also directly view the log information of the container, or directly perform command line operations on the container, shut down, restart, etc. The functions of displaying containers by conditions, searching by name, searching by resource usage, etc. are very powerful.
[0028] Combine the following Figure 4 , a detailed analysis of the state transition of containers and the collaboration between containers in an editor business:
[0029] When a user editor service is started, the overall container architecture of the system has three containers running, including a text editing container, a storage function container, and a monitoring container.
[0030] When a user applies for an editor service, the Pan-Container Computing Architecture divides the editor service into two sub-functions: one is the editing function for editing text, and the other is the storage function for storing text. After the user applies, the system will allocate two containers to the user, a text editing container and a storage function container. When the text editor is running, both containers are in operation, and the monitoring container also monitors the usage and status of the two containers at any time.
[0031] When the text editing container is running, it will first read the data in the storage function container. If there is text, it will receive the tree-structured file name list sent by the storage function and display it.
[0032] When you use a text editing container and need to save a file after editing, the text editing container will send a request to the storage function container, and the storage function container will save the text file to the local storage directory.
[0033] If the text editing container needs to read the files saved in the storage function container, it can read the text files by name through the tree-structured file name list and display them directly on the web page.
[0034] When the user completes the business and applies to end the editor business, the system will recycle the text editing container and storage function container previously allocated to the user.
[0035] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A fine-grained distributed cloud computing architecture based on Docker, including a business layer, a service provision layer, a container resource layer, and an infrastructure layer, characterized in that: The business layer is used to provide users with interfaces for various services and send the services to the service provider layer, which includes user interface, word processing service, algorithm service and web service. The service provider layer is used to decompose the services required by users in the business layer into different requirements, which are storage services, computing services and communication services, and then distribute them to containers with different functions in the lower layer. The container resource layer has two functions. The first function is to be responsible for the management and scheduling of containers and the management of their life cycle, including the creation, operation, stop and recycling scheduling of containers. The second function is to pool container resources into container resource pools responsible for different functions according to the different functions of containers, including database service container pool, web service container pool and communication service container resource pool. The infrastructure layer is composed of various basic physical facilities, including various hardware, network equipment and storage equipment. Users of various hardware, network equipment and storage equipment do not actually control the underlying infrastructure, but control the operating system or application program, and also control the selection of network components. At the same time, virtualization technology is used to generate multiple containers on the server of the same physical facility, and comprehensive isolation is achieved between these containers. The service provider layer decomposes the services required by users and subdivides a service into services with different functions. To realize a service, all functions under the service need to be completed. Through decomposition, a fine-grained service architecture is realized; The container resource layer pools containers. Containers with different functions are responsible for different business functions. You only need to focus on the call and implementation of the container itself, decoupling the association between containers with different functions. The specific data storage process in the process of completing user services based on pan-capacity computing is as follows: The data storage architecture includes three functional containers: a storage function container, which is responsible for completing the functions of the storage service required in the entire business process; a Weave Scope monitoring container, which is responsible for monitoring the various indicators and abnormal conditions of all containers in the architecture; and a storage container responsible for ultimately storing user business data. Among them, the pan-capable computing architecture divides the business that users need to process into three independent services. Different services are handled by container resource pools with different functions. The entire business relies on the collaborative work between multiple containers to achieve a fine-grained, loosely coupled service architecture. When the functional container needs to save data, it will send a storage request to the storage container. The functional container itself will not save the data, but will deliver all storage functions to the storage function container for implementation. In addition, the functional container can also view the list of data stored in the storage container through a request. When the previously stored data needs to be used, the functional container will send a request to the storage container, and the storage container will resend the previous data to the functional container. The storage container uses the NFS service to connect to the host, and directly mounts the host's directory in the container as its own storage directory; when the functional container needs to store data, the storage container accepts the storage request and writes the data directly to its own mount directory, that is, directly to the host directory, thereby realizing the storage function; the operation is invisible to other functional containers, and other functional containers will think that their data has been handed over to the storage container, and are unaware of the subsequent operations of the storage container; when the storage container receives a request from other functional containers to view its previously saved data, the storage container will send its own storage directory structure to the functional container. If the functional container needs to view a certain previous data, the storage container will resend the data to the functional container; For Weave Scope monitoring container, it is responsible for monitoring the data flow in this network architecture and the status of functional containers and storage containers; Weave Scope is a monitoring visualization tool, which has two display modes: graphical style and table style. When using graphical style, it also displays the topological relationship between containers; Weave Scope monitoring objects include processes, containers, hosts, editor containers, storage containers, CPU and memory of hosts; when monitoring containers, you can also directly view the log information of containers, directly perform command line operations on containers, shut down and restart them; display containers by conditions, search by name, and search by resource usage; The specific process of container state transition and collaboration between containers in the editor business is as follows: When a user editor service is started, there are three containers running in the overall container architecture of the system, including a text editing container, a storage function container, and a monitoring container. When a user applies for an editor service, the pan-content computing architecture divides the editor service into two sub-functions, one is the editing function for editing text, and the other is the storage function for storing text. After the user applies, the system will allocate two containers to the user, a text editing container and a storage function container. When the text editor is running, both containers are in a running state, and the monitoring container is also monitoring the usage and status of the two containers at any time. When the text editing container is running, it will first read the data in the storage function container. If there is text, it will receive the tree-structured file name list sent by the storage function and display it. When using the text editing container, after editing is completed, when the file needs to be saved, the text editing container will send a request to the storage function container, and the storage function container will save the text file to the local storage directory. If the text editing container needs to read the file saved in the storage function container, it will read the text file by name through the tree-structured file name list and display it directly on the web page. When the user completes the business and applies to end the editor business, the system will recycle the text editing container and storage function container previously allocated to the user.
