Virtual machine elastic scaling method and device
An elastic scaling and virtual machine technology, applied in the field of communication, can solve problems such as overloading of virtual machines, long time required to expand virtual machines, and inability to quickly respond to business needs, so as to achieve the effect of increasing speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0068] figure 1 A flowchart showing a virtual machine elastic scaling method according to an embodiment of the present invention, as shown in figure 1 As shown, the method includes:
[0069] Step S101, creating a virtual machine instance buffer module.
[0070] The virtual machine instance buffer module stores the virtual machine in the dormant state by saving the memory data of the virtual machine in the dormant state, specifically including saving the memory data of the virtual machine in the virtual machine instance buffer module, and then powering off the virtual machine to make the virtual machine sleep. A virtual machine in a dormant state only occupies storage space and does not occupy computing and memory resources.
[0071] Step S102, when the scaling decision of the scaling group is to expand the virtual machine, activate the virtual machine in the dormant state from the virtual machine instance buffer module for storing the virtual machine in the dormant state,...
Embodiment 2
[0075] figure 2 A flowchart showing a method for elastic scaling of a virtual machine according to another embodiment of the present invention. Such as figure 2 As shown, the method includes:
[0076] Step S301 , collecting monitoring data for the virtual machines in the scaling group, such as CPU usage, memory usage, disk input / output I / O, network bandwidth, and the like.
[0077] Step S302. Calculate the monitoring data to obtain scaling data.
[0078] For example, you can calculate the CPU usage of each virtual machine in the scaling group to obtain the average CPU usage of the virtual machines in the scaling group in a certain period as the scaling data, or select the maximum CPU usage of the virtual machines in the scaling group as the scaling data. According to the memory usage of each virtual machine in the scaling group, the average memory usage of the virtual machines in the scaling group in a certain period can be calculated as the scaling data, or the maximum m...
Embodiment 3
[0103] image 3 A flowchart showing a method for elastic scaling of a virtual machine according to another embodiment of the present invention. image 3 Winning mark and figure 2 The same components have the same functions, and detailed descriptions of these components are omitted for brevity. Such as image 3 as shown, image 3 The virtual machine elastic scaling method shown is the same as figure 2 The main difference of the virtual machine elastic scaling method shown is that, after step S301-step S302, it also includes:
[0104] Step S401 , compare the scaling data with the capacity reduction threshold, if the scaling data is smaller than the capacity reduction threshold, execute step S402 , otherwise end the process.
[0105] Step S402 , judging whether the number of virtual machines in the dormant state in the virtual machine instance buffer module has reached the upper limit, if yes, continue to execute step S4021 , otherwise execute step S4022 .
[0106] Step S...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


