CN105487898A - A method of increasing the speed of batch startup and shutdown of virtual machines - Google Patents
A method of increasing the speed of batch startup and shutdown of virtual machines Download PDFInfo
- Publication number
- CN105487898A CN105487898A CN201510856229.XA CN201510856229A CN105487898A CN 105487898 A CN105487898 A CN 105487898A CN 201510856229 A CN201510856229 A CN 201510856229A CN 105487898 A CN105487898 A CN 105487898A
- Authority
- CN
- China
- Prior art keywords
- ssd
- path
- virtual machines
- virtual machine
- configuration file
- 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
- 238000000034 method Methods 0.000 title claims abstract description 21
- 239000007787 solid Substances 0.000 claims description 8
- 238000012795 verification Methods 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000013403 standard screening design Methods 0.000 description 13
- 239000002699 waste material Substances 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
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/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- 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/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
-
- 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/445—Program loading or initiating
- G06F9/44594—Unloading
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及云计算管理领域,特别是指一种提高虚拟机批量开机关机速度的方法。The invention relates to the field of cloud computing management, in particular to a method for increasing the batch startup and shutdown speed of virtual machines.
背景技术Background technique
在云计算环境下,计算机的CPU、内存和显卡等主要配件的性能都提升得很快,现在一台高性能服务器上能支持创建的虚拟机越来越多,而与之相对应的磁盘系统性能正越来越严重地成为整个系统性能提升的瓶颈,这就导致虚拟机批量开机关机速度越来越慢,针对这个情况一般采用以下方式:In the cloud computing environment, the performance of the computer's main accessories such as CPU, memory, and graphics card has been improved rapidly. Now a high-performance server can support the creation of more and more virtual machines, and the corresponding disk system Performance is becoming more and more the bottleneck of the performance improvement of the entire system, which leads to slower and slower batch startup and shutdown speeds of virtual machines. Generally, the following methods are used to solve this situation:
1、硬盘采用SSD,直接提高IO读写速度,以满足批量操作要求。1. The hard disk adopts SSD, which directly improves the IO read and write speed to meet the requirements of batch operations.
2、降低单台物理服务器虚拟机数量,牺牲资源来提升性能。2. Reduce the number of virtual machines on a single physical server and sacrifice resources to improve performance.
3、采用高端的存储设备,提高基础硬件IO。3. Use high-end storage devices to improve basic hardware IO.
上述方法存在以下弊端:The above method has the following disadvantages:
1、降低物理服务器虚拟机数量,导致物理服务CPU、内存严重浪费;1. Reduce the number of physical server virtual machines, resulting in a serious waste of physical server CPU and memory;
2、SSD及高端的存储设备对于成本是一种明显的浪费。2. SSD and high-end storage devices are an obvious waste of cost.
发明内容Contents of the invention
本发明解决的技术问题在于提供一种提高虚拟机批量开机关机速度的方法,解决传统方法存在的不足,节约成本,充分利用计算资源,为提高虚拟机批量开机关机速度提供一种可行的解决方案。The technical problem solved by the present invention is to provide a method for increasing the batch startup and shutdown speed of virtual machines, solve the shortcomings of traditional methods, save costs, make full use of computing resources, and provide a feasible solution for improving the batch startup and shutdown speed of virtual machines .
本发明解决上述技术问题的技术方案是:The technical scheme that the present invention solves the problems of the technologies described above is:
所述的方法包括如下步骤:Described method comprises the steps:
步骤1:在后台配置文件设置SSD路径;Step 1: Set the SSD path in the background configuration file;
步骤2:通过云平台管理端创建虚拟机;Step 2: Create a virtual machine through the cloud platform management terminal;
步骤3:后台读取配置文件SSD路径;Step 3: Read the configuration file SSD path in the background;
步骤4:检查创建虚拟机镜像cache是否存在指定SSD目录,若存在,执行步骤6,否则顺序执行;Step 4: Check whether the specified SSD directory exists in the created virtual machine image cache, if it exists, perform step 6, otherwise execute sequentially;
步骤5:将镜像cache拷贝到指定SSD;Step 5: Copy the image cache to the designated SSD;
步骤6:根据镜像cahce路径创建虚拟机。Step 6: Create a virtual machine according to the image cahce path.
所述的后台配置文件,是指专门存放一些程序专用配置项的文件;The background configuration file refers to a file specially storing some program-specific configuration items;
所述的配置项,一般是程序常用到的路径、用户名、密码、邮箱等;The configuration items mentioned are generally the paths, user names, passwords, mailboxes, etc. commonly used by programs;
所述的SSD是固态硬盘(SolidStateDrives),简称固盘,用固态电子存储芯片阵列而制成的硬盘。The SSD is a solid state drive (Solid State Drives), referred to as a solid state drive, a hard drive made of an array of solid state electronic memory chips.
所述的读取配置文件,是通过程序读取SSD路径,作为后面的校验使用。The reading of the configuration file is to read the SSD path through the program and use it as a verification later.
所述的镜像cache,是指虚拟机镜像文件,主要包含Windows、linux两种镜像。The image cache refers to a virtual machine image file, which mainly includes two images of Windows and Linux.
本发明的方法节约成本,通过镜像快照技术,只需要镜像cache部分硬盘采用SSD,其他采用一般存储,大大节省存储成本,一台物理服务器顶多花费几百块钱的成本;提高了计算资源使用率,不会因为存储的瓶颈而降低单台物理服务器所能支持的虚拟机数量.The method of the present invention saves costs. Through the mirror snapshot technology, only some hard disks of the mirror cache need to use SSDs, and others use general storage, which greatly saves storage costs. A physical server costs hundreds of dollars at most; improves the use of computing resources The rate will not reduce the number of virtual machines that a single physical server can support due to storage bottlenecks.
附图说明Description of drawings
下面结合附图对本发明进一步说明:Below in conjunction with accompanying drawing, the present invention is further described:
图1为本发明的流程图;Fig. 1 is a flowchart of the present invention;
图2为本发明的技术原理图。Fig. 2 is a technical schematic diagram of the present invention.
具体实施方式detailed description
本发明的实施方式有多种,这里将基于KVM虚拟化实现方式为例说明其中一种实现方法,如图1、2所示,具体实施过程如下:There are multiple implementations of the present invention, here will be based on the KVM virtualization implementation as an example to illustrate one of the implementation methods, as shown in Figures 1 and 2, the specific implementation process is as follows:
1、在后台配置文件设置SSD路径1. Set the SSD path in the background configuration file
#SSDPATH=/sdb/ssdcache/#SSDPATH=/sdb/ssdcache/
2、通过云平台管理端创建虚拟机2. Create a virtual machine through the cloud platform management terminal
3、后台读取配置文件SSD路径3. Read the configuration file SSD path in the background
4、检查创建虚拟机镜像cache是否存在指定SSD目录,若存在,执行步骤6,否则顺序执行4. Check whether the specified SSD directory exists in the created virtual machine image cache. If it exists, perform step 6, otherwise execute in sequence
5、将镜像cache拷贝到指定SSD5. Copy the image cache to the specified SSD
6、根据镜像cahce路径创建虚拟机6. Create a virtual machine according to the image cahce path
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510856229.XA CN105487898A (en) | 2015-11-27 | 2015-11-27 | A method of increasing the speed of batch startup and shutdown of virtual machines |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510856229.XA CN105487898A (en) | 2015-11-27 | 2015-11-27 | A method of increasing the speed of batch startup and shutdown of virtual machines |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105487898A true CN105487898A (en) | 2016-04-13 |
Family
ID=55674894
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510856229.XA Pending CN105487898A (en) | 2015-11-27 | 2015-11-27 | A method of increasing the speed of batch startup and shutdown of virtual machines |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105487898A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018094649A1 (en) * | 2016-11-24 | 2018-05-31 | 华为技术有限公司 | Method for acquiring data during startup of virtual machine, and cloud computing system |
CN109246198A (en) * | 2018-08-16 | 2019-01-18 | 杭州数梦工场科技有限公司 | A kind of cloud host-initiated control method and system based on distributed storage cluster |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102239480A (en) * | 2008-12-17 | 2011-11-09 | Lsi公司 | Storage system snapshot assisted by ssd technology |
US20110302400A1 (en) * | 2010-06-07 | 2011-12-08 | Maino Fabio R | Secure virtual machine bootstrap in untrusted cloud infrastructures |
CN103714014A (en) * | 2013-11-18 | 2014-04-09 | 华为技术有限公司 | Cached data processing method |
CN103927215A (en) * | 2013-12-17 | 2014-07-16 | 哈尔滨安天科技股份有限公司 | kvm virtual machine scheduling optimization method and system based on memory disk and SSD disk |
US20140279900A1 (en) * | 2013-03-15 | 2014-09-18 | Amazon Technologies, Inc. | Place snapshots |
-
2015
- 2015-11-27 CN CN201510856229.XA patent/CN105487898A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102239480A (en) * | 2008-12-17 | 2011-11-09 | Lsi公司 | Storage system snapshot assisted by ssd technology |
US20110302400A1 (en) * | 2010-06-07 | 2011-12-08 | Maino Fabio R | Secure virtual machine bootstrap in untrusted cloud infrastructures |
US20140279900A1 (en) * | 2013-03-15 | 2014-09-18 | Amazon Technologies, Inc. | Place snapshots |
CN103714014A (en) * | 2013-11-18 | 2014-04-09 | 华为技术有限公司 | Cached data processing method |
CN103927215A (en) * | 2013-12-17 | 2014-07-16 | 哈尔滨安天科技股份有限公司 | kvm virtual machine scheduling optimization method and system based on memory disk and SSD disk |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018094649A1 (en) * | 2016-11-24 | 2018-05-31 | 华为技术有限公司 | Method for acquiring data during startup of virtual machine, and cloud computing system |
CN109246198A (en) * | 2018-08-16 | 2019-01-18 | 杭州数梦工场科技有限公司 | A kind of cloud host-initiated control method and system based on distributed storage cluster |
CN109246198B (en) * | 2018-08-16 | 2022-01-07 | 杭州数梦工场科技有限公司 | Cloud host startup control method and system based on distributed storage cluster |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI625674B (en) | Systems and methods for nvme controller virtualization to support multiple virtual machines running on a host | |
US9501245B2 (en) | Systems and methods for NVMe controller virtualization to support multiple virtual machines running on a host | |
US8996468B1 (en) | Block status mapping system for reducing virtual machine backup storage | |
US8407438B1 (en) | Systems and methods for managing virtual storage disk data | |
US9104469B2 (en) | Suspend-resume of virtual machines using de-duplication | |
EP3008600B1 (en) | Virtual machine backup from storage snapshot | |
US9430268B2 (en) | Systems and methods for supporting migration of virtual machines accessing remote storage devices over network via NVMe controllers | |
US9740439B2 (en) | Solid-state storage management | |
US20130205106A1 (en) | Mapping guest pages to disk blocks to improve virtual machine management processes | |
TWI696188B (en) | Hybrid memory system | |
US8578064B2 (en) | Interception and management of I/O operations on portable storage devices | |
WO2013152660A1 (en) | Operating system startup acceleration method and device, terminal and computer storage medium | |
US9032414B1 (en) | Systems and methods for managing system resources allocated for backup validation | |
US9940152B2 (en) | Methods and systems for integrating a volume shadow copy service (VSS) requester and/or a VSS provider with virtual volumes (VVOLS) | |
WO2017157145A1 (en) | Data pre-fetching method and device | |
CN205986931U (en) | Switch based on NVMeSSD | |
WO2024021480A1 (en) | Method and apparatus for dynamic migration of virtual machine, and electronic device | |
CN105487898A (en) | A method of increasing the speed of batch startup and shutdown of virtual machines | |
CN106933653A (en) | A kind of data file storage method of virtual machine, device and KVM virtual machines | |
US10983818B2 (en) | Method and system for preventing execution of a dirty virtual machine on an undesirable host server in a virtualization cluster environment | |
US11169708B1 (en) | Zero memory buffer copying in a reliable distributed computing system | |
US11606104B1 (en) | Data integrity protection | |
US11593020B2 (en) | Consistent entity tags with multiple protocol data access | |
CN105353985A (en) | A method to improve the reading speed of virtual machine temporary files | |
US10712952B1 (en) | Metadata caches in a reliable distributed computing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20160413 |