WO2015014117A1 - Cloud server and virtual machine management method thereof - Google Patents

Cloud server and virtual machine management method thereof Download PDF

Info

Publication number
WO2015014117A1
WO2015014117A1 PCT/CN2014/072058 CN2014072058W WO2015014117A1 WO 2015014117 A1 WO2015014117 A1 WO 2015014117A1 CN 2014072058 W CN2014072058 W CN 2014072058W WO 2015014117 A1 WO2015014117 A1 WO 2015014117A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual machine
data storage
disk
preset
remaining
Prior art date
Application number
PCT/CN2014/072058
Other languages
French (fr)
Chinese (zh)
Inventor
李新笼
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015014117A1 publication Critical patent/WO2015014117A1/en

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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • 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
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Definitions

  • the present invention relates to the field of virtual machine technologies, and in particular, to a virtual machine management method, and to a cloud server using the virtual machine management method. Background technique
  • the virtualization technology in the cloud server generally sets the virtual machine according to the virtual machine template for service, and the process includes specifying the storage location of the virtual machine disk (VMDK), the setting and the virtual machine template.
  • VMDK virtual machine disk
  • the virtual machine with the same specifications, operating system, application, etc., is then distributed to the cluster or server for service.
  • the prior art first creates a virtual machine, and installs an operating system and application software on the virtual machine as a virtual machine template for pre-setting.
  • a virtual machine template When a virtual machine needs to be distributed, the user selects a virtual machine template, specifies which server or cluster the virtual machine runs on, virtual machine specification information, and which data storage the virtual machine disk is stored in.
  • the virtual machine needs to set the installation and virtual machine template. The same operating system and the same application.
  • the process of setting the operating system and application of the virtual machine takes a long time. For example, the process of issuing a WIN7 operating system takes a few minutes to more than ten minutes from the start to the release process.
  • the speed of the virtual machine is one of the important performance indicators of the cloud server. The speed of the delivery directly affects the user experience of the cloud server. Therefore, the way to distribute virtual machines is far from the requirement and affects the efficiency of the cloud server. And performance. Summary of the invention
  • the embodiment of the present invention provides a cloud server and a virtual machine management method thereof, to solve the problem that the manner in which the virtual machine is distributed in the prior art affects the working efficiency and performance of the cloud server. Problems.
  • a first aspect of the embodiments of the present invention provides a virtual machine management method, including: pre-setting a virtual machine disk according to a virtual machine template, and storing the virtual machine disk on a predetermined data storage carrier; The virtual machine disk is mounted to an instant-created virtual machine.
  • the pre-setting a virtual machine disk according to the virtual machine template includes: pre-in the cloud according to attribute information of the storage resource occupied by the specified virtual machine in the virtual machine template The virtual machine disk is created on the server's storage device.
  • the attribute information of the storage resource occupied by the specified virtual machine in the virtual machine template includes any one or a combination of the following: The storage capacity information of the virtual machine, the storage capacity information occupied by the operating system of the virtual machine, or the storage capacity information occupied by the application loaded by the virtual machine.
  • the virtual machine management method further includes: detecting the The real-time quantity of the virtual machine disk is determined. The determining whether the real-time quantity is less than a preset threshold; when determining that the real-time quantity is less than the preset threshold, performing the step of pre-setting a virtual machine disk according to the virtual machine template.
  • the step of detecting the real-time quantity of the virtual machine disk in the data storage carrier further includes: obtaining the The number of issued virtual machines corresponding to the virtual machine template issued by the data storage carrier within a preset time; and the preset threshold is set according to the issued quantity.
  • the method before the virtual machine disk is preset according to the virtual machine template, the method further includes: determining, by using the remaining storage space of the data storage carrier Whether the remaining value of the space is smaller than the preset first remaining threshold; when it is determined that the remaining value of the space is not less than the first remaining threshold, the step of presetting the virtual machine disk according to the virtual machine template is performed.
  • the method further includes: determining whether the spatial residual value is The second remaining threshold value is greater than the second remaining threshold value, wherein the first remaining threshold value is greater than the second remaining threshold value; Deleting at least one of the pre-set virtual machine disks.
  • the step of creating the virtual machine specifically includes: when the virtual machine needs to be issued, acquiring the input specified data storage carrier and the specified specification parameter; searching for the corresponding data storage carrier according to the specified data storage carrier, and according to the specified specification parameter Searching for a corresponding virtual machine disk in the corresponding data storage carrier; acquiring an instant-created virtual machine, and mounting the corresponding virtual machine disk to the virtual machine.
  • a second aspect of the embodiments of the present invention provides a cloud server, where the cloud server includes a preset module and a distribution module.
  • the pre-setting module is configured to preset a virtual machine disk according to a virtual machine template, and store the virtual machine disk on a predetermined data storage carrier;
  • the issuing module is configured to mount the virtual machine disk to an instant when the virtual machine needs to be issued Created on a virtual machine.
  • the preset module is specifically configured to be created in advance on a storage device of the cloud server according to the attribute information of the storage resource occupied by the virtual machine specified in the virtual machine template.
  • the virtual machine disk is specifically configured to be created in advance on a storage device of the cloud server according to the attribute information of the storage resource occupied by the virtual machine specified in the virtual machine template.
  • the attribute information of the storage resource occupied by the specified virtual machine in the virtual machine template includes any one or a combination of the following: The storage capacity information of the virtual machine, the storage capacity information occupied by the operating system of the virtual machine, or the storage capacity information occupied by the application loaded by the virtual machine.
  • the cloud server further includes a detection module, a first determination module, and an execution module.
  • the detecting module is configured to detect a real-time quantity of the virtual machine disk in the data storage carrier;
  • the first determining module is configured to determine whether the real-time quantity detected by the detecting module is less than a preset threshold;
  • the executing module is configured to notify the preset module to preset a virtual machine disk according to the virtual machine template when the first determining module determines that the real-time quantity is less than the preset threshold.
  • the cloud server further includes an obtaining module and a setting module.
  • the obtaining module is configured to acquire, according to the virtual machine template, the number of the virtual machines that are issued by the data storage carrier in a preset time; the setting module is configured to use the Quantity setting Set the preset threshold.
  • the first determining module is further configured to determine whether a spatial residual value of the remaining storage space of the data storage carrier is less than a preset The first remaining threshold.
  • the execution module is specifically configured to: when the first determining module determines that the remaining value of the space is not less than the first remaining threshold, notify the preset module to preset a virtual machine disk according to the virtual machine template.
  • the cloud server further includes a second determining module and a processing module.
  • the second determining module is configured to determine, after the first determining module determines that the spatial residual value is less than the first remaining threshold, whether the spatial residual value is less than a preset second remaining threshold, The first remaining threshold is greater than the second remaining threshold.
  • the processing module is configured to delete at least one of the pre-set virtual machine disks when the second determining module determines that the space residual value is less than the second remaining threshold.
  • the issuing module specifically includes an obtaining unit, a searching unit, and a mounting unit.
  • the obtaining unit is configured to: when the virtual machine needs to be issued, obtain the input specified data storage carrier and the specified specification parameter;
  • the searching unit is configured to search for the corresponding data according to the specified data storage carrier acquired by the acquiring unit a storage carrier, and searching for a corresponding virtual machine disk in the corresponding data storage carrier according to the specified specification parameter acquired by the acquiring unit;
  • the mounting unit is configured to acquire an instant created virtual machine, and The corresponding virtual machine disk found by the searching unit is mounted on the virtual machine.
  • the embodiment of the present invention pre-sets the virtual machine disk before the virtual machine needs to be distributed, and then creates the virtual machine and mounts it to the pre-set virtual machine disk and immediately issues the virtual machine when the virtual machine needs to be distributed.
  • the pre-set way increases the speed at which virtual machines are released.
  • the embodiment of the present invention effectively solves the problem that the virtual machine disk is set up when the virtual machine needs to be distributed in the prior art, and the process of setting the virtual machine disk requires a large amount of time, which may result in the failure to timely issue the virtual machine.
  • the virtual machine disk is the same as the virtual machine template in the embodiment of the present invention, so as to avoid setting the virtual machine when the virtual machine is issued, thereby effectively increasing the speed of issuing the virtual machine and ensuring the working efficiency and working performance of the cloud server. Improve the user experience.
  • FIG. 1A is a schematic flowchart of a first embodiment of a virtual machine management method according to the present invention
  • FIG. 1B is a schematic diagram of an implementation process of the virtual machine management method shown in FIG. 1A;
  • FIG. 2 is a schematic flowchart of a second embodiment of a virtual machine management method according to the present invention.
  • FIG. 3 is a schematic flowchart of a third embodiment of a virtual machine management method according to the present invention.
  • FIG. 4 is a schematic block diagram of a first embodiment of a cloud server according to the present invention.
  • FIG. 5 is a schematic block diagram of a second embodiment of a cloud server according to the present invention.
  • FIG. 6 is a partial block diagram of the cloud server shown in FIG. 5;
  • FIG. 7 is a schematic diagram of a specific implementation manner of a distribution module of the cloud server shown in FIG. 5; and FIG. 8 is a schematic diagram of a module of a third embodiment of the cloud server according to the present invention.
  • Step S100 Pre-set a virtual machine disk according to the virtual machine template, and store it on a predetermined data storage carrier.
  • the embodiment may specifically set a virtual machine disk according to attribute information of a storage resource occupied by the specified virtual machine in the virtual machine template, such as a virtual machine storage capacity specification. That is, the disk with the same storage capacity of the virtual machine in the virtual machine template is occupied in the resource pool in advance.
  • the preset virtual machine disk may be consistent with the storage capacity specification of the virtual machine template, and may further consider the storage capacity information occupied by the operating system and/or application specified (or loaded) in the virtual machine template.
  • the storage capacity information may also be randomly or periodically changed according to actual conditions, such as according to data storage.
  • the storage capacity information of the virtual machine disk and the like are intelligently adjusted, such as the size of the actual remaining storage space of the carrier, which is not limited herein.
  • the data storage carrier of the present embodiment is a storage space for storing virtual machine disks, which may be one or more. Further, different data storage carriers may separately store different virtual machine templates.
  • the obtained virtual machine disk may also store only the virtual machine disks pre-set by one type of virtual machine template in the same data storage carrier, and the specific settings may be different according to service conditions and work efficiency, and are not limited herein.
  • the virtual machine disk preset in this embodiment may be stored in the same data storage carrier as the virtual machine template (which may improve the efficiency of the preset process), or may be stored on a data storage carrier such as a local storage device of the cloud server (FIG. 1B).
  • the data storage carrier may be an external storage device, such as an IP SAN (IP-Storage Area Network), and an FC SAN. (Fibre Channel-Storage Area Network, Fibre Channel storage station i or network), NAS (Network Attached Storage), etc., are not limited herein.
  • IP SAN IP-Storage Area Network
  • FC SAN Fibre Channel-Storage Area Network
  • Fibre Channel storage station i or network Fibre Channel storage station i or network
  • NAS Network Attached Storage
  • the virtual machine template can be used as a template by using other virtual machines that have been used or serviced, or can be manually installed in advance.
  • This embodiment describes a manual installation as an example: Create a virtual machine, specify the number of CPU cores, memory size, storage capacity, etc. of the virtual machine. After the creation, save the above information of the virtual machine and the virtual machine disk in the data storage carrier; The virtual machine installs the operating system and application software and stores it on the virtual machine disk, such as the WEB service and the database. After completing the above installation and installation process, it can be used as a subsequent preset virtual machine template according to the user's operation or intelligent judgment. .
  • Step S101 When the virtual machine needs to be distributed, the virtual machine disk is mounted on the virtual machine that is created immediately.
  • step S101 the present embodiment may determine whether "the virtual machine needs to be issued” by using the interrupt request, or according to the service load condition of the cluster or the server, and when receiving the interrupt request or determining that the virtual machine needs to be issued,
  • the virtual machine is created on the storage device of the cloud server, and the virtual machine disk that is set in step S100 is directly mounted to the virtual machine disk. Instantly created on a virtual machine.
  • the virtual machine that is released immediately can be distributed to the corresponding overloaded cluster or server for service according to the load of the cluster and the server, or can be distributed to the corresponding cluster and server for service according to the operation of the user.
  • processes such as associating networks are also included, and are not described in detail within the scope of those skilled in the art.
  • the virtual machine management method of the present embodiment can also perform instant setting (online setting) if there is no virtual machine disk set in advance in one or more data storage carriers when the virtual machine needs to be issued, so as to avoid virtuality that is not available immediately.
  • instant setting online setting
  • the machine creates unnecessary troubles, and thus ensures that the virtual machine for service can be issued.
  • the present invention effectively solves the problem that in the prior art, when a virtual machine needs to be distributed, the virtual machine disk is set, and the process of setting the virtual machine disk requires a large amount of time, which may result in failure to timely issue the virtual machine.
  • the invention improves the speed of issuing virtual machines, ensures work efficiency and work performance, and improves the user experience.
  • step S200 a real-time quantity of a virtual machine disk in a data storage carrier is detected.
  • the virtual machine management method of the embodiment needs to execute step S200 before performing the virtual disk of the virtual machine.
  • a certain number of pre-configured virtual machine disks may already exist in a given data storage carrier or in all available data storage carriers, the number of which may have reached and/or exceeded a certain range, or It may affect the working status and quality of service of the virtual machine being served due to the excessive number. It may also reduce the performance of the system due to unlimited presets.
  • preset An excessive number of virtual machine disks may also result in wasted storage space of the data storage carrier. Therefore, in this embodiment, the real-time quantity of the virtual machine disks in one or more data storage carriers is detected by step S200 to be controlled according to the real-time quantity. , Switch to use the smart preset mode.
  • Step S201 Determine whether the real-time quantity is less than a preset threshold. When it is determined that the real-time quantity is less than (ie, "Yes") the preset threshold, step S202 is performed, and when it is determined that the real-time quantity is not less than (ie, "No") the preset threshold, step S203 is awaited.
  • the preset threshold may be set before step S200.
  • the specific process may include: acquiring the number of virtual machines corresponding to the virtual machine template issued by the data storage carrier within a preset time; and setting a preset threshold according to the number of issuances. It is not difficult to see that in this embodiment, by setting a preset threshold value by acquiring the number of issuances in a preset time, the dynamic balance of the number of virtual machine disks in the data storage carrier can be realized, thereby ensuring that the preset time is always maintained. A virtual machine disk with a preset threshold is waiting for the process of mounting and issuing.
  • the preset threshold can also be manually set, for example, according to the actual work and service needs, and is not limited herein.
  • the preset mode can be automatically switched to be performed through the human interface interface or other intelligent modes (ie, step S200 is automatically executed).
  • Step S202 pre-setting a virtual machine disk according to the virtual machine template, and storing the virtual machine disk on a predetermined data storage carrier.
  • Step S203 When the virtual machine needs to be distributed, the virtual machine disk is mounted on the virtual machine that is created immediately.
  • Steps S202 and S203 of the present embodiment may refer to the descriptions of the foregoing embodiment with respect to step S100 and step S101, respectively, and are not described in detail within the scope of those skilled in the art.
  • FIG. 3 is a schematic flowchart of a third embodiment of the virtual machine management method according to the present invention.
  • the virtual machine management method of the present embodiment includes but is not limited to the following steps.
  • Step S300 detecting the real-time quantity of the virtual machine disks in the data storage carrier.
  • a certain number of pre-set virtual machine disks may already exist in a specified data storage carrier or in all available data storage carriers, and the number may have reached and/or exceeded a certain range. Or it may affect the working status and quality of service of the virtual machine being served due to too many numbers, or it may be lowered due to unlimited presets. The operating performance of the system is low.
  • pre-setting a large number of virtual machine disks may also waste the storage space of the data storage carrier. Therefore, the embodiment detects the virtual machines in one or more data storage carriers by step S300. The real-time number of disks to implement an intelligent pre-set mode.
  • Step S301 Determine whether the real-time quantity is less than a preset threshold. In the judgment that the real-time quantity is less than
  • step S302 When the preset threshold is exceeded, step S302 is performed, and when it is determined that the real-time number is not less than (i.e., "No") the preset threshold, step S306 is awaited.
  • the preset threshold can be set by: obtaining the number of virtual machines issued by the data storage carrier corresponding to the virtual machine template within a preset time; and setting the preset threshold according to the number of issuances. It is not difficult to see that by setting the preset threshold value by obtaining the number of releases in the preset time, the dynamic balance of the number of virtual machine disks in the data storage carrier can be realized.
  • the preset threshold can also be manually set, for example, according to actual work and service requirements, and is not limited herein.
  • Step S302 Determine whether the spatial residual value is less than a preset first remaining threshold. When it is determined that the remaining value of the space is not less than (ie, "No") the first remaining threshold, step S305 is performed, and when it is determined that the remaining value of the space is less than (ie, "Yes") the first remaining threshold, step S303 is performed. In other embodiments, the subsequent steps S303 and S304 may be omitted, and when it is determined that the spatial residual value is less than (ie, "Yes") the first remaining threshold, the process directly waits for step S306, and the embodiment only The detailed description of the various embodiments is not intended to limit the scope of the embodiments.
  • step S302 in order to ensure the performance and service performance of the data storage carrier and the mounted virtual machine, etc., it is necessary to ensure an input/output port (ie, an I/O port) between the data storage carrier and the virtual machine.
  • an input/output port ie, an I/O port
  • the spatial residual value of the present embodiment may be the remaining storage space of one data storage carrier or the total storage space of multiple data storage carriers, for example, when the virtual machine disk needs to be preset to the data storage carrier A.
  • the virtual disk of the virtual machine is stopped to the data storage carrier A, and the remaining space of the remaining storage space of the data storage carrier B is not If it is smaller than the first remaining threshold, the virtual machine disk can be pre-set to the data storage carrier in the preset process.
  • Step S303 Determine whether the remaining value of the space is smaller than a preset second remaining threshold. When it is determined that the spatial residual value is less than (ie, "Yes") the second remaining threshold, step S304 is performed, and when it is determined that the spatial residual value is not less than (ie, "No") the second remaining threshold, step S306 is awaited Wherein the first remaining threshold is greater than (or greater than or equal to) the second remaining threshold.
  • Step S304 deleting at least one preset virtual machine disk.
  • the present embodiment passes the step S303. In real time, it is determined whether the remaining value of the space remains in the state of being in a dynamic balance near the second remaining threshold, thereby avoiding the above problem and simultaneously cleaning out the redundant pre-set virtual machine disk.
  • step S304 the virtual machine disk that has not been mounted for a certain period of time (such as one week, two weeks, or one month) may be cleared in time, such as a certain CPU core, memory size, Specifications such as storage capacity cannot be used for mounting services; of course, it can also be based on whether a certain type of virtual machine template is mounted at a low frequency, and it is judged that the spatial residual value is smaller than the preset second remaining wide.
  • the virtual machine disk preset by this type of virtual machine template is deleted.
  • the present embodiment can be cleaned up in step S304, so that a limited data storage carrier can be effectively used, and problems caused by a large number of virtual machine disks being set due to errors, poisoning, and the like can be prevented.
  • Step S305 pre-setting the virtual machine disk according to the virtual machine template, and storing it on a predetermined data storage carrier.
  • the virtual machine disk may be preset according to the attribute information of the storage resource occupied by the specified virtual machine in the virtual machine template, such as the virtual machine storage capacity specification. That is, the disk with the same storage capacity of the virtual machine in the virtual machine template is occupied in the resource pool in advance.
  • the preset virtual machine disk may be consistent with the storage capacity specification of the virtual machine template, and may further consider storage capacity information occupied by an operating system and/or an application specified (or loaded) in the virtual machine template.
  • the storage capacity information may be randomly or periodically changed according to actual conditions, for example, intelligently adjusting the storage capacity information of the virtual machine disk according to the actual remaining storage space of the data storage carrier, This is not limited here.
  • the data storage carrier of the present embodiment is a storage space for storing virtual machine disks, which may be one or more. Further, different data storage carriers may separately store different virtual machine templates.
  • the obtained virtual machine disk may also store only the virtual machine disks pre-set by one type of virtual machine template in the same data storage carrier, and the specific settings may be different according to service conditions and work efficiency, and are not limited herein.
  • the virtual machine disk preset in this embodiment may be stored in the same data storage carrier as the virtual machine template (which may improve the efficiency of the preset process), or may be stored on a data storage carrier such as a storage device local to the cloud server; In other embodiments, the data storage carrier may also be an external storage device, which is not limited herein.
  • Step S306 When the virtual machine needs to be issued, the virtual machine disk is mounted on the virtual machine that is created immediately.
  • the present embodiment may determine whether it is "need to issue a virtual machine" according to the service request of the cluster or the server, and when receiving the interrupt request or determining that the virtual machine needs to be issued, Then create a virtual machine (you do not need to create a virtual machine disk on the storage device of the cloud server according to the attribute information of the storage resource occupied by the virtual machine specified in the virtual machine template), and then directly mount the virtual machine disk obtained in step S305. Loaded on a virtual machine created on the fly.
  • the time required to set the virtual machine is specifically related to the storage capacity of the virtual machine disk, the type of the application and the operating system:
  • the storage capacity of the virtual machine disk is larger. The more complex the type of application or operating system, the longer it takes, and the slower the virtual machine is issued. It is not difficult to see that this implementation
  • the pre-set process is advanced in advance, and can be issued immediately when it needs to be issued. It should be pointed out that the "pre-set process" is performed in advance in the present embodiment. It is also possible to receive an "interrupt request" or a service according to the cluster or server in the process of pre-setting. According to the load situation, it is determined that the virtual machine needs to be issued. At this time, the virtual machine disk that is being set can be mounted with the created virtual machine after completing the setting process, compared with the prior art. There is still an effect of speeding up the issuance of virtual machines.
  • step S306 may include the following process:
  • S3 Obtain the virtual machine created in real time and mount the corresponding virtual machine disk to the virtual machine. It is not difficult to see from S1 to S3 that a system for services such as a cloud server is used for one or more clusters and servers for service at the same time, so users (administrators) need to specify different specifications in different data storage carriers in advance or in real time.
  • the different virtual machine disks of the parameters are used for servicing within different clusters or servers.
  • the virtual machine disk set by the required virtual machine template may be specified according to the service type of the cluster or the server, the network type, and the like.
  • This embodiment implements the "search-match" optimization process through S1 to S3, which is more conducive to the optimization of work performance and service quality.
  • the prior art creates a virtual machine when the virtual machine needs to be issued, and then the virtual machine is mounted with the virtual machine disk of the virtual machine template, and is simultaneously created in another data storage carrier for saving and modifying.
  • the differential disk of the data that is to say, the virtual machine created by the prior art is simultaneously mounted on the virtual machine disk and the differential disk of the virtual machine template, and at the same time, data connection and transmission between the two storage carriers are required. In this way, the I/O ports of the two data storage carriers need to be occupied at the same time. If too many virtual machines are mounted at the same time or the I/O port is congested, the working efficiency and service of the issued virtual machines will be seriously affected. performance.
  • the virtual machine disk is pre-configured, and when the virtual machine disk is mounted on the virtual machine, the virtual machine only connects with the pre-set virtual machine disk to implement data connection and transmission, thereby ensuring the issuance. After the virtual machine's work efficiency and service performance.
  • the invention effectively solves the problem that the virtual device starts to be set when the virtual machine needs to be distributed in the prior art.
  • the process of setting up a virtual machine disk requires a large amount of time, which may result in a technical problem that the virtual machine cannot be issued in time.
  • the present invention avoids setting up the virtual machine when the virtual machine is issued, thereby effectively increasing the speed of issuing the virtual machine. It ensures work efficiency and work performance, and improves the user experience.
  • FIG. 4 is a schematic block diagram of a first embodiment of a cloud server according to the present invention.
  • the cloud server of the present embodiment includes but is not limited to a preset module 41 and a distribution module 42.
  • the pre-setting module 41 is configured to pre-set the virtual machine disk according to the virtual machine template and store it on a predetermined data storage carrier.
  • the pre-setting module 41 of the present embodiment may specifically set a virtual machine disk according to attribute information of a storage resource occupied by the virtual machine specified in the virtual machine template, such as a virtual machine storage capacity specification. That is, the disk with the same storage capacity of the virtual machine in the virtual machine template is occupied in the resource pool in advance.
  • the pre-set virtual machine disk may be consistent with the storage capacity specification of the virtual machine template, and may further consider the storage capacity information occupied by the operating system and/or application specified (or loaded) in the virtual machine template.
  • the pre-setting module 41 may also set the storage capacity information randomly or according to a predetermined condition according to actual conditions, such as intelligently adjusting the storage of the virtual machine disk according to the size of the actual remaining storage space of the data storage carrier. Capacity information and the like are not limited herein.
  • the data storage carrier of the present embodiment is a storage space for storing virtual machine disks, which may be one or more. Further, different data storage carriers may separately store different virtual machine templates. The obtained virtual machine disk may also store only the virtual machine disks pre-set by one type of virtual machine template in the same data storage carrier, and the specific settings may be different according to service conditions and work efficiency, and are not limited herein. .
  • the virtual machine disk preset in this embodiment may be stored in the same data storage carrier as the virtual machine template (which may improve the efficiency of the preset process), or may be stored on a data storage carrier such as a storage device local to the cloud server (FIG. 1B).
  • the data storage carrier may be an external storage device, such as an IP SAN, an FC SAN, a NAS, etc., which is not limited herein.
  • the virtual machine template can use other virtual machines that have been used or used as templates, or can be manually installed in advance.
  • This embodiment describes the manual installation as an example: Create a virtual machine, specify the CPU core, memory size, storage capacity, etc. of the virtual machine. After creation, The above information of the virtual machine and the virtual machine disk are saved in the data storage carrier; the operating system and application software are installed on the created virtual machine and stored on the virtual machine disk, such as the WEB service and the database; after completing the above installation and installation process, It can be used as a follow-up virtual machine template according to the user's operation or intelligent judgment.
  • the issuance module 42 is used to mount a virtual machine disk to an instant-created virtual machine when a virtual machine needs to be issued.
  • the issuing module 42 of the present embodiment may determine whether the virtual machine needs to be issued according to the service request of the cluster or the server, and when the interrupt request is received or the virtual machine needs to be issued, the issuing module 42 first Create a virtual machine (you do not need to create a virtual machine disk on the storage device of the cloud server according to the attribute information of the storage resource occupied by the virtual machine specified in the virtual machine template), and then directly mount the virtual machine disk set by the preset module 41. Go to the virtual machine created on the fly.
  • the time required for issuing the virtual machine is specifically related to the storage capacity of the virtual machine disk, the type of the application and the operating system:
  • the storage capacity of the virtual machine disk is larger. The more complex the type of application or operating system, the longer it takes, and the slower the virtual machine is issued. It is not difficult to see that the pre-setting module 41 of the present embodiment advances the setting process, and the issuing module 42 can be issued immediately when it is required to be issued.
  • the "pre-setting process" proposed by the pre-setting module 41 of the present embodiment may also receive an "interrupt request" for issuing a virtual machine in a preset process or according to a cluster,
  • the service load of the server determines that "the virtual machine needs to be issued”.
  • the virtual machine disk that is being set in advance can be mounted with the created virtual machine after completing the setting process, compared with the prior art. This method still has the effect of speeding up the issuance of virtual machines.
  • the virtual machine that is released immediately can be distributed to the corresponding overloaded cluster or server for service according to the load of the cluster and the server, or can be distributed to the corresponding cluster and server for service according to the operation of the user.
  • processes such as associating networks are also included, and are not described in detail within the scope of those skilled in the art.
  • the pre-setting module 41 of the present embodiment can also perform instant setting (online setting) if there is no virtual machine disk set in advance in one or more data storage carriers when the virtual machine needs to be issued, so as to avoid virtuality that is not available immediately. Unnecessary trouble during the machine, and further Ensure that virtual machines for service are available.
  • the cloud server of the present invention effectively solves the problem that the virtual machine disk is set up when the virtual machine needs to be distributed in the prior art, and the process of setting the virtual machine disk requires a large amount of time, which may result in the failure to timely issue the virtual machine.
  • the present invention pre-sets the same virtual machine disk as the virtual machine template, improves the speed of issuing the virtual machine, ensures the working efficiency and working performance of the cloud server, and improves the user experience.
  • FIG. 5 is a schematic diagram of a second embodiment of a cloud server according to the present invention.
  • the cloud server of the present embodiment includes but is not limited to a preset module 51, a distribution module 52, a detection module 53, a first determining module 54, and a second The judging module 55, the processing module 56 and the executing module 57.
  • the pre-setting module 51 is configured to pre-set the virtual machine disk according to the virtual machine template and store it on a predetermined data storage carrier.
  • the issue module 52 is used to mount a virtual machine disk to an instant-created virtual machine when a virtual machine needs to be issued.
  • the detecting module 53 is configured to detect the real-time quantity of the virtual machine disks in the data storage carrier. For example, a certain number of pre-configured virtual machine disks may already exist in a given data storage carrier or in all available data storage carriers, the number of which may have reached and/or exceeded a certain range, or It may affect the working status and quality of service of the virtual machine being served due to the excessive number. It may also reduce the performance of the system due to unlimited presets. In addition, pre-setting a large number of virtual machine disks may also result in The storage space of the data storage carrier is wasted. Therefore, the present embodiment detects the real-time number of virtual machine disks in one or more data storage carriers by the detection module 53 to implement an intelligent preset mode.
  • the first determining module 54 is configured to determine whether the real-time quantity detected by the detecting module 53 is less than a preset threshold.
  • the preset threshold of the embodiment may be set according to the number of virtual machines issued by the data storage carrier within a preset time (or the frequency of issuance), thereby realizing the dynamic balance of the number of virtual machine disks in the data storage carrier. It also ensures that the virtual machine disk with the preset threshold value is always waiting to be mounted and issued within the preset time.
  • the preset threshold can also be manually set, for example, according to the actual work and service needs, and is not limited herein.
  • the executing module 57 is configured to notify the pre-setting module 51 to preset the virtual machine disk according to the virtual machine template when the first determining module 54 determines that the real-time quantity is less than the preset threshold, in the first sentence.
  • the breaking module 54 determines that the real-time number is not less than the preset threshold
  • the notification issuing module 52 mounts the virtual machine disk to the virtual machine that is created immediately when the virtual machine needs to be issued.
  • the first determining module 54 of the embodiment may be further configured to determine whether a spatial residual value of a remaining storage space of the data storage carrier is less than a preset first remaining threshold.
  • the first remaining threshold may be manually set or automatically set by the cloud server system, which is not limited herein.
  • the cloud server system which is not limited herein.
  • the storage carrier has enough remaining storage space to store redundant data generated by the mounted virtual machine, or to expand and expand the mounted virtual machine (such as expanding the number of CPU cores, expanding the memory size and storage capacity, etc.) Therefore, in the embodiment, the first determining module 54 determines whether it is necessary to preset the virtual machine disk according to the size of the spatial residual value.
  • the space residual value of the embodiment may be the remaining storage space of one data storage carrier or the total storage space of the plurality of data storage carriers, for example, when the virtual machine disk needs to be preset to the data storage carrier A, the data If the spatial residual value of the remaining storage space of the storage carrier A is smaller than the first remaining threshold, then the virtual machine disk is preset to be stopped to the data storage carrier A, and the remaining space of the remaining storage space of the data storage carrier B is not less than the first For the remaining threshold, the virtual machine disk can be pre-set to the data storage carrier B in a preset process.
  • the execution module 57 is specifically configured to notify the preset module 51 to preset the virtuality according to the virtual machine template when the first determining module 54 determines that the real-time quantity is less than the preset threshold and the spatial residual value is not less than the first remaining threshold. If the first judging module 54 determines that the real-time quantity is less than the preset threshold but the space residual value is less than the first remaining threshold, the notification issuing module 52 mounts the virtual machine disk to the instant creation when the virtual machine needs to be issued. On the virtual machine, when the first determining module 54 determines that the real-time number is not less than the preset threshold, the notification issuing module 52 mounts the virtual machine disk to the virtual machine that is created immediately when the virtual machine needs to be issued.
  • the second determining module 55 of the present embodiment is configured to determine, after the first determining module 54 determines that the spatial residual value is less than the first remaining threshold, whether the spatial residual value is less than a preset second remaining threshold. The first remaining threshold is greater than the second remaining threshold.
  • the second judging module 55 determines in real time whether the spatial residual value is maintained in the vicinity of the second remaining threshold and is in a state of dynamic balance, thereby avoiding the above problem and simultaneously clearing out the redundant preset. Virtual machine disk.
  • the processing module 56 is configured to: when the second determining module 55 determines that the spatial residual value is less than the second remaining threshold, delete at least one preset virtual machine disk, and notify the issuing module 52 to hang the virtual machine disk when the virtual machine needs to be issued.
  • the notification issuing module 52 mounts the virtual machine disk to the virtual virtual machine when the virtual machine needs to be issued. on board.
  • the processing module 56 can clear the virtual machine disk that has been pre-set and stored for a certain period of time (such as one week or one month) and has not been mounted for use, such as a certain CPU core and memory. Specifications such as size and storage capacity cannot be used for mounting for monthly tasks. Of course, it is also possible to determine whether the space residual value is less than the preset value according to whether a certain type of virtual machine template is mounted at a low frequency. When the second remaining threshold is exceeded, the virtual machine disk preset by the virtual machine template of this type is deleted.
  • the present embodiment enables a limited data storage carrier to be effectively used by intelligently deleting a pre-set virtual machine disk, and can prevent problems caused by a large number of virtual machine disks being set due to errors, poisoning, and the like.
  • the cloud server may further include an obtaining module 58 and a setting module 59.
  • the obtaining module 58 is configured to obtain the number of issued virtual machines corresponding to the virtual machine template issued by the data storage carrier within a preset time.
  • the method for setting the preset threshold by the obtaining module 58 to obtain the quantity of the preset time the dynamic balance of the number of virtual machine disks in the data storage carrier can be realized, thereby ensuring that the preset time is always maintained. Pre-set a virtual machine disk waiting to perform the process of mounting and issuing.
  • the setting module 59 is configured to set a preset threshold according to the number of issuances acquired by the obtaining module 58.
  • the issuing module 52 may specifically include The acquisition unit 520, the search unit 521, and the mount unit 522 are included.
  • the obtaining unit 520 is configured to obtain the input specified data storage carrier and the specified specification parameter when the virtual machine needs to be issued.
  • the searching unit 521 is configured to search for the corresponding data storage carrier according to the specified data storage carrier acquired by the obtaining unit 520, and search for the corresponding virtual machine disk in the corresponding data storage carrier according to the specified specification parameter acquired by the obtaining unit 520.
  • the mounting unit 522 is configured to acquire the virtual machine created in real time, and mount the corresponding virtual machine disk found by the searching unit 521 to the virtual machine.
  • the cloud server may be used for serving in one or more clusters and servers at the same time, so the user (administrator) needs to specify different virtual machine disks with different specification parameters in different data storage carriers in advance or in real time.
  • the virtual machine disk set by the required virtual machine template may be specified according to the service type, network type, and the like of the cluster or the server. This embodiment achieves an optimized distribution process through "retrieval-match", which is more conducive to the optimization of work performance and service quality.
  • the present invention effectively solves the technical problem that the virtual machine disk is set in the prior art when the virtual machine needs to be distributed, and the process of setting the virtual machine disk requires a large amount of time, which may result in the failure to timely issue the virtual machine.
  • the same virtual machine disk as the virtual machine template improves the speed of issuing virtual machines, ensuring work efficiency and performance, and improving the user experience.
  • the cloud server of the present embodiment includes but is not limited to a processor 61, a random access memory 62, a read only memory 63, and a bus 64.
  • the processor 61 is shown in FIG. It is coupled to random access memory 62 and read only memory 63 via bus 64, respectively.
  • the processor 61 of the present embodiment is configured to pre-set a virtual machine disk according to a virtual machine template and store it on a predetermined data storage carrier, and when the virtual machine needs to be distributed, mount the virtual machine disk to the virtual machine that is created immediately. .
  • the processor 61 may specifically set the virtual machine disk according to the attribute information of the storage resource occupied by the specified virtual machine in the virtual machine template, such as a virtual machine storage capacity specification. That is, the disk with the same storage capacity of the virtual machine in the virtual machine template is occupied in the resource pool in advance.
  • the pre-configured virtual machine disk may be consistent with the storage capacity specification of the virtual machine template, and may further consider the storage capacity information occupied by the operating system and/or application specified (or loaded) in the virtual machine template.
  • the storage capacity information may be randomly or periodically changed according to actual conditions, for example, intelligently adjusting the storage capacity information of the virtual machine disk according to the actual remaining storage space of the data storage carrier, This is not limited here.
  • the processor 61 may be further configured to detect a real-time quantity of a virtual machine disk in the data storage carrier; determine whether the real-time quantity is less than a preset threshold; and determine, according to the virtual quantity, that the real-time quantity is less than a preset threshold
  • the machine template pre-sets the virtual machine disk, and when it is determined that the real-time quantity is not less than the preset threshold and the virtual machine needs to be issued, the virtual machine disk is mounted to the virtual machine that is created immediately.
  • the present invention effectively solves the technical problem that the virtual machine disk is set in the prior art when the virtual machine needs to be distributed, and the process of setting the virtual machine disk requires a large amount of time, which may result in the failure to timely issue the virtual machine.
  • the same virtual machine disk as the virtual machine template improves the speed of issuing virtual machines, ensuring work efficiency and performance, and improving the user experience.
  • the disclosed system, apparatus and method may be implemented in other ways.
  • the device implementations described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combined or can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
  • the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the present embodiment.
  • each functional unit in various embodiments of the present invention may be integrated into one processing order In the meta element, each unit may exist physically separately, or two or more units may be integrated in one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the instructions include a plurality of instructions for causing a computer device (which may be a personal computer, a management server, or a network device, etc.) or a processor to perform all or part of the steps of the methods of the various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Abstract

Disclosed are a cloud server and a virtual machine management method thereof. The virtual machine management method comprises: according to a virtual machine template, pre-setting a virtual machine disk, and storing same on a predetermined data storage carrier; and when a virtual machine needs to be given, mounting the virtual machine disk onto an immediately created virtual machine. The present invention effectively solves the technical problem in the prior art that a virtual machine cannot be distributed in time due to the fact that a virtual machine disk is set only when the virtual machine needs to be distributed and a lot of time is needed in the process of setting the virtual machine disk, etc. The present invention effectively increases the speed of distributing the virtual machine, ensures the working efficiency and working performance, and improves the user's usage experience.

Description

云服务器及其虚拟机管理方法 技术领域  Cloud server and virtual machine management method thereof
本发明涉及虚拟机技术领域, 具体是涉及一种虚拟机管理方法, 还涉 及一种釆用该虚拟机管理方法的云服务器。 背景技术  The present invention relates to the field of virtual machine technologies, and in particular, to a virtual machine management method, and to a cloud server using the virtual machine management method. Background technique
信息化的不断发展使得对计算资源的需求呈几何曲线性增长, 这不仅 意味着需要投入更多的硬件设备, 还意味着更多的机房环境设备投入, 同 时运行维护成本和人力成本也相应增加, 因此, 为了节约成本, 虚拟化技 术越来越多地应用到计算机领域中。  The continuous development of information technology has made the demand for computing resources grow geometrically. This not only means that more hardware equipment needs to be invested, but also more equipment room equipment investment, and the operation and maintenance costs and labor costs increase accordingly. Therefore, in order to save costs, virtualization technology is increasingly applied to the computer field.
在云服务器(或称云计算等)的虚拟化技术一般是根据虚拟机模板设 置虚拟机进行服务, 其过程包括指定虚拟机磁盘( VMDK, virtual machine disk ) 的存储位置、 设置得到与虚拟机模板的规格参数、 操作系统、 应用 程序等相一致的虚拟机, 接着发放到集群或服务器进行服务。  The virtualization technology in the cloud server (or cloud computing, etc.) generally sets the virtual machine according to the virtual machine template for service, and the process includes specifying the storage location of the virtual machine disk (VMDK), the setting and the virtual machine template. The virtual machine with the same specifications, operating system, application, etc., is then distributed to the cluster or server for service.
具体而言, 现有技术先创建一个虚拟机, 在虚拟机上安装操作系统和 应用软件后作为用于预先设置的虚拟机模板。 当需要发放虚拟机时, 用户 选择一个虚拟机模板, 指定虚拟机运行在哪个服务器或者集群, 虚拟机规 格信息、 虚拟机磁盘保存在哪个数据存储; 设置过程中虚拟机需要设置安 装与虚拟机模板相同的操作系统和相同的应用程序。  Specifically, the prior art first creates a virtual machine, and installs an operating system and application software on the virtual machine as a virtual machine template for pre-setting. When a virtual machine needs to be distributed, the user selects a virtual machine template, specifies which server or cluster the virtual machine runs on, virtual machine specification information, and which data storage the virtual machine disk is stored in. During the setup process, the virtual machine needs to set the installation and virtual machine template. The same operating system and the same application.
其中,设置虚拟机的操作系统、应用程序等过程需要消耗较长的时间, 譬如发放一个 WIN7操作系统的虚拟机从开始设置到发放的整个过程耗时 一般需要几分钟到十几分钟以上。 而虚拟机的发放速度是云服务器的重要 性能指标之一, 发放速度直接影响用户对云服务器的使用体验, 因此, 目 前发放虚拟机的方式远远达不到要求, 而且影响云服务器的工作效率和性 能。 发明内容  The process of setting the operating system and application of the virtual machine takes a long time. For example, the process of issuing a WIN7 operating system takes a few minutes to more than ten minutes from the start to the release process. The speed of the virtual machine is one of the important performance indicators of the cloud server. The speed of the delivery directly affects the user experience of the cloud server. Therefore, the way to distribute virtual machines is far from the requirement and affects the efficiency of the cloud server. And performance. Summary of the invention
有鉴于此, 本发明实施例提供了一种云服务器及其虚拟机管理方法, 以解决现有技术发放虚拟机的方式影响云服务器的工作效率和性能的技 术问题。 In view of this, the embodiment of the present invention provides a cloud server and a virtual machine management method thereof, to solve the problem that the manner in which the virtual machine is distributed in the prior art affects the working efficiency and performance of the cloud server. Problems.
为解决上述问题, 本发明实施例第一方面提供一种虚拟机管理方法, 包括: 根据虚拟机模板预先设置虚拟机磁盘, 并存储到预定的数据存储载 体上; 在需要发放虚拟机时, 将所述虚拟机磁盘挂载到即时创建的虚拟机 上。  To solve the above problem, a first aspect of the embodiments of the present invention provides a virtual machine management method, including: pre-setting a virtual machine disk according to a virtual machine template, and storing the virtual machine disk on a predetermined data storage carrier; The virtual machine disk is mounted to an instant-created virtual machine.
结合第一方面, 在第一种可能的实现方式中, 所述根据虚拟机模板预 先设置虚拟机磁盘, 包括: 根据虚拟机模板中指定的虚拟机所占用的存储 资源的属性信息, 预先在云服务器的存储设备上创建所述虚拟机磁盘。  With reference to the first aspect, in a first possible implementation, the pre-setting a virtual machine disk according to the virtual machine template includes: pre-in the cloud according to attribute information of the storage resource occupied by the specified virtual machine in the virtual machine template The virtual machine disk is created on the server's storage device.
结合第一方面的第一种可能的实现方式, 在第二种可能的实现方式 中, 所述虚拟机模板中指定的虚拟机所占用的存储资源的属性信息包括以 下任意一种或其组合: 虚拟机存储容量信息、 虚拟机的操作系统所占用的 存储容量信息, 或者虚拟机装载的应用程序所占用的存储容量信息。  With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the attribute information of the storage resource occupied by the specified virtual machine in the virtual machine template includes any one or a combination of the following: The storage capacity information of the virtual machine, the storage capacity information occupied by the operating system of the virtual machine, or the storage capacity information occupied by the application loaded by the virtual machine.
结合第一方面、 第一方面的第一种或第二种可能的实现方式, 在第三 种可能的实现方式中, 所述虚拟机管理方法还包括: 检测所述数据存储载 体内的所述虚拟机磁盘的实时数量; 判断所述实时数量是否小于预设阔 值; 在判断到所述实时数量小于所述预设阔值时, 执行所述根据虚拟机模 板预先设置虚拟机磁盘的步骤。  With reference to the first aspect, the first or the second possible implementation of the first aspect, in a third possible implementation, the virtual machine management method further includes: detecting the The real-time quantity of the virtual machine disk is determined. The determining whether the real-time quantity is less than a preset threshold; when determining that the real-time quantity is less than the preset threshold, performing the step of pre-setting a virtual machine disk according to the virtual machine template.
结合第一方面的第三种可能的实现方式, 在第四种可能的实现方式 中, 所述检测所述数据存储载体内的所述虚拟机磁盘的实时数量的步骤之 前还包括: 获取所述数据存储载体在预设时间内发放的与所述虚拟机模板 对应的虚拟机的发放数量; 根据所述发放数量设置所述预设阔值。  With the third possible implementation of the first aspect, in a fourth possible implementation, the step of detecting the real-time quantity of the virtual machine disk in the data storage carrier further includes: obtaining the The number of issued virtual machines corresponding to the virtual machine template issued by the data storage carrier within a preset time; and the preset threshold is set according to the issued quantity.
结合第一方面的第四种可能的实现方式, 在第五种可能的实现方式 中, 所述根据虚拟机模板预先设置虚拟机磁盘之前, 还包括: 判断所述数 据存储载体的剩余存储空间的空间剩余值是否小于预设的第一剩余阔值; 在判断到所述空间剩余值不小于所述第一剩余阔值时, 执行所述根据虚拟 机模板预先设置虚拟机磁盘的步骤。  With the fourth possible implementation of the first aspect, in a fifth possible implementation, before the virtual machine disk is preset according to the virtual machine template, the method further includes: determining, by using the remaining storage space of the data storage carrier Whether the remaining value of the space is smaller than the preset first remaining threshold; when it is determined that the remaining value of the space is not less than the first remaining threshold, the step of presetting the virtual machine disk according to the virtual machine template is performed.
结合第一方面的第五种可能的实现方式, 在第六种可能的实现方式 中, 在判断到所述空间剩余值小于所述第一剩余阔值之后还包括: 判断所 述空间剩余值是否小于预设的第二剩余阔值, 其中, 所述第一剩余阔值大 于所述第二剩余阔值; 若判断所述空间剩余值小于所述第二剩余阔值时, 删除至少一个所述预先设置的的虚拟机磁盘。 With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation, after determining that the spatial residual value is smaller than the first remaining threshold, the method further includes: determining whether the spatial residual value is The second remaining threshold value is greater than the second remaining threshold value, wherein the first remaining threshold value is greater than the second remaining threshold value; Deleting at least one of the pre-set virtual machine disks.
结合第一方面、 第一方面的第一种或第二种可能的实现方式, 在第七 种可能的实现方式中, 所述在需要发放虚拟机时, 将所述虚拟机磁盘挂载 到即时创建的虚拟机上的步骤具体包括: 在需要发放虚拟机时, 获取输入 的指定数据存储载体和指定规格参数; 根据所述指定数据存储载体查找对 应的数据存储载体, 并根据所述指定规格参数在所述对应的数据存储载体 内查找对应的虚拟机磁盘; 获取即时创建的虚拟机, 并将所述对应的虚拟 机磁盘挂载到所述虚拟机上。  With reference to the first aspect, the first or the second possible implementation manner of the first aspect, in a seventh possible implementation manner, when the virtual machine needs to be issued, the virtual machine disk is mounted to the instant The step of creating the virtual machine specifically includes: when the virtual machine needs to be issued, acquiring the input specified data storage carrier and the specified specification parameter; searching for the corresponding data storage carrier according to the specified data storage carrier, and according to the specified specification parameter Searching for a corresponding virtual machine disk in the corresponding data storage carrier; acquiring an instant-created virtual machine, and mounting the corresponding virtual machine disk to the virtual machine.
为解决上述问题, 本发明实施例第二方面提供一种云服务器, 所述云 服务器包括预设置模块和发放模块。 所述预设置模块用于根据虚拟机模板 预先设置虚拟机磁盘, 并存储到预定的数据存储载体上; 所述发放模块用 于在需要发放虚拟机时, 将所述虚拟机磁盘挂载到即时创建的虚拟机上。  In order to solve the above problem, a second aspect of the embodiments of the present invention provides a cloud server, where the cloud server includes a preset module and a distribution module. The pre-setting module is configured to preset a virtual machine disk according to a virtual machine template, and store the virtual machine disk on a predetermined data storage carrier; the issuing module is configured to mount the virtual machine disk to an instant when the virtual machine needs to be issued Created on a virtual machine.
结合第二方面, 在第一种可能的实现方式中, 所述预设置模块具体用 于根据虚拟机模板中指定的虚拟机所占用的存储资源的属性信息, 预先在 云服务器的存储设备上创建所述虚拟机磁盘。  With reference to the second aspect, in a first possible implementation manner, the preset module is specifically configured to be created in advance on a storage device of the cloud server according to the attribute information of the storage resource occupied by the virtual machine specified in the virtual machine template. The virtual machine disk.
结合第二方面的第一种可能的实现方式, 在第二种可能的实现方式 中, 所述虚拟机模板中指定的虚拟机所占用的存储资源的属性信息包括以 下任意一种或其组合: 虚拟机存储容量信息、 虚拟机的操作系统所占用的 存储容量信息, 或者虚拟机装载的应用程序所占用的存储容量信息。  With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the attribute information of the storage resource occupied by the specified virtual machine in the virtual machine template includes any one or a combination of the following: The storage capacity information of the virtual machine, the storage capacity information occupied by the operating system of the virtual machine, or the storage capacity information occupied by the application loaded by the virtual machine.
结合第二方面、 第二方面的第一种或第二种可能的实现方式, 在第三 种可能的实现方式中, 所述云服务器还包括检测模块、 第一判断模块和执 行模块。 所述检测模块用于检测所述数据存储载体内的所述虚拟机磁盘的 实时数量; 所述第一判断模块用于判断所述检测模块检测到的所述实时数 量是否小于预设阔值; 所述执行模块, 用于在所述第一判断模块判断到所 述实时数量小于所述预设阔值时, 通知所述预设置模块根据虚拟机模板预 先设置虚拟机磁盘。  With reference to the second aspect, the first or the second possible implementation manner of the second aspect, in a third possible implementation, the cloud server further includes a detection module, a first determination module, and an execution module. The detecting module is configured to detect a real-time quantity of the virtual machine disk in the data storage carrier; the first determining module is configured to determine whether the real-time quantity detected by the detecting module is less than a preset threshold; The executing module is configured to notify the preset module to preset a virtual machine disk according to the virtual machine template when the first determining module determines that the real-time quantity is less than the preset threshold.
结合第二方面的第三种可能的实现方式, 在第四种可能的实现方式 中, 所述云服务器还包括获取模块和设置模块。 所述获取模块用于获取所 述数据存储载体在预设时间内发放的与所述虚拟机模板对应的虚拟机的 发放数量; 所述设置模块用于根据所述获取模块获取到的所述发放数量设 置所述预设阔值。 In conjunction with the third possible implementation of the second aspect, in a fourth possible implementation, the cloud server further includes an obtaining module and a setting module. The obtaining module is configured to acquire, according to the virtual machine template, the number of the virtual machines that are issued by the data storage carrier in a preset time; the setting module is configured to use the Quantity setting Set the preset threshold.
结合第二方面的第四种可能的实现方式, 在第五种可能的实现方式 中, 所述第一判断模块还用于判断所述数据存储载体的剩余存储空间的空 间剩余值是否小于预设的第一剩余阔值。 所述执行模块具体用于: 在所述 第一判断模块判断到所述空间剩余值不小于所述第一剩余阔值时, 通知所 述预设置模块根据虚拟机模板预先设置虚拟机磁盘。  With the fourth possible implementation of the second aspect, in a fifth possible implementation, the first determining module is further configured to determine whether a spatial residual value of the remaining storage space of the data storage carrier is less than a preset The first remaining threshold. The execution module is specifically configured to: when the first determining module determines that the remaining value of the space is not less than the first remaining threshold, notify the preset module to preset a virtual machine disk according to the virtual machine template.
结合第二方面的第五种可能的实现方式, 在第六种可能的实现方式 中, 所述云服务器还包括第二判断模块和处理模块。 所述第二判断模块, 用于在所述第一判断模块判断到所述空间剩余值小于所述第一剩余阔值 之后, 判断所述空间剩余值是否小于预设的第二剩余阔值, 其中, 所述第 一剩余阔值大于所述第二剩余阔值。 所述处理模块, 用于在所述第二判断 模块判断所述空间剩余值小于所述第二剩余阔值时, 删除至少一个所述预 先设置的虚拟机磁盘。  In conjunction with the fifth possible implementation of the second aspect, in a sixth possible implementation, the cloud server further includes a second determining module and a processing module. The second determining module is configured to determine, after the first determining module determines that the spatial residual value is less than the first remaining threshold, whether the spatial residual value is less than a preset second remaining threshold, The first remaining threshold is greater than the second remaining threshold. The processing module is configured to delete at least one of the pre-set virtual machine disks when the second determining module determines that the space residual value is less than the second remaining threshold.
结合第二方面、 第二方面的第一种或第二种可能的实现方式, 在第七 种可能的实现方式中, 所述发放模块具体包括获取单元、 查找单元和挂载 单元。 所述获取单元, 用于在需要发放虚拟机时, 获取输入的指定数据存 储载体和指定规格参数; 所述查找单元, 用于根据所述获取单元获取的所 述指定数据存储载体查找对应的数据存储载体, 并根据所述获取单元获取 的所述指定规格参数在所述对应的数据存储载体内查找对应的虚拟机磁 盘; 所述挂载单元, 用于获取即时创建的虚拟机, 并将所述查找单元查找 到的所述对应的虚拟机磁盘挂载到所述虚拟机上。  With reference to the second aspect, the first or the second possible implementation manner of the second aspect, in the seventh possible implementation, the issuing module specifically includes an obtaining unit, a searching unit, and a mounting unit. The obtaining unit is configured to: when the virtual machine needs to be issued, obtain the input specified data storage carrier and the specified specification parameter; the searching unit is configured to search for the corresponding data according to the specified data storage carrier acquired by the acquiring unit a storage carrier, and searching for a corresponding virtual machine disk in the corresponding data storage carrier according to the specified specification parameter acquired by the acquiring unit; the mounting unit is configured to acquire an instant created virtual machine, and The corresponding virtual machine disk found by the searching unit is mounted on the virtual machine.
本发明实施例在需要发放虚拟机前进行预先设置得到虚拟机磁盘, 接 着在需要发放虚拟机时即时创建虚拟机并挂载到预先设置得到的虚拟机 磁盘上并即时发放虚拟机, 本发明通过预先设置的方式提高了发放虚拟机 的速度。 具体来说, 本发明实施例有效地解决了现有技术中在需要发放虚 拟机时才开始设置虚拟机磁盘, 而设置虚拟机磁盘等过程需要大量的时 间, 进而导致不能及时发放虚拟机的技术问题, 本发明实施例预先设置与 虚拟机模板相同的虚拟机磁盘, 避免在发放虚拟机时才开始设置, 因此有 效地提高了发放虚拟机的速度, 保证了云服务器的工作效率和工作性能, 改善用户的使用体验。 附图说明 The embodiment of the present invention pre-sets the virtual machine disk before the virtual machine needs to be distributed, and then creates the virtual machine and mounts it to the pre-set virtual machine disk and immediately issues the virtual machine when the virtual machine needs to be distributed. The pre-set way increases the speed at which virtual machines are released. Specifically, the embodiment of the present invention effectively solves the problem that the virtual machine disk is set up when the virtual machine needs to be distributed in the prior art, and the process of setting the virtual machine disk requires a large amount of time, which may result in the failure to timely issue the virtual machine. The problem is that the virtual machine disk is the same as the virtual machine template in the embodiment of the present invention, so as to avoid setting the virtual machine when the virtual machine is issued, thereby effectively increasing the speed of issuing the virtual machine and ensuring the working efficiency and working performance of the cloud server. Improve the user experience. DRAWINGS
图 1A是本发明虚拟机管理方法第一实施方式的流程示意图; 图 1B是图 1A所示的虚拟机管理方法的实现过程示意图;  1A is a schematic flowchart of a first embodiment of a virtual machine management method according to the present invention; FIG. 1B is a schematic diagram of an implementation process of the virtual machine management method shown in FIG. 1A;
图 2是本发明虚拟机管理方法第二实施方式的流程示意图;  2 is a schematic flowchart of a second embodiment of a virtual machine management method according to the present invention;
图 3是本发明虚拟机管理方法第三实施方式的流程示意图;  3 is a schematic flowchart of a third embodiment of a virtual machine management method according to the present invention;
图 4是本发明云服务器第一实施方式的模块示意图;  4 is a schematic block diagram of a first embodiment of a cloud server according to the present invention;
图 5是本发明云服务器第二实施方式的模块示意图;  5 is a schematic block diagram of a second embodiment of a cloud server according to the present invention;
图 6是图 5所示的云服务器的部分模块示意图;  6 is a partial block diagram of the cloud server shown in FIG. 5;
图 7是图 5所示的云服务器的发放模块的具体实现方式示意图; 以及 图 8是本发明云服务器第三实施方式的模块示意图。 具体实施方式  7 is a schematic diagram of a specific implementation manner of a distribution module of the cloud server shown in FIG. 5; and FIG. 8 is a schematic diagram of a module of a third embodiment of the cloud server according to the present invention. detailed description
以下描述中, 为了说明而不是为了限定, 提出了诸如特定系统结构、 接口、 技术之类的具体细节, 以便透切理解本发明。 然而, 本领域的技术 明。 在其它情况中, 省略对众所周知的装置、 电路以及方法的详细说明, 以免不必要的细节妨碍本发明的描述。  In the following description, for purposes of illustration and description However, the art is known in the art. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the invention.
下面结合附图和具体的实施方式进行说明。 步骤。  The following description will be made with reference to the accompanying drawings and specific embodiments. step.
步骤 S100 ,根据虚拟机模板预先设置虚拟机磁盘, 并存储到预定的数 据存储载体上。  Step S100: Pre-set a virtual machine disk according to the virtual machine template, and store it on a predetermined data storage carrier.
在步骤 S100中, 本实施方式具体可以根据虚拟机模板中指定虚拟机 所占用的存储资源的属性信息如虚拟机存储容量规格等预先设置虚拟机 磁盘。 即预先在资源池中占用所述虚拟机模板中的虚拟机存储容量规格相 同的磁盘。 优选地, 所预先设置的虚拟机磁盘可以与虚拟机模版的存储容 量规格一致, 也可以进一步考虑虚拟机模板中规定(或装载) 的操作系统 和 /或应用程序所占用的存储容量信息。在其他实施方式中, 也可以根据实 际情况而设定随机或按预定规律地改变存储容量信息, 譬如根据数据存储 载体的实际剩余存储空间的大小而智能地调整虚拟机磁盘的存储容量信 息等, 在此不作限定。 In step S100, the embodiment may specifically set a virtual machine disk according to attribute information of a storage resource occupied by the specified virtual machine in the virtual machine template, such as a virtual machine storage capacity specification. That is, the disk with the same storage capacity of the virtual machine in the virtual machine template is occupied in the resource pool in advance. Preferably, the preset virtual machine disk may be consistent with the storage capacity specification of the virtual machine template, and may further consider the storage capacity information occupied by the operating system and/or application specified (or loaded) in the virtual machine template. In other embodiments, the storage capacity information may also be randomly or periodically changed according to actual conditions, such as according to data storage. The storage capacity information of the virtual machine disk and the like are intelligently adjusted, such as the size of the actual remaining storage space of the carrier, which is not limited herein.
需要说明的是, 本实施方式的数据存储载体为存放虚拟机磁盘的存储 空间, 其可以为一个或多个, 进一步而言, 不同的数据存储载体之间可以 分别存放不同虚拟机模板所预先设置得到的虚拟机磁盘, 也可以在同一个 数据存储载体只存放一种类型的虚拟机模板所预先设置得到的虚拟机磁 盘, 其具体可以根据服务情况、 工作效率等进行区别设置, 在此不作限定。 本实施方式预先设置的虚拟机磁盘可以与虚拟机模板存储于同一个数据 存储载体(可以提高预先设置过程的效率) , 也可以存储于云服务器的本 地存储设备等数据存储载体上 (如图 1B所示) ; 当然, 在其他实施方式 中数据存储载体还可以为外置的存储设备,譬如可以为 IP SAN( IP-Storage Area Network, 以 IP网为传输介质的存储局域网络) 、 FC S AN ( Fibre Channel-Storage Area Network,光纤通道的存储局 i或网络 )、 NAS ( Network Attached Storage , 网络附属存储) 等, 在此不作限定。  It should be noted that the data storage carrier of the present embodiment is a storage space for storing virtual machine disks, which may be one or more. Further, different data storage carriers may separately store different virtual machine templates. The obtained virtual machine disk may also store only the virtual machine disks pre-set by one type of virtual machine template in the same data storage carrier, and the specific settings may be different according to service conditions and work efficiency, and are not limited herein. . The virtual machine disk preset in this embodiment may be stored in the same data storage carrier as the virtual machine template (which may improve the efficiency of the preset process), or may be stored on a data storage carrier such as a local storage device of the cloud server (FIG. 1B). As shown in the above, the data storage carrier may be an external storage device, such as an IP SAN (IP-Storage Area Network), and an FC SAN. (Fibre Channel-Storage Area Network, Fibre Channel storage station i or network), NAS (Network Attached Storage), etc., are not limited herein.
其中, 虚拟机模板可以釆用已用于使用或服务的其他虚拟机作为模 板,也可以预先通过人工安装得到。本实施方式以手工安装为例进行描述: 创建虚拟机, 指定虚拟机的 CPU核数、 内存大小、 存储容量等, 创建后 在数据存储载体内保存虚拟机的上述信息及虚拟机磁盘; 为创建的虚拟机 安装操作系统和应用软件并存储到该虚拟机磁盘上, 如 WEB服务和数据 库等; 完成上述创建安装过程后, 即可根据用户的操作或者智能判断而作 为后续预先设置的虚拟机模板。  The virtual machine template can be used as a template by using other virtual machines that have been used or serviced, or can be manually installed in advance. This embodiment describes a manual installation as an example: Create a virtual machine, specify the number of CPU cores, memory size, storage capacity, etc. of the virtual machine. After the creation, save the above information of the virtual machine and the virtual machine disk in the data storage carrier; The virtual machine installs the operating system and application software and stores it on the virtual machine disk, such as the WEB service and the database. After completing the above installation and installation process, it can be used as a subsequent preset virtual machine template according to the user's operation or intelligent judgment. .
步骤 S101 ,在需要发放虚拟机时,将虚拟机磁盘挂载到即时创建的虚 拟机上。  Step S101: When the virtual machine needs to be distributed, the virtual machine disk is mounted on the virtual machine that is created immediately.
在步骤 S101中, 本实施方式可以通过中断请求, 或者根据集群、 月良 务器的服务负载情况而判断是否 "需要发放虚拟机" , 而在收到中断请求 或者判断到需要发放虚拟机时, 则先创建虚拟机(无需根据虚拟机模板中 指定的虚拟机所占用的存储资源的属性信息在云服务器的存储设备上创 建虚拟机磁盘, 接着直接将步骤 S100设置得到的虚拟机磁盘挂载到即时 创建的虚拟机上。  In step S101, the present embodiment may determine whether "the virtual machine needs to be issued" by using the interrupt request, or according to the service load condition of the cluster or the server, and when receiving the interrupt request or determining that the virtual machine needs to be issued, The virtual machine is created on the storage device of the cloud server, and the virtual machine disk that is set in step S100 is directly mounted to the virtual machine disk. Instantly created on a virtual machine.
需要说明的是, 现有技术中在需要发放虚拟机时, 设置虚拟机所需要 的时间具体还与虚拟机磁盘的存储容量相关: 虚拟机磁盘的存储容量越 大, 其所需的时间也越长, 导致发放虚拟机的速度越慢。 不难看出, 本实 施方式将设置虚拟机磁盘的过程提前进行, 而在需要发放时即可即时发 放。 而需要相应指出的是, 本实施方式所提的 "将设置虚拟机磁盘的过程 提前进行"也可以为在设置虚拟机磁盘的过程中而接收到需要发放虚拟机 的 "中断请求" 或根据集群、 服务器的服务负载情况而判断到 "需要发放 虚拟机" , 此时, 正在设置的虚拟机磁盘在完成设置过程后即可与已经创 建的虚拟机进行挂载并用于服务, 相比于现有技术而言, 此种方式仍具有 加速发放虚拟机的效果。 It should be noted that, in the prior art, when a virtual machine needs to be distributed, the virtual machine needs to be set. The time is also related to the storage capacity of the virtual machine disk: The larger the storage capacity of the virtual machine disk, the longer it takes, and the slower the virtual machine is issued. It is not difficult to see that this embodiment advances the process of setting a virtual machine disk, and can be issued immediately when it needs to be issued. It should be pointed out that the "the process of setting the virtual machine disk in advance" mentioned in this embodiment may also receive an "interrupt request" for the virtual machine to be issued during the process of setting the virtual machine disk or according to the cluster. And the server's service load condition determines that "the virtual machine needs to be issued". At this time, the virtual machine disk being set up can be mounted and used for the service with the created virtual machine after completing the setting process, compared to the existing one. Technically, this approach still has the effect of speeding up the issuance of virtual machines.
其中, 即时发放的虚拟机可以根据集群、 服务器的负载情况而发放到 相应超负载的集群、 服务器中进行服务, 也可以根据用户的操作而指定发 放到相应的集群、 服务器中进行服务, 当然, 在具体的工作过程中, 还包 括关联网络等过程, 在本技术领域人员理解的范围内, 不作细述。  The virtual machine that is released immediately can be distributed to the corresponding overloaded cluster or server for service according to the load of the cluster and the server, or can be distributed to the corresponding cluster and server for service according to the operation of the user. In the specific working process, processes such as associating networks are also included, and are not described in detail within the scope of those skilled in the art.
此外, 本实施方式虚拟机管理方法如果在需要发放虚拟机而一个或多 个数据存储载体内没有预先设置的虚拟机磁盘时, 也可以进行即时设置 (在线设置) , 以避免没有即时可用的虚拟机时产生不必要的麻烦, 进而 保证能够发放用于进行服务的虚拟机。  In addition, the virtual machine management method of the present embodiment can also perform instant setting (online setting) if there is no virtual machine disk set in advance in one or more data storage carriers when the virtual machine needs to be issued, so as to avoid virtuality that is not available immediately. The machine creates unnecessary troubles, and thus ensures that the virtual machine for service can be issued.
综上所述, 本发明有效地解决了现有技术中在需要发放虚拟机时才开 始设置虚拟机磁盘, 而设置虚拟机磁盘等过程需要大量的时间, 进而导致 不能及时发放虚拟机的技术问题, 本发明提高了发放虚拟机的速度, 保证 了工作效率和工作性能, 改善了用户的使用体验。  In summary, the present invention effectively solves the problem that in the prior art, when a virtual machine needs to be distributed, the virtual machine disk is set, and the process of setting the virtual machine disk requires a large amount of time, which may result in failure to timely issue the virtual machine. The invention improves the speed of issuing virtual machines, ensures work efficiency and work performance, and improves the user experience.
请参阅图 2 , 是本发明虚拟机管理方法第二实施方式的流程示意图, 步骤 S200 , 检测数据存储载体内的虚拟机磁盘的实时数量。  Referring to FIG. 2, which is a schematic flowchart of a second embodiment of a virtual machine management method according to the present invention, in step S200, a real-time quantity of a virtual machine disk in a data storage carrier is detected.
与前面实施方式不同之处在于, 本实施方式虚拟机管理方法需要先执 行步骤 S200再进行预先设置虚拟机磁盘。 举例而言, 在某一指定的数据 存储载体内或者所有可用的数据存储载体内可能已经存在了一定数量的 预先设置的虚拟机磁盘, 其数量可能已经达到和 /或超过了一定的范围, 或 者可能由于数量过多而影响了正在服务的虚拟机的工作状态和服务质量, 也可能由于无限制地预先设置而降低了系统的工作性能, 此外, 预先设置 数量过多的虚拟机磁盘也会导致浪费数据存储载体的存储空间, 因此, 本 实施方式通过步骤 S200来检测一个或多个数据存储载体内的虚拟机磁盘 的实时数量, 以根据实时数量来控制、 切换使用智能的预先设置模式。 The difference from the previous embodiment is that the virtual machine management method of the embodiment needs to execute step S200 before performing the virtual disk of the virtual machine. For example, a certain number of pre-configured virtual machine disks may already exist in a given data storage carrier or in all available data storage carriers, the number of which may have reached and/or exceeded a certain range, or It may affect the working status and quality of service of the virtual machine being served due to the excessive number. It may also reduce the performance of the system due to unlimited presets. In addition, preset An excessive number of virtual machine disks may also result in wasted storage space of the data storage carrier. Therefore, in this embodiment, the real-time quantity of the virtual machine disks in one or more data storage carriers is detected by step S200 to be controlled according to the real-time quantity. , Switch to use the smart preset mode.
步骤 S201 ,判断实时数量是否小于预设阔值。在判断到实时数量小于 (即 "是" )预设阔值时,执行步骤 S202 , 而在判断到实时数量不小于(即 "否" )预设阔值时, 等待执行步骤 S203。  Step S201: Determine whether the real-time quantity is less than a preset threshold. When it is determined that the real-time quantity is less than (ie, "Yes") the preset threshold, step S202 is performed, and when it is determined that the real-time quantity is not less than (ie, "No") the preset threshold, step S203 is awaited.
其中, 预设阔值可以在步骤 S200之前进行设置, 具体过程可以包括: 获取数据存储载体在预设时间内发放的与虚拟机模板对应的虚拟机的发 放数量; 根据发放数量设置预设阈值。 不难看出, 本实施方式通过获取预 设时间内的发放数量而设置预设阔值的方式, 可以实现数据存储载体内的 虚拟机磁盘的数量的动态平衡, 进而保证在预设时间内始终保持有预设阔 值个的虚拟机磁盘等待执行挂载、 发放的过程。 此外, 预设阔值也可以釆 用人工设置, 譬如根据实际的工作、 服务需要而设置, 在此不作限定。  The preset threshold may be set before step S200. The specific process may include: acquiring the number of virtual machines corresponding to the virtual machine template issued by the data storage carrier within a preset time; and setting a preset threshold according to the number of issuances. It is not difficult to see that in this embodiment, by setting a preset threshold value by acquiring the number of issuances in a preset time, the dynamic balance of the number of virtual machine disks in the data storage carrier can be realized, thereby ensuring that the preset time is always maintained. A virtual machine disk with a preset threshold is waiting for the process of mounting and issuing. In addition, the preset threshold can also be manually set, for example, according to the actual work and service needs, and is not limited herein.
进一步而言, 在设置预设阔值之后, 可以通过人机界面接口或其他智 能方式而自动切换进入预先设置模式 (即自动执行步骤 S200 ) 。  Further, after the preset threshold is set, the preset mode can be automatically switched to be performed through the human interface interface or other intelligent modes (ie, step S200 is automatically executed).
步骤 S202 ,根据虚拟机模板预先设置虚拟机磁盘, 并存储到预定的数 据存储载体上。  Step S202, pre-setting a virtual machine disk according to the virtual machine template, and storing the virtual machine disk on a predetermined data storage carrier.
步骤 S203 ,在需要发放虚拟机时,将虚拟机磁盘挂载到即时创建的虚 拟机上。  Step S203: When the virtual machine needs to be distributed, the virtual machine disk is mounted on the virtual machine that is created immediately.
本实施方式的步骤 S202和步骤 S203可以分别参阅前面实施方式关于 步骤 S100和步骤 S 101的描述,在本技术领域人员容易结合理解的范围内 , 不作赘述。  Steps S202 and S203 of the present embodiment may refer to the descriptions of the foregoing embodiment with respect to step S100 and step S101, respectively, and are not described in detail within the scope of those skilled in the art.
请结合前面实施方式参阅图 3 , 图 3是本发明虚拟机管理方法第三实 施方式的流程示意图, 本实施方式的虚拟机管理方法包括但不限于以下几 个步骤。  Referring to FIG. 3, FIG. 3 is a schematic flowchart of a third embodiment of the virtual machine management method according to the present invention. The virtual machine management method of the present embodiment includes but is not limited to the following steps.
步骤 S300 , 检测数据存储载体内的虚拟机磁盘的实时数量。  Step S300, detecting the real-time quantity of the virtual machine disks in the data storage carrier.
在步骤 S300中, 在某一指定的数据存储载体内或者所有可用的数据 存储载体内可能已经存在了一定数量的预先设置的虚拟机磁盘, 其数量可 能已经达到和 /或超过了一定的范围,或者可能由于数量过多而影响了正在 服务的虚拟机的工作状态和服务质量, 也可能由于无限制地预先设置而降 低了系统的工作性能, 此外, 预先设置数量过多的虚拟机磁盘也会导致浪 费数据存储载体的存储空间, 因此, 本实施方式通过步骤 S300来检测一 个或多个数据存储载体内的虚拟机磁盘的实时数量, 以实现智能的预先设 置模式。 In step S300, a certain number of pre-set virtual machine disks may already exist in a specified data storage carrier or in all available data storage carriers, and the number may have reached and/or exceeded a certain range. Or it may affect the working status and quality of service of the virtual machine being served due to too many numbers, or it may be lowered due to unlimited presets. The operating performance of the system is low. In addition, pre-setting a large number of virtual machine disks may also waste the storage space of the data storage carrier. Therefore, the embodiment detects the virtual machines in one or more data storage carriers by step S300. The real-time number of disks to implement an intelligent pre-set mode.
步骤 S301 ,判断实时数量是否小于预设阔值。在判断到实时数量小于 Step S301: Determine whether the real-time quantity is less than a preset threshold. In the judgment that the real-time quantity is less than
(即 "是" )预设阔值时,执行步骤 S302 , 而在判断到实时数量不小于(即 "否" )预设阔值时, 等待执行步骤 S306。 (ie, "Yes") When the preset threshold is exceeded, step S302 is performed, and when it is determined that the real-time number is not less than (i.e., "No") the preset threshold, step S306 is awaited.
如前所述, 预设阈值可以通过如下过程设置: 获取数据存储载体在预 设时间内发放的与虚拟机模板对应的虚拟机的发放数量; 根据发放数量设 置预设阔值。 不难看出, 通过获取预设时间内的发放数量而设置预设阔值 的方式, 可以实现数据存储载体内的虚拟机磁盘的数量的动态平衡, 进而 的过程。 此外, 预设阔值也可以釆用人工设置, 譬如根据实际的工作、 服 务需要而设置, 在此不作限定。  As described above, the preset threshold can be set by: obtaining the number of virtual machines issued by the data storage carrier corresponding to the virtual machine template within a preset time; and setting the preset threshold according to the number of issuances. It is not difficult to see that by setting the preset threshold value by obtaining the number of releases in the preset time, the dynamic balance of the number of virtual machine disks in the data storage carrier can be realized. In addition, the preset threshold can also be manually set, for example, according to actual work and service requirements, and is not limited herein.
步骤 S302 ,判断空间剩余值是否小于预设的第一剩余阔值。在判断到 空间剩余值不小于(即 "否" )第一剩余阔值时, 执行步骤 S305 , 在判断 到空间剩余值小于 (即 "是" ) 第一剩余阔值时, 执行步骤 S303。 其中, 在其他的实施方式也可以省略后续的步骤 S303和步骤 S304 , 而在判断到 空间剩余值小于 (即 "是" ) 第一剩余阔值时, 直接等待执行步骤 S306 , 本实施方式仅对不同的情况作详细的描述, 在本技术领域人员理解的范围 内, 并不用于构成对本实施方式的限定。  Step S302: Determine whether the spatial residual value is less than a preset first remaining threshold. When it is determined that the remaining value of the space is not less than (ie, "No") the first remaining threshold, step S305 is performed, and when it is determined that the remaining value of the space is less than (ie, "Yes") the first remaining threshold, step S303 is performed. In other embodiments, the subsequent steps S303 and S304 may be omitted, and when it is determined that the spatial residual value is less than (ie, "Yes") the first remaining threshold, the process directly waits for step S306, and the embodiment only The detailed description of the various embodiments is not intended to limit the scope of the embodiments.
值得注意的是, 本实施方式在判断到实时数量小于预设阔值的情况 下, 需要进一步判断数据存储载体的剩余存储空间的空间剩余值是否小于 预设的第一剩余阔值。 具体而言, 在步骤 S302中, 为了保证数据存储载 体以及已挂载的虚拟机等的工作性能和服务性能, 需要保证数据存储载体 与虚拟机之间的输入 /输出口 (即 I/O口)畅通, 或者保证数据存储载体拥 有足够的剩余存储空间来存储已挂载的虚拟机产生的冗余数据, 或者利于 对已挂载的虚拟机进行扩充、 扩展(如扩充 CPU核数、 扩充内存大小和 存储容量等) , 因此, 本实施方式需要根据空间剩余值的大小而确定是否 需要预先设置虚拟机磁盘。 需要说明的是, 本实施方式的空间剩余值可以为一个数据存储载体的 剩余存储空间或多个数据存储载体所总共的剩余存储空间的大小, 譬如当 需要预先设置虚拟机磁盘到数据存储载体 A时, 数据存储载体 A的剩余 存储空间的空间剩余值小于第一剩余阔值, 那么将停止预先设置虚拟机磁 盘到数据存储载体 A, 而同时数据存储载体 B的剩余存储空间的空间剩余 值不小于第一剩余阔值, 则在预先设置的过程中可以预先设置虚拟机磁盘 到数据存储载体^ It should be noted that, in the case that it is determined that the real-time quantity is less than the preset threshold, it is required to further determine whether the spatial residual value of the remaining storage space of the data storage carrier is smaller than a preset first remaining threshold. Specifically, in step S302, in order to ensure the performance and service performance of the data storage carrier and the mounted virtual machine, etc., it is necessary to ensure an input/output port (ie, an I/O port) between the data storage carrier and the virtual machine. ) Smooth, or ensure that the data storage carrier has enough remaining storage space to store redundant data generated by the mounted virtual machine, or to expand and expand the mounted virtual machine (such as expanding the number of CPU cores, expanding the memory) Size, storage capacity, etc.) Therefore, in this embodiment, it is necessary to determine whether a virtual machine disk needs to be set in advance according to the size of the space residual value. It should be noted that the spatial residual value of the present embodiment may be the remaining storage space of one data storage carrier or the total storage space of multiple data storage carriers, for example, when the virtual machine disk needs to be preset to the data storage carrier A. When the remaining space of the remaining storage space of the data storage carrier A is smaller than the first remaining threshold, the virtual disk of the virtual machine is stopped to the data storage carrier A, and the remaining space of the remaining storage space of the data storage carrier B is not If it is smaller than the first remaining threshold, the virtual machine disk can be pre-set to the data storage carrier in the preset process.
步骤 S303 ,判断空间剩余值是否小于预设的第二剩余阔值。在判断到 空间剩余值小于(即 "是" )第二剩余阔值时, 执行步骤 S304 , 而在判断 到空间剩余值不小于 (即 "否" ) 第二剩余阔值时, 等待执行步骤 S306 , 其中, 第一剩余阔值大于 (或大于等于) 第二剩余阔值。  Step S303: Determine whether the remaining value of the space is smaller than a preset second remaining threshold. When it is determined that the spatial residual value is less than (ie, "Yes") the second remaining threshold, step S304 is performed, and when it is determined that the spatial residual value is not less than (ie, "No") the second remaining threshold, step S306 is awaited Wherein the first remaining threshold is greater than (or greater than or equal to) the second remaining threshold.
步骤 S304 , 删除至少一个预先设置的虚拟机磁盘。  Step S304, deleting at least one preset virtual machine disk.
结合步骤 S303和步骤 S304不难看出,如果本实施方式由于某些特殊 原因 (检测实时数量错误、 或系统中毒等) 而导致一直根据虚拟机模板预 先设置虚拟机磁盘,此时,预先设置虚拟机磁盘的实时数量将会恶意增加, 甚至严重影响已挂载进行服务的虚拟机的工作性能, 或者导致用于存储虚 拟机磁盘的数据存储载体的数据发生混乱等; 因此, 本实施方式通过步骤 S303而实时地判断空间剩余值是否保持在第二剩余阔值附近并处于动态 平衡的状态, 避免上述问题的产生同时还能够及时地清理掉多余的预先设 置的虚拟机磁盘。 进一步而言, 通过步骤 S304 , 还可以及时清除掉预先设 置了一定时间 (譬如一周、 两周或一个月 ) 而一直没被挂载使用的虚拟机 磁盘, 譬如某一 CPU核数、 内存大小、 存储容量等规格参数没法用于挂 载进行服务; 当然, 也可以根据某一类型的虚拟机模板是否被低频率地挂 载使用, 而在判断到空间剩余值小于预设的第二剩余阔值时, 将该类型的 虚拟机模板预先设置出来的虚拟机磁盘删除掉。 本实施方式可以通过步骤 S304清理掉,使得有限的数据存储载体能够有效地被使用, 并能防止由于 错误、 中毒等原因而导致虚拟机磁盘被大量设置所引起的问题。  It is not difficult to see that, in combination with the step S303 and the step S304, if the present embodiment has previously set the virtual machine disk according to the virtual machine template due to some special reasons (detecting real-time quantity error, or system poisoning, etc.), the virtual machine is preset in advance. The real-time quantity of the disk will be maliciously increased, and even the performance of the virtual machine that has been mounted for service may be seriously affected, or the data storage carrier for storing the virtual machine disk may be confusing, etc.; therefore, the present embodiment passes the step S303. In real time, it is determined whether the remaining value of the space remains in the state of being in a dynamic balance near the second remaining threshold, thereby avoiding the above problem and simultaneously cleaning out the redundant pre-set virtual machine disk. Further, in step S304, the virtual machine disk that has not been mounted for a certain period of time (such as one week, two weeks, or one month) may be cleared in time, such as a certain CPU core, memory size, Specifications such as storage capacity cannot be used for mounting services; of course, it can also be based on whether a certain type of virtual machine template is mounted at a low frequency, and it is judged that the spatial residual value is smaller than the preset second remaining wide. When the value is set, the virtual machine disk preset by this type of virtual machine template is deleted. The present embodiment can be cleaned up in step S304, so that a limited data storage carrier can be effectively used, and problems caused by a large number of virtual machine disks being set due to errors, poisoning, and the like can be prevented.
步骤 S305 ,根据虚拟机模板预先设置虚拟机磁盘, 并存储到预定的数 据存储载体上。  Step S305, pre-setting the virtual machine disk according to the virtual machine template, and storing it on a predetermined data storage carrier.
在步骤 S305中, 本实施方式具体可以根据虚拟机模板中指定虚拟机所占用的存储资 源的属性信息如虚拟机存储容量规格等预先设置虚拟机磁盘。 即预先在资 源池中占用所述虚拟机模板中的虚拟机存储容量规格相同的磁盘。 优选 地, 所预先设置的虚拟机磁盘可以与虚拟机模版的存储容量规格一致, 也 可以进一步考虑虚拟机模板中规定(或装载)的操作系统和 /或应用程序所 占用的存储容量信息。 在其他实施方式中, 也可以根据实际情况而设定随 机或按预定规律地改变存储容量信息, 譬如根据数据存储载体的实际剩余 存储空间的大小而智能地调整虚拟机磁盘的存储容量信息等, 在此不作限 定。 In step S305, In this embodiment, the virtual machine disk may be preset according to the attribute information of the storage resource occupied by the specified virtual machine in the virtual machine template, such as the virtual machine storage capacity specification. That is, the disk with the same storage capacity of the virtual machine in the virtual machine template is occupied in the resource pool in advance. Preferably, the preset virtual machine disk may be consistent with the storage capacity specification of the virtual machine template, and may further consider storage capacity information occupied by an operating system and/or an application specified (or loaded) in the virtual machine template. In other embodiments, the storage capacity information may be randomly or periodically changed according to actual conditions, for example, intelligently adjusting the storage capacity information of the virtual machine disk according to the actual remaining storage space of the data storage carrier, This is not limited here.
需要说明的是, 本实施方式的数据存储载体为存放虚拟机磁盘的存储 空间, 其可以为一个或多个, 进一步而言, 不同的数据存储载体之间可以 分别存放不同虚拟机模板所预先设置得到的虚拟机磁盘, 也可以在同一个 数据存储载体只存放一种类型的虚拟机模板所预先设置得到的虚拟机磁 盘, 其具体可以根据服务情况、 工作效率等进行区别设置, 在此不作限定。 本实施方式预先设置的虚拟机磁盘可以与虚拟机模板存储于同一个数据 存储载体(可以提高预先设置过程的效率) , 也可以存储于云服务器本地 的存储设备等数据存储载体上; 当然, 在其他实施方式中数据存储载体还 可以为外置的存储设备, 在此不作限定。  It should be noted that the data storage carrier of the present embodiment is a storage space for storing virtual machine disks, which may be one or more. Further, different data storage carriers may separately store different virtual machine templates. The obtained virtual machine disk may also store only the virtual machine disks pre-set by one type of virtual machine template in the same data storage carrier, and the specific settings may be different according to service conditions and work efficiency, and are not limited herein. . The virtual machine disk preset in this embodiment may be stored in the same data storage carrier as the virtual machine template (which may improve the efficiency of the preset process), or may be stored on a data storage carrier such as a storage device local to the cloud server; In other embodiments, the data storage carrier may also be an external storage device, which is not limited herein.
步骤 S306 ,在需要发放虚拟机时,将虚拟机磁盘挂载到即时创建的虚 拟机上。  Step S306: When the virtual machine needs to be issued, the virtual machine disk is mounted on the virtual machine that is created immediately.
在步骤 S306中, 本实施方式可以通过中断请求、 或者根据集群、 月良 务器的服务负载情况而判断是否 "需要发放虚拟机" , 而在收到中断请求 或者判断到需要发放虚拟机时, 则先创建虚拟机(无需根据虚拟机模板中 指定的虚拟机所占用的存储资源的属性信息在云服务器的存储设备上创 建虚拟机磁盘等) , 接着直接将步骤 S305设置得到的虚拟机磁盘挂载到 即时创建的虚拟机上。  In step S306, the present embodiment may determine whether it is "need to issue a virtual machine" according to the service request of the cluster or the server, and when receiving the interrupt request or determining that the virtual machine needs to be issued, Then create a virtual machine (you do not need to create a virtual machine disk on the storage device of the cloud server according to the attribute information of the storage resource occupied by the virtual machine specified in the virtual machine template), and then directly mount the virtual machine disk obtained in step S305. Loaded on a virtual machine created on the fly.
需要说明的是, 现有技术中在需要发放虚拟机时, 设置虚拟机所需要 的时间具体还与虚拟机磁盘的存储容量、 应用程序和操作系统的种类相 关: 虚拟机磁盘的存储容量越大、 或应用程序和操作系统的种类越复杂, 其所需的时间也越长, 导致发放虚拟机的速度越慢。 不难看出, 本实施方 式将预先设置的过程提前进行, 而在需要发放时即可即时发放。 而需要相 应指出的是, 本实施方式所提的 "将预先设置的过程提前进行" 也可以为 在预先设置的过程中而接收到需要发放虚拟机的 "中断请求"或根据集群、 服务器的服务负载情况而判断到 "需要发放虚拟机" , 此时, 正在设置的 虚拟机磁盘在完成设置过程后即可与已经创建的虚拟机进行挂载, 相比于 现有技术而言, 此种方式仍具有加速发放虚拟机的效果。 It should be noted that, in the prior art, when a virtual machine needs to be distributed, the time required to set the virtual machine is specifically related to the storage capacity of the virtual machine disk, the type of the application and the operating system: The storage capacity of the virtual machine disk is larger. The more complex the type of application or operating system, the longer it takes, and the slower the virtual machine is issued. It is not difficult to see that this implementation The pre-set process is advanced in advance, and can be issued immediately when it needs to be issued. It should be pointed out that the "pre-set process" is performed in advance in the present embodiment. It is also possible to receive an "interrupt request" or a service according to the cluster or server in the process of pre-setting. According to the load situation, it is determined that the virtual machine needs to be issued. At this time, the virtual machine disk that is being set can be mounted with the created virtual machine after completing the setting process, compared with the prior art. There is still an effect of speeding up the issuance of virtual machines.
在具体的实现过程中, 步骤 S306可以包括如下过程:  In a specific implementation process, step S306 may include the following process:
S1 : 在需要发放虚拟机时, 获取输入的指定数据存储载体和指定规格 参数;  S1: Obtain the input specified data storage carrier and specified specification parameters when the virtual machine needs to be issued;
S2: 根据指定数据存储载体查找对应的数据存储载体, 并根据指定规 格参数在对应的数据存储载体内查找对应的虚拟机磁盘;  S2: searching for a corresponding data storage carrier according to the specified data storage carrier, and searching for a corresponding virtual machine disk in the corresponding data storage carrier according to the specified specification parameter;
S3 :获取即时创建的虚拟机,并将对应的虚拟机磁盘挂载到虚拟机上。 从 S1到 S3不难看出,云服务器等用于服务的系统同时用于一个或多 个集群、 服务器内进行服务, 因此用户 (管理员) 需要预先或实时地指定 不同数据存储载体内的不同规格参数的不同的虚拟机磁盘用于不同的集 群或服务器内进行服务。 譬如本实施方式可以根据集群或服务器的服务类 型、 网络类型等而指定所需的虚拟机模板所设置的虚拟机磁盘进行服务。 本实施方式通过 S1到 S3而实现 "检索-匹配" 的优化过程, 更利于工作 性能和服务质量的优化。  S3: Obtain the virtual machine created in real time and mount the corresponding virtual machine disk to the virtual machine. It is not difficult to see from S1 to S3 that a system for services such as a cloud server is used for one or more clusters and servers for service at the same time, so users (administrators) need to specify different specifications in different data storage carriers in advance or in real time. The different virtual machine disks of the parameters are used for servicing within different clusters or servers. For example, in this embodiment, the virtual machine disk set by the required virtual machine template may be specified according to the service type of the cluster or the server, the network type, and the like. This embodiment implements the "search-match" optimization process through S1 to S3, which is more conducive to the optimization of work performance and service quality.
此外, 需要指出的是, 现有技术在需要发放虚拟机时, 创建虚拟机, 接着虚拟机与虚拟机模板的虚拟机磁盘挂载连接, 并同时在另一数据存储 载体内创建用于保存修改的数据的差分磁盘, 也即是说, 现有技术将创建 的虚拟机同时挂载到虚拟机模板的虚拟机磁盘和差分磁盘上, 且同时需要 和两个存储载体之间进行数据连接、 传输, 这种方式需要同时占用两个数 据存储载体的 I/O口, 如果同时挂载工作的虚拟机过多或者出现 I/O口拥 堵的情况, 将严重影响发放的虚拟机的工作效率和服务性能。 而本实施方 式通过预先设置虚拟机磁盘的方式, 在虚拟机磁盘挂载服务时, 虚拟机只 与预先设置的虚拟机磁盘之间进行 I/O口连接而实现数据连接、 传输, 从 而保证发放后的虚拟机的工作效率和服务性能。  In addition, it should be noted that the prior art creates a virtual machine when the virtual machine needs to be issued, and then the virtual machine is mounted with the virtual machine disk of the virtual machine template, and is simultaneously created in another data storage carrier for saving and modifying. The differential disk of the data, that is to say, the virtual machine created by the prior art is simultaneously mounted on the virtual machine disk and the differential disk of the virtual machine template, and at the same time, data connection and transmission between the two storage carriers are required. In this way, the I/O ports of the two data storage carriers need to be occupied at the same time. If too many virtual machines are mounted at the same time or the I/O port is congested, the working efficiency and service of the issued virtual machines will be seriously affected. performance. In the embodiment, the virtual machine disk is pre-configured, and when the virtual machine disk is mounted on the virtual machine, the virtual machine only connects with the pre-set virtual machine disk to implement data connection and transmission, thereby ensuring the issuance. After the virtual machine's work efficiency and service performance.
本发明有效地解决了现有技术中在需要发放虚拟机时才开始设置虚 拟机磁盘, 而设置虚拟机磁盘等过程需要大量的时间, 进而导致不能及时 发放虚拟机的技术问题, 本发明避免在发放虚拟机时才开始设置, 因此有 效地提高了发放虚拟机的速度, 保证了工作效率和工作性能, 改善了用户 的使用体验。 The invention effectively solves the problem that the virtual device starts to be set when the virtual machine needs to be distributed in the prior art. The process of setting up a virtual machine disk requires a large amount of time, which may result in a technical problem that the virtual machine cannot be issued in time. The present invention avoids setting up the virtual machine when the virtual machine is issued, thereby effectively increasing the speed of issuing the virtual machine. It ensures work efficiency and work performance, and improves the user experience.
请结合图 1B参阅图 4 , 是本发明云服务器第一实施方式的模块示意 图, 本实施方式的云服务器包括但不限于预设置模块 41和发放模块 42。  Referring to FIG. 4B, FIG. 4 is a schematic block diagram of a first embodiment of a cloud server according to the present invention. The cloud server of the present embodiment includes but is not limited to a preset module 41 and a distribution module 42.
预设置模块 41用于根据虚拟机模板预先设置虚拟机磁盘, 并存储到 预定的数据存储载体上。  The pre-setting module 41 is configured to pre-set the virtual machine disk according to the virtual machine template and store it on a predetermined data storage carrier.
如前所述, 本实施方式预设置模块 41具体可以根据虚拟机模板中指 定虚拟机所占用的存储资源的属性信息如虚拟机存储容量规格等预先设 置虚拟机磁盘。 即预先在资源池中占用所述虚拟机模板中的虚拟机存储容 量规格相同的磁盘。 优选地, 所预先设置的虚拟机磁盘可以与虚拟机模版 的存储容量规格一致, 也可以进一步考虑虚拟机模板中规定(或装载) 的 操作系统和 /或应用程序所占用的存储容量信息。在其他实施方式中,预设 置模块 41也可以根据实际情况而设定随机或按预定规律地改变存储容量 信息, 譬如根据数据存储载体的实际剩余存储空间的大小而智能地调整虚 拟机磁盘的存储容量信息等, 在此不作限定。  As described above, the pre-setting module 41 of the present embodiment may specifically set a virtual machine disk according to attribute information of a storage resource occupied by the virtual machine specified in the virtual machine template, such as a virtual machine storage capacity specification. That is, the disk with the same storage capacity of the virtual machine in the virtual machine template is occupied in the resource pool in advance. Preferably, the pre-set virtual machine disk may be consistent with the storage capacity specification of the virtual machine template, and may further consider the storage capacity information occupied by the operating system and/or application specified (or loaded) in the virtual machine template. In other embodiments, the pre-setting module 41 may also set the storage capacity information randomly or according to a predetermined condition according to actual conditions, such as intelligently adjusting the storage of the virtual machine disk according to the size of the actual remaining storage space of the data storage carrier. Capacity information and the like are not limited herein.
需要说明的是, 本实施方式的数据存储载体为存放虚拟机磁盘的存储 空间, 其可以为一个或多个, 进一步而言, 不同的数据存储载体之间可以 分别存放不同虚拟机模板所预先设置得到的虚拟机磁盘, 也可以在同一个 数据存储载体只存放一种类型的虚拟机模板所预先设置得到的虚拟机磁 盘, 其具体可以根据服务情况、 工作效率等进行区别设置, 在此不作限定。 本实施方式预先设置的虚拟机磁盘可以与虚拟机模板存储于同一个数据 存储载体(可以提高预先设置过程的效率) , 也可以存储于云服务器本地 的存储设备等数据存储载体上 (如图 1B所示) ; 当然, 在其他实施方式 中数据存储载体还可以为外置的存储设备,譬如可以为 IP SAN、 FC SAN、 NAS等, 在此不作限定。  It should be noted that the data storage carrier of the present embodiment is a storage space for storing virtual machine disks, which may be one or more. Further, different data storage carriers may separately store different virtual machine templates. The obtained virtual machine disk may also store only the virtual machine disks pre-set by one type of virtual machine template in the same data storage carrier, and the specific settings may be different according to service conditions and work efficiency, and are not limited herein. . The virtual machine disk preset in this embodiment may be stored in the same data storage carrier as the virtual machine template (which may improve the efficiency of the preset process), or may be stored on a data storage carrier such as a storage device local to the cloud server (FIG. 1B). The data storage carrier may be an external storage device, such as an IP SAN, an FC SAN, a NAS, etc., which is not limited herein.
其中, 虚拟机模板可以釆用已用于使用或服务的其他虚拟机作为模 板,也可以预先通过人工安装得到。本实施方式以手工安装为例进行描述: 创建虚拟机, 指定虚拟机的 CPU核数、 内存大小、 存储容量等, 创建后 在数据存储载体内保存虚拟机的上述信息及虚拟机磁盘; 为创建的虚拟机 安装操作系统和应用软件并存储到该虚拟机磁盘上, 如 WEB服务和数据 库等; 完成上述创建安装过程后, 即可根据用户的操作或者智能判断而作 为后续预先设置的虚拟机模板。 The virtual machine template can use other virtual machines that have been used or used as templates, or can be manually installed in advance. This embodiment describes the manual installation as an example: Create a virtual machine, specify the CPU core, memory size, storage capacity, etc. of the virtual machine. After creation, The above information of the virtual machine and the virtual machine disk are saved in the data storage carrier; the operating system and application software are installed on the created virtual machine and stored on the virtual machine disk, such as the WEB service and the database; after completing the above installation and installation process, It can be used as a follow-up virtual machine template according to the user's operation or intelligent judgment.
发放模块 42用于在需要发放虚拟机时, 将虚拟机磁盘挂载到即时创 建的虚拟机上。  The issuance module 42 is used to mount a virtual machine disk to an instant-created virtual machine when a virtual machine needs to be issued.
本实施方式发放模块 42可以通过中断请求、 或者根据集群、 服务器 的服务负载情况而判断是否 "需要发放虚拟机" , 而在收到中断请求或者 判断到需要发放虚拟机时, 发放模块 42则先创建虚拟机(无需根据虚拟 机模板中指定的虚拟机所占用的存储资源的属性信息在云服务器的存储 设备上创建虚拟机磁盘) , 接着直接将预设置模块 41设置得到的虚拟机 磁盘挂载到即时创建的虚拟机上。  The issuing module 42 of the present embodiment may determine whether the virtual machine needs to be issued according to the service request of the cluster or the server, and when the interrupt request is received or the virtual machine needs to be issued, the issuing module 42 first Create a virtual machine (you do not need to create a virtual machine disk on the storage device of the cloud server according to the attribute information of the storage resource occupied by the virtual machine specified in the virtual machine template), and then directly mount the virtual machine disk set by the preset module 41. Go to the virtual machine created on the fly.
需要说明的是, 现有技术中在需要发放虚拟机时, 发放虚拟机所需要 的时间具体还与虚拟机磁盘的存储容量、 应用程序和操作系统的种类相 关: 虚拟机磁盘的存储容量越大、 或应用程序和操作系统的种类越复杂, 其所需的时间也越长, 导致发放虚拟机的速度越慢。 不难看出, 本实施方 式预设置模块 41将设置的过程提前进行, 而在需要发放时发放模块 42即 可即时发放。 而需要相应指出的是, 本实施方式预设置模块 41所提的 "将 设置的过程提前进行"也可以为在预先设置的过程中而接收到需要发放虚 拟机的 "中断请求" 或根据集群、 服务器的服务负载情况而判断到 "需要 发放虚拟机" , 此时, 正在预先设置的虚拟机磁盘在完成设置过程后即可 与已经创建的虚拟机进行挂载, 相比于现有技术而言, 此种方式仍具有加 速发放虚拟机的效果。  It should be noted that, in the prior art, when a virtual machine needs to be distributed, the time required for issuing the virtual machine is specifically related to the storage capacity of the virtual machine disk, the type of the application and the operating system: The storage capacity of the virtual machine disk is larger. The more complex the type of application or operating system, the longer it takes, and the slower the virtual machine is issued. It is not difficult to see that the pre-setting module 41 of the present embodiment advances the setting process, and the issuing module 42 can be issued immediately when it is required to be issued. It should be pointed out that the "pre-setting process" proposed by the pre-setting module 41 of the present embodiment may also receive an "interrupt request" for issuing a virtual machine in a preset process or according to a cluster, The service load of the server determines that "the virtual machine needs to be issued". At this time, the virtual machine disk that is being set in advance can be mounted with the created virtual machine after completing the setting process, compared with the prior art. This method still has the effect of speeding up the issuance of virtual machines.
其中, 即时发放的虚拟机可以根据集群、 服务器的负载情况而发放到 相应超负载的集群、 服务器中进行服务, 也可以根据用户的操作而指定发 放到相应的集群、 服务器中进行服务, 当然, 在具体的工作过程中, 还包 括关联网络等过程, 在本技术领域人员理解的范围内, 不作细述。  The virtual machine that is released immediately can be distributed to the corresponding overloaded cluster or server for service according to the load of the cluster and the server, or can be distributed to the corresponding cluster and server for service according to the operation of the user. In the specific working process, processes such as associating networks are also included, and are not described in detail within the scope of those skilled in the art.
此外, 本实施方式预设置模块 41如果在需要发放虚拟机而一个或多 个数据存储载体内没有预先设置的虚拟机磁盘时, 也可以进行即时设置 (在线设置) , 以避免没有即时可用的虚拟机时产生不必要的麻烦, 进而 保证能够发放用于进行服务的虚拟机。 In addition, the pre-setting module 41 of the present embodiment can also perform instant setting (online setting) if there is no virtual machine disk set in advance in one or more data storage carriers when the virtual machine needs to be issued, so as to avoid virtuality that is not available immediately. Unnecessary trouble during the machine, and further Ensure that virtual machines for service are available.
综上所述, 本发明云服务器有效地解决了现有技术中在需要发放虚拟 机时才开始设置虚拟机磁盘, 而设置虚拟机磁盘等过程需要大量的时间, 进而导致不能及时发放虚拟机的技术问题, 本发明预先设置与虚拟机模板 相同的虚拟机磁盘, 提高了发放虚拟机的速度, 保证了云服务器的工作效 率和工作性能, 改善了用户的使用体验。  In summary, the cloud server of the present invention effectively solves the problem that the virtual machine disk is set up when the virtual machine needs to be distributed in the prior art, and the process of setting the virtual machine disk requires a large amount of time, which may result in the failure to timely issue the virtual machine. Technical Problem, the present invention pre-sets the same virtual machine disk as the virtual machine template, improves the speed of issuing the virtual machine, ensures the working efficiency and working performance of the cloud server, and improves the user experience.
请参阅图 5 , 图 5是本发明云服务器第二实施方式的模块示意图, 本 实施方式云服务器包括但不限于预设置模块 51、 发放模块 52、 检测模块 53、 第一判断模块 54、 第二判断模块 55、 处理模块 56和执行模块 57。  Referring to FIG. 5, FIG. 5 is a schematic diagram of a second embodiment of a cloud server according to the present invention. The cloud server of the present embodiment includes but is not limited to a preset module 51, a distribution module 52, a detection module 53, a first determining module 54, and a second The judging module 55, the processing module 56 and the executing module 57.
如前所述, 预设置模块 51用于根据虚拟机模板预先设置虚拟机磁盘, 并存储到预定的数据存储载体上。  As described above, the pre-setting module 51 is configured to pre-set the virtual machine disk according to the virtual machine template and store it on a predetermined data storage carrier.
发放模块 52用于在需要发放虚拟机时, 将虚拟机磁盘挂载到即时创 建的虚拟机上。  The issue module 52 is used to mount a virtual machine disk to an instant-created virtual machine when a virtual machine needs to be issued.
需要说明的是, 在本实施方式中, 检测模块 53用于检测数据存储载 体内的虚拟机磁盘的实时数量。 举例而言, 在某一指定的数据存储载体内 或者所有可用的数据存储载体内可能已经存在了一定数量的预先设置的 虚拟机磁盘, 其数量可能已经达到和 /或超过了一定的范围, 或者可能由于 数量过多而影响了正在服务的虚拟机的工作状态和服务质量, 也可能由于 无限制地预先设置而降低了系统的工作性能, 此外, 预先设置数量过多的 虚拟机磁盘也会导致浪费数据存储载体的存储空间, 因此, 本实施方式通 过检测模块 53检测一个或多个数据存储载体内的虚拟机磁盘的实时数量, 以实现智能的预先设置模式。  It should be noted that, in this embodiment, the detecting module 53 is configured to detect the real-time quantity of the virtual machine disks in the data storage carrier. For example, a certain number of pre-configured virtual machine disks may already exist in a given data storage carrier or in all available data storage carriers, the number of which may have reached and/or exceeded a certain range, or It may affect the working status and quality of service of the virtual machine being served due to the excessive number. It may also reduce the performance of the system due to unlimited presets. In addition, pre-setting a large number of virtual machine disks may also result in The storage space of the data storage carrier is wasted. Therefore, the present embodiment detects the real-time number of virtual machine disks in one or more data storage carriers by the detection module 53 to implement an intelligent preset mode.
第一判断模块 54用于判断检测模块 53检测到的实时数量是否小于预 设阔值。 其中, 本实施方式的预设阈值可以根据数据存储载体在预设时间 内发放的虚拟机的发放数量(或发放频率)进行设置, 从而实现数据存储 载体内的虚拟机磁盘的数量的动态平衡, 并保证在预设时间内始终保持有 预设阔值个虚拟机磁盘等待执行挂载、 发放的过程。 此外, 预设阔值也可 以釆用人工设置, 譬如根据实际的工作、服务需要而设置, 在此不作限定。 此时, 执行模块 57用于在第一判断模块 54判断到实时数量小于预设阔值 时, 通知预设置模块 51根据虚拟机模板预先设置虚拟机磁盘, 在第一判 断模块 54判断到实时数量不小于预设阔值时, 通知发放模块 52在需要发 放虚拟机时将虚拟机磁盘挂载到即时创建的虚拟机上。 The first determining module 54 is configured to determine whether the real-time quantity detected by the detecting module 53 is less than a preset threshold. The preset threshold of the embodiment may be set according to the number of virtual machines issued by the data storage carrier within a preset time (or the frequency of issuance), thereby realizing the dynamic balance of the number of virtual machine disks in the data storage carrier. It also ensures that the virtual machine disk with the preset threshold value is always waiting to be mounted and issued within the preset time. In addition, the preset threshold can also be manually set, for example, according to the actual work and service needs, and is not limited herein. At this time, the executing module 57 is configured to notify the pre-setting module 51 to preset the virtual machine disk according to the virtual machine template when the first determining module 54 determines that the real-time quantity is less than the preset threshold, in the first sentence. When the breaking module 54 determines that the real-time number is not less than the preset threshold, the notification issuing module 52 mounts the virtual machine disk to the virtual machine that is created immediately when the virtual machine needs to be issued.
进一步而言, 本实施方式的第一判断模块 54还可以用于判断数据存 储载体的剩余存储空间的空间剩余值是否小于预设的第一剩余阔值。 其 中,第一剩余阔值可以通过人工设置,也可以通过云服务器系统自动设置, 在此不作限定。 本实施方式为了保证数据存储载体以及已挂载的虚拟机等 的工作性能和服务性能,需要保证数据存储载体与虚拟机之间的输入 /输出 口 (即 I/O口) 畅通, 或者保证数据存储载体拥有足够的剩余存储空间来 存储已挂载的虚拟机产生的冗余数据, 或者利于对已挂载的虚拟机进行扩 充、 扩展(如扩充 CPU核数、 扩充内存大小和存储容量等) , 因此, 本 实施方式通过第一判断模块 54根据空间剩余值的大小而确定是否需要预 先设置虚拟机磁盘。  Further, the first determining module 54 of the embodiment may be further configured to determine whether a spatial residual value of a remaining storage space of the data storage carrier is less than a preset first remaining threshold. The first remaining threshold may be manually set or automatically set by the cloud server system, which is not limited herein. In this embodiment, in order to ensure the performance and service performance of the data storage carrier and the mounted virtual machine, it is necessary to ensure that the input/output ports (ie, I/O ports) between the data storage carrier and the virtual machine are unblocked, or data is guaranteed. The storage carrier has enough remaining storage space to store redundant data generated by the mounted virtual machine, or to expand and expand the mounted virtual machine (such as expanding the number of CPU cores, expanding the memory size and storage capacity, etc.) Therefore, in the embodiment, the first determining module 54 determines whether it is necessary to preset the virtual machine disk according to the size of the spatial residual value.
此外, 本实施方式的空间剩余值可以为一个数据存储载体的剩余存储 空间或多个数据存储载体所总共的剩余存储空间的大小, 譬如当需要预先 设置虚拟机磁盘到数据存储载体 A时, 数据存储载体 A的剩余存储空间 的空间剩余值小于第一剩余阔值, 那么将停止预先设置虚拟机磁盘到数据 存储载体 A, 而同时数据存储载体 B的剩余存储空间的空间剩余值不小于 第一剩余阈值, 则在预先设置的过程中可以预先设置虚拟机磁盘到数据存 储载体 B。  In addition, the space residual value of the embodiment may be the remaining storage space of one data storage carrier or the total storage space of the plurality of data storage carriers, for example, when the virtual machine disk needs to be preset to the data storage carrier A, the data If the spatial residual value of the remaining storage space of the storage carrier A is smaller than the first remaining threshold, then the virtual machine disk is preset to be stopped to the data storage carrier A, and the remaining space of the remaining storage space of the data storage carrier B is not less than the first For the remaining threshold, the virtual machine disk can be pre-set to the data storage carrier B in a preset process.
相应地, 执行模块 57具体可以用于在第一判断模块 54判断到实时数 量小于预设阔值且空间剩余值不小于第一剩余阔值时,通知预设置模块 51 根据虚拟机模板预先设置虚拟机磁盘, 在第一判断模块 54判断到实时数 量小于预设阔值但空间剩余值小于第一剩余阔值时, 通知发放模块 52在 需要发放虚拟机时将虚拟机磁盘挂载到即时创建的虚拟机上, 在第一判断 模块 54判断到实时数量不小于预设阔值时, 通知发放模块 52在需要发放 虚拟机时将虚拟机磁盘挂载到即时创建的虚拟机上。  Correspondingly, the execution module 57 is specifically configured to notify the preset module 51 to preset the virtuality according to the virtual machine template when the first determining module 54 determines that the real-time quantity is less than the preset threshold and the spatial residual value is not less than the first remaining threshold. If the first judging module 54 determines that the real-time quantity is less than the preset threshold but the space residual value is less than the first remaining threshold, the notification issuing module 52 mounts the virtual machine disk to the instant creation when the virtual machine needs to be issued. On the virtual machine, when the first determining module 54 determines that the real-time number is not less than the preset threshold, the notification issuing module 52 mounts the virtual machine disk to the virtual machine that is created immediately when the virtual machine needs to be issued.
值得注意的是, 本实施方式的第二判断模块 55用于在第一判断模块 54判断到空间剩余值小于第一剩余阔值之后,判断空间剩余值是否小于预 设的第二剩余阔值, 其中, 第一剩余阔值大于第二剩余阔值。  It is to be noted that the second determining module 55 of the present embodiment is configured to determine, after the first determining module 54 determines that the spatial residual value is less than the first remaining threshold, whether the spatial residual value is less than a preset second remaining threshold. The first remaining threshold is greater than the second remaining threshold.
不难理解, 在云服务器的系统内, 可能存在某些特殊原因 (检测模块 53检测实时数量错误、 或云服务器系统中毒等)而导致一直根据虚拟机模 板预先设置虚拟机磁盘, 此时, 预先设置虚拟机磁盘的实时数量将会恶意 增加, 甚至严重影响已挂载进行服务的虚拟机的工作性能, 或者导致用于 存储虚拟机磁盘的数据存储载体的数据发生混乱等。 因此, 本实施方式通 过第二判断模块 55实时地判断空间剩余值是否保持在第二剩余阔值附近 并处于动态平衡的状态, 避免上述问题的产生同时还能够及时地清理掉多 余的预先设置的虚拟机磁盘。 It is not difficult to understand that there may be some special reasons in the cloud server system (detection module 53 detects the real-time quantity error, or the cloud server system poisoning, etc.), so that the virtual machine disk is always set according to the virtual machine template. At this time, the real-time quantity of the virtual machine disk is set to be maliciously increased, and even seriously affects the mounted service. The performance of the virtual machine, or the data of the data storage carrier used to store the virtual machine disk is confusing. Therefore, in this embodiment, the second judging module 55 determines in real time whether the spatial residual value is maintained in the vicinity of the second remaining threshold and is in a state of dynamic balance, thereby avoiding the above problem and simultaneously clearing out the redundant preset. Virtual machine disk.
处理模块 56用于在第二判断模块 55判断到空间剩余值小于第二剩余 阔值时, 删除至少一个预先设置的虚拟机磁盘, 并通知发放模块 52在需 要发放虚拟机时将虚拟机磁盘挂载到即时创建的虚拟机上, 在第二判断模 块 55判断到空间剩余值不小于第二剩余阔值时, 通知发放模块 52在需要 发放虚拟机时将虚拟机磁盘挂载到即时创建的虚拟机上。  The processing module 56 is configured to: when the second determining module 55 determines that the spatial residual value is less than the second remaining threshold, delete at least one preset virtual machine disk, and notify the issuing module 52 to hang the virtual machine disk when the virtual machine needs to be issued. When the second judging module 55 determines that the remaining value of the space is not less than the second remaining threshold, the notification issuing module 52 mounts the virtual machine disk to the virtual virtual machine when the virtual machine needs to be issued. on board.
如前所述, 本实施方式通过处理模块 56可以及时清除掉预先设置并 存放了一定时间(譬如一周或一个月 )而一直没被挂载使用的虚拟机磁盘, 譬如某一 CPU核数、 内存大小、 存储容量等规格参数没法用于挂载进行 月良务; 当然,也可以根据某一类型的虚拟机模板是否被低频率地挂载使用, 而在判断到空间剩余值小于预设的第二剩余阔值时, 将该类型的虚拟机模 板预先设置出来的虚拟机磁盘删除掉。 本实施方式通过智能地删除预先设 置的虚拟机磁盘的方式, 使得有限的数据存储载体能够有效地被使用, 并 能防止由于错误、 中毒等原因而导致虚拟机磁盘被大量设置所引起的问 题。  As described above, the processing module 56 can clear the virtual machine disk that has been pre-set and stored for a certain period of time (such as one week or one month) and has not been mounted for use, such as a certain CPU core and memory. Specifications such as size and storage capacity cannot be used for mounting for monthly tasks. Of course, it is also possible to determine whether the space residual value is less than the preset value according to whether a certain type of virtual machine template is mounted at a low frequency. When the second remaining threshold is exceeded, the virtual machine disk preset by the virtual machine template of this type is deleted. The present embodiment enables a limited data storage carrier to be effectively used by intelligently deleting a pre-set virtual machine disk, and can prevent problems caused by a large number of virtual machine disks being set due to errors, poisoning, and the like.
请结合图 5参阅图 6 , 在优选的实施方式中, 云服务器还可以包括获 取模块 58和设置模块 59。  Referring to FIG. 6 in conjunction with FIG. 5, in a preferred embodiment, the cloud server may further include an obtaining module 58 and a setting module 59.
获取模块 58用于获取数据存储载体在预设时间内发放的与虚拟机模 板对应的虚拟机的发放数量。 本实施方式通过获取模块 58获取预设时间 内的发放数量而设置预设阔值的方式, 可以实现数据存储载体内的虚拟机 磁盘的数量的动态平衡, 进而保证在预设时间内始终保持有预设阔值个虚 拟机磁盘等待执行挂载、 发放的过程。  The obtaining module 58 is configured to obtain the number of issued virtual machines corresponding to the virtual machine template issued by the data storage carrier within a preset time. In the embodiment, the method for setting the preset threshold by the obtaining module 58 to obtain the quantity of the preset time, the dynamic balance of the number of virtual machine disks in the data storage carrier can be realized, thereby ensuring that the preset time is always maintained. Pre-set a virtual machine disk waiting to perform the process of mounting and issuing.
设置模块 59用于根据获取模块 58获取到的发放数量设置预设阔值。 请结合图 5参阅图 7 , 在优选的实施方式中, 发放模块 52具体可以包 括获取单元 520、 查找单元 521和挂载单元 522。 The setting module 59 is configured to set a preset threshold according to the number of issuances acquired by the obtaining module 58. Referring to FIG. 7 in conjunction with FIG. 5, in a preferred embodiment, the issuing module 52 may specifically include The acquisition unit 520, the search unit 521, and the mount unit 522 are included.
获取单元 520用于在需要发放虚拟机时, 获取输入的指定数据存储载 体和指定规格参数。  The obtaining unit 520 is configured to obtain the input specified data storage carrier and the specified specification parameter when the virtual machine needs to be issued.
查找单元 521用于根据获取单元 520获取的指定数据存储载体查找对 应的数据存储载体, 并根据获取单元 520获取的指定规格参数在对应的数 据存储载体内查找对应的虚拟机磁盘。  The searching unit 521 is configured to search for the corresponding data storage carrier according to the specified data storage carrier acquired by the obtaining unit 520, and search for the corresponding virtual machine disk in the corresponding data storage carrier according to the specified specification parameter acquired by the obtaining unit 520.
挂载单元 522用于获取即时创建的虚拟机, 并将查找单元 521查找到 的对应的虚拟机磁盘挂载到虚拟机上。  The mounting unit 522 is configured to acquire the virtual machine created in real time, and mount the corresponding virtual machine disk found by the searching unit 521 to the virtual machine.
在本实施方式中, 云服务器可能同时用于一个或多个集群、 服务器内 进行服务, 因此用户 (管理员)需要预先或实时地指定不同数据存储载体 内的不同规格参数的不同的虚拟机磁盘用于不同的集群或服务器内进行 服务。 譬如本实施方式可以根据集群或服务器的服务类型、 网络类型等而 指定所需的虚拟机模板所设置出来的虚拟机磁盘进行服务。 本实施方式通 过 "检索-匹配" 而实现优化的发放过程, 更利于工作性能和服务质量的优 化。  In this embodiment, the cloud server may be used for serving in one or more clusters and servers at the same time, so the user (administrator) needs to specify different virtual machine disks with different specification parameters in different data storage carriers in advance or in real time. Used for services within different clusters or servers. For example, in this embodiment, the virtual machine disk set by the required virtual machine template may be specified according to the service type, network type, and the like of the cluster or the server. This embodiment achieves an optimized distribution process through "retrieval-match", which is more conducive to the optimization of work performance and service quality.
本发明有效地解决了现有技术中在需要发放虚拟机时才开始设置虚 拟机磁盘, 而设置虚拟机磁盘等过程需要大量的时间, 进而导致不能及时 发放虚拟机的技术问题, 本发明预先设置与虚拟机模板相同的虚拟机磁 盘, 提高了发放虚拟机的速度, 保证了工作效率和工作性能, 改善了用户 的使用体验。  The present invention effectively solves the technical problem that the virtual machine disk is set in the prior art when the virtual machine needs to be distributed, and the process of setting the virtual machine disk requires a large amount of time, which may result in the failure to timely issue the virtual machine. The same virtual machine disk as the virtual machine template improves the speed of issuing virtual machines, ensuring work efficiency and performance, and improving the user experience.
请参阅图 8 , 是本发明云服务器第三实施方式的模块示意图, 本实施 方式云服务器包括但不限于处理器 61、 随机存取存储器 62、 只读存储器 63和总线 64 , 其中, 处理器 61通过总线 64分别与随机存取存储器 62和 只读存储器 63耦合。  8 is a schematic block diagram of a third embodiment of a cloud server according to the present invention. The cloud server of the present embodiment includes but is not limited to a processor 61, a random access memory 62, a read only memory 63, and a bus 64. The processor 61 is shown in FIG. It is coupled to random access memory 62 and read only memory 63 via bus 64, respectively.
本实施方式的处理器 61用于根据虚拟机模板预先设置虚拟机磁盘, 并存储到预定的数据存储载体上, 而在需要发放虚拟机时, 将虚拟机磁盘 挂载到即时创建的虚拟机上。  The processor 61 of the present embodiment is configured to pre-set a virtual machine disk according to a virtual machine template and store it on a predetermined data storage carrier, and when the virtual machine needs to be distributed, mount the virtual machine disk to the virtual machine that is created immediately. .
其中, 处理器 61具体可以根据虚拟机模板中指定虚拟机所占用的存 储资源的属性信息如虚拟机存储容量规格等预先设置虚拟机磁盘。 即预先 在资源池中占用所述虚拟机模板中的虚拟机存储容量规格相同的磁盘。 优 选地, 所预先设置的虚拟机磁盘可以与虚拟机模版的存储容量规格一致, 也可以进一步考虑虚拟机模板中规定(或装载 )的操作系统和 /或应用程序 所占用的存储容量信息。 在其他实施方式中, 也可以根据实际情况而设定 随机或按预定规律地改变存储容量信息, 譬如根据数据存储载体的实际剩 余存储空间的大小而智能地调整虚拟机磁盘的存储容量信息等, 在此不作 限定。 The processor 61 may specifically set the virtual machine disk according to the attribute information of the storage resource occupied by the specified virtual machine in the virtual machine template, such as a virtual machine storage capacity specification. That is, the disk with the same storage capacity of the virtual machine in the virtual machine template is occupied in the resource pool in advance. Excellent Optionally, the pre-configured virtual machine disk may be consistent with the storage capacity specification of the virtual machine template, and may further consider the storage capacity information occupied by the operating system and/or application specified (or loaded) in the virtual machine template. In other embodiments, the storage capacity information may be randomly or periodically changed according to actual conditions, for example, intelligently adjusting the storage capacity information of the virtual machine disk according to the actual remaining storage space of the data storage carrier, This is not limited here.
在具体的实施方式中, 处理器 61还可以用于检测数据存储载体内的 虚拟机磁盘的实时数量; 判断实时数量是否小于预设阔值; 在判断到实时 数量小于预设阔值时根据虚拟机模板预先设置虚拟机磁盘, 而在判断到实 时数量不小于预设阔值且需要发放虚拟机时, 将虚拟机磁盘挂载到即时创 建的虚拟机上。  In a specific implementation, the processor 61 may be further configured to detect a real-time quantity of a virtual machine disk in the data storage carrier; determine whether the real-time quantity is less than a preset threshold; and determine, according to the virtual quantity, that the real-time quantity is less than a preset threshold The machine template pre-sets the virtual machine disk, and when it is determined that the real-time quantity is not less than the preset threshold and the virtual machine needs to be issued, the virtual machine disk is mounted to the virtual machine that is created immediately.
此外, 本实施方式的云服务器的其他具体实施方式还请参阅前面实施 方式的相关描述,在本技术领域人员容易结合理解的范围内,不——赘述。  In addition, other embodiments of the cloud server of the present embodiment are also referred to the related descriptions of the foregoing embodiments, and are not described in detail within the scope of those skilled in the art.
本发明有效地解决了现有技术中在需要发放虚拟机时才开始设置虚 拟机磁盘, 而设置虚拟机磁盘等过程需要大量的时间, 进而导致不能及时 发放虚拟机的技术问题, 本发明预先设置与虚拟机模板相同的虚拟机磁 盘, 提高了发放虚拟机的速度, 保证了工作效率和工作性能, 改善了用户 的使用体验。  The present invention effectively solves the technical problem that the virtual machine disk is set in the prior art when the virtual machine needs to be distributed, and the process of setting the virtual machine disk requires a large amount of time, which may result in the failure to timely issue the virtual machine. The same virtual machine disk as the virtual machine template improves the speed of issuing virtual machines, ensuring work efficiency and performance, and improving the user experience.
在本发明所提供的几个实施方式中, 应该理解到, 所揭露的系统, 装 置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施方式 仅仅是示意性的, 例如, 所述模块或单元的划分, 仅仅为一种逻辑功能划 分, 实际实现时可以有另外的划分方式, 例如多个单元或组件可以结合或 者可以集成到另一个系统, 或一些特征可以忽略, 或不执行。 另一点, 所 显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接 口, 装置或单元的间接耦合或通讯连接, 可以是电性,机械或其它的形式。 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地 方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的 部分或者全部单元来实现本实施方式方案的目的。  In the several embodiments provided by the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the device implementations described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combined or can be integrated into another system, or some features can be ignored, or not executed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form. The components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the present embodiment.
另外, 在本发明各个实施方式中的各功能单元可以集成在一个处理单 元中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成 在一个单元中。 上述集成的单元既可以釆用硬件的形式实现, 也可以釆用 软件功能单元的形式实现。 In addition, each functional unit in various embodiments of the present invention may be integrated into one processing order In the meta element, each unit may exist physically separately, or two or more units may be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品 销售或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理 解, 本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技 术方案的全部或部分可以以软件产品的形式体现出来, 该计算机软件产品 存储在一个存储介质中, 包括若干指令用以使得一台计算机设备(可以是 个人计算机, 管理服务器, 或者网络设备等) 或处理器 (processor )执行 本发明各个实施方式所述方法的全部或部分步骤。 而前述的存储介质包 括: U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory ) 、 随机存 取存储器 (RAM, Random Access Memory ) 、 磁碟或者光盘等各种可以 存储程序代码的介质。  The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. The instructions include a plurality of instructions for causing a computer device (which may be a personal computer, a management server, or a network device, etc.) or a processor to perform all or part of the steps of the methods of the various embodiments of the present invention. The foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .
以上所述仅为本发明的实施方式, 并非因此限制本发明的保护范围, 凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直 接或间接运用在其他相关的技术领域, 均同理包括在本发明的专利保护范 围内。  The above description is only the embodiment of the present invention, and is not intended to limit the scope of the present invention. The equivalent structure or equivalent process transformation made by using the specification and the drawings of the present invention, or directly or indirectly applied to other related technologies. The scope of the invention is included in the scope of patent protection of the present invention.

Claims

权利要求书 Claim
1. 一种虚拟机管理方法, 其特征在于, 包括:  A virtual machine management method, comprising:
根据虚拟机模板预先设置虚拟机磁盘, 并存储到预定的数据存储载体 上;  Presetting virtual machine disks according to virtual machine templates and storing them on a predetermined data storage carrier;
在需要发放虚拟机时, 将所述虚拟机磁盘挂载到即时创建的虚拟机 上。  When you need to issue a virtual machine, mount the virtual machine disk to an instant-created virtual machine.
2. 根据权利要求 1所述的虚拟机管理方法, 其特征在于, 所述根据 虚拟机模板预先设置虚拟机磁盘, 包括:  The virtual machine management method according to claim 1, wherein the presetting the virtual machine disk according to the virtual machine template comprises:
根据虚拟机模板中指定的虚拟机所占用的存储资源的属性信息, 预先 在云服务器的存储设备上创建所述虚拟机磁盘。  The virtual machine disk is created in advance on the storage device of the cloud server according to the attribute information of the storage resource occupied by the virtual machine specified in the virtual machine template.
3. 根据权利要求 2所述的虚拟机管理方法, 其特征在于, 所述虚拟 机模板中指定的虚拟机所占用的存储资源的属性信息包括以下任意一种 或其组合: 虚拟机存储容量信息、 虚拟机的操作系统所占用的存储容量信 息, 或者虚拟机装载的应用程序所占用的存储容量信息。  The virtual machine management method according to claim 2, wherein the attribute information of the storage resource occupied by the virtual machine specified in the virtual machine template includes any one of the following or a combination thereof: virtual machine storage capacity information The storage capacity information occupied by the operating system of the virtual machine or the storage capacity information occupied by the application loaded by the virtual machine.
4. 根据权利要求 1-3任一项所述的虚拟机管理方法, 其特征在于, 所 述虚拟机管理方法还包括:  The virtual machine management method according to any one of claims 1 to 3, wherein the virtual machine management method further comprises:
检测所述数据存储载体内的所述虚拟机磁盘的实时数量;  Detecting a real-time quantity of the virtual machine disks in the data storage carrier;
判断所述实时数量是否小于预设阔值;  Determining whether the real-time quantity is less than a preset threshold;
在判断到所述实时数量小于所述预设阔值时, 执行所述根据虚拟机模 板预先设置虚拟机磁盘的步骤。  When it is determined that the real-time quantity is less than the preset threshold, the step of pre-setting a virtual machine disk according to the virtual machine template is performed.
5. 根据权利要求 4所述的虚拟机管理方法, 其特征在于, 所述检测 所述数据存储载体内的所述虚拟机磁盘的实时数量的步骤之前还包括: 获取所述数据存储载体在预设时间内发放的与所述虚拟机模板对应 的虚拟机的发放数量;  The virtual machine management method according to claim 4, wherein the step of detecting the real-time quantity of the virtual machine disk in the data storage carrier further comprises: acquiring the data storage carrier in a pre-preparation The number of virtual machines issued corresponding to the virtual machine template issued in a set time;
根据所述虚拟机的发放数量设置所述预设阔值。  The preset threshold is set according to the number of issuances of the virtual machine.
6. 根据权利要求 5所述的虚拟机管理方法, 其特征在于, 所述根据 虚拟机模板预先设置虚拟机磁盘之前, 还包括:  The virtual machine management method according to claim 5, wherein before the virtual machine disk is pre-set according to the virtual machine template, the method further includes:
判断所述数据存储载体的剩余存储空间的空间剩余值是否小于预设 的第一剩余阔值;  Determining whether a spatial residual value of a remaining storage space of the data storage carrier is less than a preset first remaining threshold;
在判断到所述空间剩余值不小于所述第一剩余阔值时, 执行所述根据 虚拟机模板预先设置虚拟机磁盘的步骤。 Performing the basis when it is determined that the remaining value of the space is not less than the first remaining threshold The steps for the virtual machine template to pre-set the virtual machine disk.
7. 根据权利要求 6所述的虚拟机管理方法, 其特征在于, 在判断到 所述空间剩余值小于所述第一剩余阔值之后还包括:  The virtual machine management method according to claim 6, further comprising: after determining that the spatial residual value is smaller than the first remaining threshold;
判断所述空间剩余值是否小于预设的第二剩余阔值, 其中, 所述第一 剩余阔值大于所述第二剩余阔值;  Determining whether the remaining value of the space is smaller than a preset second remaining threshold, wherein the first remaining threshold is greater than the second remaining threshold;
若判断所述空间剩余值小于所述第二剩余阔值时, 删除至少一个所述 预先设置的虚拟机磁盘。  If it is determined that the remaining value of the space is smaller than the second remaining threshold, at least one of the preset virtual machine disks is deleted.
8. 根据权利要求 1-3任一项所述的虚拟机管理方法, 其特征在于, 所 述在需要发放虚拟机时, 将所述虚拟机磁盘挂载到即时创建的虚拟机上, 包括:  The virtual machine management method according to any one of claims 1 to 3, wherein, when the virtual machine needs to be issued, the virtual machine disk is mounted on the virtual machine that is created immediately, including:
在需要发放虚拟机时, 获取输入的指定数据存储载体和指定规格参 数;  Obtain the specified data storage carrier and specified specification parameters when the virtual machine needs to be issued;
根据所述指定数据存储载体查找对应的数据存储载体, 并根据所述指 定规格参数在所述对应的数据存储载体内查找对应的虚拟机磁盘;  And searching for a corresponding data storage carrier according to the specified data storage carrier, and searching for a corresponding virtual machine disk in the corresponding data storage carrier according to the specified specification parameter;
获取即时创建的虚拟机, 并将所述对应的虚拟机磁盘挂载到所述虚拟 机上。  Obtain an instant-created virtual machine and mount the corresponding virtual machine disk to the virtual machine.
9. 一种云服务器, 其特征在于, 所述云服务器包括:  A cloud server, the cloud server comprising:
预设置模块, 用于根据虚拟机模板预先设置虚拟机磁盘, 并存储到预 定的数据存储载体上;  a preset module, configured to pre-set a virtual machine disk according to the virtual machine template, and store the file on a predetermined data storage carrier;
发放模块, 用于在需要发放虚拟机时, 将所述虚拟机磁盘挂载到即时 创建的虚拟机上。  A distribution module is configured to mount the virtual machine disk to an instant-created virtual machine when the virtual machine needs to be issued.
10. 根据权利要求 9所述的云服务器, 其特征在于, 所述预设置模块 具体用于根据虚拟机模板中指定的虚拟机所占用的存储资源的属性信息, 预先在云服务器的存储设备上创建所述虚拟机磁盘。  The cloud server according to claim 9, wherein the pre-setting module is specifically configured to pre-populate the storage device of the cloud server according to the attribute information of the storage resource occupied by the virtual machine specified in the virtual machine template. Create the virtual machine disk.
11. 根据权利要求 10所述的云服务器, 其特征在于, 所述虚拟机模 板中指定的虚拟机所占用的存储资源的属性信息包括以下任意一种或其 组合: 虚拟机存储容量信息、 虚拟机的操作系统所占用的存储容量信息, 或者虚拟机装载的应用程序所占用的存储容量信息。  The cloud server according to claim 10, wherein the attribute information of the storage resource occupied by the virtual machine specified in the virtual machine template includes any one of the following or a combination thereof: virtual machine storage capacity information, virtual The storage capacity information occupied by the operating system of the machine, or the storage capacity information occupied by the application loaded by the virtual machine.
12. 根据权利要求 9-11任一项所述的云服务器, 其特征在于, 所述云 服务器还包括: 检测模块, 用于检测所述数据存储载体内的所述虚拟机磁盘的实时数 量; The cloud server according to any one of claims 9 to 11, wherein the cloud server further comprises: a detecting module, configured to detect a real-time quantity of the virtual machine disk in the data storage carrier;
第一判断模块, 用于判断所述检测模块检测到的所述实时数量是否小 于预设阔值;  a first determining module, configured to determine whether the real-time quantity detected by the detecting module is smaller than a preset threshold;
执行模块, 用于在所述第一判断模块判断到所述实时数量小于所述预 设阔值时, 通知所述预设置模块根据虚拟机模板预先设置虚拟机磁盘。  And an execution module, configured to notify the preset module to preset a virtual machine disk according to the virtual machine template when the first determining module determines that the real-time quantity is less than the preset threshold.
13. 根据权利要求 12所述的云服务器, 其特征在于, 所述云服务器 还包括:  The cloud server according to claim 12, wherein the cloud server further comprises:
获取模块, 用于获取所述数据存储载体在预设时间内发放的与所述虚 拟机模板对应的虚拟机的发放数量;  An obtaining module, configured to acquire, by the data storage carrier, a number of virtual machines issued by the virtual machine template corresponding to the virtual machine template;
设置模块, 用于根据所述获取模块获取到的所述发放数量设置所述预 设阔值。  And a setting module, configured to set the preset threshold according to the number of issuances obtained by the obtaining module.
14. 根据权利要求 13所述的云服务器, 其特征在于:  14. The cloud server of claim 13, wherein:
所述第一判断模块还用于判断所述数据存储载体的剩余存储空间的 空间剩余值是否小于预设的第一剩余阔值;  The first determining module is further configured to determine whether a spatial residual value of the remaining storage space of the data storage carrier is less than a preset first remaining threshold;
所述执行模块具体用于: 在所述第一判断模块判断到所述空间剩余值 不小于所述第一剩余阔值时, 通知所述预设置模块根据虚拟机模板预先设 置虚拟机磁盘。  The execution module is specifically configured to: when the first determining module determines that the remaining value of the space is not less than the first remaining threshold, notify the preset module to preset a virtual machine disk according to the virtual machine template.
15. 根据权利要求 14所述的云服务器, 其特征在于, 所述云服务器 还包括:  The cloud server according to claim 14, wherein the cloud server further comprises:
第二判断模块, 用于在所述第一判断模块判断到所述空间剩余值小于 所述第一剩余阔值之后, 判断所述空间剩余值是否小于预设的第二剩余阔 值, 其中, 所述第一剩余阔值大于所述第二剩余阔值;  a second determining module, configured to determine, after the first determining module determines that the remaining value of the space is smaller than the first remaining threshold, whether the remaining value of the space is smaller than a preset second remaining threshold, where The first remaining threshold is greater than the second remaining threshold;
处理模块, 用于在所述第二判断模块判断所述空间剩余值小于所述第 二剩余阔值时, 删除至少一个所述预先设置的的虚拟机磁盘。  And a processing module, configured to delete at least one of the preset virtual machine disks when the second determining module determines that the space residual value is less than the second remaining threshold.
16. 根据权利要求 9-11任一项所述的云服务器, 其特征在于, 所述发 放模块具体包括:  The cloud server according to any one of claims 9-11, wherein the sending module specifically comprises:
获取单元, 用于在需要发放虚拟机时, 获取输入的指定数据存储载体 和指定规格参数;  An obtaining unit, configured to obtain an input specified data storage carrier and a specified specification parameter when the virtual machine needs to be issued;
查找单元, 用于根据所述获取单元获取的所述指定数据存储载体查找 对应的数据存储载体, 并根据所述获取单元获取的所述指定规格参数在所 述对应的数据存储载体内查找对应的虚拟机磁盘; a searching unit, configured to search according to the specified data storage carrier acquired by the acquiring unit Corresponding data storage carrier, and searching for a corresponding virtual machine disk in the corresponding data storage carrier according to the specified specification parameter acquired by the obtaining unit;
挂载单元, 用于获取即时创建的虚拟机, 并将所述查找单元查找到的 所述对应的虚拟机磁盘挂载到所述虚拟机上。  The mounting unit is configured to obtain a virtual machine that is created in real time, and mount the corresponding virtual machine disk that is found by the searching unit to the virtual machine.
PCT/CN2014/072058 2013-08-02 2014-02-13 Cloud server and virtual machine management method thereof WO2015014117A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310335456.9A CN103399781B (en) 2013-08-02 2013-08-02 Cloud Server and virtual machine management method thereof
CN201310335456.9 2013-08-02

Publications (1)

Publication Number Publication Date
WO2015014117A1 true WO2015014117A1 (en) 2015-02-05

Family

ID=49563415

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/072058 WO2015014117A1 (en) 2013-08-02 2014-02-13 Cloud server and virtual machine management method thereof

Country Status (2)

Country Link
CN (1) CN103399781B (en)
WO (1) WO2015014117A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399781B (en) * 2013-08-02 2016-08-17 华为技术有限公司 Cloud Server and virtual machine management method thereof
CN104252378A (en) * 2014-05-14 2014-12-31 温武少 Virtual computer experience classroom system
CN107426294A (en) * 2017-06-08 2017-12-01 郑州云海信息技术有限公司 A kind of method and device for disposing load-balancing device
CN107479837A (en) * 2017-08-30 2017-12-15 郑州云海信息技术有限公司 The method and apparatus of virtual machine dilatation in cloud data system
CN107562520A (en) * 2017-09-07 2018-01-09 郑州云海信息技术有限公司 The method and apparatus of the internal memory of dilatation virtual machine
CN107861790B (en) * 2017-10-27 2020-05-15 新华三云计算技术有限公司 Virtual machine disk space expansion method and device, host machine and readable storage medium
CN107885578A (en) * 2017-11-13 2018-04-06 新华三云计算技术有限公司 A kind of resources of virtual machine distribution method and device
CN108984266B (en) * 2018-06-15 2021-09-03 华为技术有限公司 Virtual machine management method, device and system
CN109379412A (en) * 2018-09-27 2019-02-22 郑州云海信息技术有限公司 A kind of method and apparatus for deleting cloud host
CN113986124B (en) * 2021-10-25 2024-02-23 深信服科技股份有限公司 User configuration file access method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840346A (en) * 2009-12-30 2010-09-22 北京世纪互联宽带数据中心有限公司 Method and system for deploying cloud host computer
CN102096596A (en) * 2010-11-29 2011-06-15 华中科技大学 Cloud computing service Cache system based on internal memory template of virtual machine
US20110179415A1 (en) * 2010-01-20 2011-07-21 International Business Machines Corporation Enablement and acceleration of live and near-live migration of virtual machines and their associated storage across networks
US20120030672A1 (en) * 2010-04-26 2012-02-02 Vmware, Inc. Microcloud platform delivery system
CN102799464A (en) * 2012-06-25 2012-11-28 北京奇虎科技有限公司 Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system
CN103399781A (en) * 2013-08-02 2013-11-20 华为技术有限公司 Cloud server and virtual machine management method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981929B (en) * 2012-11-05 2015-11-25 曙光云计算技术有限公司 The management method of disk mirroring and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840346A (en) * 2009-12-30 2010-09-22 北京世纪互联宽带数据中心有限公司 Method and system for deploying cloud host computer
US20110179415A1 (en) * 2010-01-20 2011-07-21 International Business Machines Corporation Enablement and acceleration of live and near-live migration of virtual machines and their associated storage across networks
US20120030672A1 (en) * 2010-04-26 2012-02-02 Vmware, Inc. Microcloud platform delivery system
CN102096596A (en) * 2010-11-29 2011-06-15 华中科技大学 Cloud computing service Cache system based on internal memory template of virtual machine
CN102799464A (en) * 2012-06-25 2012-11-28 北京奇虎科技有限公司 Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system
CN103399781A (en) * 2013-08-02 2013-11-20 华为技术有限公司 Cloud server and virtual machine management method thereof

Also Published As

Publication number Publication date
CN103399781B (en) 2016-08-17
CN103399781A (en) 2013-11-20

Similar Documents

Publication Publication Date Title
WO2015014117A1 (en) Cloud server and virtual machine management method thereof
US9405563B2 (en) Resource management method and apparatus for virtual machine system, and virtual machine system
US9154549B2 (en) Dynamic server farms
US20180018244A1 (en) Node system, server apparatus, scaling control method, and program
US20170300431A1 (en) Computer device and configuration and management method of computer device
US20160283221A1 (en) Applying firmware updates in a system with zero downtime by selectively offlining and onlining hardware using a scale-up hypervisor layer
WO2014094422A1 (en) Virtual machine specification adjustment method and device
US10013271B2 (en) Management system and method for controlling management system
WO2013163865A1 (en) Virtual machine hot migration and deployment method, server and cluster system
JP6246923B2 (en) Management server, computer system and method
WO2014026374A1 (en) Server system, management method, and device
CN103530193A (en) Method and device used for adjusting application process
TW201409357A (en) System and method for balancing load of virtual machine
CN103049327A (en) Method and device for mounting many storage devices on android system
KR20110083084A (en) Apparatus and method for operating server by using virtualization technology
US20160081103A1 (en) Method and apparatus for adjusting physical resource, and controller
WO2012100545A1 (en) Method, system and device for service scheduling
WO2013082742A1 (en) Resource scheduling method, device and system
TW201324187A (en) System and method for deploying virtual machines
CN108540551A (en) A kind of acquisition methods of server node information and obtain system
CN109726151B (en) Method, apparatus, and medium for managing input-output stack
US20150079966A1 (en) Methods for facilitating telecommunication network administration and devices thereof
CN106843890A (en) Sensor network, node and its operation method based on intelligent decision
EP2775400B1 (en) Ressource management system a method
WO2022206231A1 (en) Kubernetes cluster load balance handling method and apparatus, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14831684

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14831684

Country of ref document: EP

Kind code of ref document: A1