CN109344006A - A kind of mirror image management method and mirror image management module - Google Patents
A kind of mirror image management method and mirror image management module Download PDFInfo
- Publication number
- CN109344006A CN109344006A CN201811122679.6A CN201811122679A CN109344006A CN 109344006 A CN109344006 A CN 109344006A CN 201811122679 A CN201811122679 A CN 201811122679A CN 109344006 A CN109344006 A CN 109344006A
- Authority
- CN
- China
- Prior art keywords
- mirror image
- node
- management module
- image management
- deployed
- 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
- 238000007726 management method Methods 0.000 title claims abstract description 120
- 230000001360 synchronised effect Effects 0.000 claims abstract description 20
- 238000000034 method Methods 0.000 claims description 29
- 238000003860 storage Methods 0.000 abstract description 16
- 230000008569 process Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 7
- 238000012217 deletion Methods 0.000 description 5
- 230000037430 deletion Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000003032 molecular docking Methods 0.000 description 4
- 230000000712 assembly Effects 0.000 description 3
- 238000000429 assembly Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 239000003818 cinder Substances 0.000 description 2
- 238000004140 cleaning Methods 0.000 description 2
- 238000007599 discharging Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 241000272873 Apus apus Species 0.000 description 1
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000011800 void material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- 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/45562—Creating, deleting, cloning virtual machine instances
-
- 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/45575—Starting, stopping, suspending or resuming virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application discloses a kind of mirror image management method and mirror image management modules, applied at least two nodes of cloud platform, are deployed with mirror image management module on each node;Above-mentioned image management method, comprising: the mirror image management module disposed in any node creates parameter according to mirror image, generates image file, and on this node by image file storage;Call mirror image automatic synchronization script that image file is synchronized to remaining node for being deployed with mirror image management module.The application is deployed in multiple nodes for mirror image management module and the scene of storage image file is locally stored using lvm, realizes mirror image automatic synchronization.
Description
Technical field
This application involves but be not limited to field of cloud computer technology, espespecially a kind of mirror image management method and mirror image management module.
Background technique
Virtual machine image (hereinafter referred to as mirror image) is actually exactly the file comprising entire virtual disk content, this
The system disk of virtual disk i.e. virtual machine includes the operating system that can be booted up.So-called cloud virtual machine image is exactly
Meet some mirror images for requiring and (for example, installing specific software, configuring specific service etc.), completes cloud platform to cooperate
Mirror image correlation function.
Mirror image is the indispensable a part of cloud platform.It, can be in cloud platform quickly using the mirror image of various customization
It is created that the virtual machine for meeting different purposes and starting volume.For example, Microsoft Windows has been installed and configured using one
The mirror image of operating system, so that it may which the second, grade was created that more virtual machines in cloud platform, can directly for users to use.
Since mirror image is managed by mirror image management service in cloud platform (i.e. glance service), in glance service
Where image file is all stored in glance service on node, user first will service institute from glance before creating virtual machine
Corresponding image file is obtained in node, and copies node where Virtual Machine Management Service in cloud platform (i.e. nova service) to.
General large-scale application scenarios (for example, public cloud scene), the considerations of for load balancing, glance service is usually deployed in
On multiple nodes (usually three), and glance service rear end often dock be in cloud platform object storage management take
Business (i.e. swift service) or distributed file system (for example, ceph) carry out shared storage.
However, on the other hand for the safety of data, certain customers can consider on the one hand in order to save cost
Where glance service on node carry disk and after being made into file system (logical volume management namely often said (lvm,
Logical Volume Manager) be locally stored) used for glance service memory image file.In this case, by
The node (for example, node 1) where can select one of glance service in creation (upload) image file stores mirror
As file, but other components (for example, volume management service (i.e. cinder service) in nova service or cloud platform) are using
When glance service downloading image file, node where one of glance service can be selected according to load balancing is (not necessarily
It is node 1) it is downloaded and copies image file, it thus will appear the exception that can not find image file, lead to image file
Failed download, so that the operation flow for starting virtual machine or creation boot disk is terminated.It can be seen that in above-mentioned scene, there are following disadvantages
End: first, virtual machine is created using image file, it may appear that probability failure;Second, starting volume is created using image file,
It will appear probability failure;Third downloads image file using glance order, it may appear that probability failure manually.
Summary of the invention
The embodiment of the present application provides a kind of mirror image management method and mirror image management module, exists for glance service arrangement
The scene of storage image file is locally stored on multiple nodes and using lvm, image file automatic synchronization is realized, to meet use
Family successfully starts up virtual machine, creation starting volume and the demand for downloading image file manually, and then is effectively improved user's use process
Ease for use and convenience.
On the one hand, the embodiment of the present application provides a kind of mirror image management method, applied at least two nodes of cloud platform, institute
It states and is deployed with mirror image management module on each node, the mirror image management method includes: the mirror image management disposed in any node
Module creates parameter according to mirror image, generates image file, and the image file is stored on the node;Call mirror image certainly
The image file is synchronized to remaining node for being deployed with mirror image management module by dynamic synchronous script.
On the other hand, the embodiment of the present application provides a kind of mirror image management module, applied at least two nodes of cloud platform,
The mirror image management module is deployed on each node respectively, the mirror image management module includes: mirror image creating unit, is fitted
In creating parameter according to mirror image, image file is generated, and the image file is stored on the node at place;Mirror image synchronization list
Member, suitable for calling mirror image automatic synchronization script that the image file is synchronized to remaining node for being deployed with mirror image management module.
In another aspect, the embodiment of the present application provides a kind of terminal, comprising: memory and processor;The memory is suitable for
Memory image management program realizes the step of above-mentioned image management method when the mirror image management program is executed by the processor
Suddenly.
In addition, the embodiment of the present application also provides a kind of computer-readable medium, it is stored with mirror image management program, the mirror image
The step of above-mentioned image management method is realized when management program is executed by processor.
In the embodiment of the present application, at least two sections are deployed in for mirror image management module in cloud platform (i.e. glance service)
The scene of image file is put and is locally stored using node, the mirror image management module disposed in any node is created according to mirror image joins
Number generates image file, and on this node by image file storage;Call mirror image automatic synchronization script that image file is synchronous
The node of mirror image management module is deployed with to remaining.The embodiment of the present application is deployed in cloud platform at least for mirror image management module
Under two nodes and the scene that is locally stored of rear end docking lvm, by the automatic synchronization of image file, can satisfy user at
Function starts the demand of virtual machine, creation starting volume and manual downloading mirror image, to largely improve what user used
Convenience, and then improve the competitiveness of cloud platform.
Other features and advantage will illustrate in the following description, also, partly become from specification
It obtains it is clear that being understood and implementing the application.The purpose of the application and other advantages can be by specifications, right
Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical scheme, and constitutes part of specification, with this
The embodiment of application is used to explain the technical solution of the application together, does not constitute the limitation to technical scheme.
Fig. 1 is the flow chart of mirror image management method provided by the embodiments of the present application;
Fig. 2 is the example flow diagram of mirror image management method provided by the embodiments of the present application;
Fig. 3 is the schematic diagram of mirror image management module provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of terminal provided by the embodiments of the present application.
Specific embodiment
Embodiments herein is described in detail below in conjunction with attached drawing.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable
Sequence executes shown or described step.
The embodiment of the present application provides a kind of mirror image management method and mirror image management module, for glance service arrangement more
The scene that on a node and rear end docking lvm is locally stored, relative to the process of traditional creation (upload) image file, originally
Application embodiment optimizes the process of creation (upload) image file, and the automatic synchronization of image file in cloud platform may be implemented,
In this way, can satisfy user successfully starts up virtual machine, creation starting volume and the demand for downloading image file manually, that is, solve above-mentioned
In the case of will appear it is probability failure the problem of, to be effectively improved the ease for use and convenience of user's use process.
Fig. 1 is the flow chart of mirror image management method provided by the embodiments of the present application.Mirror image manager provided in this embodiment
Method can be applied at least two nodes (for example, at least two control nodes of cloud platform) of cloud platform, wherein each node
On be deployed with mirror image management module (for example, glance service).
As shown in Figure 1, mirror image management method provided in this embodiment, comprising:
The mirror image management module disposed in step 101, any node creates parameter according to mirror image, generates image file, and
On this node by image file storage;
Image file is synchronized to remaining and is deployed with mirror image management module by step 102, calling mirror image automatic synchronization script
Node.
In an illustrative embodiments, mirror image automatic synchronization script can be customized tool, wherein may include
Executable file, for realizing image file different nodes duplication and deletion.
In an illustrative embodiments, image file can be named with image banner (ID), be deployed with mirror image management mould
The image banner of the identical image file stored on the different nodes of block is identical.
In an illustrative embodiments, step 102 may include: that remaining in determining cloud platform is deployed with mirror image management mould
The node of block;It executes synch command and image file is synchronized to remaining node for being deployed with mirror image management module.
In this illustrative embodiments, mirror image management module locally complete image file creation (upload) after,
Automatic trigger mirror image automatic synchronization script;Then, mirror image automatic synchronization script can obtain current deployment from mirror image management module
The information of the information (for example, address information) and the image file currently created that have the node of mirror image management module is (for example, mirror
As mark), the image file currently created is copied into remaining deployment by executing synch command (for example, scp order) later
There is the node of mirror image management module, for example, being deployed with mirror image management for currently remaining is copied in the image file locallyd create
Under the respective directories of the node of module, and the image file after duplication is named with identical image banner.
In this illustrative embodiments, node creation (upload) mirror image of mirror image management module is deployed at wherein one
After file, by calling mirror image automatic synchronization script, synchronous mirror file to other nodes for being deployed with mirror image management module is real
Image file automatic synchronization in existing cloud platform.Later, other components (for example, nova service or cinder service) are using mirror image
When management module downloads image file, regardless of the node for according to load balancing which selecting be deployed with mirror image management module carries out
Downloading and copy image file, can find corresponding image file, to meet, user successfully starts up virtual machine, creation is opened
Dynamic volume and the manually demand of downloading mirror image, greatly enhance the convenience that user uses.
In an illustrative embodiments, mirror image management method can also include: the mirror image management disposed in any node
Module deletes parameter according to mirror image, deletes the image file stored on the node;Mirror image automatic synchronization script is called to delete remaining
It is deployed with the image file stored on the node of mirror image management module.
In an illustrative embodiments, the mirror image management module disposed in any node deletes parameter according to mirror image, deletes
Except the image file stored on the node, it may include: the mirror image management module on the node according to image banner, delete the section
The corresponding image file of the image banner stored on point.
In an illustrative embodiments, calls mirror image automatic synchronization script to delete remaining and be deployed with mirror image management module
The image file stored on node may include: the node that remaining in determining cloud platform is deployed with mirror image management module;Execution is deleted
It is deleted except remaining is deployed with the corresponding image file of the image banner stored on the node of mirror image management module by order.
In this illustrative embodiments, mirror image management module is after the image file stored on node where deletion,
It can be with automatic trigger mirror image automatic synchronization script;Then, mirror image automatic synchronization script can obtain current from mirror image management module
Information (the ratio of the information (for example, address information) and the image file currently deleted that are deployed with the node of mirror image management module
Such as, image banner), remaining is deployed with to the mirror image stored on the node of mirror image management module by executing delete command later
File is deleted, for example, finding the mirror image currently to delete under the respective directories of remaining node for being deployed with mirror image management module
The image file of the corresponding image banner name of file, then deletes the image file found.
In this illustrative embodiments, after deleting image file according to primary process, mirror image can be called automatically same
Step script deletes the identical image file stored on other nodes for being deployed with mirror image management module together, so as to timely
Automatic cleaning residual mirror image resources greatly improves user and uses just without artificially discharging the space of residual resource occupation
Benefit.
Fig. 2 is the example schematic diagram of mirror image management method provided by the embodiments of the present application.In the present embodiment, mirror image management
At least two nodes for being deployed with mirror image management module that method can be applied to cloud platform, wherein mirror image management module with
It is illustrated for glance service.
In the embodiment of the present application, user is considered in the actual demand of production environment, for glance service arrangement multiple
The scene that on node and rear end docking lvm is locally stored, the process of traditional creation (upload) image file are by mirror image text
It names where part is stored therein a glance service on node and with image banner (ID) (for example,/var/lib/
Glance/images/xxxxx, wherein xxxx is mirror image ID);In the present embodiment, to the primary of image file creation (upload)
After the completion of process, mirror image automatic synchronization script is just called immediately, and the image file automatic synchronization to other glance is serviced into institute
Node (equally with above-mentioned image ID name).In this way, when user starts virtual machine, creation starting volume and downloads mirror manually
When picture, node where no matter which glance service being download message are issued to can guarantee the successful downloading of image file
(wherein, ignoring the objective condition such as unstable networks).If image file needs to delete, the primary stream of traditional deletion image file
Image file (image file generated when creating) where journey can only clear up a glance service on node;The present embodiment
In, after the completion of the primary process that image file is deleted, equally mirror image automatic synchronization script can be called to take other glance
Image file where business on node is deleted together, so that the timely automated remaining mirror image of cleaning, largely improves
The convenience that user uses.
As shown in Fig. 2, to be deployed with the node of mirror image management module (i.e. node where glance service) as in cloud platform
Control node, and number be three for be illustrated.Mirror image management method provided in this embodiment, comprising the following steps:
Node (for example, control node 1) where step 201, one of glance service receives user and creates (upload)
The request of image file;Wherein, above-mentioned request can carry mirror image creation (upload) parameter (for example, including mirror image ID);
Step 202, glance service create (upload) parameter according to incoming mirror image, complete the creation of the primary process of mirror image
(upload);The image file for creating (upload) at this time can be stored in node (for example, control node 1) where glance service
On;
Image file is synchronized to other glance and serviced by step 203, glance service call mirror image automatic synchronization script
Place node (for example, control node 2 and control node 3).
Wherein, after primary creation (upload) process of image file is completed in the glance service disposed in control node 1, i.e.,
Mirror image automatic synchronization script is triggered, node is (for example, control where mirror image automatic synchronization script determines other glance services first
Node 2 and control node 3) address, then, by execute synch command the image file locallyd create is synchronized to it is other
Node (for example, control node 2 and control node 3) where glance service, wherein copy to section where other glance services
The image file stored on the image file and control node 1 of point is named using identical image banner.
Node (for example, control node 1) where step 204, one of glance service receives user and deletes mirror image text
The request of part;Wherein, above-mentioned request can carry mirror image and delete parameter (for example, including mirror image ID);
Step 205, glance service delete the mirror image text being locally stored according to primary process according to incoming mirror image ID
Part;The image file stored on node (for example, control node 1) where actually deleting a glance service at this time;
Node where step 206, glance service call mirror image automatic synchronization script service remaining glance (for example,
Control node 2 and control node 3) on image file delete together.
Wherein, after the primary deletion process of image file is completed in the glance service disposed in control node 1, that is, mirror is triggered
As automatic synchronization script, node is (for example, control node 2 where mirror image automatic synchronization script determines other glance services first
With control node 3) address, then, by execute delete command by other glance service where node (for example, control save
Point 2 and control node 3) on image file delete together.Being stored on node where wherein, deleting other glance services,
The image file of identical mirror image ID name is used with the image file deleted in control node 1.
In the embodiment of the present application, for glance service arrangement on multiple nodes and rear end docking lvm locally deposit
The scene of storage relative to traditional creation (upload) mirror image process and deletes process, and the embodiment of the present application optimizes mirror image creation
(upload) process and deletion process, realize and synchronize creation (upload) in node where multiple glance service and delete, make
The image file stored on node where obtaining multiple glance services is consistent.In this way, being both able to satisfy user successfully starts up void
The demand of quasi- machine, creation starting volume and manual downloading mirror image does not need the space for artificially discharging residual resource occupation, greatly yet
Improve the convenience that user uses.
Fig. 3 is the schematic diagram of mirror image management module provided by the embodiments of the present application.Mirror image provided in this embodiment manages mould
Block is applied at least two nodes of cloud platform, wherein is deployed with mirror image management module on each node respectively.As shown in figure 3,
Mirror image management module provided in this embodiment includes: mirror image creating unit 301 and mirror image synchronization unit 302.
Wherein, mirror image creating unit 301 is suitable for creating parameter according to mirror image, generates image file, and image file is deposited
Storage is on the node at place;Mirror image synchronization unit 302, suitable for calling mirror image automatic synchronization script that image file is synchronized to remaining
It is deployed with the node of mirror image management module.
In an illustrative embodiments, mirror image synchronization unit 302 may be adapted to call mirror image automatic in the following manner
Image file is synchronized to remaining node for being deployed with mirror image management module by synchronous script: determining that remaining in cloud platform is deployed with mirror
As the node of management module;It executes synch command and image file is synchronized to remaining node for being deployed with mirror image management module.
In an illustrative embodiments, mirror image management module can also include: that mirror image deletes unit, be suitable for according to mirror image
Parameter is deleted, the image file stored on the node where deleting;
Mirror image synchronization unit 302 can be adapted to that mirror image automatic synchronization script is called to delete remaining and be deployed with mirror image management
The identical image file stored on the node of module.
In an illustrative embodiments, mirror image, which deletes unit, may be adapted to delete ginseng according to mirror image in the following manner
Number, the image file stored on node where deleting: according to image banner, the image banner pair stored on node where deleting
The image file answered.
In an illustrative embodiments, mirror image synchronization unit 302 can call mirror image automatic synchronization in the following manner
Script deletes the image file stored on the node that remaining is deployed with mirror image management module: determining that remaining in cloud platform is deployed with mirror
As the node of management module;It executes delete command and remaining is deployed with to the image banner stored on the node of mirror image management module
Corresponding image file is deleted.
In addition, the related description about mirror image management module provided in this embodiment is referred to above method embodiment
Description, therefore repeated no more in this.
Fig. 4 is the schematic diagram of terminal provided by the embodiments of the present application.As shown in figure 4, the embodiment of the present application provides a kind of end
Hold 400 (for example, control nodes of cloud platform), comprising: memory 401 and processor 402, memory 401 are suitable for memory image
Management program, the mirror image management program realize the step of mirror image management method provided by the above embodiment when being executed by processor 402
?.It will be understood by those skilled in the art that structure shown in Fig. 4, only with this Shen
Please the relevant part-structure of scheme schematic diagram, do not constitute the restriction for the terminal 400 being applied thereon to application scheme,
Terminal 400 may include perhaps combining certain components or with different components than more or fewer components as shown in the figure
Arrangement.
Wherein, processor 402 can include but is not limited to microprocessor (MCU, Microcontroller Unit) or can
The processing unit of programmed logic device (FPGA, Field Programmable Gate Array) etc..Memory 401 can be used for
The software program and module for storing application software, such as the corresponding program instruction of mirror image management method or mould in the present embodiment
Block, the software program and module that processor 402 is stored in memory 401 by operation, thereby executing various function application
And data processing, for example realize mirror image management method provided in this embodiment.Memory 401 may include high speed random storage
Device may also include nonvolatile memory, such as one or more magnetic storage device, flash memory or other are non-volatile solid
State memory.In some instances, memory 401 may include the memory remotely located relative to processor 402, these are long-range
Memory can pass through network connection to terminal 400.The example of above-mentioned network include but is not limited to internet, intranet,
Local area network, mobile radio communication and combinations thereof.
In addition, the embodiment of the present application also provides a kind of computer-readable medium, it is stored with mirror image management program, the mirror image pipe
The step of reason program realizes mirror image management method provided by the above embodiment when being executed by processor, for example, shown in Fig. 1 or Fig. 2
The step of.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove
Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment,
Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one
Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups
Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by
It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable
On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily
Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as
Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non-
Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its
His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other
Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This
Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould
Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information
Delivery media.
The advantages of basic principles and main features and the application of the application have been shown and described above.The application is not by upper
The limitation for stating embodiment, the above embodiments and description only describe the principles of the application, are not departing from the application
Under the premise of spirit and scope, the application be will also have various changes and improvements, these changes and improvements both fall within claimed
Within the scope of the application.
Claims (10)
1. a kind of mirror image management method, which is characterized in that applied at least two nodes of cloud platform, each node top
There is mirror image management module in administration, and the mirror image management method includes:
The mirror image management module disposed in any node creates parameter according to mirror image, generates image file, and the mirror image is literary
Part is stored on the node;
Call mirror image automatic synchronization script that the image file is synchronized to remaining node for being deployed with mirror image management module.
2. the method according to claim 1, wherein the calling mirror image automatic synchronization script is literary by the mirror image
Part is synchronized to remaining node for being deployed with mirror image management module, comprising:
Determine that remaining in the cloud platform is deployed with the node of mirror image management module;
Execute synch command by the image file be synchronized to it is described remaining be deployed with the node of mirror image management module.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
The mirror image management module disposed in any node according to mirror image delete parameter, delete stored on the node it is described
Image file;
The mirror image automatic synchronization script is called to delete the mirror image stored on the node that remaining is deployed with mirror image management module
File.
4. according to the method described in claim 3, it is characterized in that, the mirror image management module disposed in any node
Parameter is deleted according to mirror image, deletes the image file stored on the node, comprising:
It is corresponding to delete the image banner stored on the node according to image banner for mirror image management module on the node
Image file.
5. according to the method described in claim 4, it is characterized in that, described call the mirror image automatic synchronization script to delete remaining
It is deployed with the image file stored on the node of mirror image management module, comprising:
Determine that remaining in the cloud platform is deployed with the node of mirror image management module;
Execute delete command by it is described remaining to be deployed with the image banner that stores on the node of mirror image management module corresponding
Image file is deleted.
6. a kind of mirror image management module, which is characterized in that applied at least two nodes of cloud platform, divide on each node
It is not deployed with the mirror image management module, the mirror image management module includes:
Mirror image creating unit is suitable for creating parameter according to mirror image, generates image file, and the image file is stored in place
Node on;
Mirror image synchronization unit is deployed with mirror image pipe suitable for calling mirror image automatic synchronization script that the image file is synchronized to remaining
Manage the node of module.
7. mirror image management module according to claim 6, which is characterized in that the mirror image synchronization unit, be suitable for by with
Under type calls mirror image automatic synchronization script that the image file is synchronized to remaining node for being deployed with mirror image management module:
Determine that remaining in the cloud platform is deployed with the node of mirror image management module;
Execute synch command by the image file be synchronized to it is described remaining be deployed with the node of mirror image management module.
8. mirror image management module according to claim 6, which is characterized in that the mirror image management module further include: mirror image
Unit is deleted, is suitable for deleting parameter according to mirror image, the image file stored on the node where deleting;
The mirror image synchronization unit, is further adapted for the mirror image automatic synchronization script is called to delete remaining and is deployed with mirror image management module
Node on the image file that stores.
9. a kind of terminal characterized by comprising memory and processor;The memory is suitable for memory image management program,
The mirror image manager as described in any one of claims 1 to 5 is realized when the mirror image management program is executed by the processor
The step of method.
10. a kind of computer-readable medium, which is characterized in that be stored with mirror image management program, the mirror image management program is located
Manage the step of realizing the mirror image management method as described in any one of claims 1 to 5 when device executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811122679.6A CN109344006A (en) | 2018-09-26 | 2018-09-26 | A kind of mirror image management method and mirror image management module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811122679.6A CN109344006A (en) | 2018-09-26 | 2018-09-26 | A kind of mirror image management method and mirror image management module |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109344006A true CN109344006A (en) | 2019-02-15 |
Family
ID=65306906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811122679.6A Pending CN109344006A (en) | 2018-09-26 | 2018-09-26 | A kind of mirror image management method and mirror image management module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109344006A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109947599A (en) * | 2019-03-25 | 2019-06-28 | 北京百度网讯科技有限公司 | Method and device is managed in more cluster management methods and device, cluster |
CN110704162A (en) * | 2019-09-27 | 2020-01-17 | 北京百度网讯科技有限公司 | Method, device and equipment for sharing container mirror image by physical machine and storage medium |
CN111367475A (en) * | 2020-03-10 | 2020-07-03 | 山东汇贸电子口岸有限公司 | Automatic configuration method for docking G2 storage under circle deployment and circle deployment based on |
CN112000425A (en) * | 2020-07-21 | 2020-11-27 | 北京北通云服科技有限公司 | Image management system based on IDV mode |
CN112181721A (en) * | 2020-09-14 | 2021-01-05 | 东云睿连(武汉)计算技术有限公司 | Artificial intelligence operation mirror image management method and system |
CN112463170A (en) * | 2020-10-29 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Method, device and equipment for making mirror image on cloud platform and storage medium |
CN113296888A (en) * | 2021-04-27 | 2021-08-24 | 优刻得科技股份有限公司 | Mirror image processing method and system |
CN113342378A (en) * | 2021-06-25 | 2021-09-03 | 山东浪潮通软信息科技有限公司 | Mirror image generation method, device and medium based on file system update |
CN116842001A (en) * | 2023-08-29 | 2023-10-03 | 合肥中科类脑智能技术有限公司 | Mirror image data cleaning method and device, electronic equipment and artificial intelligent platform |
-
2018
- 2018-09-26 CN CN201811122679.6A patent/CN109344006A/en active Pending
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109947599A (en) * | 2019-03-25 | 2019-06-28 | 北京百度网讯科技有限公司 | Method and device is managed in more cluster management methods and device, cluster |
CN110704162B (en) * | 2019-09-27 | 2022-09-20 | 北京百度网讯科技有限公司 | Method, device and equipment for sharing container mirror image by physical machine and storage medium |
CN110704162A (en) * | 2019-09-27 | 2020-01-17 | 北京百度网讯科技有限公司 | Method, device and equipment for sharing container mirror image by physical machine and storage medium |
CN111367475A (en) * | 2020-03-10 | 2020-07-03 | 山东汇贸电子口岸有限公司 | Automatic configuration method for docking G2 storage under circle deployment and circle deployment based on |
CN111367475B (en) * | 2020-03-10 | 2023-05-09 | 山东省电子口岸有限公司 | Automatic configuration method for butt joint G2 storage under prism deployment based on palm |
CN112000425A (en) * | 2020-07-21 | 2020-11-27 | 北京北通云服科技有限公司 | Image management system based on IDV mode |
CN112181721A (en) * | 2020-09-14 | 2021-01-05 | 东云睿连(武汉)计算技术有限公司 | Artificial intelligence operation mirror image management method and system |
CN112181721B (en) * | 2020-09-14 | 2024-03-19 | 东云睿连(武汉)计算技术有限公司 | Artificial intelligence job mirror image management method and system |
CN112463170B (en) * | 2020-10-29 | 2022-08-23 | 苏州浪潮智能科技有限公司 | Method, device and equipment for making mirror image on cloud platform and storage medium |
CN112463170A (en) * | 2020-10-29 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Method, device and equipment for making mirror image on cloud platform and storage medium |
CN113296888A (en) * | 2021-04-27 | 2021-08-24 | 优刻得科技股份有限公司 | Mirror image processing method and system |
CN113342378A (en) * | 2021-06-25 | 2021-09-03 | 山东浪潮通软信息科技有限公司 | Mirror image generation method, device and medium based on file system update |
CN116842001A (en) * | 2023-08-29 | 2023-10-03 | 合肥中科类脑智能技术有限公司 | Mirror image data cleaning method and device, electronic equipment and artificial intelligent platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109344006A (en) | A kind of mirror image management method and mirror image management module | |
CN108683516B (en) | Application instance upgrading method, device and system | |
CN108809722B (en) | Method, device and storage medium for deploying Kubernetes cluster | |
CN107247619B (en) | Live migration of virtual machine method, apparatus, system, storage medium and equipment | |
CN110365502A (en) | A kind of method, apparatus and storage medium of service upgrade management | |
CN109309693B (en) | Multi-service system based on docker, deployment method, device, equipment and storage medium | |
EP3200393A1 (en) | Method and device for virtual network function management | |
CN109254825A (en) | A kind of method and device for receiving pipe virtual hard disk | |
CN108259200B (en) | A kind of physical network function PNF moving method and relevant device | |
CN106603725A (en) | Implementation method for enterprise cloud service virtual mirror image management service | |
CN110138577B (en) | Cluster creation method, first server and readable storage medium | |
CN111464603B (en) | Server capacity expansion method and system | |
US20140164534A1 (en) | System for sending a content item through an online content management system | |
WO2021238301A1 (en) | Application update method, apparatus and device and medium | |
CN104793981B (en) | A kind of online snapshot management method and device of cluster virtual machine | |
CN107704550A (en) | File migration method, apparatus and computer-readable recording medium | |
EP4050850A1 (en) | Service upgrading method, device and system | |
CN106599323A (en) | Method and apparatus for realizing distributed pipeline in distributed file system | |
CN109032753A (en) | A kind of isomery virtual hard disk trustship method, system, storage medium and Nova platform | |
CN108924186A (en) | The creation method and system of file storage in a kind of cloud pipe platform | |
CN111399866B (en) | Updating method and device of VNF (virtual network function) package | |
CN109495298B (en) | Method and device for managing nodes in OpenStack system | |
CN111200651A (en) | Method, system, device and medium for timed calling of microservice | |
CN114629958B (en) | Resource allocation method, device, electronic equipment and storage medium | |
CN115480910A (en) | Multi-cluster resource management method and device and electronic equipment |
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: 20190215 |