CN105162823B - A kind of virtual machine management method and device - Google Patents

A kind of virtual machine management method and device Download PDF

Info

Publication number
CN105162823B
CN105162823B CN201510379308.6A CN201510379308A CN105162823B CN 105162823 B CN105162823 B CN 105162823B CN 201510379308 A CN201510379308 A CN 201510379308A CN 105162823 B CN105162823 B CN 105162823B
Authority
CN
China
Prior art keywords
virtual machine
parameter value
comparison result
load parameter
load
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510379308.6A
Other languages
Chinese (zh)
Other versions
CN105162823A (en
Inventor
臧毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Xuanyuan Network & Technology Co Ltd
Original Assignee
Guangdong Xuanyuan Network & Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Xuanyuan Network & Technology Co Ltd filed Critical Guangdong Xuanyuan Network & Technology Co Ltd
Priority to CN201510379308.6A priority Critical patent/CN105162823B/en
Publication of CN105162823A publication Critical patent/CN105162823A/en
Application granted granted Critical
Publication of CN105162823B publication Critical patent/CN105162823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1025Dynamic adaptation of the criteria on which the server selection is based
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention provides a kind of virtual machine management method and device, which comprises the current load parameter value of the virtual machine of monitoring server management;Determine preset threshold value corresponding with the application message of application associated on virtual machine;Compare the size of load parameter value and the threshold value, obtains comparison result;According to comparison result, the number of the current virtual machine that load services are provided is adjusted.The present invention can adjust come dynamic according to the application message of application associated on virtual machine and provide the number of the virtual machine of load services, improve the utilization rate of virtual machine, provide higher availability for network load service.

Description

A kind of virtual machine management method and device
Technical field
The present invention relates to virtual network communication field more particularly to a kind of virtual machine management methods and device.
Background technique
Currently, virtualization technology is the core key technology in cloud computing.One can be serviced by virtualization technology Device is virtualized into more virtual machines (Virtual Machine, VM), and more efficient data service is provided for user.
Existing Virtual Machine Manager mode can not cope with different items according to the application message of application associated on virtual machine The network load of part or there are the waste of resources of virtual machine or dynamic it can not increase virtual machine when loading nervous Number.
Summary of the invention
In view of this, the present invention provides a kind of virtual machine management method and device, can be answered according to associated on virtual machine Application message carrys out the number that dynamic adjusts the virtual machine of offer load services, improves the utilization rate of virtual machine, negative for network The service of load provides higher availability.
According to a first aspect of the embodiments of the present invention, a kind of virtual machine management method is provided, Virtual Machine Management Service is used for Device, which comprises
Monitor the current load parameter value of the virtual machine of the server admin;
Determine preset threshold value corresponding with the application message of associated application on the virtual machine;
Compare the size of the load parameter value and the threshold value, obtains comparison result;
According to the comparison result, the number of the current virtual machine that load services are provided is adjusted.
According to a second aspect of the embodiments of the present invention, a kind of virtual machine management device is provided, Virtual Machine Management Service is used for Device, which is characterized in that described device includes:
Monitoring unit, the current load parameter value of virtual machine for monitoring the server admin;
Determination unit, for determining preset threshold corresponding with the application message of associated application on the virtual machine Value;
Comparing unit obtains comparison result for the size of the load parameter value and the threshold value;
Adjustment unit, for adjusting the number of the current virtual machine for providing load services according to the comparison result.
The technical solution that the embodiment of the present invention provides can include the following benefits:
In the embodiment of the present invention, by comparing the current load parameter value of the virtual machine of server admin and preset and institute The size for stating the corresponding threshold value of application message of associated application on virtual machine carrys out dynamic and adjusts offer according to comparison result The number of the virtual machine of load services improves the utilization rate of virtual machine, provides higher availability for network load service.
In the embodiment of the present invention, the load parameter value of each virtual machine and the size of preset threshold value can be compared, obtained Comparison result is taken, when the comparison result indicates the load parameter value of any virtual machine more than first threshold, dynamic increases by one Virtual machine;When the load parameter value of any virtual machine is reduced to 0, the virtual machine is dynamically deleted, to realize according to virtual The application message of associated application on machine carrys out the purpose for dynamically adjusting the number of virtual machine for providing load services.
In the embodiment of the present invention, the average load parameter value for having the virtual machine of same application information and pre- can also be compared If threshold value size, comparison result is obtained, when the virtual machine that comparison result instruction has same application information is averaged When load parameter value is more than second threshold, then a virtual machine is increased newly;When comparison result instruction has same application information When the average load parameter value of virtual machine is lower than third threshold value, delete presently described negative in the virtual machine for having same application information The smallest virtual machine of parameter value is carried, equally realizes and offer is adjusted come dynamic according to the application message of application associated on virtual machine The purpose of the number of the virtual machine of load services.
Detailed description of the invention
Fig. 1 is one embodiment flow chart of virtual machine management method of the present invention;
Fig. 2 is an application scenarios of virtual machine management method of the present invention;
Fig. 3 is another embodiment flow chart of virtual machine management method of the present invention;
Fig. 4 is one embodiment block diagram of virtual machine management device of the present invention;
Fig. 5 is another embodiment block diagram of virtual machine management device of the present invention;
Fig. 6 is another embodiment block diagram of virtual machine management device of the present invention;
Fig. 7 is another embodiment block diagram of virtual machine management device of the present invention;
Fig. 8 is another embodiment block diagram of virtual machine management device of the present invention;
Fig. 9 is another embodiment block diagram of virtual machine management device of the present invention;
Figure 10 is another embodiment block diagram of virtual machine management device of the present invention.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
It is only to be not intended to limit the invention merely for for the purpose of describing particular embodiments in terminology used in the present invention. It is also intended in the present invention and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the scope of the invention, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
It is one embodiment flow chart of storage method of the present invention referring to Fig. 1, which can apply in storage service On device, comprising the following steps:
Step 101, the current load parameter value of the virtual machine of the server admin is monitored.
In this step, adjusted by server using polling dispatching algorithm RR, weighted round-robin scheduling algorithm WRR or source address hash The load parameter value under the virtual machine present port of algorithm monitoring management is spent, the load parameter value is flow value and/or load Value.Wherein, optionally, the server can the primary load parameter value of interval acquiring at every predetermined time.
Step 102, preset threshold value corresponding with the application message of associated application on the virtual machine is determined.
Before executing step 102, the server needs first to obtain the application message, just can determine that corresponding threshold Value, i.e., before executing step 102, the method also includes:
Step 101-1 obtains the virtual machine and currently provides the information on services of the load services, in the information on services Including at least the application message.
In this step, the virtual machine under server admin can report the information on services when providing the load services To the server, the information on services at least needs to include the application message, it is alternatively possible to include that the application is believed The information such as breath, network address, serve port, Web vector graphic expection.Wherein, the network address and serve port are the void It is used when the quasi- machine offer load services, when the Web vector graphic is expected to the virtual machine offer load services Meeting generate flow information or load information.
After server obtains the information on services, preset threshold value corresponding with the application message is determined.
Step 103, the size of the load parameter value and the threshold value obtains comparison result.
In this step, when being compared, it can be compared by any one following mode.
<mode one>
Compare the load parameter value of each virtual machine and the size of preset first threshold, obtains the relatively knot Fruit.
It, can be by the load parameter value of each virtual machine of the server admin monitored in the embodiment of the present invention It is compared with preset first threshold corresponding with the application message of associated application on the virtual machine, to obtain institute State comparison result.It is illustrated below.
<example 1>
Three virtual machines of server admin, load parameter value and first threshold use flow value, and the load value of virtual machine closes The application message of the application of connection and corresponding preset first threshold value are as shown in table 1.Be respectively compared each virtual machine load value and The size of corresponding preset first threshold value, to obtain the comparison result.
Table 1
Aforesaid way be for all virtual machines under server admin load parameter value and preset first threshold into Row compares, so as in subsequent steps according to the number of the virtual machine of comparison result dynamic adjustment offer load services.This hair In bright embodiment, in order to further increase the utilization rate of virtual machine, the virtual machine for having same application information can also be compared The size of average load parameter value and preset threshold value obtains the comparison result, as follows.
<mode two>
The average load parameter value for having the virtual machine of same application information is calculated, then the average load parameter The size of value and preset threshold value, obtains the comparison result.
When using such mode, the load parameter value and preset threshold value of no longer more each virtual machine, but will be identical The virtual machine of application message compares the size of average load parameter value and preset second threshold or third threshold value as one kind, Wherein the third threshold value is less than the second threshold, to obtain the comparison result.It is illustrated below.
<example 2>
Three virtual machines of server admin, load parameter value and first threshold use flow value, and the load value of virtual machine closes The application message of the application of connection is as shown in table 1.So when employing mode two is compared, needs to compare and have respective application letter The average flow rate value and preset second threshold or third threshold value of the virtual machine A and virtual machine B of breath.The average load of virtual machine The corresponding relationship of value, the application message of associated application, second threshold and third threshold value is as shown in table 2.
Table 2
It in the embodiment of the present invention, can be compared using above two mode, to obtain the comparison result, when obtaining After taking the comparison result, step 104 is executed.
Step 104, according to the comparison result, the number of the current virtual machine that load services are provided is adjusted.
According to mode different in step 103, dynamic adjusts the number of the current virtual machine for providing load services.Specifically Ground, the step 104 can be adjusted by number of following two mode to the virtual machine for providing load services.It is as follows.
<mode one>
When the load parameter value and first threshold for by the mode one in step 103, comparing each virtual machine Size is come when obtaining the comparison result, if to indicate the first virtual machine of the server admin current for the comparison result When the load parameter value is more than the first threshold, a virtual machine is increased newly under the server.
Optionally, when the load parameter value of the first virtual machine is more than the first threshold, server can be carried out There is the case where loading nervous virtual machine so that user understands in real time in alarm on server.It is illustrated below.
<example 3>
Three virtual machines of server admin, load parameter value and first threshold use flow value, and the load value of virtual machine closes The application message of the application of connection and corresponding preset first threshold value are as shown in table 1.When the load parameter value of virtual machine A is more than When corresponding first threshold, server needs dynamic to increase by a new virtual machine, so as to the void that extra load access is newly-increased Quasi- machine.Optionally, when the load parameter value of monitoring server to virtual machine A is more than corresponding first threshold, server It can alarm, prompt user virtual machine A present load nervous.
The above process is the process that server dynamic increases virtual machine number, and server can in the following manner, dynamic Reduce the number of virtual machine:
Server deletes second virtual machine when the load parameter value of the second virtual machine is 0.
It is illustrated below.
<example 4>
The load parameter value of monitoring server to virtual machine B are constantly reduced, when load parameter value is reduced to 0, Server deletes virtual machine B.
The embodiment of the present invention by the above process, compare server admin the current load parameter value of each virtual machine and The size of preset threshold value corresponding with the application message of associated application on the virtual machine, according to comparison result, to move State adjustment provides the number of the virtual machine of load services, improves the utilization rate of virtual machine, provides more for network load service High availability.
<mode two>
When comparing the average load parameter value for having the virtual machine of same application information by the mode two in step 103 Obtain the comparison result with the size of second threshold, when the comparison result indicate the third virtual machine it is current described in When average load parameter value is more than preset second threshold, wherein second threshold represents the virtual machine for having same application information Average load parameter value maximum value, when average load parameter value be more than second threshold when, illustrate have same application information Virtual machine overall load it is very big, the number of virtual machine can be increased.
It is illustrated below.
<example 5>
The mean load value of virtual machine, the application message of associated application, second threshold and third threshold value corresponding relationship As shown in table 2.When the mean load value of the virtual machine A and virtual machine B that have same application information are more than second threshold, in institute It states and increases a virtual machine under server newly.
When the comparison result indicates that the current average load parameter value of the third virtual machine is less than third threshold value When, wherein the third threshold value is less than second preset threshold, third threshold value represents the virtual machine for having same application information Average load parameter value minimum value, when average load parameter value be less than third threshold value when, illustrate have same application information Virtual machine overall load it is lower, it is possible to reduce the number of virtual machine.
When needing to delete virtual machine, it is alternatively possible to delete presently described load parameter value in the third virtual machine The smallest virtual machine waits the virtual machine specifically, new load is no longer connected on the virtual machine for needing to delete by server Load parameter value when being gradually reduced to 0, close the corresponding port of the virtual machine, delete the virtual machine.It illustrates such as Under.
<example 6>
The average load parameter value that monitoring server has the virtual machine A and virtual machine B of same application information into table 2 is small When third threshold value 200, it is assumed that the load parameter value of virtual machine A is 300 at this time, and the load parameter value of virtual machine B is 100, then Server determines that virtual machine B is the virtual machine for needing to delete, and no longer new load is connected on virtual machine B, waits virtual machine B Load parameter value when being gradually reduced to 0, close the corresponding port virtual machine B, delete virtual machine B.
In the embodiment of the present invention, has the average load parameter value of the virtual machine of same application information by comparing and preset Threshold value size, obtain comparison result, when the comparison result instruction have same application information virtual machine it is average bear When carrying parameter value more than second threshold, then a virtual machine is increased newly;When comparison result instruction has the void of same application information When the average load parameter value of quasi- machine is lower than third threshold value, presently described load in the virtual machine for having same application information is deleted The smallest virtual machine of parameter value is equally realized to adjust to provide come dynamic according to the application message of application associated on virtual machine and be born Carry the purpose of the number of the virtual machine of service.
In above process, no matter increase virtual machine newly or delete virtual machine, with requiring the network for the virtual machine that will be changed The information reportings such as location, serve port, application message, network and change conditions give the server, by server to virtual machine into Row unified management.
In embodiments of the present invention, in order to further increase the utilization rate of virtual machine, above-mentioned virtual machine management method is also Including (not shown in figure 1):
Step 105, whether the virtual machine for detecting the server admin breaks down.
Step 106, when detecting that the 4th virtual machine under the server admin breaks down, it is empty to delete the described 4th Quasi- machine.
In the embodiment of the present invention, server detects the virtual machine that it is managed, when detecting the virtual of failure When machine, corresponding virtual machine is deleted, to improve the utilization rate of virtual machine, realizes high availability.
It referring to fig. 2, is an implement scene of virtual machine management method of the present invention.In the embodiment, the storage is taken Business device is divided into different functional entitys, to complete Virtual Machine Manager process provided in an embodiment of the present invention.
Virtual flow-line network monitoring center 201, the virtual machine of the offer load services for monitoring the server admin Load parameter value.
Virtual flow-line load services center 202, for determining according to the preset strategy in Virtual Machine Management Service center 203 Threshold value corresponding with the application message of application associated on the virtual machine, and by the virtual flow-line network monitoring center 201 The load parameter value of the virtual machine of acquisition is compared with the preset threshold value, and comparison result is passed to the virtual machine pipe Manage service centre 203.
The Virtual Machine Management Service center 203 is compared for creating virtual flow-line load services center 201 Strategy adjusted according to policy information dynamic and after receiving the comparison result at virtual flow-line load services center 201 The number of the whole virtual machine for being used to provide load services.
It is another embodiment flow chart of storage method of the present invention, the embodiment is in Fig. 2 application scenarios referring to Fig. 3 On the basis of be described, comprising:
Step 301, Virtual Machine Management Service center 203 initiates to create virtual machine virtual flow-line load services strategy times It is engaged in virtual flow-line load services center 202, it is desirable to provide the network address of the virtual machine started, serve port, using letter The information such as breath, Web vector graphic expection are for creating the load services.
Step 302, the service network for being included according to the load strategy of creation is supervised by virtual flow-line network monitoring center 201 Survey the load parameter value of virtual machine.
Step 303, compare load parameter value when virtual flow-line load services center 202 to answer with associated on the virtual machine Comparison result is sent to Virtual Machine Management Service center 203 by the size of the corresponding threshold value of application message.
Step 304, the comparison knot that Virtual Machine Management Service center 203 is transmitted according to virtual flow-line load services center 202 Fruit increases or decreases and provides the number of the virtual machine of load services.
Step 305, it after the virtual machine of newly-increased (or deletion), which enters (or exiting), provides the state of load services, will change The information such as network address, serve port, application message, network and the change conditions of virtual machine pass to virtual flow-line load clothes Business center 202.
Certainly, in above-described embodiment, if server detects that certain virtual machine breaks down, it is also desirable to delete corresponding Virtual machine.
In above-described embodiment, by comparing the current load parameter value of the virtual machine of server admin and it is preset with it is described It is negative dynamically to adjust offer according to comparison result for the size of the corresponding threshold value of the application message of associated application on virtual machine The number for carrying the virtual machine of service, improves the utilization rate of virtual machine, provides higher availability for network load service.
Corresponding with the embodiment of preceding method, the present invention also provides the embodiments of device.
Fig. 4 is one embodiment block diagram of virtual machine management device of the present invention, reference Fig. 4, the virtual machine in the present embodiment Managing device is used for Virtual Machine Management Service device, comprising: monitoring unit 410, determination unit 420, comparing unit 430 and adjustment are single Member 440.
Wherein, the monitoring unit 410, the current load parameter value of virtual machine for monitoring the server admin;
The determination unit 420, it is preset opposite with the application message of associated application on the virtual machine for determining The threshold value answered;
Comparing unit 430 obtains comparison result for the size of the load parameter value and the threshold value;
Adjustment unit 440, for adjusting the number of the current virtual machine for providing load services according to the comparison result.
As shown in figure 5, Fig. 5 is the disclosure another virtual machine management device frame shown according to an exemplary embodiment Figure, the embodiment is on the basis of aforementioned embodiment illustrated in fig. 4, described device further include: acquiring unit 450.
Wherein, the acquiring unit 450 currently provides the service letter of the load services for obtaining the virtual machine It ceases, the application message is included at least in the information on services.
As shown in fig. 6, Fig. 6 is the disclosure another virtual machine management device frame shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 4, the comparing unit 430 includes: the first comparing subunit 431.
Wherein, first comparing subunit, the load of each virtual machine for the server admin The size of parameter value and preset first threshold obtains the comparison result.
As shown in fig. 7, Fig. 7 is the disclosure another virtual machine management device frame shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 6, the adjustment unit 440 includes: the first increase subelement 441 Subelement 442 is deleted with first.
Wherein, described first increases subelement 441, for indicating the first of the server admin when the comparison result When the current load parameter value of virtual machine is more than the first threshold, a virtual machine is increased newly under the server;
Described first deletes subelement 442, the load current for the second virtual machine when the server admin When parameter value is 0, second virtual machine is deleted.
As shown in figure 8, Fig. 8 is the disclosure another virtual machine management device frame shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 4, the comparing unit 430 includes: the second comparing subunit 432.
Wherein, second comparing subunit, have same application information for the server admin The average load parameter value of three virtual machines and the size of the threshold value, obtain the comparison result.
As shown in figure 9, Fig. 9 is the disclosure another virtual machine management device frame shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 8, the adjustment unit 440 includes: the second increase subelement 443 Subelement 444 is deleted with second.
Wherein, described second increases subelement 443, for indicating that the third virtual machine is current when the comparison result When the average load parameter value is more than preset second threshold, a virtual machine is increased newly;
Described second deletes subelement 444, described in indicating the third virtual machine currently when the comparison result When average load parameter value is less than third threshold value, it is the smallest virtual to delete presently described load parameter value in the third virtual machine Machine, the third threshold value are less than second preset threshold.
As shown in Figure 10, Figure 10 is the disclosure another virtual machine block diagram shown according to an exemplary embodiment, The embodiment is on the basis of any one of earlier figures 4- Fig. 9 illustrated embodiment, described device further include: detection unit 460 and deletes Except unit 470.
Wherein, whether the detection unit 460, the virtual machine for detecting the server admin break down;
The deletion unit 470, for deleting when detecting that the 4th virtual machine under the server admin breaks down Except the 4th virtual machine.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize the present invention program.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
As seen from the above-described embodiment, by comparing the current load parameter value of the virtual machine of server admin and it is preset with The size of the corresponding threshold value of the application message of associated application on the virtual machine, according to comparison result, next dynamic, which adjusts, to be mentioned For the number of the virtual machine of load services, the utilization rate of virtual machine is improved, is provided for network load service higher available Property.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (14)

1. a kind of virtual machine management method is used for Virtual Machine Management Service device, which is characterized in that the described method includes:
The current load parameter value of the virtual machine of the server admin is monitored, the load parameter value is flow value and/or bears Load value;
Determine preset threshold value corresponding with the application message of associated application on the virtual machine;
Compare the size of the load parameter value and the threshold value, obtains comparison result;
According to the comparison result, the number of the current virtual machine that load services are provided is adjusted.
2. the method as described in claim 1, which is characterized in that the application of associated application in the determination and the virtual machine Before the corresponding preset threshold value of information, the method also includes:
It obtains the virtual machine and the information on services of the load services is currently provided, described answer is included at least in the information on services Use information.
3. the method as described in claim 1, which is characterized in that the load parameter value and the threshold value it is big Small, obtaining comparison result includes:
Compare the load parameter value of each virtual machine of the server admin and the size of preset first threshold, obtains The comparison result.
4. method as claimed in claim 3, which is characterized in that it is described according to the comparison result, current offer load is provided The number of the virtual machine of service includes:
When the comparison result indicates that the current load parameter value of the first virtual machine of the server admin is more than described When first threshold, a virtual machine is increased newly under the server;
When the current load parameter value of the second virtual machine of the server admin is 0, second virtual machine is deleted.
5. the method as described in claim 1, which is characterized in that the load parameter value and the threshold value it is big Small, obtaining comparison result includes:
Compare the average load parameter value and the threshold of the third virtual machine for having same application information of the server admin The size of value obtains the comparison result.
6. method as claimed in claim 5, which is characterized in that it is described according to the comparison result, current offer load is provided The number of the virtual machine of service includes:
When the comparison result indicates that the current average load parameter value of the third virtual machine is more than preset second threshold When value, a virtual machine is increased newly;
When the comparison result indicates that the current average load parameter value of the third virtual machine is less than third threshold value, delete Except the smallest virtual machine of load parameter value presently described in the third virtual machine, it is default that the third threshold value is less than described second Threshold value.
7. as the method according to claim 1 to 6, which is characterized in that the described method includes:
Whether the virtual machine for detecting the server admin breaks down;
When detecting that the 4th virtual machine under the server admin breaks down, the 4th virtual machine is deleted.
8. a kind of virtual machine management device, it to be used for Virtual Machine Management Service device, which is characterized in that described device includes:
Monitoring unit, the current load parameter value of virtual machine for monitoring the server admin, the load parameter value are Flow value and/or load value;
Determination unit, for determining preset threshold value corresponding with the application message of associated application on the virtual machine;
Comparing unit obtains comparison result for the size of the load parameter value and the threshold value;
Adjustment unit, for adjusting the number of the current virtual machine for providing load services according to the comparison result.
9. device as claimed in claim 8, which is characterized in that described device further include:
Acquiring unit currently provides the information on services of the load services for obtaining the virtual machine, in the information on services Including at least the application message.
10. device as claimed in claim 8, which is characterized in that the comparing unit includes:
First comparing subunit, the load parameter value of each virtual machine for the server admin and preset The size of first threshold obtains the comparison result.
11. device as claimed in claim 10, which is characterized in that the adjustment unit includes:
First increases subelement, described in the first virtual machine for indicating the server admin when the comparison result is current When load parameter value is more than the first threshold, a virtual machine is increased newly under the server;
First deletes subelement, for when the current load parameter value of the second virtual machine of the server admin is 0, Delete second virtual machine.
12. device as claimed in claim 8, which is characterized in that the comparing unit includes:
Second comparing subunit, the third virtual machine for having same application information for the server admin are averaged The size of load parameter value and the threshold value obtains the comparison result.
13. device as claimed in claim 12, which is characterized in that the adjustment unit includes:
Second increases subelement, for indicating the current average load parameter of the third virtual machine when the comparison result When value is more than preset second threshold, a virtual machine is increased newly;
Second deletes subelement, for indicating the current average load parameter of the third virtual machine when the comparison result When value is less than third threshold value, the presently described the smallest virtual machine of load parameter value, the third in the third virtual machine are deleted Threshold value is less than second preset threshold.
14. such as the described in any item devices of claim 8-13, which is characterized in that described device includes:
Whether detection unit, the virtual machine for detecting the server admin break down;
Unit is deleted, for deleting the described 4th when detecting that the 4th virtual machine under the server admin breaks down Virtual machine.
CN201510379308.6A 2015-06-30 2015-06-30 A kind of virtual machine management method and device Active CN105162823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510379308.6A CN105162823B (en) 2015-06-30 2015-06-30 A kind of virtual machine management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510379308.6A CN105162823B (en) 2015-06-30 2015-06-30 A kind of virtual machine management method and device

Publications (2)

Publication Number Publication Date
CN105162823A CN105162823A (en) 2015-12-16
CN105162823B true CN105162823B (en) 2019-07-09

Family

ID=54803577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510379308.6A Active CN105162823B (en) 2015-06-30 2015-06-30 A kind of virtual machine management method and device

Country Status (1)

Country Link
CN (1) CN105162823B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161625A (en) * 2016-07-11 2016-11-23 浪潮(北京)电子信息产业有限公司 A kind of method of the cloud computing resources utilization rate for improving virtual machine
CN108632049B (en) * 2017-03-15 2020-08-25 华为机器有限公司 Method and device for virtual network function expansion
CN107086932A (en) * 2017-05-22 2017-08-22 安徽电信规划设计有限责任公司 A kind of cloud platform virtualizes traffic security monitoring system
CN109309584A (en) * 2018-09-03 2019-02-05 郑州云海信息技术有限公司 A kind of virtual machine Density and distribution method, apparatus, terminal and storage medium
CN110012076B (en) * 2019-03-12 2022-07-01 新华三技术有限公司 Connection establishing method and device
CN111400142B (en) * 2020-06-04 2020-11-03 鹏城实验室 Method and device for monitoring abnormity of virtual machine and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214117A (en) * 2010-04-07 2011-10-12 中兴通讯股份有限公司 Virtual machine management method, system and server
EP2667569A1 (en) * 2012-05-23 2013-11-27 VMWare, Inc. Fabric distributed resource scheduling
CN104008015A (en) * 2013-02-27 2014-08-27 富士通株式会社 Control device and resource control method
CN104123189A (en) * 2014-06-30 2014-10-29 复旦大学 Web multilayer application dynamic resource adjustment method based on IaaS layer application perception

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214117A (en) * 2010-04-07 2011-10-12 中兴通讯股份有限公司 Virtual machine management method, system and server
EP2667569A1 (en) * 2012-05-23 2013-11-27 VMWare, Inc. Fabric distributed resource scheduling
CN104008015A (en) * 2013-02-27 2014-08-27 富士通株式会社 Control device and resource control method
CN104123189A (en) * 2014-06-30 2014-10-29 复旦大学 Web multilayer application dynamic resource adjustment method based on IaaS layer application perception

Also Published As

Publication number Publication date
CN105162823A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
CN105162823B (en) A kind of virtual machine management method and device
US9838483B2 (en) Methods, systems, and computer readable media for a network function virtualization information concentrator
CN110134495B (en) Container cross-host online migration method, storage medium and terminal equipment
CN105979007B (en) Method and device for accelerating resource processing and network function virtualization system
CN106411558B (en) Method and system for limiting data flow
CN105335229A (en) Business resource scheduling method and apparatus
CN109726004B (en) Data processing method and device
US11005925B2 (en) Load balancing with power of random choices
US20150019722A1 (en) Determining, managing and deploying an application topology in a virtual environment
CN112583734B (en) Burst flow control method and device, electronic equipment and storage medium
US11652725B2 (en) Performance testing of a test application in a network-as-a-service environment
CN108028858A (en) For providing the notice system of network service
CN109547541A (en) Mist calculates the node low overhead collaboration method under environment based on filtering and distribution mechanism
CN114201278A (en) Task processing method, task processing device, electronic device, and storage medium
CN113238861A (en) Task execution method and device
CN103677983A (en) Scheduling method and device of application
CN107870822B (en) Asynchronous task control method and system based on distributed system
Behal et al. Comparative study of load balancing algorithms in cloud environment using cloud analyst
US20170141949A1 (en) Method and apparatus for processing alarm information in cloud computing
CN106790610A (en) A kind of cloud system message distributing method, device and system
CN108829516B (en) Resource virtualization scheduling method for graphic processor
CN108234646B (en) Method and device for distributing cloud security resources
US9537742B2 (en) Automatic adjustment of application launch endpoints
CN106169982A (en) The processing method of ECP Extended Capabilities Port, Apparatus and system
CN109495544A (en) A kind of message data treating method and apparatus and computer equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Virtual machine management method and device

Effective date of registration: 20200721

Granted publication date: 20190709

Pledgee: Zhujiang Branch of Guangzhou Bank Co.,Ltd.

Pledgor: GUANGDONG XUANYUAN NETWORK & TECHNOLOGY Co.,Ltd.

Registration number: Y2020980004206

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20211020

Granted publication date: 20190709

Pledgee: Zhujiang Branch of Guangzhou Bank Co.,Ltd.

Pledgor: GUANGDONG XUANYUAN NETWORK & TECHNOLOGY Co.,Ltd.

Registration number: Y2020980004206