CN106603592A - Application cluster migrating method and migrating device based on service model - Google Patents

Application cluster migrating method and migrating device based on service model Download PDF

Info

Publication number
CN106603592A
CN106603592A CN201510664774.9A CN201510664774A CN106603592A CN 106603592 A CN106603592 A CN 106603592A CN 201510664774 A CN201510664774 A CN 201510664774A CN 106603592 A CN106603592 A CN 106603592A
Authority
CN
China
Prior art keywords
container
dependence
resource
node
application cluster
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.)
Granted
Application number
CN201510664774.9A
Other languages
Chinese (zh)
Other versions
CN106603592B (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201510664774.9A priority Critical patent/CN106603592B/en
Publication of CN106603592A publication Critical patent/CN106603592A/en
Application granted granted Critical
Publication of CN106603592B publication Critical patent/CN106603592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an application cluster migrating method and migrating device based on a service model. According to the embodiment of the invention, the automated migration of all nodes and dependence of an application cluster are realized through the service model. Through analyzing a software mirror image on which each host machine depends, the host machine of a target data center is equipped with software mirror images on which the host machine depends in batch, the application cluster migrating speed is improved, and the downtime of cluster migration is reduced. The environmental parameter of a target application cluster is bound to a node configuration document template, the configuration file of the target cluster is generated, and thus the configuration file migrating efficiency of the application cluster is improved. The mirror image warehouse of the target data center is used as the mirror image agent of the target application cluster, a needed mirror image is obtained and cached from the mirror image warehouse of a source data center according to needs, and thus the mirror image installation of the application cluster is accelerated.

Description

Method and moving apparatus that a kind of application cluster for based on service model is migrated
Technical field
The present invention relates to field of cloud calculation, the more particularly to application cluster based on service model are migrated Method and moving apparatus.
Background technology
Cloud application cluster to be referred to and provide the Internet or enterprise application service based on cloud computing resource pool One group of server, generally comprises multiple server container nodes, and each container node is provided by hardware Source and software stack are constituted.Hardware resource includes virtual computing, storage and Internet resources, generally There is provided by the cloud resource pool of cloud data center.If the software stack of container node is by complementary Dried layer software sharing, including operating system, platform software and application software etc..According to container section Whether point preserves run time behaviour, the container node of application cluster can be divided into into two classes:One class is Stateless container node, such as load equalizer, Web server, this kind of container node is not Preserve data during operation;Another kind of is data capsule node, such as caching server, data base Server etc., need to preserve runtime data.When application cluster is migrated, stateless container node The only migration of involved resource, software and configuration, and data capsule node is except stateless container Outside the involved content of node migration, the migration for carrying out data is also needed.
Cloud application cluster generally need when commercialization of reaching the standard grade, failure disaster tolerance and machine room are moved into Across the data center migration of row, by the software of application cluster, configuration, data and topological structure from ought Front data center's bulk migration is to new data center.
Due to cloud application cluster complexity and data center between environmental difference, cloud application collection Across the data center bulk migration of group is extremely difficult, and existing application cluster moving method is all present much Problem:
1st, application cluster is redeployed:Redeploy application cluster, be related to cluster resource application, The links such as the migration of clustered software installation, cluster network configuration, company-data and configuration file, Many of which link all needs manual intervention, time length, error-prone;
2nd, wide area network virtual machine (vm) migration:Migrated using V2V, the software of single empty machine can only be realized With data Autonomic Migration Framework, it is impossible to realize configuration file Autonomic Migration Framework, it is impossible to realize whole application collection Group network structure migration, and due to virtual machine image it is larger, across data center copy time It is longer.
In recent years the container technique risen provides the system virtualization neutralizing of the shared kernel of lightweight Certainly scheme, such as Docker, had both possessed the resource isolation characteristic of virtual machine, there is virtual machine institute again Lightweight, the high performance characteristics not possessed.Compared with virtual machine, in container sharing operation system Core, does not have Guest OS, does not have hypervisor layers, and more light weight, performance are higher, while holding Device engine is supported to be layered mirror-image property mostly, can be by the whole software stack of application container node point For multiple mirror image levels, by taking web server as an example, software stack can be divided into systems soft ware OS, put down 3 mirror image levels such as platform software tomcat, application software such as webapp.war.The mirror image on upper strata The mirror image for depending on the mirror image of lower floor, lower floor is available for the mirror image on upper strata to share, so as to greatly reduce The size of image file so that the storage of mirror image, transmission and the speed installed are obviously improved. But container technique only simplifies the software installation of single container node, container is not solved The migration problem of node profile and runtime data, does not solve the topology of whole cluster yet The migration problem of structure and network configuration.
The content of the invention
An embodiment of the present invention technical problem to be solved is:Application cluster, container node are matched somebody with somebody Put the migration problem of file, runtime data, topological structure and network configuration.
One side according to embodiments of the present invention, there is provided it is a kind of based on service model application collection The method of group's migration includes:The service model file of application cluster is obtained, and extracts service model The resource deployment attribute and container node state of the application cluster in file, wherein, resource deployment Attribute includes:Resource Dependence relation, software dependence and topological connection relation;According to resource Deployment attribute and container node state complete the migration of application cluster.
In one embodiment, the service model file of application cluster is obtained, and extracts service mould The resource deployment attribute and container node state of the application cluster in type file, specifically includes:From The service model file of application cluster is obtained in the service model storehouse of source data center;Mould will be serviced Type file imports the service model storehouse at target data center;Extract the resource in service model file Dependence, software dependence, topological connection relation and container node state.
In one embodiment, according to application cluster Resource Dependence relation, software dependence, Topological dependence and container node information complete the migration of application cluster, specifically include: The state of Resource Dependence relation and software dependence is set to unbound, Topology connection is closed The state of system is set to not set up, and the state of container node is set to not create;According to container Node state and Resource Dependence relation are intended application cluster Resources allocation;Relied on according to software and closed It is for intended application cluster migration software;By the Data Migration of source application cluster to intended application collection Group;Topology connection configuration is carried out for intended application cluster according to Topological dependence.
In one embodiment, it is intended application cluster Resources allocation according to Resource Dependence relation, Specifically include:Created in intended application cluster container according to Resource Dependence relation and container node state Build virtual machine;It is the virtual machine creating void in intended application cluster container according to Resource Dependence relation Intend book;It is that intended application cluster creates virtual network according to container node state;According to money Source dependence is that intended application cluster container binds container resource.
In one embodiment, according to Resource Dependence relation and container node information in intended application Cluster container creates virtual machine, specifically includes:Virtual container section in container node state The dependence and appearance of container node and virtual container node in dotted state, Resource Dependence relation The resource quota demand of device node calculates the resource requirement of virtual container node;According to virtual container The resource requirement of node is that virtual container node creates virtual machine, binds virtual machine image, and will Container node state in container node is set to create, and wherein virtual machine image includes:System System kernel and container engine.
In one embodiment, it is that intended application cluster creates virtual number according to container node state According to volume, specifically include:Virtual data volume in container node information is intended application cluster Virtual data volume is created, and the virtual machine state that container node is relied on is set to create.
In one embodiment, it is that intended application cluster creates virtual net according to Resource Dependence relation Network includes:It is intended application cluster according to the virtual network container node state that container node is relied on Virtual network is created, and the virtual network state that container node is relied on is set to create.
In one embodiment, it is that the binding of intended application cluster container is held according to Resource Dependence relation Device resource, specifically includes:Virtual machine dependence in Resource Dependence relation, is container Node binding virtual data is rolled up, and the book dependence in Resource Dependence relation, is appearance Device node binding virtual data is rolled up;Network dependence in Resource Dependence relation, is appearance Device node binding virtual network;By virtual machine dependence, book dependence and network according to The state of bad relation is set to bind.
In one embodiment, it is intended application cluster migration software according to software dependence, Specifically include:Reverse dependence, the appearance of virtual machine and container in Resource Dependence relation Device obtains the container image listing of virtual machine container node with the dependence of container mirror image;Call The container engine of virtual machine, the container do not deposited is obtained from the container mirror image warehouse at target data center Mirror image, if there is no the container mirror image specified in the container mirror image warehouse at target data center, Container mirror image warehouse obtains non-existent container mirror from the container mirror image warehouse of source data center Picture;Image dependency relation of the container engine in Resource Dependence relation installs the text of container mirror image Part;For the top layer mirror image that container binds container image file, and by the mirror in Resource Dependence relation As dependence is set to bind.
In one embodiment, when the state of all of image dependency relation is binds, The runtime data migration of log-on data container node, by the Data Migration of source application cluster to mesh Mark application cluster.
In one embodiment, the Data Migration of source application cluster to intended application cluster is stopped Source application cluster, specifically includes:Stopping source application cluster, obtains data in the application cluster of source and holds The data during operation of device node;According in the application cluster of source during the operation of data capsule node Data genaration snapshot image;Snapshot image is uploaded to into the container mirror image warehouse of source data center; The container engine at target data center obtains mirror snapshot from source mirror image warehouse, and by mirror snapshot The container node that importing is specified.
In one embodiment, topology is carried out even for intended application cluster according to topological connection relation Configuration is connect, is specifically included:Obtain the link information in topological connection relation;Open up for container configuration Flutter connection attribute parameter;Start Topology connection property parameters, and by the shape of topological connection relation State is set to set up.
In one embodiment, the method for the present embodiment also includes:When Resource Dependence relation, soft When part dependence and Topology connection dependence are bound, the state of container node is set to It is ready;After all container node states are both configured to ready, confirmation completes application cluster Migration.
According to an aspect of the present invention, there is provided a kind of application cluster based on service model move The moving apparatus of shifting, it is characterised in that include:Data obtaining module, for obtaining application collection The service model file of group, and extract the resource deployment category of application cluster in service model file Property and container node state, wherein, resource deployment attribute includes:Resource Dependence relation, software Dependence and topological connection relation;Cluster transferring module, for according to resource deployment attribute and Container node state completes the migration of application cluster.
In one embodiment, data obtaining module includes:Derive subelement, import subelement, And information extraction unit, subelement is derived, for obtaining from the service model storehouse of source data center Take the service model file of application cluster;Subelement is imported, service model file is imported into target The service model storehouse of data center;Information extraction unit, for extracting service model file in Resource Dependence relation, software dependence, topological connection relation and container node state.
In one embodiment, cluster transferring module, including:State set unit, resource point With unit, software migration unit, data migration unit and topological arrangement unit, wherein, state Setting unit, it is unbound for the state of Resource Dependence relation and software dependence to be set to, The state of topological connection relation is set to not set up, the state of container node is set to not create Build;Resource allocation unit, for being answered for target according to container node state and Resource Dependence relation Use cluster Resources allocation;Software migration unit, for according to software dependence be intended application Cluster migration software;Data migration unit, for by the Data Migration of source application cluster to target Application cluster;Topological arrangement unit, for being entered for intended application cluster according to Topological dependence Row Topology connection is configured.
In one embodiment, resource allocation unit includes:Asset creation subelement and resource are tied up Order unit, wherein, asset creation subelement, for according to Resource Dependence relation and container node State creates virtual machine in intended application cluster container;It is mesh to be additionally operable to according to Resource Dependence relation Virtual machine creating virtual data volume in mark application cluster container;It is additionally operable to according to container node shape State is that intended application cluster creates virtual network;Resource binding unit, for according to Resource Dependence Relation is that intended application cluster container binds container resource.
In one embodiment, asset creation subelement is specifically for the resource according to container node Quota demand and container node calculate each empty machine node with the dependence of empty machine node Resource requirement;It is void that asset creation subelement is additionally operable to according to the resource requirement of virtual container node Plan container node establishment virtual machine, binding virtual machine image, and the container node is relied on The state of virtual machine is set to create, wherein the virtual machine image includes:System kernel and Container engine.
In one embodiment, asset creation subelement, specifically for according to container node information In virtual data volume create virtual data volume for intended application cluster, and by the container node The state of the virtual machine of dependence is set to create.
In one embodiment, asset creation subelement, specifically for being relied on according to container node Virtual network container node state be that intended application cluster creates virtual network, and by container section The virtual network state that point is relied on is set to create.
In one embodiment, resource binding unit, specifically for according in Resource Dependence relation Virtual machine dependence;It is additionally operable to as container node binding virtual data volume;It is additionally operable to basis Book dependence in Resource Dependence relation, is container node binding virtual data volume;Also It is container node binding virtual network for the network dependence in Resource Dependence relation; It is additionally operable to set the state of virtual machine dependence, book dependence and network dependence It is set to and binds.
In one embodiment, software migration unit, specifically for according in Resource Dependence relation The dependence of reverse dependence, container and container mirror image of virtual machine and container obtain empty The container image listing of plan machine container node;It is additionally operable to call the container engine of virtual machine, from mesh The container mirror image warehouse of mark data center obtains non-existent container mirror image on main frame, if number of targets According to there is no the container mirror image specified in the container mirror image warehouse at center, then container mirror image warehouse from Non-existent container mirror image is obtained in the container mirror image warehouse of source data center;It is additionally operable to according to money Image dependency relation in the dependence of source installs the file of container mirror image;It is additionally operable to be tied up for container The top layer mirror image of constant volume device image file, and the image dependency relation in Resource Dependence relation is set It is set to and binds.
In one embodiment, data migration unit is additionally operable to when all of image dependency relation State is when binding, the runtime data migration of log-on data container node, and source is applied The Data Migration of cluster is to intended application cluster.
In one embodiment, data migration unit is obtained specifically for stopping source application cluster Data in the application cluster of source during the operation of data capsule node;It is additionally operable to according to source application cluster Data genaration snapshot image during the operation of middle data capsule node;Snapshot image is uploaded to into source The container mirror image warehouse of data center;The container engine at target data center is obtained from source mirror image warehouse Mirror snapshot is taken, and mirror snapshot is imported the container node specified.
In one embodiment, topological arrangement unit, specifically in acquisition topological connection relation Link information;It is additionally operable to configure Topology connection property parameters for container;It is additionally operable to start topology Connection attribute parameter, and the state of topological connection relation is set to set up.
In one embodiment, the device of the present embodiment also includes cluster migration units, for working as When Resource Dependence relation, software dependence and Topology connection dependence are bound, by container The state of node is set to ready;It is additionally operable to when all container node states have been both configured to just After thread, confirmation completes the migration of application cluster.
The present embodiment realizes all nodes and dependence of application cluster by service model Automatization migrates;By analyzing the Software Mirroring that each main frame is relied on, at target data center Main frame on relied on Software Mirroring is installed in batches, cluster migration velocity is improved, so as to reduce Downtime of cluster migration;Environment for node profile template bound targets cluster is joined Number, generates the configuration file of target cluster, so as to lift the Configuration File Migration efficiency of cluster; The mirror image warehouse at target data center as intended application cluster mirroring agent, on demand from source number According to required mirror image is obtained and cached in the mirror image warehouse at center, the mirror image for accelerating cluster is installed.
By referring to the drawings to the detailed description of exemplary embodiment of the invention, the present invention Further feature and its advantage will be made apparent from.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will The accompanying drawing to be used needed for embodiment or description of the prior art is briefly described, it is clear that Ground, drawings in the following description are only some embodiments of the present invention, for the common skill in this area For art personnel, without having to pay creative labor, can be being obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 illustrates typical cloud application aggregated structure figure.
Fig. 2 illustrates container application service model figure.
Fig. 3 illustrates application cluster service model exemplary plot.
Fig. 4 illustrates of the method that the application cluster based on service model of the present invention is migrated The schematic flow sheet of embodiment.
Fig. 5 illustrate the present invention based on service model application cluster migrate method to clothes The schematic flow sheet of the one embodiment for the operation that business model is migrated.
Fig. 6 is illustrated in the method that the application cluster based on service model of the present invention is migrated The schematic flow sheet of one embodiment of the operation of target cluster Resources allocation.
Fig. 7 illustrates the mesh in the method that the application cluster based on service model of the present invention is migrated Mark cluster creates the schematic flow sheet of one embodiment of the operation of virtual machine.
Fig. 8 is illustrated in the method that the application cluster based on service model of the present invention is migrated Application cluster creates the schematic flow sheet of one embodiment of the operation of virtual network.
Fig. 9 is illustrated in the method that the application cluster based on service model of the present invention is migrated The schematic flow sheet of one embodiment of the operation of application cluster binding container resource.
Figure 10 illustrates answering in the method that the application cluster based on service model of the present invention is migrated The schematic flow sheet of the one embodiment for the operation migrated with clustered software.
Figure 11 illustrates right in the method that the application cluster based on service model of the present invention is migrated There is the schematic flow sheet of one embodiment of the operation of the runtime data migration of state node.
Figure 12 illustrates opening up in the method that the application cluster based on service model of the present invention is migrated Flutter the schematic flow sheet of one embodiment of the operation of connection configuration.
Figure 13 illustrates the mesh in the method that the application cluster based on service model of the present invention is migrated The structural scheme of mechanism of the one embodiment for the operation that mark cluster starts.
Figure 14 illustrates the moving apparatus that the application cluster based on service model of the present invention is migrated Structural representation.
Figure 15 illustrates the moving apparatus that the application cluster based on service model of the present invention is migrated The structural representation of further embodiment.
Figure 16 illustrates the moving apparatus that the application cluster based on service model of the present invention is migrated The structural representation of further embodiment.
Figure 17 illustrates the moving apparatus that the application cluster based on service model of the present invention is migrated The structural representation of further embodiment.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, to the technical scheme in the embodiment of the present invention It is clearly and completely described, it is clear that described embodiment is only that a present invention part is real Apply example, rather than the embodiment of whole.Below to the description reality of at least one exemplary embodiment It is merely illustrative on border, never as to the present invention and its application or any restriction for using. Based on the embodiment in the present invention, those of ordinary skill in the art are not before creative work is made The every other embodiment for being obtained is put, the scope of protection of the invention is belonged to.
Unless specifically stated otherwise, the part for otherwise illustrating in these embodiments and the phase of step Arrangement, numerical expression and numerical value are not limited the scope of the invention.
Simultaneously, it should be appreciated that for the ease of description, the chi of the various pieces shown in accompanying drawing Very little is not to draw according to actual proportionate relationship.
For technology, method and apparatus may not be made in detail known to person of ordinary skill in the relevant It is thin to discuss, but in the appropriate case, technology, method and apparatus should be considered to authorize description A part.
In all examples shown here and discussion, any occurrence should be construed as merely Exemplary, not as restriction.Therefore, the other examples of exemplary embodiment can have There are different values.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, Once quilt in a certain Xiang Yi accompanying drawing, then need not enter traveling one in subsequent accompanying drawing to it Step is discussed.
Fig. 1 gives the Organization Chart of a typical cloud application cluster, with reference to Fig. 1, it is assumed that one Individual container application cluster is made up of 4 container nodes, is respectively a load balancing node Nginx, two Web server node WebApp+tomcat and a database node Mysql, application cluster is deployed on 3 virtual machines, wherein nginx nodes, two Web Server node and mysql are deployed in respectively on a virtual machine, the empty machine of whole cluster and Container shares same IP subnets.Wherein mysql nodes are that have state node, carry void Intend volume, possess runtime data, remaining node is stateless node.
Fig. 2 gives an abstract container application service model, description container application service mould The element of type.Container application service model is by container list, software matrix, the Resources list And annexation and dependence are constituted, the node of the equal attribute model of container, resource and software, Node can possess one or more attributes, zero or more operation and zero or more relation. Node is divided into two kinds with the relation of node:Dependence and annexation, dependence is defined The installation order of node, annexation defines the communication direction of node.Relation can also possess Attribute and operation, simple relation can be defined in source node, and complicated relation can individually determine Justice.Additionally, service model also possesses the public attribute and public operation of some service model levels, example Such as mirror image repository URL, cloud resource management URL.Service model storehouse includes a Web clothes Business device, after service model being serviced model library is loaded, the node of service model and the attribute of relation, State can pass through REST by the operation of REST API Access and modification, node and relation API Calls.The state of wherein container node includes:Do not create, it is ready and operation in, do not create Build and refer to that container is not present, it is ready to refer to that container is created, and Resource Dependence, the software of container Rely on and join dependency is bound, be that a container process has been turned in operation, service can be externally provided.
Fig. 3 gives the service model exemplary plot of the container application cluster by taking Fig. 1 as an example, the figure Describe the dependence and annexation of 4 container nodes.Wherein Nginx container As according to Bad virtual machine A, network A and container mirror image Nginx, WebApp container As and WebApp Container B is dependent on virtual machine B, network A and container mirror image WebApp, Mysql containers A relies on virtual machine C, book A, network A, container mirror image Mysql and container snapshot MysqlA.Virtual machine A, virtual machine B virtual machine C all rely on virtual machine image Centos_DockerEngine, the virtual machine image encapsulates operating system CentOS basis Version and container engine DockerEngine.Container mirror image WebApp relies on container mirror image Tomcat, container mirror image Nginx, container mirror image Tomcat and container mirror image Mysql according to Bad container mirror image CentosExt, CentosExt mirror images encapsulate upper strata container mirror image and are relied on System library.
Service model using the definition of the description languages such as YAML, xml or json, and be able to can add In being downloaded to service model engine, the class and object (such as Java) of language-specific are mapped to, In service model engine, can directly by the attribute of the object reference access service model of language level, Operation and relation, while service model engine externally provides REST api interfaces, it is allowed to outward Portion's module is by the REST API remote access service models based on HTTP.
By taking container NginxA as an example, the nodal analysis method defined using YAML is as follows:
Container:
ID:Nginx container As
Type:Nginx containers
State:Do not create
Runtime data:Nothing
Network attribute:{ network schemer:Main frame, host ip }
Quota attribute:{ CPU core calculation:2, memory size:2G, disk size:1G}
Operating list:
- create container
- start container
- stop container
Resource Dependence list:
Fictitious host computer:{ID:Empty machine A, state:It is unbound ,-operation:The empty machine of binding }
Virtual network:{ID:Network A, state:It is unbound ,-operation:Binding network }
Software relies on list:
Container mirror image:{ID:Container mirror image Nginx, state:It is unbound ,-operation:Binding mirror image }
Connection relation list:
Back-end proxy connects:{ID:Back-end proxy connection 1, state:Do not set up ,-operation:Configuration rear end generation Reason, connection attribute:{ front-end port:80, rear end IP:<WebApp container As. network attribute. host ip>, rear end end Mouthful:<WebApp container As. network attribute. host port>}}
Back-end proxy connects:{ID:Back-end proxy connection 2, state:Do not set up ,-operation:Configuration rear end generation Reason, connection attribute:{ front-end port:80, rear end IP:<WebApp container Bs. network attribute. host ip>, rear end end Mouthful:<WebApp container Bs. network attribute. host port>}}
The model of WebApp container As is as follows:
Container:
ID:WebApp container As
Type:WebApp containers
State:Do not create
Runtime data:Nothing
Network attribute:{ network schemer:Bridge joint, container IP, container port, host ip, host port, port is reflected Penetrate }
Quota attribute:{ CPU core calculation:2, memory size:2G, disk size:5G}
Container operation list:
- create container
- start container
- stop container
Resource Dependence list:
Fictitious host computer:{ID:Empty machine B, state:It is unbound ,-operation:The empty machine of binding }
Virtual network:{ID:Network A, state:It is unbound ,-operation:Binding network }
Software relies on list:
Container mirror image:{ID:Container mirror image WebApp, state:It is unbound ,-operation:Binding mirror image }
Connection relation list:
Data base connects:{ID:Data base's connection 1, state:Do not set up ,-operation:Data base's connection configuration, Attribute:{ data base IP:<Mysql container As. network attribute. host ip>,
Data base IP:<Mysql container As. network attribute. host port>,
Database name:<Mysql container As. Database Properties. database name>,
Data base's account:<Mysql container As. Database Properties. data base's account>,
Database password:<Mysql container As. Database Properties. database password>}}
The service model of Mysql container As is defined as follows:
Container:
ID:Mysql container As
Type:Mysql containers
State:Do not create
Runtime data:Have
Capacitor network attribute:{ Intranet IP, Intranet port, outer net IP, outer net port:3306, port mapping }
Container quota attribute:{ CPU core calculation:4, memory size:4G, disk size:50G}
Database Properties:{ database name, data base's account, database password }
Container operation list:
- create container
- start container
- stop container
- derive container snapshot
Resource Dependence list:
Fictitious host computer:{ID:Empty machine C, state:It is unbound, operation:The empty machine of binding }
Book:{ID:Book A, state:It is unbound, operation:Binding data is rolled up }
Virtual network:{ID:Network A, state:It is unbound, operation:Binding network }
Software relies on list:
Container mirror image:{ID:Container mirror image Mysql, state:It is unbound, operation:Binding mirror image }
Container snapshot:{ID:Container snapshot MysqlA, state:It is unbound, operation:Binding mirror image }
Fig. 4 is the flow chart of the inventive method one embodiment.As shown in figure 4, the embodiment Method includes:
Step S401, obtains the service model file of application cluster, and extracts service model file In application cluster resource deployment attribute and container node state, wherein, resource deployment attribute Including:Resource Dependence relation, software dependence and topological connection relation.
Step S402, according to resource deployment attribute and container node state moving for application cluster is completed Move.
The present embodiment realizes all nodes and dependence of application cluster by service model Automatization migrates;By analyzing the Software Mirroring that each main frame is relied on, at target data center Main frame on relied on Software Mirroring is installed in batches, cluster migration velocity is improved, so as to reduce Downtime of cluster migration;Environment for node profile template bound targets cluster is joined Number, generates the configuration file of target cluster, so as to lift the Configuration File Migration efficiency of cluster; The mirror image warehouse at target data center as intended application cluster mirroring agent, on demand from source number According to required mirror image is obtained and cached in the mirror image warehouse at center, the mirror image for accelerating cluster is installed.
The method that the application cluster based on service model of invention is migrated is explained in detail below:
First, service model is migrated.
With reference to Fig. 5, service model is entered in the method for the application cluster migration based on service model Row migration, specifically includes following steps:
Step S501, derives the service of application cluster from the service model storehouse of source data center Model file.
Step S502, by service model file the service model storehouse at target data center is imported; Extract Resource Dependence relation, software dependence, the topological connection relation in service model file With container node state, and all container node states are set to " not setting up ", and will money The state of source dependence and software dependence be set to it is unbound, by topological connection relation State is set to not set up, and the state of container node is set to not create.
In one embodiment, the operation for being migrated to service model can also include:
Step S503, changes the cloud resource management URL of service model, and by cloud resource management URL points to the management URL of target data centre management agency.
Step S504, changes the URL attribute in the mirror image warehouse of application model, and by mirror image storehouse The URL attribute in storehouse points to the mirror image repository URL at target data center.
2nd, it is target cluster distribution money in the method that the application cluster based on service model is migrated Source, wherein, with reference to Fig. 6, the present invention for target cluster Resources allocation the step of can include Hereinafter operate:
Step S601, is that target cluster creates virtual machine.
Step S602, is that target cluster creates virtual memory.
Step S603, is that target cluster creates virtual network.
Step S604, is target cluster bonding network network resource.
With reference to Fig. 7, be target cluster create virtual machine operating procedure S601 specifically include with Lower operation:
Step S701, calls the virtual machine node query interface of service model engine, obtains institute There is the virtual machine that container node state is " establishment ".
Step S702, according to resource quota and container node and the virtual machine section of container node The dependence of point calculates the resource requirement of each virtual machine node, wherein, resource requirement is should The specification sum of each container on virtual machine, including CPU core number, virutal machine memory size And disk size etc..
Step S703, by the cloud resource management platform of administration agent, such as cloud computing management The virtual machine query interface API of platform openstack, obtain resource specification needs not less than resource The virtual machine specification asked.
Step S704, the establishment for calling virtual machine node is operated, for example, can call service mould The interface of type agency, it is virtual for this according to virtual machine image mark, resources of virtual machine specification ID Machine node distribution virtual machine, binds virtual machine image, and by the container node shape in container node State is set to create, and wherein virtual machine image includes:System kernel and container engine.
Step S705, after virtual machine creating success, the IP address of renewal virtual machine node, The information such as host name, and the state of container node is set to into " creating ", so as to complete void The establishment of plan machine.
It is that target cluster establishment virtual memory 602 specifically includes following operation with reference to Fig. 8:
Step S801, obtains the virtual data that container node state is " establishment " and rolls up, example The dummy storage node query interface that service model can such as be called is inquired about and obtained.
Step S802, calls the establishment interface of virtual machine memory node, for example can be according to void The size and type for intending book is called and creates.
Step S803, obtains virtual network node of the state for " establishment ", for example can be with Realized by calling the dummy storage node query interface of service model.
Step S804, " establishment " for calling each virtual network node is operated, for example can be with Call and create according to information realizations such as the network bandwidths.
Step S805, is acted on behalf of by service model engine internal invocation target data center management In cloud resource management platform network management api interface create virtual network.
Step S806, updates the network ground of virtual network node after virtual network creates success Location, gateway IP, subnet mask, VLAN ID (Virtual Local Area Network, ) etc. VlAN information, the state of virtual network node is set to " creating ".
With reference to Fig. 9, S603 specifically can include the step of be target cluster bonding network network resource Following steps:
Step S901, obtains Resource Dependence relation of the container node state for " unbound ", The virtual query interface that service model can for example be called is inquired about and obtained.
Step S902, for the dependence of virtual machine, performs binding virtual machine operations, more The host ip of new container node, is existed by the establishment container joint of the container engine of administration agent Container is created on virtual machine, the related initial configuration of container is carried out, for example, can include container Environmental variable, resource quota etc., the state of the dependence of virtual machine is changed to " binding ".
Step S903, for book dependence, performs binding data volume operation, passes through The carry book interface of container engine, is container carry book, by the state of dependence It is changed to " binding ".
Step S904, for network dependence, performs binding Virtual Network Operations, first Interface dispensing containers network is configured by container Engine-Network, is container allocation Microsoft Loopback Adapter, will The Microsoft Loopback Adapter of container is bridged in the host bridge of virtual machine, then flat by cloud resource management The host ip and host port of container are added to empty machine network by the network management interface of platform In VLAN, the network attribute of final updating container node, by the state of network dependence It is set to " binding ".
3rd, application cluster software migration.
With reference to Figure 10, in the method for the application cluster migration based on service model of the present invention The step of carrying out software migration to application cluster can include:
Step S1001, the reverse dependence, container and container according to fictitious host computer and container The dependence of mirror image obtains each virtual machine node and needs container image listing to be mounted.
Step S1002, calls the container engine on each empty machine, from the appearance at target data center Non-existent container mirror image on empty machine is downloaded in device mirror image warehouse.
Step S1003, if not having what is specified in the container mirror image warehouse at target data center Container mirror image, then container mirror image warehouse is first downloads wall from the container mirror image warehouse of source data center Hang and preserve container mirror image.
Step S1004, container engine is according to image dependency relational hierarchy in container mirror image by mirror image Layering is installed in the local mirror image warehouse of main frame, and local mirror image warehouse is generally by certain support point The union file system such as AUFS or BTRFS of layer file structure is realizing.
Step S1005, calls the binding mirror image operation of container engine, is each container binding top Layer container mirror image, and container image dependency relation is set to " binding "
Step S1006, when the container image dependency relation of all container nodes is " binding " When, the stateless node for illustrating application cluster and the software for having state node are installed, can To start the operation of the runtime data for having state node migration.
In one embodiment, the runtime data migration with reference to Figure 11, to there is state node Operation, specifically can include:
Step S1101, stops source application cluster.
Step S1102, deriving has the runtime data of state node in the application cluster of source, pass through The snapshot operation of deriving for calling container engine exports to the runtime data for having status container soon Look in the mirror picture, wherein, snapshot image is a kind of special container mirror image, only comprising the fortune in container Incremental data during row.
Step S1103, during snapshot image to be uploaded to the container mirror image warehouse of source data center.
Step S1104, the container engine at target data center is obtained to target mirror as asking in warehouse Obtain snapshot image.
Step S1105, target mirror downloads mirror snapshot as warehouse from the mirror image warehouse of source.
Step S1106, container engine imports to mirror snapshot in the container specified, so as to reality Existing runtime data migration.
With reference to Figure 12, the operation of the Topology connection configuration of the present embodiment, specifically can include with Lower step:
Step S1201, calls the Topology connection query interface of service-Engine, obtains each container State is the Topology connection list of " not setting up " in node.
Step S1202, arranges the connection attribute parameter of Topology connection, such as with reference to above-mentioned Nginx The back-end proxy connection definition of container A, can just in connection attribute "<>" in content replace Change the property value of corresponding node in model into,<WebApp container As. network attribute. host ip> Expression takes the host ip attribute of the network attribute collection of WebApp container A nodes, it is assumed that be 10.10.10.11,<WebApp container As. network attribute. host port>Expression takes WebApp The host port attribute of the network attribute collection of container A node, it is assumed that for 8080.Then instantiation Connection attribute afterwards is { front-end port:80, rear end IP:10.10.10.10, back-end ports:8080}.
Step S1103, performs connection configuration operation, each topological connection relation is owned by one Individual configuration operation, the configuration operation has been bound a provisioning API of administration agent, has called management The REST API of the container engine of agency perform the connection configuration operation of corresponding container.Here Need extension container engine, there is provided the script configuration REST API in container, perform to specify and hold Specified configuration script on device.For example:Perform the REST API of nginx rear ends connection configuration For:
http://<Container host ip>:<Container engine port>/<Container ID>/configshell/Shellfile=nginx_config.sh&fe_port=80&be_ip=10.10 .10.10&be_port=8080.
Container engine is received after the REST API requests, according to the container in URI parameters By pipeline mechanism or the SSH mechanism container specified of connection, perform in container specified matches somebody with somebody ID Put script nginx_config.sh.
Step S1204, after configuration script runs succeeded, the state of topological connection relation is changed For " setting up ".
5th, intended application cluster starts
With reference to Figure 13, the operation started to intended application cluster of the present invention, specifically can wrap Include following steps:
Step S1301, the Resource Dependence relation, software dependence and topology when container node When join dependency relation is bound, the state of container node is set to " ready ".
Step S1302, according to the Topology connection dependence of container, successively starting state is " It is ready " container, and call the REST API of container engine to start container, container node opens After dynamic, the state of container node is set to " in operation ".Start first and relied on reference in Fig. 1 The node of relation least significant end, that is, the root node being relied on, the present embodiment is Mysql container As Node, then successively start root node dependence child node, WebApp container As node and WebApp container B nodes, the top mode for finally starting topology dependence is Nginx containers A nodes.
Step S1303, after all container nodes of cluster start, completes whole application cluster Migration work
Figure 14 is the one of the moving apparatus that the application cluster based on service model of the present invention is migrated The structural representation of individual embodiment.With reference to Figure 14, the device of the present embodiment includes, including: Data obtaining module 1401 and cluster transferring module 1402.
Data obtaining module 1401, for obtaining the service model file of application cluster, and carries The resource deployment attribute and container node state of application cluster in service model file are taken, wherein, Resource deployment attribute includes:Resource Dependence relation, software dependence and topological connection relation;
Cluster transferring module 1402, for complete according to resource deployment attribute and container node state Into the migration of application cluster.
In one embodiment, with reference to Figure 15, data obtaining module 1401 includes:Derive son Unit 1501, importing subelement 1502 and information extraction unit 1503.
Subelement 1501 is derived, for obtaining application from the service model storehouse of source data center The service model file of cluster.
Subelement 1502 is imported, service model file is imported into the service mould at target data center Type storehouse.
Information extraction unit 1503, for extracting service model file in Resource Dependence relation, Software dependence, topological connection relation and container node state.
In one embodiment, with reference to Figure 16, cluster transferring module 1402 includes:State sets Put unit 1601, resource allocation unit 1602, software migration unit 1603, Data Migration list Unit 1604 and topological arrangement unit 1605.
Wherein,
State set unit 1601, for by the shape of Resource Dependence relation and software dependence State is set to unbound, the state of topological connection relation is set to not set up, by container node State be set to not create.
Resource allocation unit 1602, for being according to container node state and Resource Dependence relation Intended application cluster Resources allocation.
Software migration unit 1603, for being moved for intended application cluster according to software dependence Mobile Software's part.
Data migration unit 1604, for by the Data Migration of source application cluster to intended application Cluster.
Topological arrangement unit 1605, for being entered for intended application cluster according to Topological dependence Row Topology connection is configured.
In one embodiment, with reference to Figure 17, resource allocation unit 1602 includes:Resource is created Build subelement 1701 and resource binding unit 1702.
Asset creation subelement 1701, for according to Resource Dependence relation and container node state Virtual machine is created in intended application cluster container;Being additionally operable to should for target according to Resource Dependence relation Rolled up with the virtual machine creating virtual data in cluster container;Be additionally operable to be according to Resource Dependence relation Intended application cluster creates virtual network.
Resource binding unit 1702, for according to Resource Dependence relation be intended application cluster hold Device binds container resource.
In one embodiment, asset creation subelement 1701 is specifically for according to container node Resource quota demand and container node calculate each empty machine with the dependence of empty machine node The resource requirement of node;Asset creation subelement is additionally operable to the resource need according to virtual container node Ask and create virtual machine for virtual container node, bind virtual machine image, and by the container node The state of the virtual machine of dependence is set to create, wherein the virtual machine image includes:System Kernel and container engine.
In one embodiment, asset creation subelement 1701 is specifically for according to container node Virtual data volume in information creates virtual data volume for intended application cluster, and by container node The virtual machine state of dependence is set to create.
In one embodiment, asset creation subelement 1701, specifically for according to container section Virtual network container node state in dotted state is that intended application cluster creates virtual network, and The virtual network state that container node is relied on is set to create.
In one embodiment, resource binding unit 1702 according to Resource Dependence specifically for closing Virtual machine dependence in system;It is additionally operable to as container node binding virtual data volume;It is additionally operable to Book dependence in Resource Dependence relation, is container node binding virtual data volume; The network dependence in Resource Dependence relation is additionally operable to, is container node binding virtual net Network;It is additionally operable to the shape of virtual machine dependence, book dependence and network dependence State is set to bind.
In one embodiment, software migration unit 1603, specifically for according to Resource Dependence The dependence of the reverse dependence, container and container mirror image of virtual machine and container in relation Obtain the container image listing of virtual machine container node;It is additionally operable to call the container engine of virtual machine, Non-existent container mirror image on main frame is obtained from the container mirror image warehouse at target data center, if mesh There is no the container mirror image specified in the container mirror image warehouse of mark data center, then container mirror image storehouse Storehouse obtains non-existent container mirror image from the container mirror image warehouse of source data center;It is additionally operable to root The file of container mirror image is installed according to the image dependency relation in Resource Dependence relation;It is additionally operable to hold Device binds the top layer mirror image of container image file, and the image dependency in Resource Dependence relation is closed System is set to bind.
In one embodiment, data migration unit 1604 is used for when all of image dependency is closed The state of system is when binding, the runtime data migration of log-on data container node, by source The runtime data of application cluster moves to intended application cluster.
In one embodiment, data migration unit 1604 specifically for stop source application cluster, Data in the application cluster of acquisition source during the operation of data capsule node;It is additionally operable to be applied according to source Data genaration snapshot image in cluster during the operation of data capsule node;Snapshot image is uploaded To the container mirror image warehouse of source data center;The container engine at target data center is additionally operable to from source Mirror image warehouse obtains mirror snapshot, and mirror snapshot is imported the container node specified.
In one embodiment, topological arrangement unit 1605 is closed specifically for obtaining Topology connection Link information in system;It is additionally operable to configure Topology connection property parameters for container;It is additionally operable to start Topology connection property parameters, and the state of topological connection relation is set to set up.
In one embodiment, can also include with reference to the moving apparatus in Figure 16, this enforcement: Cluster migration units 1606, for connecting when Resource Dependence relation, software dependence and topology When connecing dependence and binding, the state of container node is set to ready;It is additionally operable to work as institute Have container node state be both configured to it is ready after, confirmation completes the migration of application cluster.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can To be completed by hardware, it is also possible to instructed by program correlation hardware complete, program can In to be stored in a kind of computer-readable recording medium, storage medium mentioned above can be read-only Memorizer, disk or CD etc..
Presently preferred embodiments of the present invention is the foregoing is only, it is all at this not to limit the present invention Within the spirit and principle of invention, any modification, equivalent substitution and improvements made etc. all should be wrapped It is contained within protection scope of the present invention.

Claims (26)

1. a kind of method that application cluster based on service model is migrated, it is characterised in that include:
The service model file of application cluster is obtained, and extracts answering in the service model file With the resource deployment attribute and container node state of cluster, wherein, the resource deployment attribute bag Include:Resource Dependence relation, software dependence and topological connection relation;
The migration of application cluster is completed according to the resource deployment attribute and container node state.
2. method according to claim 1, it is characterised in that the acquisition application collection The service model file of group simultaneously extracts the Resources Department of application cluster in the service model file Administration's attribute and container node state include:
The service model file of application cluster is obtained from the service model storehouse of source data center;
The service model file is imported into the service model storehouse at target data center;
Extract the resource deployment attribute and container node state in the service model file.
3. method according to claim 2, it is characterised in that described according to the money Source deployment attribute and container node state complete the migration of application cluster to be included:
The state of the Resource Dependence relation and software dependence is set to it is unbound, by institute The state for stating topological connection relation is set to not set up, and the state of the container node is set to Do not create;
It is intended application cluster distribution money according to the container node state and Resource Dependence relation Source;
It is intended application cluster migration software according to the software dependence;
By the Data Migration of source application cluster to intended application cluster;
Topology connection configuration is carried out for intended application cluster according to the Topological dependence.
4. method according to claim 3, it is characterised in that described according to the money Source dependence includes for intended application cluster Resources allocation:
Created in intended application cluster container according to the Resource Dependence relation and container node state Build virtual machine;
It is the virtual machine creating void in intended application cluster container according to the Resource Dependence relation Intend book;
It is that intended application cluster creates virtual network according to Resource Dependence relation;
It is that intended application cluster container binds container resource according to the Resource Dependence relation.
5. method according to claim 3, it is characterised in that described according to the money Source dependence and container node information create virtual machine in intended application cluster container to be included:
Resource quota demand and container node and the dependence of empty machine node according to container node Relation calculates the resource requirement of each empty machine node;
It is that virtual container node creates virtual machine, binding according to the resource requirement of virtual container node Virtual machine image, and the state of the virtual machine of container node dependence is set to create;
Wherein described virtual machine image includes:System kernel and container engine.
6. method according to claim 3, it is characterised in that described according to the appearance Device node state is that intended application cluster establishment virtual data volume includes:
Virtual data volume in container node information creates virtual number for intended application cluster According to volume, and the state of the virtual machine that the container node is relied on is set to create.
7. method according to claim 3, it is characterised in that it is described according to resource according to Bad relation is that intended application cluster establishment virtual network includes:
It is intended application collection according to the virtual network container node state that the container node is relied on Group creates virtual network, and the virtual network state that the container node is relied on is set to create Build.
8. method according to claim 3, it is characterised in that described according to the money Source dependence is that intended application cluster container binding container resource includes:
It is that container node binding is empty according to the virtual machine dependence in the Resource Dependence relation Intend book;
It is that container node binding is empty according to the book dependence in the Resource Dependence relation Intend book;
It is that container node binding is virtual according to the network dependence in the Resource Dependence relation Network;
By the state of the virtual machine dependence, book dependence and network dependence It is set to bind.
9. method according to claim 5, it is characterised in that described according to described soft Part dependence includes for intended application cluster migration software:
Reverse dependence, the container of virtual machine and container in the Resource Dependence relation The container image listing of virtual machine container node is obtained with the dependence of container mirror image;
The container engine of virtual machine is called, is obtained not from the container mirror image warehouse at target data center The container mirror image deposited, if there is no the container specified in the container mirror image warehouse at target data center Mirror image, then container mirror image warehouse obtain from the container mirror image warehouse of source data center described in do not deposit Container mirror image;
Image dependency relation of the container engine in the Resource Dependence relation installs institute State the file of container mirror image;
For the top layer mirror image that the container binds the container image file, and by the resource according to Image dependency relation in bad relation is set to bind.
10. method according to claim 9, it is characterised in that
When the state of all of image dependency relation is binds, log-on data container node Runtime data migration, by the Data Migration of source application cluster to intended application cluster.
11. methods according to claim 10, it is characterised in that described to apply in source The Data Migration of cluster stops source application cluster to intended application cluster to be included:
Stopping source application cluster, obtains the number during operation of data capsule node in the application cluster of source According to;
According to the data genaration snapshot in the source application cluster during operation of data capsule node Mirror image;
The snapshot image is uploaded to into the container mirror image warehouse of source data center;
The container engine at target data center obtains the mirror snapshot from source mirror image warehouse, and will The mirror snapshot imports the container node specified.
12. methods according to claim 11, it is characterised in that described in the basis Topological connection relation carries out Topology connection configuration for intended application cluster to be included:
Obtain the link information in the topological connection relation;
Topology connection property parameters are configured for the container;
Start the Topology connection property parameters, and the state of topological connection relation is set to Set up.
13. methods according to claim 12, it is characterised in that also include:
When Resource Dependence relation, software dependence and Topology connection dependence are bound, The state of container node is set to ready;
After all container node states are both configured to ready, confirmation completes moving for application cluster Move.
The moving apparatus that a kind of 14. application clusters based on service model are migrated, it is characterised in that Including:
Data obtaining module, for obtaining the service model file of application cluster, and extracts described The resource deployment attribute and container node state of the application cluster in service model file, wherein, The resource deployment attribute includes:Resource Dependence relation, software dependence and Topology connection are closed System;
Cluster transferring module, for being completed according to the resource deployment attribute and container node state The migration of application cluster.
15. moving apparatus according to claim 14, it is characterised in that acquisition of information Module includes:Derive subelement, import subelement and information extraction unit;
Subelement is derived, for obtaining application cluster from the service model storehouse of source data center Service model file;
Subelement is imported, the service model file is imported into the service model at target data center Storehouse;
Information extraction unit, for extracting the service model file in Resource Dependence relation, Software dependence, topological connection relation and container node state.
16. moving apparatus according to claim 15, it is characterised in that the cluster Transferring module, including:State set unit, resource allocation unit, software migration unit, number According to migration units and topological arrangement unit,
Wherein,
State set unit, for by the state of the Resource Dependence relation and software dependence It is set to unbound, the state of the topological connection relation is set to not set up, by the appearance The state of device node is set to not create;
Resource allocation unit, for being mesh according to the container node state and Resource Dependence relation Mark application cluster Resources allocation;
Software migration unit, for according to the software dependence be intended application cluster migration Software;
Data migration unit, for by the Data Migration of source application cluster to intended application cluster;
Topological arrangement unit, for being carried out for intended application cluster according to the Topological dependence Topology connection is configured.
17. moving apparatus according to claim 16, it is characterised in that the resource Allocation unit includes:Asset creation subelement and resource binding unit,
Wherein,
Asset creation subelement, for being existed according to the Resource Dependence relation and container node state Intended application cluster container creates virtual machine;It is target to be additionally operable to according to the Resource Dependence relation Virtual machine creating virtual data volume in application cluster container;It is additionally operable to according to Resource Dependence relation Virtual network is created for intended application cluster;
Resource binding unit, for according to the Resource Dependence relation be intended application cluster container Binding container resource.
18. moving apparatus according to claim 15, it is characterised in that:
Asset creation subelement is specifically for the resource quota demand and appearance according to container node Device node calculates the resource requirement of each empty machine node with the dependence of empty machine node;
It is virtual appearance that asset creation subelement is additionally operable to according to the resource requirement of virtual container node Device node create virtual machine, bind virtual machine image, and by the container node rely on it is virtual The state of machine is set to create, wherein the virtual machine image includes:System kernel and container Engine.
19. moving apparatus according to claim 15, it is characterised in that asset creation Subelement, is intended application cluster specifically for the virtual data volume in container node information Virtual data volume is created, and the state of the virtual machine that the container node is relied on is set to create Build.
20. moving apparatus according to claim 15, it is characterised in that:
Asset creation subelement, the virtual network specifically for being relied on according to the container node is held Device node state is intended application cluster establishment virtual network, and the container node is relied on Virtual network state is set to create.
21. moving apparatus according to claim 15, it is characterised in that:
Resource binding unit, relies on specifically for the virtual machine in the Resource Dependence relation Relation;It is additionally operable to as container node binding virtual data volume;It is additionally operable to according to the Resource Dependence Book dependence in relation, is container node binding virtual data volume;It is additionally operable to basis Network dependence in the Resource Dependence relation, is container node binding virtual network;Also For by the state of the virtual machine dependence, book dependence and network dependence It is set to bind.
22. moving apparatus according to claim 18, it is characterised in that
Software migration unit, specifically for the virtual machine in the Resource Dependence relation and appearance The dependence of the reverse dependence, container and container mirror image of device obtains virtual machine container node Container image listing;It is additionally operable to call the container engine of virtual machine, from target data center Container mirror image warehouse obtains non-existent container mirror image on main frame, if the container at target data center There is no the container mirror image specified in mirror image warehouse, then container mirror image warehouse is from source data center The non-existent container mirror image is obtained in container mirror image warehouse;Be additionally operable to according to the resource according to Image dependency relation in bad relation installs the file of the container mirror image;It is additionally operable to as the appearance Device binds the top layer mirror image of the container image file, and by the mirror in the Resource Dependence relation As dependence is set to bind.
23. moving apparatus according to claim 22, it is characterised in that Data Migration Unit is used for when the state of all of image dependency relation is and binds, log-on data container The runtime data migration of node, by the runtime data of source application cluster intended application is moved to Cluster.
24. moving apparatus according to claim 23, it is characterised in that Data Migration Unit obtains the fortune of data capsule node in the application cluster of source specifically for stopping source application cluster Data during row;It is additionally operable to according in the source application cluster during operation of data capsule node Data genaration snapshot image;The snapshot image is uploaded to into the container mirror image storehouse of source data center Storehouse;The container engine for being additionally operable to target data center obtains the mirror snapshot from source mirror image warehouse, And the container node for specifying mirror snapshot importing.
25. moving apparatus according to claim 24, it is characterised in that topological arrangement Unit, specifically for the link information in the acquisition topological connection relation;It is additionally operable to as described Container configures Topology connection property parameters;It is additionally operable to start the Topology connection property parameters, and And be set to the state of topological connection relation to set up.
26. moving apparatus according to claim 25, it is characterised in that the migration Device also includes:Cluster migration units, for when Resource Dependence relation, software dependence and When Topology connection dependence is bound, the state of container node is set to ready;Also use In after all container node states are both configured to ready, confirmation completes the migration of application cluster.
CN201510664774.9A 2015-10-15 2015-10-15 A kind of method and moving apparatus for the application cluster migration based on service model Active CN106603592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510664774.9A CN106603592B (en) 2015-10-15 2015-10-15 A kind of method and moving apparatus for the application cluster migration based on service model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510664774.9A CN106603592B (en) 2015-10-15 2015-10-15 A kind of method and moving apparatus for the application cluster migration based on service model

Publications (2)

Publication Number Publication Date
CN106603592A true CN106603592A (en) 2017-04-26
CN106603592B CN106603592B (en) 2019-10-01

Family

ID=58552172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510664774.9A Active CN106603592B (en) 2015-10-15 2015-10-15 A kind of method and moving apparatus for the application cluster migration based on service model

Country Status (1)

Country Link
CN (1) CN106603592B (en)

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107579898A (en) * 2017-09-14 2018-01-12 快云信息科技有限公司 The method and its device of interconnected communication between one kind of multiple containers
CN107589982A (en) * 2017-09-12 2018-01-16 国云科技股份有限公司 A kind of method that virtual machine moves to KVM from VMware
CN107704618A (en) * 2017-10-27 2018-02-16 北京航空航天大学 A kind of heat based on aufs file system migrates method and system
CN107734052A (en) * 2017-11-02 2018-02-23 华南理工大学 The load balancing container dispatching method that facing assembly relies on
CN107729151A (en) * 2017-10-19 2018-02-23 济南浪潮高新科技投资发展有限公司 A kind of method of cluster management FPGA resource
CN107734019A (en) * 2017-09-29 2018-02-23 中国石油化工股份有限公司 The system and method that exploration and development container migrates online
CN107728947A (en) * 2017-10-13 2018-02-23 郑州云海信息技术有限公司 A kind of cold moving method of container and system
CN109005245A (en) * 2018-09-07 2018-12-14 广州微算互联信息技术有限公司 The use management method and system of cloud mobile phone
CN109150964A (en) * 2018-07-06 2019-01-04 航天星图科技(北京)有限公司 A kind of transportable data managing method and services migrating method
CN109165095A (en) * 2018-08-16 2019-01-08 中科边缘智慧信息科技(苏州)有限公司 The information system of task based access control set meal quickly opens up method
CN109246167A (en) * 2017-07-11 2019-01-18 阿里巴巴集团控股有限公司 A kind of container dispatching method and device
CN109391664A (en) * 2017-08-11 2019-02-26 中国电信股份有限公司 System and method for the deployment of more cluster containers
CN109587281A (en) * 2017-09-29 2019-04-05 华为技术有限公司 Container configuration method and calculate node
CN109840132A (en) * 2017-11-27 2019-06-04 华为技术有限公司 Method of combination, device and the storage medium of container
CN109857516A (en) * 2018-12-29 2019-06-07 航天信息股份有限公司 Cluster moving method and device based on container
CN110795162A (en) * 2019-09-26 2020-02-14 北京浪潮数据技术有限公司 Method and device for generating container mirror image file
WO2020082702A1 (en) * 2018-10-24 2020-04-30 Huawei Technologies Co., Ltd. Objective driven dynamic object placement optimization
CN111294410A (en) * 2020-05-11 2020-06-16 杭州朗澈科技有限公司 Method for uploading multi-region private mirror image warehouse by local mirror image
CN111352689A (en) * 2018-12-21 2020-06-30 中国电信股份有限公司 Method and device for realizing seamless migration of application containerized deployment
CN111459415A (en) * 2020-04-15 2020-07-28 腾讯科技(深圳)有限公司 Cross-cloud data migration method, device, equipment and storage medium
CN111522545A (en) * 2020-07-06 2020-08-11 嘉兴太美医疗科技有限公司 Method, device, system and readable medium for dynamically constructing model based on Java
CN111756562A (en) * 2019-03-29 2020-10-09 深信服科技股份有限公司 Cluster takeover method, system and related components
CN112558930A (en) * 2020-12-09 2021-03-26 中国科学院电子学研究所苏州研究院 Software generation system and method for container service
CN112769617A (en) * 2021-01-06 2021-05-07 武汉紫阑信息技术有限公司 Method for migrating RabbitMQ cluster and computer system
CN113326100A (en) * 2021-06-29 2021-08-31 深信服科技股份有限公司 Cluster management method, device and equipment and computer storage medium
CN113359511A (en) * 2021-06-23 2021-09-07 陕西工大锐迪信息技术有限公司 Construction method and device of industrial control simulation network, computer equipment and storage medium
CN113672337A (en) * 2021-07-16 2021-11-19 广东浪潮智慧计算技术有限公司 Application migration method, device and equipment and computer readable storage medium
CN113946275A (en) * 2020-07-15 2022-01-18 中移(苏州)软件技术有限公司 Cache management method and device and storage medium
WO2022078326A1 (en) * 2020-10-13 2022-04-21 北京京东尚科信息技术有限公司 Method and apparatus for acquiring private cloud container cluster gene information
CN115134231A (en) * 2021-03-17 2022-09-30 北京搜狗科技发展有限公司 Communication method, device and device for communication
US11762571B2 (en) 2020-12-21 2023-09-19 International Business Machines Corporation Migration of uncached data after cutover

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856548A (en) * 2012-12-07 2014-06-11 华为技术有限公司 Dynamic resource scheduling method and dynamic resource scheduler
US20140196037A1 (en) * 2013-01-09 2014-07-10 The Research Foundation For The State University Of New York Gang migration of virtual machines using cluster-wide deduplication
CN104935618A (en) * 2014-03-19 2015-09-23 福建福昕软件开发股份有限公司北京分公司 Cluster disposition method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856548A (en) * 2012-12-07 2014-06-11 华为技术有限公司 Dynamic resource scheduling method and dynamic resource scheduler
US20140196037A1 (en) * 2013-01-09 2014-07-10 The Research Foundation For The State University Of New York Gang migration of virtual machines using cluster-wide deduplication
CN104935618A (en) * 2014-03-19 2015-09-23 福建福昕软件开发股份有限公司北京分公司 Cluster disposition method

Cited By (50)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246167B (en) * 2017-07-11 2022-04-01 阿里巴巴集团控股有限公司 Container scheduling method and device
CN109246167A (en) * 2017-07-11 2019-01-18 阿里巴巴集团控股有限公司 A kind of container dispatching method and device
CN109391664B (en) * 2017-08-11 2021-04-20 中国电信股份有限公司 System and method for multi-cluster container deployment
CN109391664A (en) * 2017-08-11 2019-02-26 中国电信股份有限公司 System and method for the deployment of more cluster containers
CN107589982A (en) * 2017-09-12 2018-01-16 国云科技股份有限公司 A kind of method that virtual machine moves to KVM from VMware
CN107579898B (en) * 2017-09-14 2020-08-14 快云信息科技有限公司 Method and device for interconnection communication among multiple containers
CN107579898A (en) * 2017-09-14 2018-01-12 快云信息科技有限公司 The method and its device of interconnected communication between one kind of multiple containers
CN109587281A (en) * 2017-09-29 2019-04-05 华为技术有限公司 Container configuration method and calculate node
CN107734019A (en) * 2017-09-29 2018-02-23 中国石油化工股份有限公司 The system and method that exploration and development container migrates online
CN109587281B (en) * 2017-09-29 2020-07-28 华为技术有限公司 Container configuration method and computing node
CN107734019B (en) * 2017-09-29 2020-12-25 中国石油化工股份有限公司 System and method for on-line migration of exploration and development containers
CN107728947A (en) * 2017-10-13 2018-02-23 郑州云海信息技术有限公司 A kind of cold moving method of container and system
CN107729151A (en) * 2017-10-19 2018-02-23 济南浪潮高新科技投资发展有限公司 A kind of method of cluster management FPGA resource
CN107704618A (en) * 2017-10-27 2018-02-16 北京航空航天大学 A kind of heat based on aufs file system migrates method and system
CN107734052A (en) * 2017-11-02 2018-02-23 华南理工大学 The load balancing container dispatching method that facing assembly relies on
CN107734052B (en) * 2017-11-02 2019-12-10 华南理工大学 Load balancing container scheduling method facing component dependence
CN109840132B (en) * 2017-11-27 2021-05-14 华为技术有限公司 Arranging method and device of container and storage medium
CN109840132A (en) * 2017-11-27 2019-06-04 华为技术有限公司 Method of combination, device and the storage medium of container
CN109150964B (en) * 2018-07-06 2022-01-11 中科星图股份有限公司 Migratable data management method and service migration method
CN109150964A (en) * 2018-07-06 2019-01-04 航天星图科技(北京)有限公司 A kind of transportable data managing method and services migrating method
CN109165095B (en) * 2018-08-16 2022-04-15 中科边缘智慧信息科技(苏州)有限公司 Task package based information system rapid opening method
CN109165095A (en) * 2018-08-16 2019-01-08 中科边缘智慧信息科技(苏州)有限公司 The information system of task based access control set meal quickly opens up method
CN109005245B (en) * 2018-09-07 2021-09-14 广州微算互联信息技术有限公司 Cloud mobile phone use management method and system
CN109005245A (en) * 2018-09-07 2018-12-14 广州微算互联信息技术有限公司 The use management method and system of cloud mobile phone
US11671317B2 (en) 2018-10-24 2023-06-06 Huawei Cloud Computing Technologies Co., Ltd. Objective driven dynamic object placement optimization
WO2020082702A1 (en) * 2018-10-24 2020-04-30 Huawei Technologies Co., Ltd. Objective driven dynamic object placement optimization
CN111352689A (en) * 2018-12-21 2020-06-30 中国电信股份有限公司 Method and device for realizing seamless migration of application containerized deployment
CN109857516B (en) * 2018-12-29 2023-12-12 航天信息股份有限公司 Cluster migration method and device based on container
CN109857516A (en) * 2018-12-29 2019-06-07 航天信息股份有限公司 Cluster moving method and device based on container
CN111756562B (en) * 2019-03-29 2023-07-14 深信服科技股份有限公司 Cluster takeover method, system and related components
CN111756562A (en) * 2019-03-29 2020-10-09 深信服科技股份有限公司 Cluster takeover method, system and related components
CN110795162A (en) * 2019-09-26 2020-02-14 北京浪潮数据技术有限公司 Method and device for generating container mirror image file
CN110795162B (en) * 2019-09-26 2022-07-05 北京浪潮数据技术有限公司 Method and device for generating container mirror image file
CN111459415A (en) * 2020-04-15 2020-07-28 腾讯科技(深圳)有限公司 Cross-cloud data migration method, device, equipment and storage medium
CN111294410B (en) * 2020-05-11 2020-08-14 杭州朗澈科技有限公司 Method for uploading local mirror image file to multi-region private mirror image warehouse
CN111294410A (en) * 2020-05-11 2020-06-16 杭州朗澈科技有限公司 Method for uploading multi-region private mirror image warehouse by local mirror image
CN111522545A (en) * 2020-07-06 2020-08-11 嘉兴太美医疗科技有限公司 Method, device, system and readable medium for dynamically constructing model based on Java
CN113946275A (en) * 2020-07-15 2022-01-18 中移(苏州)软件技术有限公司 Cache management method and device and storage medium
CN113946275B (en) * 2020-07-15 2024-04-09 中移(苏州)软件技术有限公司 Cache management method and device and storage medium
WO2022078326A1 (en) * 2020-10-13 2022-04-21 北京京东尚科信息技术有限公司 Method and apparatus for acquiring private cloud container cluster gene information
CN112558930A (en) * 2020-12-09 2021-03-26 中国科学院电子学研究所苏州研究院 Software generation system and method for container service
US11762571B2 (en) 2020-12-21 2023-09-19 International Business Machines Corporation Migration of uncached data after cutover
CN112769617A (en) * 2021-01-06 2021-05-07 武汉紫阑信息技术有限公司 Method for migrating RabbitMQ cluster and computer system
CN115134231A (en) * 2021-03-17 2022-09-30 北京搜狗科技发展有限公司 Communication method, device and device for communication
CN115134231B (en) * 2021-03-17 2024-03-08 北京搜狗科技发展有限公司 Communication method, device and device for communication
CN113359511A (en) * 2021-06-23 2021-09-07 陕西工大锐迪信息技术有限公司 Construction method and device of industrial control simulation network, computer equipment and storage medium
CN113326100A (en) * 2021-06-29 2021-08-31 深信服科技股份有限公司 Cluster management method, device and equipment and computer storage medium
CN113326100B (en) * 2021-06-29 2024-04-09 深信服科技股份有限公司 Cluster management method, device, equipment and computer storage medium
CN113672337A (en) * 2021-07-16 2021-11-19 广东浪潮智慧计算技术有限公司 Application migration method, device and equipment and computer readable storage medium
CN113672337B (en) * 2021-07-16 2024-02-13 广东浪潮智慧计算技术有限公司 Application migration method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN106603592B (en) 2019-10-01

Similar Documents

Publication Publication Date Title
CN106603592A (en) Application cluster migrating method and migrating device based on service model
CN107579931B (en) A kind of block chain, that is, Service Source adaptation method based on Kubernetes
CN106790660B (en) A kind of dispositions method and device for realizing distributed memory system
CN106020930B (en) A kind of application management method and system based on application container
JP3839472B2 (en) Object-oriented rule-based protocol system
CN107070705B (en) A kind of method of combination of cloud resource
CN106790483A (en) Hadoop group systems and fast construction method based on container technique
CN106022007B (en) The cloud platform system and method learning big data and calculating is organized towards biology
CN107357660A (en) The distribution method and device of a kind of virtual resource
US20170052807A1 (en) Methods, apparatuses, and computer program products for deploying and managing software containers
CN106663034A (en) Migration of applications between an enterprise-based network and a multi-tenant network
CN109542611A (en) Database, that is, service system, database dispatching method, equipment and storage medium
CN108449197A (en) A kind of cloudy environment network construction method based on software defined network
CN106301829A (en) A kind of method and apparatus of Network dilatation
CN109964449A (en) The Licensing Methods and device of network service lifecycle management
CN106953848B (en) Software defined network implementation method based on ForCES
CN110245003A (en) A kind of machine learning uniprocessor algorithm arranging system and method
CN108572845A (en) The upgrade method and related system of distributed micro services cluster
CN108763960A (en) Access authorization for resource management method and device
CN112882726B (en) Hadoop and Docker-based deployment method of environment system
CN109074288A (en) Conflict solving in network virtualization scene
CN108885564A (en) Resource in network virtualization scene places control
CA2797223A1 (en) Tool for managing resources and computer infrastructures and networks
Gunka et al. Moving an application to the cloud: an evolutionary approach
CN113064600A (en) Method and device for deploying application

Legal Events

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