CN107483225B - Application method and device of Docker on education cloud platform - Google Patents

Application method and device of Docker on education cloud platform Download PDF

Info

Publication number
CN107483225B
CN107483225B CN201710537227.3A CN201710537227A CN107483225B CN 107483225 B CN107483225 B CN 107483225B CN 201710537227 A CN201710537227 A CN 201710537227A CN 107483225 B CN107483225 B CN 107483225B
Authority
CN
China
Prior art keywords
docker
image
container
service
mirror image
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.)
Active
Application number
CN201710537227.3A
Other languages
Chinese (zh)
Other versions
CN107483225A (en
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.)
Beijing Open Distance Education Center Co ltd
Original Assignee
Beijing Open Distance Education Center 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 Beijing Open Distance Education Center Co ltd filed Critical Beijing Open Distance Education Center Co ltd
Priority to CN201710537227.3A priority Critical patent/CN107483225B/en
Publication of CN107483225A publication Critical patent/CN107483225A/en
Application granted granted Critical
Publication of CN107483225B publication Critical patent/CN107483225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/044Network management architectures or arrangements comprising hierarchical management structures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • 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
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The invention discloses an application method and an application device of Docker on an education cloud platform, wherein the method comprises the following steps: splitting a service logic and data access layer in a layered architecture, and assembling and disassembling the split service components as Docker mirror images through Dockerfile packages; pushing the Docker mirror image into a mirror image warehouse; the method comprises the following steps that a test environment and a production environment acquire a Docker mirror image with a specified version number from a mirror image warehouse and operate on a Docker engine; and deploying a load balancer and deploying a Docker engine on the host operating system. The method can apply the Docker technology to the education cloud platform, not only can create a new application scene more quickly, but also can meet the requirement of creating new services on the education cloud platform more quickly, and reduces the operation cost of the education cloud platform.

Description

Application method and device of Docker on education cloud platform
Technical Field
The invention relates to the technical field of Docker and education cloud platforms, in particular to a method and a device for applying Docker to an education cloud platform.
Background
With the innovation progress of computer technology and network technology, particularly the progress of virtualization technology, the innovation and the development of new concepts and new schemes, particularly the rapid development of Docker technology, the method lays a foundation for the promotion of an online education cloud platform. The education cloud platform adopts a micro-service architecture, the micro-service architecture solves some problems in the traditional layered architecture, the core characteristics of the micro-service architecture are high scalability, easy development, test and deployment of independent service components, and the service components are decoupled, distributed and mutually independent.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a method for applying Docker to an education cloud platform, which can apply Docker technology to the education cloud platform.
Another objective of the present invention is to provide a device for Docker to apply to an education cloud platform.
In order to achieve the above purpose, an embodiment of the invention provides an application method of a Docker on an education cloud platform, which includes the following steps: splitting a service logic and data access layer in a layered architecture, and assembling and disassembling the split service components as Docker mirror images through Dockerfile packages; pushing the Docker mirror image to a mirror image warehouse; the testing environment and the production environment acquire a Docker image with a specified version number from the image warehouse and operate on a Docker engine; and deploying a load balancer and deploying the Docker engine on a host operating system.
According to the application method of Docker on the education cloud platform, the new concept, the new mode and the new tool of Docker are used on the education cloud platform, and the production efficiency of software development, test, deployment, maintenance, upgrading and performance level extension on the education cloud platform is improved; a new application scene can be created more quickly, and the requirement of creating a new service on an education cloud platform can be met more quickly; the operation cost of the education cloud platform is reduced.
In addition, the application method of the Docker on the education cloud platform according to the above embodiment of the present invention may further have the following additional technical features:
further, in an embodiment of the present invention, the method further includes: and adjusting the resources of the host machine used by the program in the Docker image according to the current running data of the program in the Docker image.
Further, in an embodiment of the present invention, the method further includes: judging whether the service requirements need to be met; if necessary, dynamically adjusting the number of containers deployed under the load balancer according to the current service requirement; if not, the container is destroyed.
Further, in an embodiment of the present invention, the test environment and the production environment obtain a Docker image with a specified version number from the image repository and run on a Docker engine, and further include: deploying the Docker image in the test environment, wherein the Docker image with the specified version number is obtained from the image warehouse, and the Docker image is operated on a Docker engine of the test environment to be a container so as to provide service for the outside; and deploying the Docker mirror image in the production environment, wherein the Docker mirror image with the specified version number is obtained from the mirror image warehouse, and the Docker mirror image is operated as a container on a Docker engine of the production environment so as to provide service for the outside.
Further, in an embodiment of the present invention, the load balancer sends a client request to a container deployed in the same Docker image, so that the container deployed in the same Docker image provides the same service.
In order to achieve the above object, an embodiment of another aspect of the present invention provides an apparatus for applying a Docker on an education cloud platform, including: the splitting module is used for splitting a service logic and data access layer in the layered architecture, and assembling and disassembling the split service components as a Docker mirror image through a Dockerfile package; the pushing module is used for pushing the Docker mirror image into a mirror image warehouse; the acquisition module is used for acquiring a Docker mirror image with a specified version number from the mirror image warehouse by the test environment and the production environment and operating the Docker mirror image on a Docker engine; and the deployment module is used for deploying the load balancer and deploying the Docker engine on the host operating system.
The device for applying Docker on the education cloud platform of the embodiment of the invention uses the new concept, new mode and new tool of Docker on the education cloud platform, thereby improving the production efficiency of software development, test, deployment, maintenance, upgrade and performance level extension on the education cloud platform; a new application scene can be created more quickly, and the requirement of creating a new service on an education cloud platform can be met more quickly; the operation cost of the education cloud platform is reduced.
In addition, the Docker application device on the education cloud platform according to the above embodiment of the present invention may further have the following additional technical features:
further, in an embodiment of the present invention, the method further includes: and the control module is used for adjusting the resources of the host machine used by the program in the Docker mirror image according to the current running data of the program in the Docker mirror image.
Further, in an embodiment of the present invention, the method further includes: the judging module is used for judging whether the service requirements need to be met or not, so that the deploying module dynamically adjusts the number of containers deployed under the load balancer according to the current service requirements when needed, and the deploying module destroys the containers when not needed.
Further, in an embodiment of the present invention, the obtaining module is specifically configured to deploy the Docker image in the test environment, where the Docker image with the specified version number is obtained from the image warehouse, the Docker image is run as a container on a Docker engine of the test environment to provide a service to the outside, and the Docker image is deployed in the production environment, where the Docker image with the specified version number is obtained from the image warehouse, and the Docker image is run as a container on the Docker engine of the production environment to provide a service to the outside.
Further, in an embodiment of the present invention, the load balancer sends a client request to a container deployed in the same Docker image, so that the container deployed in the same Docker image provides the same service.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart of a method for Docker to apply to an education cloud platform according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a method for Docker to apply to an educational cloud platform, in accordance with one embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a Docker mirror deployment system according to an embodiment of the invention;
fig. 4 is a schematic structural diagram of an application device of Docker on an education cloud platform according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes an application method and an application apparatus of a Docker on an education cloud platform according to an embodiment of the present invention with reference to the drawings, and first, an application method of a Docker on an education cloud platform according to an embodiment of the present invention will be described with reference to the drawings.
Fig. 1 is a flowchart of a method for applying Docker to an education cloud platform according to an embodiment of the present invention.
As shown in fig. 1, the application method of the Docker on the education cloud platform includes the following steps:
in step S101, the service logic and the data access layer in the layered architecture are split, and the split service components are installed and removed by a Dockerfile package as a Docker mirror image.
It can be appreciated that the business logic and data access layers in the traditional hierarchical architecture are split, and the split service components are assembled and disassembled into individual Docker images using the Dockerfile package.
In step S102, the Docker image is pushed into the image repository.
In step S103, the test environment and the production environment obtain a Docker image with a specified version number from the image repository and run on the Docker engine.
That is, the test environment and the production environment obtain a Docker image with a specified version number from the image repository and run on the Docker engine.
In an embodiment of the present invention, a test environment and a production environment obtain a Docker image with a specified version number from an image repository and run on a Docker engine, and further include: deploying a Docker mirror image in a test environment, wherein the Docker mirror image with a specified version number is obtained from a mirror image warehouse, and the Docker mirror image is operated on a Docker engine of the test environment to be a container so as to provide service for the outside; the method comprises the steps of deploying a Docker mirror in a production environment, wherein the Docker mirror with a specified version number is obtained from a mirror warehouse, and the Docker mirror is operated on a Docker engine of the production environment to serve the outside.
In step S104, a load balancer is deployed and a Docker engine is deployed on the host operating system.
That is, a load balancer is deployed and a Docker engine is deployed on the host operating system.
In an embodiment of the present invention, the load balancer sends a client request to a container deployed in the same Docker image, so that the container deployed in the same Docker image provides the same service.
In the embodiment of the invention, the method of the embodiment of the invention is a method for supporting a micro-service framework, which can solve the problem of rapid deployment and operation of service components, wherein in an environment with a Docker engine installed, the starting operation of one Docker container is basically in the order of seconds, and the operating system and hardware conditions under the Docker engine are not concerned.
Further, in an embodiment of the present invention, the method of an embodiment of the present invention further includes: and adjusting the resources of the host machine used by the program in the Docker image according to the current running data of the program in the Docker image.
It can be appreciated that the method of the embodiments of the present invention can address high scalability of service components. Specifically, according to the actual running condition of the program in the Docker image, the resources of the host machine used by the program in the Docker image can be adjusted at any time, for example, the usage amounts of the CPU and the memory are adjusted. So as to meet the actual service requirement and save the system resource.
Further, in an embodiment of the present invention, the method further includes: judging whether the service requirements need to be met; if necessary, dynamically adjusting the number of containers deployed under the load balancer according to the current service requirement; if not, the container is destroyed.
It will be appreciated that the method of embodiments of the present invention may address the distributability of service components. Specifically, under one load balancer, a plurality of containers can be rapidly deployed, and the number of containers is dynamically adjusted according to actual service requirements, so as to meet the service requirements. When not needed, the container can be destroyed quickly, so that resources are saved.
For example, as shown in fig. 2, the method of the embodiment of the present invention includes the following steps:
step S1, write a Dockerfile, wrap an individual service component as a Docker image, and specify a version number of the Docker image.
Step S2, pushing the Docker mirror to the mirror repository.
And step S3, deploying the Docker mirror image in the test environment. And acquiring a Docker image with a specified version number from the image warehouse, and operating the Docker image on a Docker engine of the test environment to form a container so as to provide services for the outside.
Step S4, a Docker image is deployed in the production environment. And acquiring a Docker image with a specified version number from the image warehouse, and operating the Docker image on a Docker engine of a production environment to form a container so as to provide services for the outside.
As shown in fig. 3, the system for deploying a Docker mirror application includes: hardware layer, host operating system, Docker engine, container, load balancer.
Specifically, the hardware layer and the host operating system are the basis for the operation of the Docker engine, the container is operated on the Docker engine, and the Docker engine can operate a plurality of containers. The container is a running Docker image, and multiple containers can be deployed by the same Docker image. The load balancer in fig. 3 is responsible for forwarding the request of the client, and forwarding the request of the client to the container a, the container B, and the container C according to the forwarding policy. The container A, the container B and the container C are containers deployed in the same Docker mirror image, and the three containers provide the same service. Containers can be added and subtracted on the load balancer depending on actual traffic demands. In addition, container D and container E in fig. 3 are single containers for responding to requests sent from clients.
According to the application method of Docker on the education cloud platform provided by the embodiment of the invention, a unified development environment is adopted when services and applications on the education cloud platform are developed; a unified testing environment is adopted when the services and the applications on the education cloud platform are tested; the production environment with the same use and development environment and test environment is used when services and applications on the education cloud platform are deployed; the test environment and the production environment use the same Docker mirror image of the service or application; and adopting a micro-service architecture on the education cloud platform. The invention has the following advantages: the new concept, the new mode and the new tool of Docker are used on the education cloud platform, so that the production efficiency of development, test, deployment, maintenance, upgrade and performance level expansion of software on the education cloud platform is improved; a new application scene can be created more quickly, and the requirement of creating a new service on an education cloud platform can be met more quickly; the operation cost of the education cloud platform is reduced.
Next, an application device of Docker on an education cloud platform according to an embodiment of the present invention will be described with reference to the accompanying drawings.
Fig. 4 is a schematic structural diagram of an application device of Docker on the education cloud platform according to an embodiment of the present invention.
As shown in fig. 4, the Docker applies the device 10 to the education cloud platform, and includes: a splitting module 100, a pushing module 200, an obtaining module 300, and a deploying module 400.
The splitting module 100 is configured to split a service logic and a data access layer in a layered architecture, and install and detach a split service component as a Docker mirror image through a Dockerfile package. The push module 200 is used to push a Docker image into the image repository. The obtaining module 300 is configured to obtain, by the test environment and the production environment, a Docker image with a specified version number from the image repository, and run on a Docker engine. The deployment module 400 is used to deploy the load balancer and the Docker engine on the host operating system. The device 10 of the embodiment of the invention can apply the Docker technology to the education cloud platform, not only can create a new application scene more quickly, but also can meet the requirement of creating a new service on the education cloud platform more quickly, and reduces the operation cost of the education cloud platform.
Further, in one embodiment of the present invention, the apparatus 10 of the embodiment of the present invention further comprises: and a control module. The control module is used for adjusting resources of a host machine used by the program in the Docker mirror image according to the current running data of the program in the Docker mirror image.
Further, in one embodiment of the present invention, the apparatus 10 of the embodiment of the present invention further comprises: and a judging module. The judging module is configured to judge whether the service requirement needs to be met, so that the deployment module 400 dynamically adjusts the number of containers deployed under the load balancer according to the current service requirement when needed, and destroys the containers when not needed.
Further, in an embodiment of the present invention, the obtaining module 300 is specifically configured to deploy a Docker image in a test environment, where the Docker image with a specified version number is obtained from an image repository, the Docker image is run as a container on a Docker engine in the test environment to provide a service to the outside, and the Docker image is deployed in a production environment, where the Docker image with a specified version number is obtained from the image repository, and the Docker image is run as a container on the Docker engine in the production environment to provide a service to the outside.
Further, in an embodiment of the present invention, the load balancer sends the client request to the same container deployed by the Docker image, so that the same container deployed by the Docker image provides the same service.
It should be noted that the foregoing explanation of the embodiment of the method for applying Docker on the education cloud platform is also applicable to the device for applying Docker on the education cloud platform in this embodiment, and is not repeated herein.
According to the application device of Docker on the education cloud platform provided by the embodiment of the invention, a unified development environment is adopted when services and applications on the education cloud platform are developed; a unified testing environment is adopted when the services and the applications on the education cloud platform are tested; the production environment with the same use and development environment and test environment is used when services and applications on the education cloud platform are deployed; the test environment and the production environment use the same Docker mirror image of the service or application; and adopting a micro-service architecture on the education cloud platform. The invention has the following advantages: the new concept, the new mode and the new tool of Docker are used on the education cloud platform, so that the production efficiency of development, test, deployment, maintenance, upgrade and performance level expansion of software on the education cloud platform is improved; a new application scene can be created more quickly, and the requirement of creating a new service on an education cloud platform can be met more quickly; the operation cost of the education cloud platform is reduced.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (2)

1. A method for applying Docker to an education cloud platform is characterized by comprising the following steps:
splitting a service logic and data access layer in a layered architecture, and assembling and disassembling the split service components as Docker mirror images through Dockerfile packages;
pushing the Docker mirror image to a mirror image warehouse;
the testing environment and the production environment acquire a Docker image with a specified version number from the image warehouse and operate on a Docker engine; the test environment and the production environment obtain a Docker image with a specified version number from the image warehouse and run on a Docker engine, and the method further comprises the following steps: deploying the Docker mirror image in the test environment, and operating the Docker mirror image on a Docker engine of the test environment to be a container so as to provide service for the outside; deploying the Docker mirror image in the production environment, and operating the Docker mirror image on a Docker engine of the production environment to be a container so as to provide service for the outside; and
deploying a load balancer, deploying the Docker engine on a host operating system, sending a client request to a container deployed by the same Docker mirror image by the load balancer so as to enable the container deployed by the same Docker mirror image to provide the same service, and starting to operate one Docker container in the environment with the Docker engine, wherein the time for starting to operate the Docker container is in the second level;
adjusting resources of a host machine used by the program in the Docker image according to the current running data of the program in the Docker image, specifically: according to the actual running condition of the program in the Docker image, the resources of the host machine used by the program in the Docker image are adjusted at any time so as to meet the actual service requirement and save the system resources at the same time;
judging whether the service requirements need to be met; if necessary, dynamically adjusting the number of containers deployed under the load balancer according to the current service requirement; if not, destroying the container;
the method further comprises the following steps: multiple separate containers are deployed for individually responding to client requests.
2. An apparatus for Docker to apply to an education cloud platform, comprising:
the splitting module is used for splitting a service logic and data access layer in the layered architecture, and assembling and disassembling the split service components as a Docker mirror image through a Dockerfile package;
the pushing module is used for pushing the Docker mirror image into a mirror image warehouse;
the acquisition module is specifically used for deploying the Docker mirror in the test environment, operating the Docker mirror as a container on the Docker engine of the test environment to provide services for the outside, deploying the Docker mirror in the production environment, and operating the Docker mirror as a container on the Docker engine of the production environment to provide services for the outside; and
the system comprises a deployment module, a load balancer and a Docker engine, wherein the deployment module is used for deploying the load balancer, deploying the Docker engine on a host operating system, sending a client request to a container deployed by the same Docker mirror image by the load balancer so as to enable the container deployed by the same Docker mirror image to provide the same service, and starting the operation of one Docker container in the environment with the Docker engine installed in the environment with the Docker engine in the second level;
a control module, configured to adjust resources of a host machine used by a program in the Docker image according to current running data of the program in the Docker image, specifically: according to the actual running condition of the program in the Docker image, the resources of the host machine used by the program in the Docker image are adjusted at any time so as to meet the actual service requirement and save the system resources at the same time;
the judging module is used for judging whether the service requirements need to be met or not, so that the deploying module dynamically adjusts the number of containers deployed under the load balancer according to the current service requirements when needed, and destroys the containers when not needed;
the device further comprises: a plurality of containers for individually responding to client requests.
CN201710537227.3A 2017-07-04 2017-07-04 Application method and device of Docker on education cloud platform Active CN107483225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710537227.3A CN107483225B (en) 2017-07-04 2017-07-04 Application method and device of Docker on education cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710537227.3A CN107483225B (en) 2017-07-04 2017-07-04 Application method and device of Docker on education cloud platform

Publications (2)

Publication Number Publication Date
CN107483225A CN107483225A (en) 2017-12-15
CN107483225B true CN107483225B (en) 2020-11-13

Family

ID=60595290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710537227.3A Active CN107483225B (en) 2017-07-04 2017-07-04 Application method and device of Docker on education cloud platform

Country Status (1)

Country Link
CN (1) CN107483225B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108076159A (en) * 2018-01-26 2018-05-25 成都精灵云科技有限公司 A kind of cloud platform based on Docker builds device
CN108108230A (en) * 2018-01-26 2018-06-01 成都精灵云科技有限公司 Cloud platform delivery system based on docker
CN108279892B (en) * 2018-02-27 2021-05-28 郑州云海信息技术有限公司 Method, device and equipment for splitting large-scale application service into micro-service
CN108964968B (en) * 2018-03-27 2022-01-11 南方电网深圳数字电网研究院有限公司 Service access management method and system in container cloud environment
CN108829399B (en) * 2018-04-13 2022-05-20 杭州朗和科技有限公司 Application testing method, testing device, medium and computing equipment
CN109067890B (en) * 2018-08-20 2021-06-29 广东电网有限责任公司 CDN node edge computing system based on docker container
CN109358858B (en) * 2018-09-19 2022-03-22 网易(杭州)网络有限公司 Automatic deployment method, device, medium and electronic equipment
CN109800055A (en) * 2018-12-27 2019-05-24 北京航天智造科技发展有限公司 Container dispatches method of combination and system
CN109889364B (en) * 2018-12-29 2022-10-14 北京奥鹏远程教育中心有限公司 Cloud platform configuration method and device
CN111124430A (en) * 2019-12-31 2020-05-08 苏州浪潮智能科技有限公司 Micro-service deployment method and device of hybrid architecture
CN111313545A (en) * 2020-01-08 2020-06-19 国网内蒙古东部电力有限公司检修分公司 Extra-high voltage transmission line on-line monitoring platform based on big data
CN112468337A (en) * 2020-11-19 2021-03-09 安徽江淮汽车集团股份有限公司 Deployment method, device, equipment and storage medium of Internet of vehicles microservice

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630488A (en) * 2015-12-18 2016-06-01 上海爱数信息技术股份有限公司 Docker container technology-based continuous integration realizing method
CN106325975A (en) * 2016-09-09 2017-01-11 浪潮软件股份有限公司 Method for automatically deploying and managing big data clusters through Docker container
CN106598634A (en) * 2015-10-20 2017-04-26 北大方正集团有限公司 Method and device for deploying Moodle platform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735102A (en) * 2013-12-18 2015-06-24 广州岚萃贸易有限公司 Customer relation management system based on cloud platform and cloud computing
US10198281B2 (en) * 2015-08-28 2019-02-05 Vmware, Inc. Hybrid infrastructure provisioning framework tethering remote datacenters

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598634A (en) * 2015-10-20 2017-04-26 北大方正集团有限公司 Method and device for deploying Moodle platform
CN105630488A (en) * 2015-12-18 2016-06-01 上海爱数信息技术股份有限公司 Docker container technology-based continuous integration realizing method
CN106325975A (en) * 2016-09-09 2017-01-11 浪潮软件股份有限公司 Method for automatically deploying and managing big data clusters through Docker container

Also Published As

Publication number Publication date
CN107483225A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN107483225B (en) Application method and device of Docker on education cloud platform
CN107360010B (en) Website gray level publishing method and device
US10326653B2 (en) Method for upgrading network functions virtualization application, service forwarding method, and apparatus
US11201805B2 (en) Infrastructure management system for hardware failure
CN109302483B (en) Application program management method and system
TWI240184B (en) System, method, computer readable storage medium and state engine to automate the management of computer services and programmable devices
US9584377B2 (en) Transparent orchestration and management of composite network functions
US8918513B2 (en) Network resource deployment for cloud-based services
US8560694B2 (en) Virtual application server with version control
US9009222B2 (en) Verifying the transfer of a data file
US20170324828A1 (en) Virtual content delivery network
WO2017080391A1 (en) Network service deployment method and device
US20190250960A1 (en) Method, apparatus, and server for managing image across cloud servers
EP3284213A1 (en) Managing virtual network functions
US9268546B2 (en) Deployment and hosting of platform independent applications
Tseng et al. Extending scalability of IoT/M2M platforms with Fog computing
US20140310703A1 (en) Multi-machine deployment and configuration of multi-tiered applications
CN110888666A (en) Application of gray scale release method based on application load balancing in cloud service system
US20130151594A1 (en) Deployment and hosting of platform independent applications
CN111026414A (en) HDP platform deployment method based on kubernets
US20150326495A1 (en) System construction device and system construction method
CN101877655A (en) Network management system, network management server and method
CN109150599B (en) Operation and maintenance monitoring system based on cloud architecture
CN104991826A (en) Method and apparatus for deploying virtual machine
CN112351114B (en) Information processing method and device and storage medium

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
GR01 Patent grant
GR01 Patent grant