CN106020930B - A kind of application management method and system based on application container - Google Patents

A kind of application management method and system based on application container Download PDF

Info

Publication number
CN106020930B
CN106020930B CN201610318896.7A CN201610318896A CN106020930B CN 106020930 B CN106020930 B CN 106020930B CN 201610318896 A CN201610318896 A CN 201610318896A CN 106020930 B CN106020930 B CN 106020930B
Authority
CN
China
Prior art keywords
container
application
target
target application
resource
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
CN201610318896.7A
Other languages
Chinese (zh)
Other versions
CN106020930A (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.)
Cubic Information Technology Co Ltd Is Moistened In Shenzhen
Original Assignee
Cubic Information Technology Co Ltd Is Moistened In Shenzhen
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 Cubic Information Technology Co Ltd Is Moistened In Shenzhen filed Critical Cubic Information Technology Co Ltd Is Moistened In Shenzhen
Priority to CN201610318896.7A priority Critical patent/CN106020930B/en
Publication of CN106020930A publication Critical patent/CN106020930A/en
Application granted granted Critical
Publication of CN106020930B publication Critical patent/CN106020930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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/45562Creating, deleting, cloning virtual machine instances
    • 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

Abstract

A kind of application management method and system based on application container, the method is applied to the container scheduler in application management system, the application management system includes cloud control platform, the container scheduler and cluster including at least one host, the described method includes: container scheduler receives the application creation instruction that cloud control platform is sent, application creation instruction is pushed into the target host machine in the cluster, so that the target host machine, which creates instruction according to the application, obtains target image file, it the use of the target image file is that the corresponding target application of the target image file creates target application container.It can be improved the efficiency using deployment.

Description

A kind of application management method and system based on application container
Technical field
The present invention relates to cloud field more particularly to a kind of application management methods and system based on application container.
Background technique
In virtual technology field, Docker is the application container (full name in English: Application of an open source Container) engine allows developer that can be packaged they be applied in transplantable application container, is then published to any On popular Linux machine.Briefly, Docker technology is building in linux container (full name in English: Linux Container, English abbreviation: LXC) on, and based on process application container (full name in English: Process Container) Lightweight virtual machine (full name in English: Virtual Machine, English abbreviation: VM) solution, i.e., will apply and apply institute according to Bad running environment is packaged into the application container or mirror image of standard, will be specific using being deployed to according to licence limit or particular requirement Computer, execute specific task.Wherein, application container uses sandbox mechanism, is isolated each other between application container, often An application or one group of application are run in a application container, almost without performance cost, and independent of any language and are System.
But using Docker technology in clustered deploy(ment) in application, needing first using deployment personnel in server or every host Installation reaffirms (full name in English: Redistricting to using relevant running environment, such as database (MySQL) on machine System, English abbreviation: Redis), the running environment such as tom cat (Tomcat), and corresponding parameter configuration is carried out, and also The demand according to application to running environment is needed, corresponding third party's support programs are installed and configure, to support the running environment, In addition it is affixed one's name in cluster internal in application, needing to create application container copy, nothing on every host respectively using deployment personnel One key of method creates multiple application container copies in cluster.As it can be seen that entirely deployment process is cumbersome, efficiency is lower.
Summary of the invention
The present invention provides a kind of application management method and system based on application container, is able to solve base in the prior art In the lower problem of the efficiency of container application deployment.
First aspect provides a kind of application management method based on application container, and the method is applied to application management system In container scheduler, the application management system includes cloud control platform, the container scheduler and including an at least place The cluster of host, which comprises
Container scheduler receives the application creation instruction that cloud control platform is sent;
Application creation instruction is pushed into target host machine in the cluster so that the target host machine according to The application creation instruction obtains target image file, the use of the target image file is that the target image file is corresponding Target application creates target application container.
In some possible designs, after having disposed target application container, container scheduler can also be to target application The container resource of container is managed, such as the hardware resource for deleting container, increasing container, increasing or decreasing container, Yi Jichong New creation container etc..Wherein, the container resource includes at least one of following item: distributing to the application container of the target application Number, the number of the target application container or the target application container hardware resource required when running.Individually below into Row explanation:
1, the indicated Content Management container of the container resource management instruction that container scheduler is sent according to cloud control platform Resource
A, container resource is managed in cloud control platform as needed using deployment personnel.
B, container resource is managed according to the operating status of the target application container of acquisition using deployment personnel.
Then, the information for being used to indicate management container resource can be sent to container scheduler using deployment personnel, so that Container scheduler manages the container resource of the target application container according to container resource management instruction.
2, container scheduler manages container resource according to the operating status of the target application container of acquisition automatically
Specifically: the operation shape that module obtains the target application container is guarded by the host operated on host State;
When determining that the operating status meets default management condition, according to the operation state with preset configuration rule pipe Manage the container resource of the target application container.
Optionally, the operating status includes soft load and working condition.In the 2nd kind of situation, according to the operation shape State and preset configuration rule manage the container resource of the target application container, including following one:
When the working condition is failure state, is re-created using the target image file and answered comprising the target First application container;
When the soft load is more than first threshold, execute at least one of the following: increase is distributed to the target and is answered Target application in the target application container is migrated to the second application container, or increases institute by the number of application container Hardware resource needed for stating target application operation;
When the soft load is lower than second threshold, execute at least one of the following: reduction is distributed to the target and is answered The quantity of application container, the number for reducing the target application container, or reduce hard needed for the target application operation Part resource;
When the soft load is lower than third threshold value, by the target application container closure and delete.
By the dynamic adjustment container resource of soft load according to application container, load balancing is realized.In addition, passing through dynamic Management container resource so that host failure or application container failure in the cluster is when being closed, container scheduler can be stood New application container is re-created on former host, improves the reliability of application service.
Optionally, it in management container resource process, can also determine whether to be alerted, to notify operation to tie up Shield personnel safeguard the container Resource allocation and smoothing of whole system in time, meet in the operating status for determining the target application container pre- If when alarm conditions, the warning information for being used to indicate the target application container and meeting the default alarm conditions is sent to institute State cloud control platform, such as can be presented in management console interface with sound-light alarm, at the same can also by short message, Wechat account of binding etc. pushes warning information, is specifically not construed as limiting herein.
It, can also be in the mesh to further increase stability when application container operation in some possible designs When the failure of mark application container or the first host for running the target application container fail, the target application container is enabled The target application container is created on any host in back-up application container, or the cluster belonging to the first host Copy.
In some possible designs, after having disposed target application container, target application can also be held according to demand Device is updated, specific as follows:
1, target application is updated by modification target image file realization.
Container scheduler receives the application modification instruction that the cloud control platform is sent, and the application modification instruction is for referring to Show the modification to the target image file;
And instruction is modified according to the application and updates the target image file, and the mesh affixed one's name to the cluster internal It marks application container and pushes modification information, so that the target host machine is according to the updated target mirror image document creation new Target application container.
2, the application file of target application container is updated by uploading the file packet updated realization.
Container scheduler receives the application more new command that the cloud control platform is sent, and the application more new command is for referring to Show the update of the application file to the target application container;
And update message is pushed according to the target application container that the application more new command is affixed one's name to the cluster internal, So that the target application container obtains the update file, the application file of target application container is updated.
The above first aspect says a kind of application management method based on application container from the angle of container scheduler Bright, second aspect is described a kind of application management method based on application container from the angle of cloud control platform, the side Method is applied to the cloud control platform in application management system, and the application management system includes the cloud control platform, container tune Spend device and the cluster including at least one host, which comprises
Obtain target image file;
Application service configuration is carried out to the corresponding target application of the target image file, specifically: configuration target application Application parameter, the environmental variance of target application and the port mapping of target application;
Sending application creation instruction is instructed to the container scheduler so that the container scheduler creates the application The target host machine in the cluster is pushed to, so that the target host machine, which creates instruction according to the application, obtains target mirror It the use of the target image file is that the corresponding target application of the target image file creates target application container as file.
In some possible designs, after having disposed target application container, cloud control platform can also be to container resource Be managed, such as delete container, increase container, increase or decrease the hardware resource of container, and re-create container etc..Its In, the container resource includes at least one of following item: distributing to the application container number of the target application, the target is answered Required hardware resource when being run with the number of container or the target application container.
Container resource management instruction is sent to the container and dispatched by cloud control platform after being managed to container resource Device, so that container scheduler target application container according to the instruction Content Management that the container resource management instructs Container resource.
Optionally, container resource can voluntarily be managed according to demand in cloud control platform using deployment personnel, it can be with It is container resource to be managed according to the operating status of target application container, therefore container resource management is being instructed transmission by cloud control platform Before to the container scheduler, the method also includes:
Cloud control platform obtains the operating status of the target application container;
When determining that the operating status meets default management condition, cloud control platform manages institute according to the operation state The container resource of target application container is stated, the container resource includes at least one of following item: distributing to the target application Application container number, the number of the target application container or the target application container hardware resource required when running;
The container resource management instruction includes at least one of following item: re-creating first comprising the target application Application container, closing simultaneously delete the target application container, the application container number for distributing to the target application, the target The number of application container or the target application container hardware resource required when running.
Optionally, the operating status includes soft load and working condition, and the cloud control platform is according to the operation shape State manages the container resource of the target application container, including following one:
When the soft load is more than first threshold, execute at least one of the following: increase is distributed to the target and is answered Target application in the target application container is migrated to the second application container, or increases institute by the number of application container Hardware resource needed for stating target application operation;
When the soft load is lower than second threshold, execute at least one of the following: reduction is distributed to the target and is answered The quantity of application container, the number for reducing the target application container, or reduce hard needed for the target application operation Part resource.
By the dynamic adjustment container resource of soft load according to application container, load balancing is realized.In addition, passing through dynamic Management container resource, and be indicated to container scheduler and make that host in the cluster fails or application container failure is closed When, container scheduler can re-create new application container on former host immediately, improve the reliability of application service.
Optionally, it in management container resource process, can also determine whether to be alerted, to notify operation to tie up Shield personnel safeguard the container Resource allocation and smoothing of whole system in time, meet in the operating status for determining the target application container pre- If when alarm conditions, the warning information for being used to indicate the target application container and meeting the default alarm conditions is sent to institute State cloud control platform, such as can be presented in management console interface with sound-light alarm, at the same can also by short message, Wechat account of binding etc. pushes warning information, is specifically not construed as limiting herein.
In some possible designs, after having disposed target application container, target application can also be held according to demand Device is updated, specific as follows:
1, target application is updated by modification target image file realization.
Cloud control platform obtains the target image file;
It modifies to the target image file;
The modified target image file is uploaded to the file system for storing the target image file, and will be answered It is sent to the container scheduler with modification instruction, so that the container scheduler, which modifies instruction according to application, updates the target Image file, and the target application container affixed one's name to the cluster internal pushes modification information, so that the target host machine According to the new target application container of the updated target mirror image document creation.
2, the application file of target application container is updated by uploading the file packet updated realization.
Cloud control platform obtains the update file of the application file of the target application container;
According to the target application of the application identities instruction in the update file, the update file is uploaded to storage institute State the file system of target image file;
And the container scheduler will be sent to using more new command, so that the container scheduler is to the cluster internal The target application container of administration pushes update message, so that the target application container obtains the update file, updates mesh Mark the application file of application container.
When updating target application container, do not need to exit the target application in target application container.In addition, upgrading mesh Mark application needs to update target application container, it is only necessary to and it will update file and be uploaded to file system, it then will by container scheduler More new demand pushes to each target application container, and then, the self-developed infrastructure service in target application container obtains automatically answers The update file uploaded with deployment personnel, and dynamic updates the file specified into target application container, to avoid existing Need to travel frequently in technology Secure Shell SSH or remote desktop log in Linux password caused by application server or other Password leakage, and reduce security risk.
Third aspect present invention provides a kind of control assembly, have realize correspond to that above-mentioned first aspect provides based on answering With the function of the application management method of container.The function can also be executed corresponding by hardware realization by hardware Software realization.Hardware or software include one or more modules corresponding with above-mentioned function, the module can be software with/ Or hardware.
In a kind of possible design, the control assembly includes:
Module is obtained, for receiving the application creation instruction of cloud control platform transmission;
Sending module, for application creation instruction to be pushed to the target host machine in the cluster, so that described Target host machine creates instruction according to the application and obtains target image file, and the use of the target image file is the mesh It marks the corresponding target application of image file and creates target application container.
In a kind of possible design, the control assembly includes:
Processor, memory, receiver and transmitter interconnected;
Wherein, the memory is used to call the program in the memory for storing program code, the processor Code executes following operation:
The application creation instruction that cloud control platform is sent is received using the receiver;
Application creation instruction is pushed into the target host machine in the cluster using the transmitter, so that described Target host machine creates instruction according to the application and obtains target image file, the use of the target image file is the target The corresponding target application of image file creates target application container.
Fourth aspect present invention provides a kind of cloud control platform, have realize correspond to above-mentioned second aspect provide based on The function of the application management method of application container.The function can also be executed corresponding by hardware realization by hardware Software realization.Hardware or software include one or more modules corresponding with above-mentioned function, and the module can be software And/or hardware.
In a kind of possible design, the cloud control platform includes:
Module is obtained, for obtaining target image file;
Processing module, for carrying out application service configuration to the corresponding target application of the target image file;
Sending module, for sending application creation instruction to the container scheduler, so that the container scheduler is by institute The target host machine pushed in the cluster using creation instruction is stated, so that the target host machine is created according to the application Instruction obtains target image file, and the use of the target image file is that the corresponding target application of the target image file is created Build target application container.
In a kind of possible design, the cloud control platform includes:
Processor, memory, receiver and transmitter interconnected;
Wherein, the memory is used to call the program in the memory for storing program code, the processor Code executes following operation:
Target image file is obtained using the receiver;
And application service configuration is carried out to the corresponding target application of the target image file;
Using transmitter sending application creation instruction to the container scheduler, so that the container scheduler is by institute The target host machine pushed in the cluster using creation instruction is stated, so that the target host machine is created according to the application Instruction obtains target image file, the use of the target image file is that the corresponding target application of the target image file creates Target application container.
Fifth aspect present invention provides a kind of application management system, has and realizes the above-mentioned application management based on application container The function of method.The function can also execute corresponding software realization by hardware realization by hardware.Hardware is soft Part includes one or more modules corresponding with above-mentioned function, and the module can be software and/or hardware.
In a kind of possible design, the application management system includes:
Control assembly as described in the third aspect, the cloud control platform as described in fourth aspect, and including at least one The cluster of host.
Compared to the prior art, in scheme provided by the invention, container scheduler receives the application that cloud control platform is sent Creation instruction creates instruction according to the application and obtains target image file, and container scheduler uses the target image file Target application container is created, does not need that support programs are installed on every host in advance and running environment, container scheduler is Target application container can be affixed one's name in cluster internal, reduce using deployment operation and improve to a certain extent the efficiency of application deployment.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of the application management system in the present embodiment;
Fig. 2 is a kind of flow diagram of the application management method based on application container in the present embodiment;
Fig. 3 is another flow diagram of the application management method based on application container in the present embodiment;
Fig. 4 is a kind of surface chart of the progress application service configuration in the present embodiment;
Fig. 5 is another flow diagram of the application management method based on application container in the present embodiment;
Fig. 6 is a kind of structural schematic diagram of the control assembly in the present embodiment;
Fig. 7 is a kind of schematic diagram of the cloud control platform in the present embodiment;
Fig. 8 is a kind of structural schematic diagram of the application management system in the present embodiment;
Fig. 9 is that the entity apparatus structure of the device of application management method of the realization based on application container in the present embodiment is shown It is intended to.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments, is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without making creative work Example, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Similar object, without being used to describe a particular order or precedence order.It should be understood that the data used in this way are in appropriate feelings It can be interchanged under condition, so that the embodiments described herein can be real with the sequence other than the content for illustrating or describing herein It applies.In addition, term " includes " and " having " and their any deformation, it is intended that cover it is non-exclusive include, for example, packet The process, method, system, product or equipment for having contained series of steps or module those of be not necessarily limited to be clearly listed step or Module, but may include other steps being not clearly listed or intrinsic for these process, methods, product or equipment or Module, the division of module appeared in this paper, only a kind of division in logic can have another when realizing in practical application Outer division mode, such as multiple modules can be combined into or are integrated in another system, or some features can be ignored, or It does not execute, in addition, shown or discussion mutual coupling, direct-coupling or communication connection can be by some Interface, the indirect coupling or communication connection between module can be electrical or other similar form, be not construed as limiting herein. Also, module or submodule can be the separation that may not be physically as illustrated by the separation member, and can be can also be with Physical module, or can divide less than in multiple circuit modules, can select according to the actual needs part therein or Whole modules realize the purpose of the embodiment of the present invention.
The embodiment of the invention provides a kind of application management method and system based on application container is led for cloud Domain can be improved the efficiency based on container application deployment.It is described in detail below.
As shown in Figure 1, application management system herein includes cloud control platform and group system.
Wherein, cloud control platform is for realizing cluster management, application management, using publication, application service deployment, using clothes Business start and stop, dilatation, the functions such as application state monitoring provide the interactive interface using deployment for application deployment personnel or administrator, It is not necessarily to be concerned about the realization of group system bottom using deployment personnel or administrator, directly can complete application deployment in interactive interface Sequence of operations.
Cloud control platform includes:
Host management module, for managing multiple clusters or regional cluster, such as Beijing computer room cluster, Shanghai computer room collection Group, Shenzhen computer room cluster, company-data are saved in database.Can also show all host lists under cluster-specific and Details, data can be controlled by application programming interfaces (full name in English: English abbreviation: API) from the backstage of group system Component is read.Can also show the image file list in current Docker mirror image warehouse, and can be arranged for image file icon, The information such as environmental variance, port mapping, version.Foundation image is using the basic environment of operation, and image file is saved in control In the mirror image warehouse of component.User password modification can also be checked by cloud control platform using deployment personnel or administrator, be System operation log and the warning information of application container etc..
Application service management module, for managing the application message of user, application message includes the essential information of application, institute Environmental variance, port numbers derived from needs, application load balancing setting, using health examination function is arranged in the foundation image that needs Deng.It can also be responsible for the management such as upload, update of image file or upgrade file of different editions.It can also be in the mirror image of application After file uploads, realize the deployment of application, such as after clicking " application deployment " menu, the configuration shown according to interactive interface to It leads, the resource of application, parameter, container node number is configured, then can be clicked in interactive interface " starting " or " stopping " The start stop operation that button is applied.
Application container monitoring interface obtains monitoring from the monitoring information acquisition module of control assembly for periodically passing through API Data, and browser end is shown in graphic interface.
Group system includes control assembly, at least one cluster, and each cluster includes an at least host, wherein control Component processed is used to control the host in cluster, and control assembly includes container scheduler, mirror image warehouse, monitoring information acquisition module And caching, container scheduler are used to manage the application container of cluster internal administration, such as creation application container, deletion application are held Device increases application container and the management of container resource etc., at least one container scheduler can be set in group system, each Cluster can be set at least one container scheduler and (including primary tank scheduler, dispatch from container scheduler or backup container Device), the management of the container resource between cluster is isolated from each other, and the setting of specific container scheduler is not construed as limiting herein.Mirror image storehouse Library is for memory image file, the information such as running environment of application container;Monitoring information acquisition module is used for from the place in cluster Acquire the operating status of each application container run on host in host, operating status includes: the processor, interior of host It deposits, disk space and network inputs export (full name in English: Input/Output, English abbreviation: I/O) information and each host Processor, memory, network I/O information of each application container run on machine etc.;What caching was used to run on reservoir host's machine The operating status of each application container.
Application container includes the running environment and application of application, runs a self-developed infrastructure service in application container, The infrastructure service can service the information such as network address, the health status for reporting application container to network insertion.Network insertion clothes Business provides service access inlet function for application.Application container is referred to as container.
At least one application container can be disposed on every host, these application containers can be to provide same application clothes The container of business is also possible to provide the container of different application services, not limit specifically.When need to run it is specified in application, Image file required for creation application container is pulled to place from mirror image warehouse automatically as the Docker container engine in host In host.
Optionally, the group system can also include network access module, dispose on user's access host Application in application container.
To solve the technical problem in current mechanism, the embodiment of the present invention it is main the following technical schemes are provided:
1, application message is created in cloud control platform using deployment personnel, and the image file that will acquire is uploaded to mirror image Warehouse.
Specifically, using deployment personnel can be used it is existing using template directly cloud control platform creation application Image file is also possible to obtain image file created from channels such as network data bases, then in cloud control platform Create relevant application message.
2, the application service configuration that the corresponding application of the image file is run in the setting of cloud control platform, then answers instruction It is sent to container scheduler with the instruction of service configuration, so that container scheduler configures automatically according to the application service in instruction The application container of running environment of the creation comprising the application, the application, and the application container is disposed on the host in cluster.
In above scheme, in application deployment container, interaction circle by cloud control platform is only needed using deployment personnel Predefined wizard-like operation, carries out application service configuration for application and enables the application on face, can not have to participate in specific The complex operations such as the installation and configuration of installation and configuration, the application of running environment, subsequent all application containers map out the work all It is automatically performed by group system, to improve the efficiency of application deployment container.
Referring to figure 2., a kind of application management method based on application container is provided to the present invention below to be illustrated, Using deployment, personnel log in cloud control platform, establish host cluster information, configuration system parameter (such as: user information, using point Category information, foundation image information etc.), create the essential information of application (such as: application introduction, application icon, port, environmental variance Setting etc.), then the running environment mirror image of application and the version information of running environment mirror image are set, upload and answer in interactive interface With version file (can be compressed file format), after completing the upload of application version file, application container is affixed one's name in cluster internal Detailed process is as follows:
101, cloud control platform obtains target image file, answers the corresponding target application of the target image file Use service configuration.
Wherein, target image file can by application deployment personnel using existing application template creation, be also possible to from Network data base or other channels obtain target image file created, such as the mode of direct copying, specific to obtain The mode of target image file is not construed as limiting herein.
Application service configuration specifically includes that the environmental variance and target of the application parameter of configuration target application, target application The port mapping of application.Wherein, the application parameter for configuring target application includes Apply Names, application version, service name, host Machine cluster, resource distribution, container node number, cloud disk space and mode of loading;The environmental variance of target application includes administrator Title and administrator's password;The port mapping of target application includes the network port, the domain name of binding and public network access authority.
102, cloud control platform sending application creation is instructed to the container scheduler.
It is used to indicate the service that container scheduler enables target application using creation instruction, it is corresponding for target application creation Target application container.
103, container scheduler receives the application creation instruction that cloud control platform is sent, will be described according to resource dispatching strategy The target host machine in cluster is pushed to using creation instruction, affixes one's name to the target application container in the cluster internal to realize.
Wherein, target host machine includes the host of at least one target application container to be disposed in cluster, target place The selection of host by container scheduler according to the resource dispatching strategy of pre-configuration calculate to.
104, target host machine is received using acquisition target image file after creation instruction, and uses the target mirror image File is that the corresponding target application of the target image file creates target application container.
Wherein, affixing one's name to the target application container in the cluster internal includes: that container scheduler passes through resource scheduling algorithm The target host machine of target application container to be disposed is selected, then will be pushed to these target host machines using creation instruction, with It realizes and disposes target application container on the host of target application container to be disposed.It can also be as needed in same host At least one target application container is disposed on machine, is specifically not construed as limiting.It, can be in addition, if above-mentioned target application is more complicated Target application is split as multiple distributed components, and respectively each distributed component creates an application container, then builds The communication between these application containers is stood, realizes load balancing.
In the embodiment of the present invention, cloud control platform be target application carry out application service configuration, and will enable target application, And the application creation instruction of the corresponding target application container of creation is sent to container scheduler, container scheduler selection target place Host, target host machine obtains target image file, and uses the target mirror image document creation target application container, realizes not Need to install support programs and running environment on every host in advance, container scheduler can affix one's name to mesh in cluster internal automatically Application container is marked, reduce deployment operation to a certain extent and improves the efficiency of application deployment, decreases traditional injunctive people The faulty operation probability of administration, the Ministry of worker.
Optionally, in some inventive embodiments, after having disposed target application container, cloud control platform or container scheduling Device can also the container resource to target application container be managed, such as delete container, increase container, increase or decrease container Hardware resource, and re-create container etc..Wherein, the container resource includes at least one of following item: distributing to described The application container number of target application, the number of the target application container or the target application container are required when running Hardware resource.It is illustrated individually below:
1, the indicated Content Management container of the container resource management instruction that container scheduler is sent according to cloud control platform Resource.
A, container resource is managed in cloud control platform as needed using deployment personnel.
B, container resource is managed according to the operating status of the target application container of acquisition using deployment personnel.
Then, the container resource management instruction for being used to indicate the information of management container resource can be sent using deployment personnel To container scheduler, so that container scheduler manages the container of the target application container according to container resource management instruction Resource.
It should be noted that being configured only for the relevant parameter of container resource, most for cloud control platform The configuration of container resource is executed by container scheduler eventually.
The operating status includes soft load and working condition, and the cloud control platform manages institute according to the operation state State the container resource of target application container, including following one:
When the soft load is more than first threshold, execute at least one of the following: increase is distributed to the target and is answered Target application in the target application container is migrated to the second application container, or increases institute by the number of application container Hardware resource needed for stating target application operation;
When the soft load is lower than second threshold, execute at least one of the following: reduction is distributed to the target and is answered The quantity of application container, the number for reducing the target application container, or reduce hard needed for the target application operation Part resource.
By the dynamic adjustment container resource of soft load according to application container, load balancing is realized.In addition, passing through dynamic Management container resource, and be indicated to container scheduler and make that host in the cluster fails or application container failure is closed When, container scheduler can re-create new application container on former host immediately, improve the reliability of application service.
Optionally, in management container resource process, cloud control platform can also determine whether to be alerted, so as to Operation and maintenance personnel is notified to safeguard the container Resource allocation and smoothing of whole system in time, in the operation for determining the target application container When state meets default alarm conditions, the alarm for being used to indicate the target application container and meeting the default alarm conditions is believed Breath is sent to the cloud control platform, such as can be presented in management console interface with sound-light alarm, while may be used also To push warning information by short message, wechat account of binding etc., specifically it is not construed as limiting herein.
2, container scheduler manages container resource according to the operating status of the target application container of acquisition automatically.
Specifically: the operation shape that module obtains the target application container is guarded by the host operated on host State;
When determining that the operating status meets default management condition, according to the operation state with preset configuration rule pipe Manage the container resource of the target application container.
Wherein, the container resource management instruction includes at least one of following item: re-creating comprising the target application The first application container, closing and delete the target application container, the application container number for distributing to the target application, institute The number or the target application container for stating target application container hardware resource required when running.
Optionally, the operating status includes soft load and working condition, for container scheduler, according to operation When state manages application container automatically, in the 2nd kind of situation, container scheduler manages according to the operation state and preset configuration rule The then container resource of the target application container, including following one:
When the working condition is failure state, is re-created using the target image file and answered comprising the target First application container;
When the soft load is more than first threshold, execute at least one of the following: increase is distributed to the target and is answered Target application in the target application container is migrated to the second application container, or increases institute by the number of application container Hardware resource needed for stating target application operation;
When the soft load is lower than second threshold, execute at least one of the following: reduction is distributed to the target and is answered The quantity of application container, the number for reducing the target application container, or reduce hard needed for the target application operation Part resource;
When the soft load is lower than third threshold value, by the target application container closure and delete.
By the dynamic adjustment container resource of soft load according to application container, load balancing is realized.In addition, passing through dynamic Management container resource so that host failure or application container failure in the cluster is when being closed, container scheduler can be stood New application container is re-created on former host, improves the reliability of application service.It is understood that above-mentioned first Threshold value, second threshold and third threshold value from left to right, by arranging from small to large.
Optionally, it in management container resource process, can also determine whether to be alerted, to notify operation to tie up Shield personnel safeguard the container Resource allocation and smoothing of whole system in time, meet in the operating status for determining the target application container pre- If when alarm conditions, the warning information for being used to indicate the target application container and meeting the default alarm conditions is sent to institute State cloud control platform, such as can be presented in management console interface with sound-light alarm, at the same can also by short message, Wechat account of binding etc. pushes warning information, is specifically not construed as limiting herein.
Optionally, in some inventive embodiments, after having disposed target application container, container scheduler can also basis Demand is updated target application container, specific as follows:
One, for cloud control platform:
1, target application is updated by modification target image file realization.
Specifically, cloud control platform obtains the target image file;
It modifies to the target image file;
The modified target image file is uploaded to the file system for storing the target image file, and will be answered It is sent to the container scheduler with modification instruction, so that the container scheduler, which modifies instruction according to application, updates the target Image file, and the target application container affixed one's name to the cluster internal pushes modification information, so that the target host machine According to the new target application container of the updated target mirror image document creation.
2, the application file of target application container is updated by uploading the file packet updated realization.
Specifically, cloud control platform obtains the update file of the application file of the target application container;
According to the target application of the application identities instruction in the update file, the update file is uploaded to storage institute State the file system of target image file;
And the container scheduler will be sent to using more new command, so that the container scheduler is to the cluster internal The target application container of administration pushes update message, so that the target application container obtains the update file, updates mesh Mark the application file of application container.
Two, for container scheduler:
1, target application is updated by modification target image file realization.
Specifically, container scheduler receives the application modification instruction that the cloud control platform is sent, the application modification refers to Enable the modification being used to indicate to the target image file;
Instruction, which is modified, according to the application updates the target image file, and the target affixed one's name to the cluster internal Application container pushes modification information, so that the mesh that the target host machine is new according to the updated target mirror image document creation Mark application container.
2, the application file of target application container is updated by uploading the file packet updated realization.
Specifically, container scheduler receives the application more new command that the cloud control platform is sent, the application update refers to Enable the update for being used to indicate the application file to the target application container;
Update message is pushed according to the target application container that the application more new command is affixed one's name to the cluster internal, with So that the target application container is obtained the update file of the application file, update the application file of target application container, i.e., from File system pulls the update file, and updates into the application volume file system in target application container.
Above one, it in 2 two kind of situation, when updating target image file, does not need the target in target application container Using exiting, that is, it will not influence the normal operation of target application.In addition, escalation target application needs to update target application container, It only needs to update file and is uploaded to file system, each target application then will be pushed to using more new command by container scheduler Container, then, the self-developed infrastructure service in target application container obtain the update file uploaded using deployment personnel automatically, And dynamic updates the file specified into target application container, to avoid needing to travel frequently over Secure Shell in the prior art (full name in English: Secure Shell, English abbreviation: SSH) or remote desktop log in Linux password caused by application server Or the leakage of other passwords, security risk is reduced to a certain extent.
Optionally, in some inventive embodiments, application access person can also access application by network access module Application service in container, network access module listen to network request, after receiving access request, according in access request The network port, temporary file (cookie) or uniform resource locator (full name in English: Uniform Resource Locator, English abbreviation: URL) etc. paths match query in memory application container A, access request is then forwarded to the application container In A.If failing to inquire matched application container in memory, matched application container is searched from caching, then will be visited Ask that request is forwarded to the application container.
The embodiment of the present invention for ease of understanding can refer to the flow chart of Fig. 3, Fig. 4 and application shown in fig. 5 deployment.
Wherein, Fig. 3 is to be configured to dispose application container on host, delete application container, update and answer from application service With the flow chart of container file.
Fig. 4 be carry out application service configuration a specific implementation figure, as shown in Figure 4, select dispose Apply Names for Z-FMS list process management system, application version 1.0, mainframe cluster are Shenzhen Telecom 1, are for the resource of the application configuration Central processing unit (full name in English:, English abbreviation: CPU) * 2 cores and 512 Mbytes of memory (full name in English: MegaByte, English Referred to as: MB), container node number be 10, shared cloud disk space be 1 gigabytes (full name in English: Gigabyte, English abbreviation: GB), environmental variance configuration and port mapping configuration content can self-defining, be not construed as limiting herein, Fig. 4 is only that the present invention enumerates A specific embodiment, it is not as a limitation of the invention.
Fig. 5 is the inside interaction diagrams of entire application management system, and the application access point in Fig. 5 is network insertion mould Block.In Fig. 5, administrator can manage cluster, foundation image, resource management etc. by logging in cloud control platform, using deployment personnel It can be carried out by logging in cloud control platform using the related application service configuration disposed, then pass through the instruction for starting application Cloud control platform is sent to container scheduler, so that container scheduler creates application container in cluster.Application access person can be with The application in some application container is accessed by reserved application access point.
The application management method based on application container a kind of in the present invention is illustrated above, individually below in execution The control assembly 60, cloud control platform 70 and application management system 80 for stating application container management are described.
One, referring to Fig. 6, control assembly 60 is illustrated, the control assembly 60 is applied to application management system, described Application management system 80 includes cloud control platform 70, the control assembly 60 and the cluster including at least one host, control Component 60 includes:
Module 601 is obtained, for receiving the application creation instruction of the transmission of cloud control platform 70;
Processing module 602, for according to resource dispatching strategy and the application creation for obtaining module 601 and receiving Instruction selects the target host machine of target application container to be disposed in the cluster;
Sending module 603, for application creation instruction to be pushed to the target host machine in the cluster, so that institute It states target host machine and instruction acquisition target image file is created according to the application, the use of the target image file is the mesh It marks the corresponding target application of image file and creates target application container.
In the embodiment of the present invention, processing module 602 instructs selection target host according to the application creation received, and will Target host machine is pushed to using creation instruction, so that target host machine obtains target image file, uses the target mirror image Document creation target application container does not need to install support programs and running environment on every host in advance, container scheduling Device can affix one's name to target application container in cluster internal, reduce deployment operation to a certain extent and improve the efficiency of application deployment.
Optionally, the processing module 602 is also used to:
The container resource management instruction that the cloud control platform 70 is sent is received by the acquisition module 601;
And the container resource of the target application container, the container resource are managed according to container resource management instruction Including at least one of following item: the application container number of the target application, the number of the target application container are distributed to, or Target application container hardware resource required when running.
Optionally, the processing module 602 is also used to:
The operating status of the target application container is obtained by the acquisition module 601;
When determining that the operating status meets default management condition, according to the operation state with preset configuration rule pipe The container resource of the target application container is managed, the container resource includes at least one of following item: distributing to the target and answers Application container number, the number of the target application container or the target application container hardware money required when running Source.
Optionally, the operating status includes soft load and working condition, the processing module 602 specifically execute it is following it One:
When the working condition is failure state, is re-created using the target image file and answered comprising the target First application container;
When the soft load is more than first threshold, execute at least one of the following: increase is distributed to the target and is answered Target application in the target application container is migrated to the second application container, or increases institute by the number of application container Hardware resource needed for stating target application operation;
When the soft load is lower than second threshold, execute at least one of the following: reduction is distributed to the target and is answered The quantity of application container, the number for reducing the target application container, or reduce hard needed for the target application operation Part resource;
When the soft load is lower than third threshold value, by the target application container closure and delete.
Optionally, the processing module 602 is also used to:
When the target application container fails or run the first host failure of the target application container, institute is enabled State the back-up application container of target application container, or in the cluster belonging to the first host in any host on create The copy of the target application container.
Two, referring to Fig. 7, cloud control platform 70 is illustrated, the cloud control platform 70 is applied to application management system 80, the application management system 80 includes the cloud control platform 70, container scheduler and the collection including at least one host Group, cloud control platform 70 include:
Module 701 is obtained, for obtaining target image file;
Processing module 702, the corresponding target of the target image file for getting to the acquisition module 701 are answered With carrying out application service configuration;
Sending module 703, for sending application creation instruction to the container scheduler, so that the container scheduler root The target host machine of target application container to be disposed is selected in cluster according to application creation instruction, and will be using creation instruction Target host machine is pushed to, so that the target host machine, which creates instruction according to application, obtains target image file, using described Target image file is that the corresponding target application of the target image file creates target application container.
In the embodiment of the present invention, processing module 702 is that target application carries out application service configuration, and passes through sending module The application creation instruction for enabling target application and the corresponding target application container of creation is sent to container scheduler by 703, is held Device scheduler obtains target image file, and uses the target mirror image document creation target application container, is implemented without pre- Support programs and running environment are first installed on every host, container scheduler can affix one's name to target application in cluster internal automatically Container reduces deployment operation to a certain extent and improves the efficiency of application deployment, decreases traditional injunctive artificial deployment Faulty operation probability.
Optionally, the processing module 702 is specifically used for:
Configure application parameter, the environmental variance of target application and the port mapping of target application of target application.
Optionally, the processing module 702 is specifically used for:
The target image file is being used when the cluster internal affixes one's name to the target application container, according to the target Cluster identity in image file selects the target group type of the cluster identity instruction.
Optionally, the processing module 702 is also used to:
Container resource management instruction is sent to the container scheduler by the sending module 703, so that the appearance The container resource of device scheduler target application container according to the instruction Content Management that the container resource management instructs, it is described Container resource includes at least one of following item: distributing to the application container number of the target application, the target application container Number or the target application container required hardware resource when running.
Optionally, container resource management instruction is being sent to institute by the sending module 703 by the processing module 702 Before stating container scheduler, it is also used to:
The operating status of the target application container is obtained by the acquisition module 701;
When determining that the operating status meets default management condition, the target application is managed according to the operation state The container resource of container, the container resource include at least one of following item: distributing to the application container number of the target application Mesh, the number of the target application container or the target application container hardware resource required when running;
The container resource management instruction includes at least one of following item: re-creating first comprising the target application Application container, closing simultaneously delete the target application container, the application container number for distributing to the target application, the target The number of application container or the target application container hardware resource required when running.
Optionally, the operating status includes soft load and working condition, the processing module 702 specifically execute it is following it One:
When the soft load is more than first threshold, execute at least one of the following: increase is distributed to the target and is answered Target application in the target application container is migrated to the second application container, or increases institute by the number of application container Hardware resource needed for stating target application operation;
When the soft load is lower than second threshold, execute at least one of the following: reduction is distributed to the target and is answered The quantity of application container, the number for reducing the target application container, or reduce hard needed for the target application operation Part resource.
Three, with reference to Fig. 8, the application management system 80 includes:
Control assembly 60 as described in Figure 6;
Cloud control platform 70 as described in Figure 7;
Cluster including at least one host.
Wherein, control assembly 60 includes container scheduler 601.
The cloud control platform 70, for obtaining target image file, and to the mesh that the acquisition module is got It marks the corresponding target application of image file and carries out application service configuration and sending application creation instruction to the container scheduler 601;
The container scheduler 601, the application creation instruction for being sent according to the cloud control platform 70 are collecting The target host machine of target application container to be disposed is selected in group, and will push to target host machine using creation instruction, so that The target host machine creates instruction according to application and obtains target image file, the use of the target image file is the target The corresponding target application of image file creates target application container.
Wherein, in the use target image file when the cluster internal affixes one's name to the target application container, the cloud Control platform 70 is specifically used for:
The target group type of the cluster identity instruction is selected according to the cluster identity in the target image file.
Optionally, in some inventive embodiments, after having disposed target application container, cloud control platform 70 or container tune Degree device 601 can also the container resource to target application container be managed, such as delete container, increase container, increase add deduct The hardware resource of few container, and re-create container etc..Wherein, the container resource includes at least one of following item: distribution When being run to the application container number of the target application, the number of the target application container or the target application container Required hardware resource.It is illustrated individually below:
1, the indicated Content Management of the container resource management instruction that container scheduler 601 is sent according to cloud control platform 70 Container resource.
A, container resource is managed in cloud control platform 70 as needed using deployment personnel.
B, container resource is managed according to the operating status of the target application container of acquisition using deployment personnel.
Then, the container resource management instruction for being used to indicate the information of management container resource can be sent using deployment personnel To container scheduler 601, so that container scheduler manages the target application container according to container resource management instruction Container resource.
It should be noted that being configured only for the relevant parameter of container resource, most for cloud control platform The configuration of container resource is executed by container scheduler eventually.
The related description of container resource is managed according to operating status particularly with regard to cloud control platform 70, and is judged whether It is alerted, can be with reference to mode embodiment corresponding to above-mentioned Fig. 2, details are not described herein again.
2, container scheduler 601 manages container resource according to the operating status of the target application container of acquisition automatically.
Specifically: the operation shape that module obtains the target application container is guarded by the host operated on host State;
When determining that the operating status meets default management condition, according to the operation state with preset configuration rule pipe Manage the container resource of the target application container.
Wherein, the container resource management instruction includes at least one of following item: re-creating comprising the target application The first application container, closing and delete the target application container, the application container number for distributing to the target application, institute The number or the target application container for stating target application container hardware resource required when running.
Manage the related description of container resource, and judgement automatically according to operating status particularly with regard to container scheduler 601 Whether alerted, can be with reference to mode embodiment corresponding to above-mentioned Fig. 2, details are not described herein again.
Optionally, in some inventive embodiments, after having disposed target application container, container scheduler 601 can be with Target application container is modified or upgraded according to demand, specific as follows:
One, for cloud control platform 70:
1, target application is updated by modification target image file realization.
Specifically, cloud control platform obtains the target image file;
It modifies to the target image file;
The modified target image file is uploaded to the file system for storing the target image file, and will be answered It is sent to the container scheduler with modification instruction, so that the container scheduler 601 using modification instruction according to updating Target image file, and the target application container affixed one's name to the cluster internal pushes modification information, so that the target place The host target application container new according to the updated target mirror image document creation.
2, the application file of target application container is updated by uploading the file packet updated realization.
Specifically, cloud control platform obtains the update file of the application file of the target application container;
According to the target application of the application identities instruction in the update file, the update file is uploaded to storage institute State the file system of target image file;
And the container scheduler 601 will be sent to using more new command, so that the container scheduler 601 is to the collection The target application container disposed in group pushes update message, so that the target application container obtains the update file, Update the application file of target application container.
Two, for container scheduler 601:
1, target application is updated by modification target image file realization.
Specifically, container scheduler 601 receives the application modification instruction that the cloud control platform is sent, the application modification Instruction is used to indicate the modification to the target image file;
And instruction is modified according to the application and updates the target image file, and the mesh affixed one's name to the cluster internal It marks application container and pushes modification information, so that the target host machine is according to the updated target mirror image document creation new Target application container.
2, the application file of target application container is updated by uploading the file packet updated realization.
Specifically, container scheduler 601 receives the application more new command that the cloud control platform is sent, the application updates Instruction is used to indicate the update of the application file to the target application container;
And update message is pushed according to the target application container that the application more new command is affixed one's name to the cluster internal, So that the target application container obtains the update file of the application file, the application file of target application container is updated.
Above one, it in 2 two kind of situation, when updating target application container, does not need the target in target application container Using exiting, in addition, escalation target application needs to update target application container, it is only necessary to file will be updated and be uploaded to file system Then system will push to each target application container using more new command by container scheduler 601, then, in target application container Self-developed infrastructure service obtain automatically using deployment personnel upload update file, and dynamic update arrive target application container In the file specified, to avoid needing to travel frequently in the prior art SSH or remote desktop logs in application server and made At Linux password or other passwords leakage, reduce security risk to a certain extent.
It should be noted that acquisition all in various embodiments of the present invention (including Fig. 6 and each embodiment shown in Fig. 7) The corresponding entity device of module can be to meet s to receive device, and the corresponding entity device of all sending modules can be transmitter, own The corresponding entity device of processing module can be processor.Fig. 6 and each device shown in Fig. 7 can have such as Fig. 9 institute The structure shown, when one of device has structure as shown in Figure 9, processor, transmitter and receiver in Fig. 9 are realized Processing module, sending module and the acquisition the same or similar function of module that the Installation practice of the aforementioned correspondence device provides, The program generation for needing to call when memory storage processor in Fig. 9 executes the above-mentioned application management method based on application container Code.
The present invention also provides a kind of computer storage medium, which has program, which includes above-mentioned when executing Some or all of step in application management method based on application container.
The present invention also provides a kind of computer storage medium, which has program, which includes above-mentioned when executing Control assembly or cloud control platform or application management system execute the part in the above-mentioned application management method based on application container Or Overall Steps.
For example, including processor, receiver and transmitter in the structure of control assembly herein, the processor is matched It is set to and control assembly is supported to execute corresponding function in the above method.The receiver and the transmitter are for supporting control group Communication between part and cloud control platform sends information or instruction involved in the above method to cloud control platform.It is described Control assembly can also include memory, and it is necessary to save carrier server for coupling with processor for the memory Program code and data.Cloud control platform is similar, repeats no more.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
Technical solution provided by the present invention is described in detail above, specific case used herein is to this hair Bright principle and embodiment is expounded, method of the invention that the above embodiments are only used to help understand and its Core concept;At the same time, for those skilled in the art, according to the thought of the present invention, in specific embodiment and application There will be changes in range, in conclusion the contents of this specification are not to be construed as limiting the invention.

Claims (14)

1. a kind of application management method based on application container, which is characterized in that the method is applied in application management system Container scheduler, the application management system includes cloud control platform, the container scheduler and including an at least host The cluster of machine, which comprises
The container scheduler receives the application creation instruction that cloud control platform is sent;
Application creation instruction is pushed to the target host machine in the cluster by the container scheduler, so that the target Host creates instruction according to the application and obtains target image file, the use of the target image file is the target mirror image The corresponding target application of file creates target application container;
Wherein, the corresponding target application of the target image file is arranged to by cloud control platform progress application service It arrives, the application service configuration includes: the application parameter for configuring target application, the environmental variance and target application of target application Port mapping, wherein the application parameter of the target application includes Apply Names, application version, service name, host collection Group, resource distribution, container node number, cloud disk space and mode of loading;The environmental variance of target application includes admin name And administrator's password;The port mapping of target application includes the network port, the domain name of binding and public network access authority.
2. the method according to claim 1, wherein the method also includes:
The container scheduler receives the container resource management instruction that the cloud control platform is sent;
The container scheduler manages the container resource of the target application container according to container resource management instruction, described Container resource includes at least one of following item: distributing to the application container number of the target application, the target application container Number or the target application container required hardware resource when running.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
The container scheduler obtains the operating status of the target application container;
When determining that the operating status meets default management condition, the container scheduler is according to the operation state and default Configuration rule manages the container resource of the target application container, and the container resource includes at least one of following item: distributing to The application container number of the target application, the number of the target application container or the target application container run when institute The hardware resource needed.
4. according to the method described in claim 3, it is characterized in that, the operating status includes soft load and working condition, institute State the container resource for managing the target application container with preset configuration rule according to the operation state, including following one:
When the working condition is failure state, the container scheduler is re-created using the target image file includes First application container of the target application;
When the soft load is more than first threshold, the container scheduler executes at least one of the following: increase is distributed to Target application in the target application container is migrated to the second application and is held by the number of the application container of the target application Device, or increase the required hardware resource of the target application operation;
When the soft load is lower than second threshold, the container scheduler executes at least one of the following: reduction is distributed to The quantity of the application container of the target application, the number for reducing the target application container, or reduce the target application fortune The required hardware resource of row;
When the soft load is lower than third threshold value, by the target application container closure and delete.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
When the target application container fails or runs the first host failure of the target application container, the container tune Degree device enables the back-up application container of the target application container, or in the cluster belonging to the first host in any place The copy of the target application container is created on host.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
The container scheduler receives the application modification instruction that the cloud control platform is sent, and the application modification instruction is for referring to Show the modification to the target image file;
And instruction is modified according to the application and updates the target image file, and is answered to the target that the cluster internal is affixed one's name to Modification information is pushed with container, so that the target that the target host machine is new according to the updated target mirror image document creation Application container.
7. method according to claim 5 or 6, which is characterized in that the method also includes:
The container scheduler receives the application more new command that the cloud control platform is sent, and the application more new command is for referring to Show the update of the application file to the target application container;
The container scheduler is pushed according to the target application container that the application more new command is affixed one's name to the cluster internal Update message updates answering for target application container so that the target application container obtains the update file of the application file Use file.
8. a kind of application management system based on application container, which is characterized in that the application management system includes that cloud control is flat Platform, container scheduler and the cluster including at least one host;
The cloud control platform, for obtaining target image file, and to the corresponding mesh of the target image file got Mark application carries out application service configuration and sending application creation instruction to the container scheduler;Wherein, the application service Configuration includes: to configure application parameter, the environmental variance of target application and the port mapping of target application of target application, wherein The application parameter of the target application includes Apply Names, application version, service name, host cluster, resource distribution, container Number of nodes, cloud disk space and mode of loading;The environmental variance of target application includes admin name and administrator's password;Target The port mapping of application includes the network port, the domain name of binding and public network access authority;
The container scheduler, the application creation instruction for sending the cloud control platform push in the cluster Target host machine so that the target host machine according to the application create instruction obtain target image file, using described Target image file is that the corresponding target application of the target image file creates target application container.
9. application management system according to claim 8, which is characterized in that the cloud control platform is specifically used for:
The target image file is being used when the cluster internal affixes one's name to the target application container, according to the target mirror image Cluster identity in file selects the target group type of the cluster identity instruction.
10. application management system according to claim 9, which is characterized in that the cloud control platform is also used to:
Container resource management instruction is sent to the container scheduler, so that the container scheduler is according to the container resource The container resource of target application container described in the instruction Content Management of management instruction;
The container resource includes at least one of following item: distributing to application container number, the target of the target application The number of application container or the target application container hardware resource required when running.
11. application management system according to claim 10, which is characterized in that the cloud control platform is by container resource Management instruction is sent to before the container scheduler, is also used to:
Obtain the operating status of the target application container;
When determining that the operating status meets default management condition, the target application container is managed according to the operation state Container resource, the container resource includes at least one of following item: distributing to application container number, the institute of the target application The number or the target application container for stating target application container hardware resource required when running;
The container resource management instruction includes at least one of following item: re-creating the first application comprising the target application Container, closing simultaneously delete the target application container, the application container number for distributing to the target application, the target application The number of container or the target application container hardware resource required when running.
12. application management system according to claim 11, which is characterized in that the operating status includes soft load and work Make state, the cloud control platform specifically executes following one:
When the soft load is more than first threshold, execute at least one of the following: the target application is distributed in increase Target application in the target application container is migrated to the second application container, or increases the mesh by the number of application container Hardware resource needed for mark application operation;
When the soft load is lower than second threshold, execute at least one of the following: the target application is distributed in reduction The quantity of application container, the number for reducing the target application container, or reduce the required hardware money of the target application operation Source.
13. the container scheduler is also used to according to claim 9 to 12 any application management system:
Obtain the operating status of the target application container;
When determining that the operating status meets default management condition, institute is managed with preset configuration rule according to the operation state The container resource of target application container is stated, the container resource includes at least one of following item: distributing to the target application Application container number, the number of the target application container or the target application container hardware resource required when running.
14. application management system according to claim 13, the operating status includes soft load and working condition, described The container resource of the target application container, including following one are managed with preset configuration rule according to the operation state:
When the working condition is failure state, the container scheduler is re-created using the target image file includes First application container of the target application;
When the soft load is more than first threshold, the container scheduler executes at least one of the following: increase is distributed to Target application in the target application container is migrated to the second application and is held by the number of the application container of the target application Device, or increase the required hardware resource of the target application operation;
When the soft load is lower than second threshold, the container scheduler executes at least one of the following: reduction is distributed to The quantity of the application container of the target application, the number for reducing the target application container, or reduce the target application fortune The required hardware resource of row;
When the soft load is lower than third threshold value, by the target application container closure and delete.
CN201610318896.7A 2016-05-13 2016-05-13 A kind of application management method and system based on application container Active CN106020930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610318896.7A CN106020930B (en) 2016-05-13 2016-05-13 A kind of application management method and system based on application container

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610318896.7A CN106020930B (en) 2016-05-13 2016-05-13 A kind of application management method and system based on application container

Publications (2)

Publication Number Publication Date
CN106020930A CN106020930A (en) 2016-10-12
CN106020930B true CN106020930B (en) 2019-07-23

Family

ID=57100477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610318896.7A Active CN106020930B (en) 2016-05-13 2016-05-13 A kind of application management method and system based on application container

Country Status (1)

Country Link
CN (1) CN106020930B (en)

Families Citing this family (63)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506655B (en) * 2016-11-18 2019-04-26 国云科技股份有限公司 A kind of container group scheduling method suitable for cloud platform
CN108111469B (en) * 2016-11-24 2020-06-02 阿里巴巴集团控股有限公司 Method and device for establishing security channel in cluster
CN108205481B (en) * 2016-12-19 2022-03-08 华为技术有限公司 Application container instance creation method and device
CN106776029B (en) * 2016-12-21 2020-06-09 上海爱数信息技术股份有限公司 Method and system for optimizing utilization rate of server memory resources
CN106874028A (en) * 2016-12-26 2017-06-20 新华三技术有限公司 Using dispositions method and device
CN108268304B (en) * 2017-01-03 2021-06-08 中国科学院声学研究所 Web app migration method based on container
CN106843945B (en) * 2017-01-04 2020-12-01 厦门亿力吉奥信息科技有限公司 PaaS-based GIS application deployment method and system
CN106886455B (en) * 2017-02-23 2019-02-22 北京图森未来科技有限公司 A kind of method and system for realizing user isolation
CN107256178B (en) * 2017-04-27 2019-12-17 北京数人科技有限公司 Container management platform
CN107368369B (en) * 2017-06-27 2020-07-28 中国联合网络通信集团有限公司 Distributed container management method and system
CN107423112B (en) * 2017-06-28 2020-06-26 浪潮云信息技术有限公司 Docker container state real-time synchronization method
CN107294785B (en) * 2017-07-11 2020-07-28 上海帝联信息科技股份有限公司 Automatic deployment method and device for CDN node service and computer readable storage medium
CN107508795B (en) * 2017-07-26 2020-03-13 中国联合网络通信集团有限公司 Cross-container cluster access processing device and method
CN107454188A (en) * 2017-08-28 2017-12-08 郑州云海信息技术有限公司 A kind of container creation method and system
CN107656748B (en) * 2017-09-08 2021-03-30 北京京东尚科信息技术有限公司 Application publishing method and device
CN109495523A (en) * 2017-09-11 2019-03-19 北京金山云网络技术有限公司 Management instruction delivery method, device, electronic equipment and storage medium
CN109495398A (en) * 2017-09-11 2019-03-19 中国移动通信集团浙江有限公司 A kind of resource regulating method and equipment of container cloud
CN107766707B (en) * 2017-10-16 2020-02-04 苏州浪潮智能科技有限公司 Method and apparatus for responding to user request in application container engine
CN108259555B (en) * 2017-11-30 2019-11-12 新华三大数据技术有限公司 The configuration method and device of parameter
JP7069672B2 (en) * 2017-12-05 2022-05-18 コニカミノルタ株式会社 Application update method and program
CN109871227B (en) * 2017-12-05 2022-10-18 卓望数码技术(深圳)有限公司 Software upgrading method and device based on second-order differential increment
CN108156225B (en) * 2017-12-15 2021-02-05 南瑞集团有限公司 Micro-application monitoring system and method based on container cloud platform
CN108052385A (en) * 2017-12-29 2018-05-18 亿企赢网络科技有限公司 A kind of Container Management method, system, equipment and computer storage media
CN108182095A (en) * 2018-01-16 2018-06-19 湖北省楚天云有限公司 A kind of application dispositions method, device and equipment
CN108429787B (en) * 2018-01-30 2021-06-08 中经社控股有限公司 Container deployment method and device, computer storage medium and terminal
CN108471420B (en) * 2018-03-29 2021-02-09 上交所技术有限责任公司 Container security defense method and device based on network pattern recognition and matching
CN110362355B (en) * 2018-04-02 2022-06-28 青岛海信移动通信技术股份有限公司 Application interface display method and device
CN110389811B (en) * 2018-04-18 2022-04-05 杭州海康威视系统技术有限公司 Testing method and device based on distributed system
CN108897527B (en) * 2018-05-21 2022-04-15 东莞理工学院 Docker mirror image automatic dynamic construction method for remote sensing image processing in cloud computing
CN108737215A (en) * 2018-05-29 2018-11-02 郑州云海信息技术有限公司 A kind of method and apparatus of cloud data center Kubernetes clusters container health examination
CN108881412B (en) * 2018-05-31 2020-09-04 郑州云海信息技术有限公司 Unified management method, system, equipment and storage medium for distributed storage cluster
CN110618821A (en) * 2018-06-19 2019-12-27 普天信息技术有限公司 Container cluster system based on Docker and rapid building method
CN108848166A (en) * 2018-06-20 2018-11-20 中国联合网络通信集团有限公司 A kind of load equilibration scheduling method and device of container
CN109120433B (en) * 2018-07-23 2021-11-02 北京百度网讯科技有限公司 Method and apparatus for containerized deployment of hosts
CN109086119A (en) * 2018-07-30 2018-12-25 南京卓盛云信息科技有限公司 A kind of method of quick detection container operating status
CN109542721B (en) * 2018-11-05 2022-08-12 北京炎黄盈动科技发展有限责任公司 Application state control method and device in application container and storage medium
CN109614226B (en) * 2018-11-20 2020-03-10 武汉烽火信息集成技术有限公司 Kubernetes-based stateful application storage management method
CN109783533B (en) * 2018-12-13 2023-06-02 平安科技(深圳)有限公司 Data acquisition method, device, computer equipment and storage medium
CN109918099A (en) * 2019-01-08 2019-06-21 平安科技(深圳)有限公司 Service routine dissemination method, device, computer equipment and storage medium
CN109981396B (en) * 2019-01-22 2022-07-08 平安普惠企业管理有限公司 Monitoring method and device for cluster of docker service containers, medium and electronic equipment
CN109800060B (en) * 2019-01-31 2021-07-27 携程旅游信息技术(上海)有限公司 Cloud platform system, management method, device and storage medium
CN109992354B (en) * 2019-04-09 2021-02-19 腾讯科技(深圳)有限公司 Container processing method, device, main body server, system and storage medium
CN110083588A (en) * 2019-04-17 2019-08-02 百度在线网络技术(北京)有限公司 A kind of dissemination method, dispositions method and the relevant device of Redis management system
CN110086674A (en) * 2019-05-06 2019-08-02 山东浪潮云信息技术有限公司 A kind of application high availability implementation method and system based on container
US11009840B2 (en) * 2019-06-19 2021-05-18 Honeywell International, Inc. Control execution environment and container based architecture
CN112416506A (en) * 2019-08-21 2021-02-26 中移(苏州)软件技术有限公司 Container management method, device and computer storage medium
CN112532674B (en) * 2019-09-19 2023-07-28 贵州白山云科技股份有限公司 Creation method, device and medium of network edge computing system
CN112532758B (en) * 2019-09-19 2023-04-18 贵州白山云科技股份有限公司 Method, device and medium for establishing network edge computing system
CN112532675B (en) * 2019-09-19 2023-04-18 贵州白山云科技股份有限公司 Method, device and medium for establishing network edge computing system
CN112527493A (en) * 2019-09-19 2021-03-19 贵州白山云科技股份有限公司 Method, device, system and medium for creating edge computing service
CN111130925B (en) * 2019-11-29 2022-08-26 广州文远知行科技有限公司 Resource monitoring method and device, computer equipment and storage medium
CN111277460B (en) * 2020-01-17 2022-02-25 江苏满运软件科技有限公司 ZooKeeper containerization control method and device, storage medium and electronic equipment
CN111290767B (en) * 2020-01-20 2021-06-08 中国科学院计算技术研究所 Container group updating method and system with service quick recovery function
CN111464648B (en) * 2020-04-02 2021-11-05 聚好看科技股份有限公司 Distributed local DNS system and domain name query method
CN111857757B (en) * 2020-07-23 2023-02-10 上海方联技术服务有限公司 Container cloud-based efficient deployment method for aerial image processing service
CN112099920B (en) * 2020-09-21 2023-10-20 北京明朝万达科技股份有限公司 Method and device for creating secure desktop, electronic equipment and readable storage medium
US11748153B2 (en) 2020-11-25 2023-09-05 International Business Machines Corporation Anticipated containerized infrastructure used in performing cloud migration
CN112910962A (en) * 2021-01-15 2021-06-04 杭州安恒信息技术股份有限公司 Product nano-tube method, system, device and storage medium of cloud resource pool
CN112667365B (en) * 2021-01-22 2022-11-15 山东浪潮科学研究院有限公司 System, method and equipment for issuing desktop application based on cloud edge cooperation
CN112860645A (en) * 2021-02-09 2021-05-28 恒安嘉新(北京)科技股份公司 Processing method and device for offline compressed file, computer equipment and medium
CN115268909A (en) * 2022-07-23 2022-11-01 杭州沧浪健康管理有限公司 Method, system and terminal for establishing and running construction task at web front end
CN115828231A (en) * 2022-10-28 2023-03-21 广州汽车集团股份有限公司 Application program running method and device, vehicle and storage medium
CN115827045B (en) * 2022-10-31 2023-07-14 北京凯思昊鹏软件工程技术有限公司 Interface configuration system and method for container in embedded system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951360A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 Configuration management mode and device based on Docker
CN105099706A (en) * 2015-08-25 2015-11-25 华为技术有限公司 Data communication method, user equipment and server
CN105245373A (en) * 2015-10-12 2016-01-13 天津市普迅电力信息技术有限公司 Construction and operation method of container cloud platform system
CN105490860A (en) * 2015-12-24 2016-04-13 北京奇虎科技有限公司 Method, device and system for deploying application program operation environment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8806479B2 (en) * 2007-06-05 2014-08-12 International Business Machines Corporation Creating an application virtual machine image by isolating installation artifacts in shadow area

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951360A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 Configuration management mode and device based on Docker
CN105099706A (en) * 2015-08-25 2015-11-25 华为技术有限公司 Data communication method, user equipment and server
CN105245373A (en) * 2015-10-12 2016-01-13 天津市普迅电力信息技术有限公司 Construction and operation method of container cloud platform system
CN105490860A (en) * 2015-12-24 2016-04-13 北京奇虎科技有限公司 Method, device and system for deploying application program operation environment

Also Published As

Publication number Publication date
CN106020930A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN106020930B (en) A kind of application management method and system based on application container
CN104317610B (en) Method and device for automatic installation and deployment of hadoop platform
CN106603592B (en) A kind of method and moving apparatus for the application cluster migration based on service model
US10303450B2 (en) Systems and methods for a policy-driven orchestration of deployment of distributed applications
CN105933137B (en) A kind of method for managing resource, apparatus and system
CN106790483A (en) Hadoop group systems and fast construction method based on container technique
CN109582441A (en) For providing system, the method and apparatus of container service
CN106790660A (en) A kind of dispositions method and device for realizing distributed memory system
CN112585919A (en) Method for managing application configuration state by using cloud-based application management technology
CN109542611A (en) Database, that is, service system, database dispatching method, equipment and storage medium
CN105897946A (en) Obtaining method and system of access address
CN107534571A (en) Manage virtual network function
US11146623B2 (en) Intelligent distribution of virtual network function images
CN109271170A (en) A kind of distributed system dispositions method, system, electronic equipment and storage medium
CN102739771A (en) Cloud application integrated management platform and method supporting service fusion
CN108021608A (en) A kind of lightweight website dispositions method based on Docker
CN107783816A (en) The method and device that creation method and device, the big data cluster of virtual machine create
CN105446724B (en) The management method and device of software parameter
CN107294771A (en) A kind of efficient deployment system and application method suitable for big data cluster
CN112417051A (en) Container arrangement engine resource management method and device, readable medium and electronic equipment
CN108337315B (en) Dispositions method, device, computer equipment and the storage medium of monitoring system
CN105610946A (en) Docker technology based cloud jump server system
CN114666333A (en) Control method for cloud computing resource scheduling problem based on multi-tenant theory
CN107171888A (en) A kind of clustering performance monitoring method based on cAdvisor
CN110233904B (en) Equipment updating method, device, system, storage medium and computer equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant