CN107239323A - A kind of method and system of container thermophoresis - Google Patents
A kind of method and system of container thermophoresis Download PDFInfo
- Publication number
- CN107239323A CN107239323A CN201710656747.6A CN201710656747A CN107239323A CN 107239323 A CN107239323 A CN 107239323A CN 201710656747 A CN201710656747 A CN 201710656747A CN 107239323 A CN107239323 A CN 107239323A
- Authority
- CN
- China
- Prior art keywords
- container
- thermophoresis
- main frame
- management module
- agency
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
Abstract
The invention discloses a kind of method and system of container thermophoresis, method comprises the following steps:Initiate container migration request;Record to be migrated the characteristic information of container;By on the virtual machine (vm) migration on sourcesink main frame to purpose host.System includes sourcesink main frame, target host machine, virtual level management module, Container Management module, virtual machine agency and container agency.The present invention devises the tag file for recording container to be migrated, and use the virtual machine where the complete thermophoresis container of virtualization layer, solve the problem that the container scene based on virtualization layer is difficult to complete container thermophoresis, so that container thermophoresis is quick and reliable, and beneficial inspiration and foundation are provided for the thermophoresis of other scene containers.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and system of container thermophoresis.
Background technology
Virtualization is the important foundation of cloud computing, and Docker (one increase income application container engine) defines a sleeve containes
From the Standardization System for being building up to execution, change traditional virtualization technology, effect of depth field of cloud calculation.
It is into advancing because container is the virtualization that has carried out lightweight in the container technical field of cloud computing
The isolation and limitation of journey., will be in face of process in different hosts if carrying out thermophoresis to container based on such present situation
The upper problem migrated, because basic environment is inconsistent on different hosts machine, the especially service condition of internal memory, therefore,
Thermophoresis process, which is almost, on different hosts machine can not accomplish real thermophoresis.
The content of the invention
For the deficiency of above-mentioned technology, the embodiments of the invention provide a kind of method and system of container thermophoresis, it is not
Thermophoresis can be only carried out to container, and quick and reliable thermophoresis can be carried out to container.
The embodiment of the present invention solves its technical problem and adopted the technical scheme that:
On the one hand there is provided a kind of method of container thermophoresis, it comprises the following steps:
Initiate container migration request;
Record to be migrated the characteristic information of container;
By on the virtual machine (vm) migration on sourcesink main frame to purpose host.
Alternatively, the detailed process of the initiation container migration request is:Container Management module is to the appearance on sourcesink main frame
Device agency sends container migration order.
Alternatively, the detailed process for the characteristic information that the record to be migrated container is:Container generation on sourcesink main frame
Reason is written to the characteristic information to be migrated container in container characteristics file, and sends thermophoresis preparation to Container Management module
The response finished.
Alternatively, the detailed process on the virtual machine (vm) migration by sourcesink main frame to purpose host is:
Container Management module sends live migration of virtual machine request to virtual level management module;
Virtual level management module sends virtual machine heat to the virtual layer proxy on sourcesink main frame and purpose host respectively and moved
Move order;
Virtual level agent Coordination on sourcesink main frame and purpose host completes the thermophoresis work of virtual machine.
Alternatively, the thermomigration process of the embodiment of the present invention is further comprising the steps of:
Shutdown cleaning is carried out to the unrelated container on purpose host.
Alternatively, the detailed process of the unrelated container progress shutdown cleaning on purpose host is:
Container Management module sends cleaning to the container agency on the complete virtual machine of the thermophoresis on purpose host
The order of non-thermophoresis container
Container agency on purpose host reads the container characteristics log file of thermophoresis container, and working as according to monitoring
The statistical information of preceding container, calculates container list to be cleaned;
To container list to be cleaned, the container in running status is carried out operation out of service, when all for clearance
When container is all out of service, then thoroughly data scrubbing is carried out to container for clearance.
Alternatively, the calculating process of the container list to be cleaned is:Container agency is by reading container characteristics record text
The characteristic information of institute's migration container obtains migrated container in part, and carries out taking difference set to obtain wanting with the container that currently manages
The container set of removing, the container set to be removed is arranged into container list to be cleaned.
On the other hand, a kind of system of container thermophoresis is additionally provided, it includes sourcesink main frame, target host machine, virtual
Layer-management module, Container Management module, virtual machine agency and container agency, the virtual level management module respectively with sourcesink main frame
It is connected with target host machine, the Container Management module is connected with sourcesink main frame and target host machine respectively, described sourcesink master
Machine and target host machine are included in virtual machine layer and container floor, described sourcesink main frame and the virtual machine layer of target host machine
It is provided with virtual machine agency, described sourcesink main frame and the container floor of target host machine and is provided with container agency, it is described
Virtual level management module and Container Management module are to send the management and dispatching order to container, described virtual machine agency and appearance
Device is acted on behalf of to perform corresponding management and dispatching order.
Alternatively, be provided with the container floor of described sourcesink main frame and target host machine container characteristics log file and
Multiple containers, the container characteristics log file is to record the multiple container characteristics information.
Technical scheme provided in an embodiment of the present invention has the advantages that:
Scheme of the embodiment of the present invention is recorded first needs the container and its associated process of thermophoresis on sourcesink main frame, by sourcesink master
Virtualization layer thermophoresis on machine on purpose host, now the container after thermophoresis can on purpose host work
Make, now purpose host removes the process on virtualization layer basis and the container of the thermophoresis recorded before by calculating total process
And its difference set process of associated process, by clearing up these difference set processes, realize based on virtualization layer thermophoresis and process two
The container thermophoresis of secondary cleaning.
Scheme of the embodiment of the present invention devises the tag file for recording container to be migrated first, then complete using virtualization layer
Virtual machine where full thermophoresis container, is finally based on the tag file of container to be migrated and other in the virtual machine non-is moved
Move container to be cleared up, solve the problem that the container scene based on virtualization layer is difficult to complete container thermophoresis so that container
Thermophoresis it is quick and reliable, and provide beneficial inspiration and foundation for the thermophoresis of other scene containers.
Brief description of the drawings
With reference to Figure of description, the present invention will be described.
Fig. 1 is a kind of structural representation of the system of container thermophoresis provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for the first container thermophoresis provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for second of container thermophoresis provided in an embodiment of the present invention.
Embodiment
For the technical characterstic for illustrating this programme can be understood, below by embodiment, and its accompanying drawing is combined, to this hair
It is bright to be described in detail.Following disclosure provides many different embodiments or example is used for realizing the different knots of the present invention
Structure.In order to simplify disclosure of the invention, hereinafter the part and setting of specific examples are described.In addition, the present invention can be with
Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated
Relation between various embodiments are discussed and/or set.It should be noted that part illustrated in the accompanying drawings is not necessarily to scale
Draw.Present invention omits the description to known assemblies and treatment technology and process to avoid being unnecessarily limiting the present invention.
Fig. 1 is a kind of structural representation of the system of container thermophoresis provided in an embodiment of the present invention.Referring to Fig. 1, this hair
A kind of system of container thermophoresis of bright embodiment, it includes sourcesink main frame, target host machine, virtual level management module, container
Management module, virtual machine agency and container agency, the virtual level management module respectively with sourcesink main frame and target host machine phase
Even, the Container Management module is connected with sourcesink main frame and target host machine respectively, described sourcesink main frame and target host machine
Include being provided with virtual machine generation in virtual machine layer and container floor, described sourcesink main frame and the virtual machine layer of target host machine
Container agency, described virtual level management module are provided with reason, described sourcesink main frame and the container floor of target host machine
Acted on behalf of with Container Management module to send the management and dispatching order to container, described virtual machine agency and container to perform
Corresponding management and dispatching order.
Container characteristics log file and multiple appearances are provided with described sourcesink main frame and the container floor of target host machine
Device, the container characteristics log file is to record the multiple container characteristics information.
A kind of system of container thermophoresis provided in an embodiment of the present invention is divided into three levels, and outermost layer is physics host
(sourcesink main frame and purpose host), middle one layer is virtualization layer (sourcesink main frame and purpose host have virtualization layer),
It is container floor also to have one layer in virtualization layer.The system also has two management moulds of virtual level management module and Container Management module
Block, two proxy modules are acted on behalf of according to virtual machine agency and container, and two management modules are responsible for sending management traffic order, correspondence
Proxy module performs the corresponding command in residing level.Sent during the thermophoresis of container by Container Management module and ask
To the virtual machine in sourcesink main frame where container, container agency carries out recording recording for container to be migrated to be migrated in sourcesink main frame
Container characteristics complete the thermophoresis of whole virtual machine by asking virtualization layer into file, are adjusted by Container Management module
Acted on behalf of with the container on purpose host, the cleaning work for making it carry out container, the container acts on behalf of the spy according to container to be migrated
Part of soliciting articles is cleared up other non-migrating containers in virtual machine.
Fig. 2 is the schematic flow sheet of the method for the first container thermophoresis provided in an embodiment of the present invention.Referring to Fig. 2,
A kind of method of container thermophoresis comprises the following steps:
Initiate container migration request;
Record to be migrated the characteristic information of container;
By on the virtual machine (vm) migration on sourcesink main frame to purpose host.
It is described initiate container migration request detailed process be:Container Management module is acted on behalf of to the container on sourcesink main frame and sent out
Send container migration order.
The detailed process of characteristic information to be migrated container that records is:Container agency on sourcesink main frame is wanting
The characteristic information of migration container is written in container characteristics file, and sends the ready sound of thermophoresis to Container Management module
Should.
Detailed process on the virtual machine (vm) migration by sourcesink main frame to purpose host is:
Container Management module sends live migration of virtual machine request to virtual level management module;
Virtual level management module sends virtual machine heat to the virtual layer proxy on sourcesink main frame and purpose host respectively and moved
Move order;
Virtual level agent Coordination on sourcesink main frame and purpose host completes the thermophoresis work of virtual machine.
The method of the first container thermophoresis of scheme of the embodiment of the present invention, needs heat to move by recording first on sourcesink main frame
The container and its associated process of shifting, by the virtualization layer thermophoresis on sourcesink main frame to purpose host, now after thermophoresis
Container can be worked on purpose host.
Fig. 3 is the schematic flow sheet of the method for second of container thermophoresis provided in an embodiment of the present invention, second of container
The method of thermophoresis adds and the unrelated container on purpose host is stopped compared with the method for the first container thermophoresis
The step of machine is cleared up.Referring to Fig. 3, the method for second of container thermophoresis specifically includes following steps:
Initiate container migration request;
Record to be migrated the characteristic information of container;
By on the virtual machine (vm) migration on sourcesink main frame to purpose host;
Shutdown cleaning is carried out to the unrelated container on purpose host.
The increased unrelated container on purpose host of method of second of container thermophoresis carries out shutdown cleanup step
Detailed process be:
Container Management module sends cleaning to the container agency on the complete virtual machine of the thermophoresis on purpose host
The order of non-thermophoresis container
Container agency on purpose host reads the container characteristics log file of thermophoresis container, and working as according to monitoring
The statistical information of preceding container, calculates container list to be cleaned;
To container list to be cleaned, the container in running status is carried out operation out of service, when all for clearance
When container is all out of service, then thoroughly data scrubbing is carried out to container for clearance.
The calculating process of the container list to be cleaned is:Calculate the process and before that total process removes virtualization layer basis
The thermophoresis container of record and its difference set process of associated process.More specifically calculating process is exactly that container agency is held by reading
The characteristic information of institute's migration container obtains migrated container in device feature log file, and is taken with the container that currently manages
Difference set obtains the container set to be removed, and the container set to be removed is arranged into container list to be cleaned.
The method of second of container thermophoresis of scheme of the embodiment of the present invention, recording first on sourcesink main frame needs thermophoresis
Container and its associated process, by the virtualization layer thermophoresis on sourcesink main frame to purpose host, the now appearance after thermophoresis
Device can work on purpose host, and now purpose host removes entering for virtualization layer basis by calculating total process
The difference set process of the container and its associated process of journey and the thermophoresis recorded before, by clearing up these difference set processes, is realized
Container thermomigration process based on virtualization layer thermophoresis and the secondary cleaning of process.
Simply the preferred embodiment of the present invention described above, for those skilled in the art,
Without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also regarded as this hair
Bright protection domain.
Claims (9)
1. a kind of method of container thermophoresis, it is characterized in that, comprise the following steps:
Initiate container migration request;
Record to be migrated the characteristic information of container;
By on the virtual machine (vm) migration on sourcesink main frame to purpose host.
2. a kind of method of container thermophoresis according to claim 1, it is characterized in that, the initiation container migration request
Detailed process is:Container Management module sends container migration to the container agency on sourcesink main frame and ordered.
3. a kind of method of container thermophoresis according to claim 1, it is characterized in that, the record to be migrated container
The detailed process of characteristic information is:The characteristic information to be migrated container is written to container spy by the container agency on sourcesink main frame
Solicit articles in part, and the ready response of thermophoresis is sent to Container Management module.
4. a kind of method of container thermophoresis according to claim 1, it is characterized in that, it is described will be virtual on sourcesink main frame
The detailed process that machine is moved on purpose host is:
Container Management module sends live migration of virtual machine request to virtual level management module;
Virtual level management module sends live migration of virtual machine life to the virtual layer proxy on sourcesink main frame and purpose host respectively
Order;
Virtual level agent Coordination on sourcesink main frame and purpose host completes the thermophoresis work of virtual machine.
5. a kind of method of container thermophoresis according to Claims 1-4 any one, it is characterized in that, in addition to it is following
Step:
Shutdown cleaning is carried out to the unrelated container on purpose host.
6. a kind of method of container thermophoresis according to claim 5, it is characterized in that, it is described on purpose host
The detailed process that unrelated container shut down cleaning is:
It is non-thermal that Container Management module sends cleaning to the container agency on the complete virtual machine of the thermophoresis on purpose host
Migrate the order of container
Container agency on purpose host reads the container characteristics log file of thermophoresis container, and according to the current appearance of monitoring
The statistical information of device, calculates container list to be cleaned;
To container list to be cleaned, the container in running status is carried out operation out of service, when all containers for clearance
When all out of service, then thoroughly data scrubbing is carried out to container for clearance.
7. a kind of method of container thermophoresis according to claim 6, it is characterized in that, the meter of the container list to be cleaned
Calculation process is:Container agency obtains migrated appearance by reading the characteristic information of institute's migration container in container characteristics log file
Device, and carry out with the container that currently manages taking difference set to obtain the container set to be removed, the container set to be removed is whole
Manage in container list to be cleaned.
8. a kind of system of container thermophoresis, it is characterized in that, including sourcesink main frame, target host machine, virtual level management module, appearance
Device management module, virtual machine agency and container agency, the virtual level management module respectively with sourcesink main frame and target host machine
It is connected, the Container Management module is connected with sourcesink main frame and target host machine respectively, described sourcesink main frame and target host
Machine includes being provided with virtual machine in virtual machine layer and container floor, described sourcesink main frame and the virtual machine layer of target host machine
Container agency, described virtual layer-management mould are provided with agency, described sourcesink main frame and the container floor of target host machine
Block and Container Management module are acted on behalf of to hold to send the management and dispatching order to container, described virtual machine agency and container
The corresponding management and dispatching order of row.
9. a kind of system of container thermophoresis according to claim 8, it is characterized in that, described sourcesink main frame and target place
Container characteristics log file and multiple containers are provided with the container floor of main frame, the container characteristics log file is to record
The multiple container characteristics information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710656747.6A CN107239323A (en) | 2017-08-03 | 2017-08-03 | A kind of method and system of container thermophoresis |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710656747.6A CN107239323A (en) | 2017-08-03 | 2017-08-03 | A kind of method and system of container thermophoresis |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107239323A true CN107239323A (en) | 2017-10-10 |
Family
ID=59989911
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710656747.6A Pending CN107239323A (en) | 2017-08-03 | 2017-08-03 | A kind of method and system of container thermophoresis |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107239323A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110196751A (en) * | 2018-04-02 | 2019-09-03 | 腾讯科技(深圳)有限公司 | The partition method and device of mutual interference service, electronic equipment, storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160274928A1 (en) * | 2015-03-20 | 2016-09-22 | International Business Machines Corporation | Virtual machine migration between hypervisor virtual machines and containers |
CN106155778A (en) * | 2016-07-07 | 2016-11-23 | 中国科学院声学研究所 | A kind of startup method and system of application container |
CN106250228A (en) * | 2016-08-11 | 2016-12-21 | 北京网迅科技有限公司杭州分公司 | The method and device that virtual machine entity thermophoresis networking takes over seamlessly |
CN106445637A (en) * | 2016-09-29 | 2017-02-22 | 中国银联股份有限公司 | Container management scheduling system |
-
2017
- 2017-08-03 CN CN201710656747.6A patent/CN107239323A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160274928A1 (en) * | 2015-03-20 | 2016-09-22 | International Business Machines Corporation | Virtual machine migration between hypervisor virtual machines and containers |
CN106155778A (en) * | 2016-07-07 | 2016-11-23 | 中国科学院声学研究所 | A kind of startup method and system of application container |
CN106250228A (en) * | 2016-08-11 | 2016-12-21 | 北京网迅科技有限公司杭州分公司 | The method and device that virtual machine entity thermophoresis networking takes over seamlessly |
CN106445637A (en) * | 2016-09-29 | 2017-02-22 | 中国银联股份有限公司 | Container management scheduling system |
Non-Patent Citations (1)
Title |
---|
NANZHIC87706: "Docker容器热迁移", 《道客巴巴》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110196751A (en) * | 2018-04-02 | 2019-09-03 | 腾讯科技(深圳)有限公司 | The partition method and device of mutual interference service, electronic equipment, storage medium |
CN110196751B (en) * | 2018-04-02 | 2023-03-28 | 腾讯科技(深圳)有限公司 | Method and device for isolating mutual interference service, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102523264B (en) | USB (Universal Serial Bus) equipment remote sharing method and system for virtual machine | |
CN104156255B (en) | A kind of virtual machine migration method, virtual machine (vm) migration device and source physical host | |
CN104301389A (en) | Energy efficiency monitoring and managing method and system of cloud computing system | |
CN104951352B (en) | The moving method and equipment of a kind of data flow | |
CN111209091B (en) | Scheduling method of Spark task containing private data in mixed cloud environment | |
CN103823708B (en) | The method and apparatus that virtual machine read-write requests are processed | |
CN102929769A (en) | Virtual machine internal-data acquisition method based on agency service | |
CN107645410A (en) | A kind of virtual machine management system and method based on OpenStack cloud platforms | |
CN104283959A (en) | Performance-grading-based storage mechanism suitable for cloud platform | |
CN110413413A (en) | A kind of method for writing data, device, equipment and storage medium | |
CN104239121B (en) | Video card Redirectional system and the method that figure shows are realized using the system | |
CN107104820A (en) | The daily O&M strategy of dynamic capacity-expanding based on F5 server nodes | |
CN103117878A (en) | Design method of Nagios-based distribution monitoring system | |
CN106708748A (en) | Method and system for improving OpenStack block storage volume mounting performance | |
CN103440200A (en) | High-instantaneity and large-data-volume test playback method based on double operating systems | |
CN105912740A (en) | CAE distributed cooperative work method based on cloud calculation | |
CN107239323A (en) | A kind of method and system of container thermophoresis | |
CN107395456A (en) | Distributed file system stream directly deposits method of testing and platform | |
CN105607606B (en) | A kind of data acquisition device and method based on double mainboard frameworks | |
CN106230944A (en) | The running gear that a kind of peak based on cloud computer system accesses | |
CN107528871A (en) | Data analysis in storage system | |
CN107463555A (en) | The mthods, systems and devices of layer data among deleting | |
CN105279007A (en) | Multi-core processor simulation method and apparatus | |
CN104182490B (en) | A kind of method and device for managing data access | |
CN107783826A (en) | A kind of virtual machine migration method, apparatus and system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171010 |