CN105487898A - 一种提高虚拟机批量开机关机速度的方法 - Google Patents

一种提高虚拟机批量开机关机速度的方法 Download PDF

Info

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
virtual machine
ssd
path
mirror image
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
Application number
CN201510856229.XA
Other languages
English (en)
Inventor
刘勇彬
杨松
季统凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201510856229.XA priority Critical patent/CN105487898A/zh
Publication of CN105487898A publication Critical patent/CN105487898A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors

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

本发明涉及云计算管理领域,特别是指一种提高虚拟机批量开机关机速度的方法。本发明首先在后台配置文件设置SSD路径;其次通过云平台管理端创建虚拟机;接着后台读取配置文件SSD路径;检查创建虚拟机镜像cache是否存在指定SSD目录,若不存在,则将镜像cache拷贝到指定SSD;最后根据镜像cahce路径创建虚拟机。本发明的方法节约成本,通过镜像快照技术,只需要镜像cache部分硬盘采用SSD,其他采用一般存储,大大节省存储成本;提高了计算资源使用率,不会因为存储的瓶颈而降低单台物理服务器所能支持的虚拟机数量;可以用于提高虚拟机批量开机关机速度。

Description

一种提高虚拟机批量开机关机速度的方法
技术领域
本发明涉及云计算管理领域,特别是指一种提高虚拟机批量开机关机速度的方法。
背景技术
在云计算环境下,计算机的CPU、内存和显卡等主要配件的性能都提升得很快,现在一台高性能服务器上能支持创建的虚拟机越来越多,而与之相对应的磁盘***性能正越来越严重地成为整个***性能提升的瓶颈,这就导致虚拟机批量开机关机速度越来越慢,针对这个情况一般采用以下方式:
1、硬盘采用SSD,直接提高IO读写速度,以满足批量操作要求。
2、降低单台物理服务器虚拟机数量,牺牲资源来提升性能。
3、采用高端的存储设备,提高基础硬件IO。
上述方法存在以下弊端:
1、降低物理服务器虚拟机数量,导致物理服务CPU、内存严重浪费;
2、SSD及高端的存储设备对于成本是一种明显的浪费。
发明内容
本发明解决的技术问题在于提供一种提高虚拟机批量开机关机速度的方法,解决传统方法存在的不足,节约成本,充分利用计算资源,为提高虚拟机批量开机关机速度提供一种可行的解决方案。
本发明解决上述技术问题的技术方案是:
所述的方法包括如下步骤:
步骤1:在后台配置文件设置SSD路径;
步骤2:通过云平台管理端创建虚拟机;
步骤3:后台读取配置文件SSD路径;
步骤4:检查创建虚拟机镜像cache是否存在指定SSD目录,若存在,执行步骤6,否则顺序执行;
步骤5:将镜像cache拷贝到指定SSD;
步骤6:根据镜像cahce路径创建虚拟机。
所述的后台配置文件,是指专门存放一些程序专用配置项的文件;
所述的配置项,一般是程序常用到的路径、用户名、密码、邮箱等;
所述的SSD是固态硬盘(SolidStateDrives),简称固盘,用固态电子存储芯片阵列而制成的硬盘。
所述的读取配置文件,是通过程序读取SSD路径,作为后面的校验使用。
所述的镜像cache,是指虚拟机镜像文件,主要包含Windows、linux两种镜像。
本发明的方法节约成本,通过镜像快照技术,只需要镜像cache部分硬盘采用SSD,其他采用一般存储,大大节省存储成本,一台物理服务器顶多花费几百块钱的成本;提高了计算资源使用率,不会因为存储的瓶颈而降低单台物理服务器所能支持的虚拟机数量.
附图说明
下面结合附图对本发明进一步说明:
图1为本发明的流程图;
图2为本发明的技术原理图。
具体实施方式
本发明的实施方式有多种,这里将基于KVM虚拟化实现方式为例说明其中一种实现方法,如图1、2所示,具体实施过程如下:
1、在后台配置文件设置SSD路径
#SSDPATH=/sdb/ssdcache/
2、通过云平台管理端创建虚拟机
3、后台读取配置文件SSD路径
4、检查创建虚拟机镜像cache是否存在指定SSD目录,若存在,执行步骤6,否则顺序执行
5、将镜像cache拷贝到指定SSD
6、根据镜像cahce路径创建虚拟机

Claims (5)

1.一种提高虚拟机批量开机关机速度的方法,其特征在于:所述的方法包括如下步骤:
步骤1:在后台配置文件设置SSD路径;
步骤2:通过云平台管理端创建虚拟机;
步骤3:后台读取配置文件SSD路径;
步骤4:检查创建虚拟机镜像cache是否存在指定SSD目录,若存在,执行步骤6,否则顺序执行;
步骤5:将镜像cache拷贝到指定SSD;
步骤6:根据镜像cahce路径创建虚拟机。
2.根据权利要求1所述的提高虚拟机批量开机关机速度的方法,其特征在于:所述的后台配置文件,是指专门存放一些程序专用配置项的文件;
所述的配置项,一般是程序常用到的路径、用户名、密码、邮箱等;
所述的SSD是固态硬盘(SolidStateDrives),简称固盘,用固态电子存储芯片阵列而制成的硬盘。
3.根据权利要求1所述的提高虚拟机批量开机关机速度的方法,其特征在于:所述的读取配置文件,是通过程序读取SSD路径,作为后面的校验使用。
4.根据权利要求2所述的提高虚拟机批量开机关机速度的方法,其特征在于:所述的读取配置文件,是通过程序读取SSD路径,作为后面的校验使用。
5.根据权利要求1至4任一项所述的提高虚拟机批量开机关机速度的方法,其特征在于:所述的镜像cache,是指虚拟机镜像文件,主要包含Windows、linux两种镜像。
CN201510856229.XA 2015-11-27 2015-11-27 一种提高虚拟机批量开机关机速度的方法 Pending CN105487898A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510856229.XA CN105487898A (zh) 2015-11-27 2015-11-27 一种提高虚拟机批量开机关机速度的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510856229.XA CN105487898A (zh) 2015-11-27 2015-11-27 一种提高虚拟机批量开机关机速度的方法

Publications (1)

Publication Number Publication Date
CN105487898A true CN105487898A (zh) 2016-04-13

Family

ID=55674894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510856229.XA Pending CN105487898A (zh) 2015-11-27 2015-11-27 一种提高虚拟机批量开机关机速度的方法

Country Status (1)

Country Link
CN (1) CN105487898A (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018094649A1 (zh) * 2016-11-24 2018-05-31 华为技术有限公司 一种虚拟机启动过程中的数据获取方法和云计算***
CN109246198A (zh) * 2018-08-16 2019-01-18 杭州数梦工场科技有限公司 一种基于分布式存储集群的云主机启动控制方法和***

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102239480A (zh) * 2008-12-17 2011-11-09 Lsi公司 Ssd技术协助的存储***快照
US20110302400A1 (en) * 2010-06-07 2011-12-08 Maino Fabio R Secure virtual machine bootstrap in untrusted cloud infrastructures
CN103714014A (zh) * 2013-11-18 2014-04-09 华为技术有限公司 处理缓存数据的方法
CN103927215A (zh) * 2013-12-17 2014-07-16 哈尔滨安天科技股份有限公司 基于内存盘与SSD硬盘的kvm虚拟机调度的优化方法及***
US20140279900A1 (en) * 2013-03-15 2014-09-18 Amazon Technologies, Inc. Place snapshots

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102239480A (zh) * 2008-12-17 2011-11-09 Lsi公司 Ssd技术协助的存储***快照
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 (zh) * 2013-11-18 2014-04-09 华为技术有限公司 处理缓存数据的方法
CN103927215A (zh) * 2013-12-17 2014-07-16 哈尔滨安天科技股份有限公司 基于内存盘与SSD硬盘的kvm虚拟机调度的优化方法及***

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018094649A1 (zh) * 2016-11-24 2018-05-31 华为技术有限公司 一种虚拟机启动过程中的数据获取方法和云计算***
CN109246198A (zh) * 2018-08-16 2019-01-18 杭州数梦工场科技有限公司 一种基于分布式存储集群的云主机启动控制方法和***
CN109246198B (zh) * 2018-08-16 2022-01-07 杭州数梦工场科技有限公司 一种基于分布式存储集群的云主机启动控制方法和***

Similar Documents

Publication Publication Date Title
Zhang et al. {FlashShare}: Punching Through Server Storage Stack from Kernel to Firmware for {Ultra-Low} Latency {SSDs}
EP3920034B1 (en) Systems and methods for scalable and coherent memory devices
Oh et al. SQLite optimization with phase change memory for mobile applications
CN109791471B (zh) 虚拟化***装置处的非易失性存储装置
US11868324B2 (en) Remote durable logging for journaling file systems
US9672245B2 (en) Memory storage apparatus, method of supporting transaction function for database, and memory system
US9658925B1 (en) Systems and methods for restoring application data
CN102541984B (zh) 一种分布式文件***客户端的文件***的实现方法
CN103856567A (zh) 基于Hadoop分布式文件***的小文件存储方法
US9910881B1 (en) Maintaining versions of control plane data for a network-based service control plane
CN103020257A (zh) 数据操作的实现方法和装置
US20100042753A1 (en) Interception and management of i/o operations on portable storage devices
US11237761B2 (en) Management of multiple physical function nonvolatile memory devices
CN110928935A (zh) 数据的访问命令处理方法、装置和***
US20220358106A1 (en) Proxy-based database scaling
US10049122B1 (en) Cluster file system comprising multiple burst buffers each including virtual file system and metadata server components
US20110106815A1 (en) Method and Apparatus for Selectively Re-Indexing a File System
CN105487898A (zh) 一种提高虚拟机批量开机关机速度的方法
US8990168B1 (en) Efficient conflict resolution among stateless processes
US11341159B2 (en) In-stream data load in a replication environment
US11132351B2 (en) Executing transactions based on success or failure of the transactions
CN103795806A (zh) 一种面向移动终端的云存储实现方法
CN104298619A (zh) 基于Ramdisk和固态硬盘的高速二级存储***及数据存取方法
US8688643B1 (en) Systems and methods for adaptively preferring mirrors for read operations
WO2023201648A1 (zh) 文件的操作装置、计算机设备和操作设备

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

Application publication date: 20160413

RJ01 Rejection of invention patent application after publication