CN105119993B - Virtual machine deployment method and device - Google Patents
Virtual machine deployment method and device Download PDFInfo
- Publication number
- CN105119993B CN105119993B CN201510524417.2A CN201510524417A CN105119993B CN 105119993 B CN105119993 B CN 105119993B CN 201510524417 A CN201510524417 A CN 201510524417A CN 105119993 B CN105119993 B CN 105119993B
- Authority
- CN
- China
- Prior art keywords
- server
- virtual machine
- communication
- abnormal
- deployment
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000004891 communication Methods 0.000 claims abstract description 364
- 230000005856 abnormality Effects 0.000 claims abstract description 71
- 239000011159 matrix material Substances 0.000 claims abstract description 65
- 230000002159 abnormal effect Effects 0.000 claims description 129
- 238000001514 detection method Methods 0.000 claims description 27
- 230000005540 biological transmission Effects 0.000 claims description 19
- 230000004044 response Effects 0.000 claims description 18
- 239000000523 sample Substances 0.000 claims description 18
- 238000012216 screening Methods 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 9
- 239000011800 void material Substances 0.000 description 9
- 239000010410 layer Substances 0.000 description 5
- 230000015654 memory Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000005012 migration Effects 0.000 description 3
- 238000013508 migration Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 206010044565 Tremor Diseases 0.000 description 1
- 230000002547 anomalous effect Effects 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 239000012792 core layer Substances 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of virtual machine deployment method and devices, belong to the communications field.The described method includes: inquiry and purpose virtual machine are there are the opposite end virtual machine of communication traffic, the purpose virtual machine is virtual machine to be migrated or virtual machine to be disposed;Determine that the server of opposite end virtual machine is stated in deployment;Destination server is obtained from preset communication matrix, the communication state of the destination server and the server for being deployed with the opposite end virtual machine is normal condition, the communication state between any two server is had recorded in the communication matrix, the communication state includes normal condition or abnormality;By the purpose deploying virtual machine in the destination server.The present invention selects the destination server of deployment purpose virtual machine by inquiry communication matrix, realizes the effect for improving and communicating reliability between virtual machine.
Description
Technical field
The present invention relates to deploying virtual machine field, in particular to a kind of virtual machine deployment method and device.
Background technique
Telecommunications network cloud refer to traditional telecommunication node based on physical equipment and application with virtual machine (English:
Virtual Machine;Mode referred to as: VM) is deployed on the server of data center, and this deployment way is in the industry cycle known as
Network function virtualization (English: Network Functions Virtualization;Referred to as: NFV).The telecommunications of one cloud
Net may include multiple data centers, in the data center, between telecommunication node and telecommunication node and the same telecommunication node
Communication between internal different business process may appear as the communication between VM.
In the related technology, data center can be according to the automatic dilatation of traffic load and capacity reducing, the virtual machine pipe of data center
Manage module can according to traffic load by VM flexible deployment on each server of data center;The management module of data center
Can also be according to the working condition of each server, when server exception occurs or needs to safeguard, it will be in the middle part of the server
The VM of administration is migrated to other servers.Virtual Machine Manager module is usually each according to data center when disposing and migrating VM
Central processing unit (the English: Central Processing Unit of server;Referred to as: the CPU) size of resource, storage resource
Size and network interface bandwidth size come select suitable server as VM dispose and migrate destination server.
But Virtual Machine Manager module is according to the cpu resource of each server, storage resource and the portion network interface bandwidth selection VM
When the destination server of administration and migration, the communication state of the destination server and other servers may be abnormality, therefore,
After Virtual Machine Manager module is disposed and migrated to VM, the communication reliability between VM is lower.
Summary of the invention
In order to solve problems in the prior art, the present invention provides a kind of virtual machine deployment method and devices.The technology
Scheme is as follows:
In a first aspect, providing a kind of virtual machine deployment method, which comprises
With purpose virtual machine there are the opposite end virtual machine of communication traffic, the purpose virtual machine is virtual machine to be migrated for inquiry
Or virtual machine to be disposed;
Determine that the server of opposite end virtual machine is stated in deployment;
Destination server is obtained from preset communication matrix, the destination server is deployed with the opposite end void with described
The communication state of the server of quasi- machine is normal condition, and the communication between any two server is had recorded in the communication matrix
State, the communication state include normal condition or abnormality;
By the purpose deploying virtual machine in the destination server.
With reference to first aspect, the first in first aspect can be in realization mode, and the purpose virtual machine is void to be migrated
Quasi- machine, in the inquiry and purpose virtual machine there are before the opposite end virtual machine of communication traffic, the method also includes:
Receiving the instruction abnormal virtual machine and other virtual machine communication states that abnormal virtual machine is sent is abnormality
Communication abnormality information;
According to the communication abnormality information, determine that the abnormal server of abnormal virtual machine is stated in deployment;
Count the number of the abnormal server in the server of Virtual Machine Manager module management;
If the number of the abnormal server in the server of the Virtual Machine Manager module management is equal to 1, by the exception
Virtual machine is determined as the purpose virtual machine;
If the number of the abnormal server in the server of the Virtual Machine Manager module management is greater than 1, inquire described logical
Matrix is interrogated, the communication state for counting each abnormal server and other abnormal servers is the number of abnormality;
The most server of the number that communication state is abnormality is determined as destination server;
The abnormal virtual machine disposed in the destination server is determined as the purpose virtual machine.
With reference to first aspect, it in second of achievable mode of first aspect, is deposited in the inquiry with purpose virtual machine
Before the opposite end virtual machine of communication traffic, the method also includes:
The communication quality information that first server is sent is received, the communication quality information includes the mark of first server
Know, the communication quality of the mark of second server and the first server and the second server, the first server
It is any two server in the server of Virtual Machine Manager module management with the second server;
Judge whether the communication quality is higher than predetermined quality threshold;
If the communication quality is higher than predetermined quality threshold, the first server and institute are recorded in the communication matrix
The communication state for stating second server is normal condition;
If the communication quality be not higher than predetermined quality threshold, recorded in the communication matrix first server with
The communication state of the second server is abnormality.
The achievable mode of second with reference to first aspect, the third in first aspect can be described logical in realization mode
Interrogating quality information is that the virtual machine disposed in the virtual machine and the second server disposed in the first server is held
It is sent when row communication traffic;
Alternatively, the communication quality information is the first server to second server transmission detection packet, and receive
After the probe response packet sent to the second server, generated according to the detection packet and the probe response packet.
With reference to first aspect, described by the purpose deploying virtual machine in the 4th kind of achievable mode of first aspect
In the destination server, comprising:
Determine the number of the destination server;
If the number of the destination server is equal to 1, by the purpose deploying virtual machine in the destination server;
If the number of the destination server is greater than 1, selected from the set of the destination server according to preset rules
Deployment services device;
By the purpose deploying virtual machine in the deployment services device.
The 4th kind of achievable mode with reference to first aspect, in the 5th kind of achievable mode of first aspect, described
Deployment server is selected from the set of the destination server according to preset rules, comprising:
Screening meets the alternate servers of the standard of parameter preset from the server of the Virtual Machine Manager module management
Set, the parameter preset includes at least one of cpu resource, storage resource and network interface bandwidth;
It screens in the alternate servers set and is obtained alternatively with identical server in the set of the destination server
Deployment services device set;
Deployment server is selected from the alternative deployment services device set according to compatibility algorithm.
Second aspect, provides a kind of deploying virtual machine device, and described device includes:
Query unit, for inquiring, there are the opposite end virtual machine of communication traffic, the purpose virtual machines with purpose virtual machine
For virtual machine to be migrated or virtual machine to be disposed;
First determination unit, for determining that the server of opposite end virtual machine is stated in deployment;
Acquiring unit, for obtaining destination server, the destination server and the portion from preset communication matrix
The communication state that there is the server of the opposite end virtual machine in administration is normal condition, and any two clothes are had recorded in the communication matrix
Communication state between business device, the communication state includes normal condition or abnormality;
Deployment unit is used for the purpose deploying virtual machine in the destination server.
In conjunction with second aspect, the first in second aspect can be in realization mode, and the purpose virtual machine is void to be migrated
Quasi- machine, described device further include:
First receiving unit, the instruction abnormal virtual machine and other virtual machines for receiving abnormal virtual machine transmission are logical
News state is the communication abnormality information of abnormality;
Second determination unit, for determining that the exception of abnormal virtual machine is stated in deployment according to the communication abnormality information
Server;
First statistic unit, the number of the abnormal server in server for counting Virtual Machine Manager module management;
Third determination unit, the number for the abnormal server in the server of the Virtual Machine Manager module management
When equal to 1, the abnormal virtual machine is determined as the purpose virtual machine;
Second statistic unit, the number for the abnormal server in the server of the Virtual Machine Manager module management
When greater than 1, the communication matrix is inquired, it is different for counting the communication state of each abnormal server and other abnormal servers
The number of normal state;
4th determination unit, for communication state to be determined as destination service for the most server of the number of abnormality
Device;
5th determination unit, it is empty for the abnormal virtual machine disposed in the destination server to be determined as the purpose
Quasi- machine.
In conjunction with second aspect, in second of achievable mode of second aspect, described device further include:
Second receiving unit, for receiving the communication quality information of first server transmission, the communication quality packet
Include the communication matter of the mark of first server, the mark of second server and the first server Yu the second server
Amount, the first server and the second server are any two service in the server of Virtual Machine Manager module management
Device;
Judging unit, for judging whether the communication quality is higher than predetermined quality threshold;
First recording unit, for being remembered in the communication matrix when the communication quality is higher than predetermined quality threshold
The communication state for recording the first server and the second server is normal condition;
Second recording unit is used for when the communication quality is not higher than predetermined quality threshold, in the communication matrix
The communication state for recording the first server and the second server is abnormality.
In conjunction with second of achievable mode of second aspect, the third in second aspect can be described logical in realization mode
Interrogating quality information is that the virtual machine disposed in the virtual machine and the second server disposed in the first server is held
It is sent when row communication traffic;
Alternatively, the communication quality information is the first server to second server transmission detection packet, and receive
After the probe response packet sent to the second server, generated according to the detection packet and the probe response packet.
In conjunction with second aspect, in the 4th kind of achievable mode of second aspect, the deployment unit, comprising:
Subelement is determined, for determining the number of the destination server;
First deployment subelement, when being equal to 1 for the number in the destination server, by the purpose deploying virtual machine
In the destination server;
Subelement is selected, when being greater than 1 for the number in the destination server, is taken according to preset rules from the purpose
It is engaged in selecting deployment server in the set of device;
Second deployment subelement, is used for the purpose deploying virtual machine in the deployment services device.
In conjunction with the 4th kind of achievable mode of second aspect, in the 5th kind of achievable mode of second aspect, described
Two deployment subelements, are also used to:
Screening meets the alternate servers of the standard of parameter preset from the server of the Virtual Machine Manager module management
Set, the parameter preset includes at least one of cpu resource, storage resource and network interface bandwidth;
It screens in the alternate servers set and is obtained alternatively with identical server in the set of the destination server
Deployment services device set;
Deployment server is selected from the alternative deployment services device set according to compatibility algorithm.
Technical solution provided in an embodiment of the present invention has the benefit that
A kind of virtual machine deployment method and device provided in an embodiment of the present invention, Virtual Machine Manager module are empty in deployment purpose
When quasi- machine, the opposite end virtual machine with purpose virtual machine there are communication traffic can be inquired, determination is deployed with the opposite end virtual machine
Server, and destination server can be obtained according to preset communication matrix, which is deployed with opposite end void with this
The communication state of the server of quasi- machine is normal condition, therefore, can be with after the purpose deploying virtual machine to the destination server
Guarantee that the communication traffic between the purpose virtual machine and opposite end virtual machine can be executed normally, improves and communicated between virtual machine
Reliability.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of cloud network architecture diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of deploying virtual machine apparatus structure schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of virtual machine deployment method provided in an embodiment of the present invention;
Fig. 4-1 is the flow chart of another virtual machine deployment method provided in an embodiment of the present invention;
Fig. 4-2 is a kind of network topology structure figure of data center provided in an embodiment of the present invention;
Fig. 4-3 is a kind of method flow that purpose virtual machine is determined from abnormal virtual machine provided in an embodiment of the present invention
Figure;
Fig. 4-4 is the method for selection deployment server in a kind of set from destination server provided in an embodiment of the present invention
Flow chart;
Fig. 5-1 is another deploying virtual machine apparatus structure schematic diagram provided in an embodiment of the present invention;
Fig. 5-2 is another deploying virtual machine apparatus structure schematic diagram provided in an embodiment of the present invention;
Fig. 5-3 is a kind of structural schematic diagram of deployment unit provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Fig. 1 is a kind of cloud network architecture diagram provided in an embodiment of the present invention, as shown in Figure 1, the number of the cloud telecommunications network
It include multiple servers according to central interior network, multiple virtual machines can be disposed on a different server, such as virtual machine
VM1, VM2, VM3 and VM4 are disposed on a different server.Pass through the core of data center between the server of data center
Layer switch, convergence layer switch (English: End Of Row;Referred to as: EOR) changed with access-layer switch, also referred to as frame top cross
Machine (English: Top OfRack;The communication that the interchanger interconnection of the different levels such as referred to as: TOR) is got up between virtual machine provides
Communication channel.Double-head arrow solid line in Fig. 1 indicates the communication between different VM.The characteristics of according to data center's cloud computing, virtually
Machine management module can the VM to data center arbitrarily disposed and migrated, also mean that communication traffic between VM according to
According to the difference of VM deployed position, flow is possible to by TOR, EOR and core switch (such as virtual machine VM1 and virtual machine VM4
Between communication), it is also possible to only pass through TOR and EOR, it is perhaps only only (such as empty in server internal by TOR or flow
Quasi- communication between machine VM2 and VM3).
The embodiment of the invention provides a kind of deploying virtual machine devices, as shown in Fig. 2, the deploying virtual machine device includes:
Processor 201, memory 202 and bus 203.The bus 203 is for connecting processor 201 and memory 202, processor 201
For executing the program 2021 stored in memory 202;
Processor 201, for inquiring with purpose virtual machine there are the opposite end virtual machine of communication traffic, which is
Virtual machine to be migrated or virtual machine to be disposed.
Processor 201 is also used to determine the server for being deployed with the opposite end virtual machine.
Processor 201 is also used to obtain destination server from preset communication matrix, the destination server and the deployment
The communication state for having the server of the opposite end virtual machine is normal condition, have recorded in the communication matrix any two server it
Between communication state, which includes normal condition or abnormality.
Processor 201 is also used to the purpose deploying virtual machine in the destination server.
Optionally, which is virtual machine to be migrated, which is also used to:
Receiving the instruction abnormal virtual machine and other virtual machine communication states that abnormal virtual machine is sent is abnormality
Communication abnormality information;
According to the communication abnormality information, the abnormal server for being deployed with the abnormal virtual machine is determined;
Count the number of the abnormal server in the server of Virtual Machine Manager module management;
It is when the number of abnormal server in the server of the Virtual Machine Manager module management is equal to 1, this is abnormal empty
Quasi- machine is determined as the purpose virtual machine;
When the number of abnormal server in the server of the Virtual Machine Manager module management is greater than 1, the communication is inquired
Matrix, the communication state for counting each abnormal server and other abnormal servers is the number of abnormality;
The most server of the number that communication state is abnormality is determined as destination server;
The abnormal virtual machine disposed in the destination server is determined as the purpose virtual machine.
Optionally, the processor 201, is also used to:
Receive first server send communication quality information, the communication quality information include first server mark,
The communication quality of the mark of second server and the first server and the second server, the first server and second clothes
Any two server being engaged in the server that device is Virtual Machine Manager module management;
Judge whether the communication quality is higher than predetermined quality threshold;
The communication quality be higher than predetermined quality threshold when, recorded in the communication matrix first server and this second
The communication state of server is normal condition;
When the communication quality is not higher than predetermined quality threshold, recorded in the communication matrix first server and this
The communication state of two servers is abnormality.
Optionally, which is institute in the virtual machine and the second server disposed in the first server
It is sent when the virtual machine execution communication traffic of deployment;
Alternatively, the communication quality information, which is the first server, sends detection packet to the second server, and receive this
After the probe response packet that two servers are sent, generated according to the detection packet and the probe response packet.
Optionally, the processor 201, is also used to:
Determine the number of the destination server;
When the number of the destination server is equal to 1, by the purpose deploying virtual machine in the destination server;
The destination server number be greater than 1 when, according to preset rules from the set of the destination server selector
Affix one's name to server;
By the purpose deploying virtual machine in the deployment services device.
Optionally, the processor 201, is also used to:
Screening meets the alternate servers collection of the standard of parameter preset from the server of the Virtual Machine Manager module management
It closes, which includes at least one of cpu resource, storage resource and network interface bandwidth;
It screens in the alternate servers set and is alternatively disposed with identical server in the set of the destination server
Server set;
Deployment server is selected from the alternative deployment services device set according to compatibility algorithm.
In conclusion a kind of deploying virtual machine device provided in an embodiment of the present invention, Virtual Machine Manager module is in deployment mesh
Virtual machine when, can inquire the opposite end virtual machine with purpose virtual machine there are communication traffic, determine that be deployed with the opposite end virtual
The server of machine, and destination server can be obtained, to be deployed with this right with this for the destination server according to preset communication matrix
The communication state for holding the server of virtual machine is normal condition, therefore, after the purpose deploying virtual machine to the destination server,
It can guarantee that the communication traffic between the purpose virtual machine and opposite end virtual machine can be executed normally, improve and lead between virtual machine
The reliability of news.
The embodiment of the invention provides a kind of virtual machine deployment method, this method can be applied to virtual machine shown in FIG. 1
In management module, referring to Fig. 3, this method comprises:
With purpose virtual machine there are the opposite end virtual machine of communication traffic, which is to be migrated for step 301, inquiry
Virtual machine or virtual machine to be disposed.
Step 302 determines the server for being deployed with the opposite end virtual machine.
Step 303 obtains destination server from preset communication matrix, which is deployed with the opposite end with this
The communication state of the server of virtual machine is normal condition, and the communication between any two server is had recorded in the communication matrix
State, the communication state include normal condition or abnormality.
Step 304, by the purpose deploying virtual machine in the destination server.
In conclusion a kind of virtual machine deployment method provided in an embodiment of the present invention, Virtual Machine Manager module is in deployment mesh
Virtual machine when, can inquire the opposite end virtual machine with purpose virtual machine there are communication traffic, determine that be deployed with the opposite end virtual
The server of machine, and destination server can be obtained, to be deployed with this right with this for the destination server according to preset communication matrix
The communication state for holding the server of virtual machine is normal condition, therefore, after the purpose deploying virtual machine to the destination server,
It can guarantee that the communication traffic between the purpose virtual machine and opposite end virtual machine can be executed normally, improve and lead between virtual machine
The reliability of news.
Optionally, which is virtual machine to be migrated, and in the inquiry, there are communication traffics with purpose virtual machine
Before the virtual machine of opposite end, this method further include:
Receiving the instruction abnormal virtual machine and other virtual machine communication states that abnormal virtual machine is sent is abnormality
Communication abnormality information;
According to the communication abnormality information, the abnormal server for being deployed with the abnormal virtual machine is determined;
Count the number of the abnormal server in the server of Virtual Machine Manager module management;
It is if the number of the abnormal server in the server of the Virtual Machine Manager module management is equal to 1, this is abnormal virtual
Machine is determined as the purpose virtual machine;
If the number of the abnormal server in the server of the Virtual Machine Manager module management is greater than 1, the communication square is inquired
Battle array, the communication state for counting each abnormal server and other abnormal servers is the number of abnormality;
The most server of the number that communication state is abnormality is determined as destination server;
The abnormal virtual machine disposed in the destination server is determined as the purpose virtual machine.
Optionally, in inquiry with purpose virtual machine there are before the opposite end virtual machine of communication traffic, this method further include:
Receive first server send communication quality information, the communication quality information include first server mark,
The communication quality of the mark of second server and the first server and the second server, the first server and second clothes
Any two server being engaged in the server that device is Virtual Machine Manager module management;
Judge whether the communication quality is higher than predetermined quality threshold;
If the communication quality is higher than predetermined quality threshold, the first server and second clothes are recorded in the communication matrix
The communication state of business device is normal condition;
If the communication quality be not higher than predetermined quality threshold, recorded in the communication matrix first server and this second
The communication state of server is abnormality.
Optionally, which is institute in the virtual machine and the second server disposed in the first server
It is sent when the virtual machine execution communication traffic of deployment;
Alternatively, the communication quality information, which is the first server, sends detection packet to the second server, and receive this
After the probe response packet that two servers are sent, generated according to the detection packet and the probe response packet.
Optionally, by the purpose deploying virtual machine in the destination server, comprising:
Determine the number of the destination server;
If the number of the destination server is equal to 1, by the purpose deploying virtual machine in the destination server;
If the number of the destination server is greater than 1, deployment is selected from the set of the destination server according to preset rules
Server;
By the purpose deploying virtual machine in the deployment services device.
Optionally, deployment server is selected from the set of the destination server according to preset rules, comprising:
Screening meets the alternate servers collection of the standard of parameter preset from the server of the Virtual Machine Manager module management
It closes, which includes at least one of cpu resource, storage resource and network interface bandwidth;
It screens in the alternate servers set and is alternatively disposed with identical server in the set of the destination server
Server set;
Deployment server is selected from the alternative deployment services device set according to compatibility algorithm.
In conclusion a kind of virtual machine deployment method provided in an embodiment of the present invention, Virtual Machine Manager module is in deployment mesh
Virtual machine when, can inquire the opposite end virtual machine with purpose virtual machine there are communication traffic, determine that be deployed with the opposite end virtual
The server of machine, and destination server can be obtained, to be deployed with this right with this for the destination server according to preset communication matrix
The communication state for holding the server of virtual machine is normal condition, therefore, after the purpose deploying virtual machine to the destination server,
It can guarantee that the communication traffic between the purpose virtual machine and opposite end virtual machine can be executed normally, improve and lead between virtual machine
The reliability of news.
Fig. 4-1 is another virtual machine deployment method flow chart provided in an embodiment of the present invention, and this method can be applied to
In Virtual Machine Manager module shown in FIG. 1, as shown in Fig. 4-1, this method comprises:
Step 401 receives the communication quality information that first server is sent.Execute step 402.
The communication quality information includes the mark of first server, the mark of second server and the first server and should
The communication quality of second server, the first server and the second server are in the server of Virtual Machine Manager module management
Any two server.
In embodiments of the present invention, the mark of the first server can be the media access control of the first server
(English: MediaAccess Control;Referred to as: MAC) address, or the Internet protocol (English of the first server
Text: InternetProtocol;Referred to as: IP) address.The communication quality may include that the first server and second server are sent out
The parameters such as time delay, shake and packet loss when sending data packet.
On the one hand, which can be the virtual machine and the second server disposed in the first server
Middle disposed virtual machine, which executes, to be sent when communication traffic.In embodiments of the present invention, Virtual Machine Manager module management is every
Multiple virtual machines can be deployed in a server, each of multiple virtual machine virtual machine can be virtual with opposite end
When the execution communication traffic of machine, the communication quality of detection and opposite end virtual machine, and the communication quality is sent to Virtual Machine Manager
Module.It is exemplary, it is assumed that the virtual machine VM1 being deployed in first server A and the virtual machine being deployed in second server B
There are communication traffics between VM2, and the MAC Address of first server A and second server B are respectively as follows: 12-3e-d4-
55-c6-f7,12-3e-d4-55-c6-f8.Then VM1 can be detected between VM1 and VM2 when executing communication traffic with VM2
Communication quality, such as VM1 to VM2 send data packet time delay, shake and packet loss, it is assumed that VM1 to VM2 send data packet when
Prolong as 30 milliseconds (ms), is dithered as 3ms, packet loss 0.005, then VM1 can be by the communication quality: time delay: 30ms, shake:
Packet loss: 3ms 0.005, and be deployed with the mark of the first server A of VM1: 12-3e-d4-55-c6-f7 and is deployed with
The mark of the second server B of VM2: 12-3e-d4-55-c6-f8 is sent to Virtual Machine Manager module.
On the other hand, which can be the first server and sends detection packet to the second server, and
After the probe response packet for receiving second server transmission, generated according to the detection packet and the probe response packet.In the present invention
In embodiment, communication detection module, each service are also provided in each server of the Virtual Machine Manager module management
Communication detection module in device can send detection packet to the communication detection module in other servers, and receive other clothes
It is engaged in after the communication detecting module transmission probe response packet in device, generates communication quality information.It is exemplary, it is assumed that first server A
The communication detection module B1 that the communication detection modules A 1 of middle setting is arranged into second server B has sent detection and wraps, and according to
The probe response packet for receiving B1 transmission, get that the detection that communication detection modules A 1 sends to communication detection module B1 wraps when
Prolong as 30ms, is dithered as 3ms, packet loss 0.005, then the communication quality information that first server A is generated may include: first
The mark of server A: 12-3e-d4-55-c6-f7;The mark of second server B: 12-3e-d4-55-c6-f8;Communication quality:
Time delay: 30ms, shake: 3ms, packet loss: 0.005.
It should be noted that in practical applications, which can be virtual network function management module
(English: Virtual NetworkFeature Manager;Referred to as: VNFM), or virtual machine manager (English: VM
Manager) etc., the embodiment of the present invention is without limitation.
Step 402 judges whether communication quality is higher than predetermined quality threshold.
If the communication quality is higher than predetermined quality threshold, step 403 is executed;If the communication quality is not higher than preset quality threshold
Value executes step 404.
Step 403 records the communication state of the first server and the second server in communication matrix as normal shape
State.Execute step 405.
In embodiments of the present invention, which is used to record any two in the server of Virtual Machine Manager module management
Communication state between a server.It can store predetermined quality threshold in the Virtual Machine Manager module, worked as first server
When communication quality in the communication quality information of transmission is higher than the predetermined quality threshold, Virtual Machine Manager module can be in communication square
The communication state that the first server and the second server are recorded in battle array is normal condition.It is exemplary, it is assumed that the preset quality
Threshold value are as follows: time delay: 50ms, shake: 5ms, packet loss: 0.01, and when first server A transmission is with second server B's
Time delay, shake and packet loss in communication quality is smaller, and Virtual Machine Manager module determines first server A and second server
The communication quality of B is higher, i.e., when the communication quality that first server A is sent are as follows: time delay: 30ms, shake: 3ms, packet loss:
When 0.005, due to the time delay in the communication quality: 30ms is less than the time delay in quality threshold: 50ms, trembling in communication quality
Dynamic: 3ms is less than the shake in quality threshold: 5ms, the packet loss in communication quality: 0.005 is less than the packet loss in quality threshold
0.01, then Virtual Machine Manager module can determine that the communication quality is higher than the predetermined quality threshold, and record in communication matrix
The communication state of first server A and second server B is normal condition.
Step 404 records the communication state of the first server and the second server in communication matrix as abnormal shape
State.Execute step 405.
When the communication quality in the communication quality information that first server is sent is not higher than the predetermined quality threshold, virtually
It is abnormality that machine management module can record the first server and the communication state of the second server in communication matrix.
It is exemplary, it is assumed that the predetermined quality threshold are as follows: time delay: 50ms, shake: 5ms, packet loss: 0.01, when first server A is sent
Communication quality are as follows: time delay: 60ms, shake: 7ms, packet loss: when 0.015, due to the time delay in the communication quality: 60ms is big
Time delay in quality threshold: 50ms, the shake in communication quality: 7ms is greater than the shake in quality threshold: 5ms, communication quality
In packet loss: 0.015 be greater than quality threshold in packet loss 0.01, then Virtual Machine Manager module can determine the communication quality
Not higher than the predetermined quality threshold, and record in communication matrix the communication state of first server A Yu second server B
For abnormality.
In embodiments of the present invention, it is assumed that the server of the Virtual Machine Manager module management of data center includes server A-
The network topology structure figure of H, the data center where the server A-H can as shown in the Fig. 4-2, the network shown in Fig. 4-2
In topology diagram, including core layer switch 01, converge layer switch 02 and access-layer switch 03, the friendship of the different levels
The interconnection changed planes can establish a variety of communication channels, can satisfy the communication in server A-H between any two server.
Assuming that interchanger X breaks down in the network topology structure shown in Fig. 4-2, lead to all communications industrys by the interchanger
Business is all affected, the communication quality information that Virtual Machine Manager module is sent according to the server A-H received at this time, generation
Communication matrix can be as shown in table 1, and any two service in the server A-H of Virtual Machine Manager module management is shown in table 1
Communication state between device, wherein √ indicates that communication state is normal condition between two servers, × indicate two servers
Between communication state be abnormality.Exemplary, as shown in table 1, the communication state of server A and server B is normal shape
The communication state of state, server A and server C-H are abnormality;Server H and the communication state of server A-D are
The communication state of abnormality, server H and server E-G are normal condition.
Table 1
A | B | C | D | E | F | G | H | |
A | √ | √ | × | × | × | × | × | × |
B | √ | √ | × | × | × | × | × | × |
C | × | × | √ | √ | × | × | × | × |
D | × | × | √ | √ | × | × | × | × |
E | × | × | × | × | √ | √ | √ | √ |
F | × | × | × | × | √ | √ | √ | √ |
G | × | × | × | × | √ | √ | √ | √ |
H | × | × | × | × | √ | √ | √ | √ |
It should be noted that in practical applications, since multiple virtual machines can be deployed in a server, when two
All there is communication traffic between the multiple virtual machines disposed in server, and multiple virtual machine is all to Virtual Machine Manager module
When having sent the communication quality information between the virtual machine of opposite end, as long as then Virtual Machine Manager module judges any virtual machine hair
It is sending when being higher than quality threshold with the virtual machine disposed in the server of opposite end communication quality, so that it may to determine two servers
Between communication state be normal condition.It is exemplary, it is assumed that the virtual machine disposed in server A includes VM1 and VM3, server B
The virtual machine of middle deployment includes VM2 and VM4, and wherein there are communication traffics between VM1 and VM2, there is communication between VM3 and VM4
Business, and VM1 has sent to Virtual Machine Manager module and sends out with communication quality the information S1, VM3 of VM2 to Virtual Machine Manager module
The communication quality information S2 with VM4 is sent, then the server identification for including in S1 and S2 is equal are as follows: the mark and service of server A
The mark of device B.If Virtual Machine Manager module judges that the communication quality for including in communication quality information S1 is higher than quality threshold, but
The communication quality for including in communication quality information S2 is not higher than quality threshold, then Virtual Machine Manager module can determine server A
Communication state between server B is normal condition, as long as having any two virtual machine can in server A and server B
It with normal communication, that is, can determine that the communication link between two servers is normal condition, and matter be lower than for communication quality
Two virtual machines VM3 and VM4 of threshold value are measured, the determination of Virtual Machine Manager module is that two virtual machines itself occur under normal circumstances
Communication failure.
It should also be noted that, the communication quality that Virtual Machine Manager module can be sent according to the server received is believed
Breath, is updated and is safeguarded in real time to communication quality matrix, to improve the reliability of the communication matrix, and then guarantees that basis should
The virtual machine that communication matrix is disposed and migrated can with there are the opposite end virtual machine of communication traffic carry out normal communication.
Step 405, there are the opposite end virtual machines of communication traffic with purpose virtual machine for inquiry.Execute step 406.
The purpose virtual machine is virtual machine to be migrated or virtual machine to be disposed.In embodiments of the present invention, when in data
The heart is determined according to traffic load when needing dilatation, can be disposed in the server of Virtual Machine Manager module management new virtual
Machine, the new virtual machine are virtual machine to be disposed;When abnormal, data center network event occurs in some server of data center
When barrier or some server need active maintenance, need the virtual machine (vm) migration for occurring disposing in abnormal server
Onto other servers, the virtual machine disposed in the abnormal server is virtual machine to be migrated.When Virtual Machine Manager module
After determining purpose virtual machine, it can inquire that there are the opposite end virtual machines of communication traffic with the purpose virtual machine in the database.Show
Example, it is assumed that purpose virtual machine be virtual machine VM7 to be disposed, then Virtual Machine Manager module polls to the virtual machine to be disposed
VM7 can be VM8 and VM9 there are the opposite end virtual machine of communication traffic.
It should be noted that will lead to when some switching node of data center breaks down by the switching node
Multiple VM between communication all receive influence, Virtual Machine Manager module needs to migrate affected abnormal virtual machine at this time
Into other servers, in abnormal virtual machine transition process, for avoid on data center influence it is excessive, to reduce as far as possible to
The abnormal virtual machine of migration, therefore, in Virtual Machine Manager module, in inquiry, there are the opposite end of communication traffic void with purpose virtual machine
Before quasi- machine, it is also necessary to determine purpose virtual machine, i.e., abnormal virtual machine to be migrated from abnormal virtual machine.Fig. 4-3 is this hair
A kind of method flow diagram that purpose virtual machine is determined from abnormal virtual machine that bright embodiment provides, as shown in Fig. 4-3, this method
Include:
Step 4051, the instruction abnormal virtual machine for receiving abnormal virtual machine transmission and other virtual machine communication states are different
The communication abnormality information of normal state.Execute step 4052.
In embodiments of the present invention, when virtual machine detects that the communication state between other virtual machines is abnormality
When, communication abnormality information can be sent to Virtual Machine Manager module.It is exemplary, it is assumed that virtual machine VM1 is detected and virtual machine VM2
Between communication state be abnormality when, VM1 can to Virtual Machine Manager module send communication abnormality information.
Step 4052, according to the communication abnormality information, determine the abnormal server for being deployed with the abnormal virtual machine.Execute step
Rapid 4053.
Exemplary, Virtual Machine Manager module can be according to the communication abnormality information received, and it is empty that determination is deployed with the exception
The abnormal server of quasi- machine VM1 are as follows: server A.
Step 4053, count Virtual Machine Manager module management server in abnormal server number.
If the number of the abnormal server in the server of the Virtual Machine Manager module management is equal to 1, step 4054 is executed;
If the number of the abnormal server in the server of the Virtual Machine Manager module management is greater than 1, step 4055 is executed.It is exemplary,
Virtual Machine Manager module is deployed with the abnormal server of abnormal virtual machine VM1 determining are as follows: after server A, can count this
The number of abnormal server in the server of Virtual Machine Manager module management is 1, and executes step 4054.
The abnormal virtual machine is determined as the purpose virtual machine by step 4054.
It is if the number of the abnormal server in the server of the Virtual Machine Manager module management is equal to 1, this is abnormal empty
Quasi- machine is determined as the purpose virtual machine.It is exemplary, it is assumed that the abnormal server that Virtual Machine Manager module determines are as follows: server A, then
Since the number of the abnormal server is 1, then Virtual Machine Manager module is virtual for the purpose of can determining abnormal virtual machine VM1
Machine.
Step 4055, inquiry communication matrix, the communication state for counting each abnormal server and other abnormal servers are
The number of abnormality.Execute step 4056.
If the number of the abnormal server in the server of the Virtual Machine Manager module management is greater than 1, Virtual Machine Manager
Module can inquire communication matrix, and the communication state for counting each abnormal server and other abnormal servers is abnormality
Number.It is exemplary, it is assumed that virtual machine VM1, VM2 and VM5 have sent communication abnormality information, virtual machine pipe to Virtual Machine Manager module
Reason module determines the abnormal server for being deployed with abnormal virtual machine VM1 are as follows: server A is deployed with the exception of abnormal virtual machine VM2
Server are as follows: server B is deployed with the abnormal server of abnormal virtual machine VM5 are as follows: server C, then due to the abnormal server
Number be 3, be greater than 1, therefore Virtual Machine Manager module can inquire communication matrix, count abnormal server A-C and its respectively
The communication state of his abnormal server is the number of abnormality.As can be seen that exception service from communication matrix shown in table 1
The communication state of device A and abnormal server B is normal condition, and the communication state with abnormal server C is abnormality, then virtually
Machine management module can determine that the communication state of abnormal server A and other abnormal servers B and C is that the number of abnormality is
1;Similarly, Virtual Machine Manager module can also count to obtain abnormal server B and the communication state of other abnormal servers to be different
The number of normal state is 1, and the communication state of abnormal server C and other abnormal servers is that the number of abnormality is 2.
Communication state is determined as destination server for the most server of the number of abnormality by step 4056.It executes
Step 4057.
It is exemplary, since in abnormal server A-C, abnormal server C and the communication state of other abnormal servers are
The number of abnormality is 2, and communication state is that the number of abnormality is most, then Virtual Machine Manager module can take this extremely
Business device C is determined as destination server.
The abnormal virtual machine disposed in the destination server is determined as the purpose virtual machine by step 4057.
In embodiments of the present invention, if being also deployed with other virtual machines in the destination server, but other virtual machines do not have
Anomalous communication information is sent to Virtual Machine Manager module, i.e., other virtual machines are not abnormal virtual machine, then Virtual Machine Manager mould
Block will not also determine other virtual machines as purpose virtual machine.Exemplary, Virtual Machine Manager module can be by destination server C
The abnormal virtual machine VM5 of middle deployment determines to be purpose virtual machine, i.e., virtual machine to be migrated.If also disposed in destination server C
Virtual machine VM6, but VM6 can normally execute communication traffic with the opposite end virtual machine there are communication traffic, then Virtual Machine Manager
Module does not have to VM6 being determined as virtual machine to be migrated.
Step 406 determines the server for being deployed with the opposite end virtual machine.Execute step 407.
It can recorde the virtual machine disposed in each server in the database of Virtual Machine Manager module, therefore when void
Quasi- machine management module has been determined with purpose virtual machine there are after the opposite end virtual machine of communication traffic, can be inquired in each server
The virtual machine disposed determines the server for being deployed with opposite end virtual machine.It is exemplary, it is assumed that Virtual Machine Manager module polls arrive
With virtual machine VM7 to be disposed there are the opposite end virtual machine of communication traffic be VM8 and VM9, then Virtual Machine Manager module can determine
The server for being deployed with virtual machine VM8 is server G, and the server for being deployed with virtual machine VM9 is server H.
Step 407 obtains destination server from preset communication matrix, which is deployed with the opposite end with this
The communication state of the server of virtual machine is normal condition.Execute step 408.
In embodiments of the present invention, the communication state between any two server is had recorded in the communication matrix, this is logical
News state includes normal condition or abnormality.If the server for being deployed with opposite end virtual machine includes multiple servers, the mesh
Server and multiple server between communication state should be normal condition.It is exemplary, for being deployed with virtual machine
The server G and server H of VM8 and VM9, by communication matrix shown in inquiry table 1 it is found that with server G and server H
Communication state be the server of normal condition include: server E, server F, server G and server H, then virtual machine
Server E-H can be determined as destination server by management module.If Virtual Machine Manager module does not have from preset communication matrix
Have get with this be deployed with the server of opposite end virtual machine communication state be normal condition destination server, then can root
According to the size of the cpu resource of each server managed, the size of storage resource and the size of network interface bandwidth are suitable to select
Server as VM dispose and migrate destination server.
It should be noted that if the purpose virtual machine is virtual machine to be migrated, when Virtual Machine Manager module is from preset
After obtaining destination server in communication matrix, it is also necessary to the virtual machine to be migrated will be deployed with from the destination server
Source server is deleted, and the server in addition to the source server is serviced as a purpose.It is exemplary, it is assumed that server E occurs
Failure needs to safeguard, Virtual Machine Manager module needs migrate the virtual machine VM0 disposed in server E to other servers,
There are the virtual machines of communication traffic with virtual machine VM0 are as follows: virtual machine VM8 and VM9, wherein being deployed with the service of virtual machine VM8
Device is server G, and the server for being deployed with VM9 is server H, by communication matrix shown in inquiry table 1 it is found that and server
The communication state of G and server H are that the server of normal condition includes: server E, server F, server G and server
H, then server E-H can be determined as destination server by Virtual Machine Manager module, since the server E in destination server is
It is deployed with virtual machine to be migrated: the source server of VM0, therefore Virtual Machine Manager module needs take the source from destination server
Business device: server E is deleted, at this point, updated destination server are as follows: server F, server G and server H.
Step 408, the number for counting the destination server.
If the number of the destination server is equal to 1, step 409 is executed;If the number of the destination server is greater than 1, execute
Step 410;If the number of the destination server, less than 1, Virtual Machine Manager module can be determined from preset communication matrix
Do not get be with the communication state for being deployed with the server of opposite end virtual machine normal condition destination server, then can be with
According to the size of the cpu resource of each server managed, the size of the size of storage resource and network interface bandwidth selects to close
The destination server that suitable server is disposed and migrated as VM.It is exemplary, it is assumed that the purpose clothes that Virtual Machine Manager module obtains
Business device are as follows: server E, server F, server G and server H, then Virtual Machine Manager module can count to obtain purpose clothes
The number of business device is 4, is greater than 1, therefore execute step 410.
Step 409, by the purpose deploying virtual machine in the destination server.
If the number of the destination server is equal to 1, Virtual Machine Manager module can be directly by the purpose deploying virtual machine
In the destination server.
Step 410 selects deployment server according to preset rules from the set of the destination server.Execute step 411.
If the number of the destination server is greater than 1, Virtual Machine Manager module can be taken according to preset rules from the purpose
It is engaged in selecting deployment server in the set of device.Exemplary, Virtual Machine Manager module can be according to preset rules from destination server
Set { server E, server F, server G, server H } in selection deployment server.
Fig. 4-4 is the method for selection deployment server in a kind of set from destination server provided in an embodiment of the present invention
Flow chart, as shown in Fig. 4-4, this method comprises:
Step 4101, screening meets the alternative clothes of the standard of parameter preset from the server of Virtual Machine Manager module management
Business device set.
The parameter preset includes at least one of cpu resource, storage resource and network interface bandwidth.In the embodiment of the present invention
In, Virtual Machine Manager module can be according to parameters such as the CUP of purpose virtual machine and memories, in the clothes of Virtual Machine Manager module management
Screening meets the alternate servers set of the standard of parameter preset in business device.It is exemplary, it is assumed that purpose virtual machine is void to be disposed
Quasi- machine VM7, parameter preset are cpu resource, storage resource and network interface bandwidth, and Virtual Machine Manager module is according to the CPU of virtual machine VM7
With the standard of the parameter preset of memory setting are as follows: the dominant frequency of CPU is 4 girz (GHz) or more, and storage resource is 8 gigabytes
(GB) more than, network interface bandwidth is 10 megabits per second (Mbps) or more, then Virtual Machine Manager module is from the Virtual Machine Manager module
The alternate servers set for the standard of above-mentioned parameter preset that screens in the server of management meet can be { server A, service
Device E, server F, server G }.
Step 4102 is screened in the alternate servers set and is obtained with identical server in the set of the destination server
Alternative deployment services device set.
Virtual Machine Manager module can obtain alternative portion to the collection conjunction intersection of alternate servers set and destination server
Affix one's name to server set.It is exemplary, it is assumed that the collection of destination server is combined into { server E, server F, server G, server H },
The alternate servers collection of Virtual Machine Manager module screening is combined into { server A, server E, server F, server G }, then virtually
Machine management module is to two server set conjunction intersections, and the alternative deployment services device set screened can be with are as follows: { server
E, server F, server G }.
Step 4103 selects deployment server according to compatibility algorithm from the alternative deployment services device set.
Compatibility algorithm refers to from alternative deployment services device set, select and be deployed with opposite end virtual machine server it
Between the shortest server of communication path as deployment services device.It is exemplary, it is assumed that there are communication traffics with purpose virtual machine VM7
Opposite end virtual machine is VM8 and VM9, and the server for being deployed with VM8 is server G, and the server for being deployed with VM9 is server H, then
As can be seen that alternative deployment services device set { server E, server F, server from network topology structure shown in Fig. 4-2
G } in, the shortest server of communication path communication path between server G, with server H is shortest between server G
Server is also server G, then server G can be selected as deployment services device by Virtual Machine Manager module.
It should be noted that Virtual Machine Manager module can also be from alternative deployment services device set in addition to compatibility algorithm
One server of middle random selection is as deployment services device.
Step 411, by the purpose deploying virtual machine in the deployment services device.
Exemplary, purpose virtual machine VM7 can be deployed in deployment services device by Virtual Machine Manager module: in server G.
It should be noted that the sequencing of the step of virtual machine deployment method provided in an embodiment of the present invention can carry out
Appropriate adjustment, step according to circumstances can also accordingly be increased and decreased.Exemplary, step 401 to step 404 can be with step 405
It is performed simultaneously, can also execute after step 405.Anyone skilled in the art the invention discloses skill
Within the scope of art, the method that can readily occur in variation should be covered by the protection scope of the present invention, therefore repeat no more.
It should be noted virtual machine deployment method provided in an embodiment of the present invention, in addition to can be applied to shown in Fig. 1
Data center inside application scenarios in, can also be applied to cloud telecommunications network the application scenarios across data center in.?
In scene across data center, virtual machine deployment method can be executed by the Virtual Machine Manager module at any data center, the void
Quasi- machine management module may include VM Manager, VNFM and NFV management composer (English: NFVManagement and
Orchestration;Referred to as: NFVMANO) etc., the embodiment of the present invention is without limitation.
In conclusion a kind of virtual machine deployment method provided in an embodiment of the present invention, Virtual Machine Manager module is in deployment mesh
Virtual machine when, can inquire the opposite end virtual machine with purpose virtual machine there are communication traffic, determine that be deployed with the opposite end virtual
The server of machine, and destination server can be obtained, to be deployed with this right with this for the destination server according to preset communication matrix
The communication state for holding the server of virtual machine is normal condition, therefore, after the purpose deploying virtual machine to the destination server,
It can guarantee that the communication traffic between the purpose virtual machine and opposite end virtual machine can be executed normally, improve and lead between virtual machine
The reliability of news.
The embodiment of the invention provides a kind of deploying virtual machine devices, as shown in fig. 5-1, the deploying virtual machine device 500
It include: query unit 501, the first determination unit 502, acquiring unit 503 and deployment unit 504,
Query unit 501, for inquiring, there are the opposite end virtual machine of communication traffic, the purpose virtual machines with purpose virtual machine
For virtual machine to be migrated or virtual machine to be disposed.
First determination unit 502, for determining the server for being deployed with the opposite end virtual machine.
Acquiring unit 503, for obtaining destination server from preset communication matrix, the destination server and the deployment
The communication state for having the server of the opposite end virtual machine is normal condition, have recorded in the communication matrix any two server it
Between communication state, which includes normal condition or abnormality.
Deployment unit 504 is used for the purpose deploying virtual machine in the destination server.
In conclusion a kind of deploying virtual machine device provided in an embodiment of the present invention, Virtual Machine Manager module is in deployment mesh
Virtual machine when, can inquire the opposite end virtual machine with purpose virtual machine there are communication traffic, determine that be deployed with the opposite end virtual
The server of machine, and destination server can be obtained, to be deployed with this right with this for the destination server according to preset communication matrix
The communication state for holding the server of virtual machine is normal condition, therefore, after the purpose deploying virtual machine to the destination server,
It can guarantee that the communication traffic between the purpose virtual machine and opposite end virtual machine can be executed normally, improve and lead between virtual machine
The reliability of news.
The embodiment of the invention provides another deploying virtual machine devices, as shown in Fig. 5-2, the deploying virtual machine device
500 include:
Query unit 501, for inquiring, there are the opposite end virtual machine of communication traffic, the purpose virtual machines with purpose virtual machine
For virtual machine to be migrated or virtual machine to be disposed.
First determination unit 502, for determining the server for being deployed with the opposite end virtual machine.
Acquiring unit 503, for obtaining destination server from preset communication matrix, the destination server and the deployment
The communication state for having the server of the opposite end virtual machine is normal condition, have recorded in the communication matrix any two server it
Between communication state, which includes normal condition or abnormality.
Deployment unit 504 is used for the purpose deploying virtual machine in the destination server.
First receiving unit 505, for receiving the instruction abnormal virtual machine and other virtual machines of abnormal virtual machine transmission
Communication state is the communication abnormality information of abnormality.
Second determination unit 506, for according to the communication abnormality information, determining the abnormal clothes for being deployed with the abnormal virtual machine
Business device.
First statistic unit 507, of the abnormal server in server for counting Virtual Machine Manager module management
Number.
Third determination unit 508, for the abnormal server in the server of the Virtual Machine Manager module management
When number is equal to 1, which is determined as the purpose virtual machine.
Second statistic unit 509, for the abnormal server in the server of the Virtual Machine Manager module management
When number is greater than 1, the communication matrix is inquired, it is abnormal for counting the communication state of each abnormal server and other abnormal servers
The number of state.
4th determination unit 510, for communication state to be determined as target for the most server of the number of abnormality
Server.
5th determination unit 511, for the abnormal virtual machine disposed in the destination server to be determined as purpose void
Quasi- machine.
Second receiving unit 512, for receiving the communication quality information of first server transmission, the communication quality packet
The communication quality of the mark of first server, the mark of second server and the first server and the second server is included, it should
First server and the second server are any two server in the server of Virtual Machine Manager module management.
Judging unit 513, for judging whether the communication quality is higher than predetermined quality threshold.
First recording unit 514, for being recorded in the communication matrix when the communication quality is higher than predetermined quality threshold
The communication state of the first server and the second server is normal condition;
Second recording unit 515, for being remembered in the communication matrix when the communication quality is not higher than predetermined quality threshold
The communication state for recording the first server and the second server is abnormality.
Optionally, which is institute in the virtual machine and the second server disposed in the first server
It is sent when the virtual machine execution communication traffic of deployment;
Alternatively, the communication quality information, which is the first server, sends detection packet to the second server, and receive this
After the probe response packet that two servers are sent, generated according to the detection packet and the probe response packet.
Fig. 5-3 is a kind of structural schematic diagram of deployment unit 504 provided in an embodiment of the present invention, as shown in Fig. 5-3, the portion
Affixing one's name to unit 504 includes:
Subelement 5041 is determined, for determining the number of the destination server.
First deployment subelement 5042, when being equal to 1 for the number in the destination server, by the purpose deploying virtual machine
In the destination server.
Subelement 5043 is selected, when being greater than 1 for the number in the destination server, is taken according to preset rules from the purpose
It is engaged in selecting deployment server in the set of device.
Second deployment subelement 5044, is used for the purpose deploying virtual machine in the deployment services device.
Optionally, the second deployment subelement 5044, is also used to:
Screening meets the alternate servers collection of the standard of parameter preset from the server of the Virtual Machine Manager module management
It closes, which includes at least one of cpu resource, storage resource and network interface bandwidth;
It screens in the alternate servers set and is alternatively disposed with identical server in the set of the destination server
Server set;
Deployment server is selected from the alternative deployment services device set according to compatibility algorithm.
In conclusion a kind of deploying virtual machine device provided in an embodiment of the present invention, Virtual Machine Manager module is in deployment mesh
Virtual machine when, can inquire the opposite end virtual machine with purpose virtual machine there are communication traffic, determine that be deployed with the opposite end virtual
The server of machine, and destination server can be obtained, to be deployed with this right with this for the destination server according to preset communication matrix
The communication state for holding the server of virtual machine is normal condition, therefore, after the purpose deploying virtual machine to the destination server,
It can guarantee that the communication traffic between the purpose virtual machine and opposite end virtual machine can be executed normally, improve and lead between virtual machine
The reliability of news.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
It with the specific work process of unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (12)
1. a kind of virtual machine deployment method, which is characterized in that the described method includes:
Inquiry with purpose virtual machine there are the opposite end virtual machine of communication traffic, the purpose virtual machine be virtual machine to be migrated or
Virtual machine to be disposed;
Determine that the server of opposite end virtual machine is stated in deployment;
Destination server is obtained from preset communication matrix, the destination server is deployed with the opposite end virtual machine with described
The communication state of server be normal condition, the communication shape between any two server is had recorded in the communication matrix
State, the communication state include normal condition or abnormality;
By the purpose deploying virtual machine in the destination server.
2. the method according to claim 1, wherein the purpose virtual machine is virtual machine to be migrated, described
Inquiry with purpose virtual machine there are before the opposite end virtual machine of communication traffic, the method also includes:
The instruction abnormal virtual machine and other virtual machine communication states for receiving abnormal virtual machine transmission are the logical of abnormality
Interrogate exception information;
According to the communication abnormality information, determine that the abnormal server of abnormal virtual machine is stated in deployment;
Count the number of the abnormal server in the server of Virtual Machine Manager module management;
If the number of the abnormal server in the server of the Virtual Machine Manager module management is equal to 1, and the exception is virtual
Machine is determined as the purpose virtual machine;
If the number of the abnormal server in the server of the Virtual Machine Manager module management is greater than 1, the communication square is inquired
Battle array, the communication state for counting each abnormal server and other abnormal servers is the number of abnormality;
The most server of the number that communication state is abnormality is determined as destination server;
The abnormal virtual machine disposed in the destination server is determined as the purpose virtual machine.
3. the method according to claim 1, wherein in the inquiry, there are communication traffics with purpose virtual machine
Before the virtual machine of opposite end, the method also includes:
The communication quality information that first server is sent is received, the communication quality information includes the mark of first server, the
Two servers mark and the first server and the second server communication quality, the first server with it is described
Second server is any two server in the server of Virtual Machine Manager module management;
Judge whether the communication quality is higher than predetermined quality threshold;
If the communication quality is higher than predetermined quality threshold, the first server and described the are recorded in the communication matrix
The communication state of two servers is normal condition;
If the communication quality be not higher than predetermined quality threshold, recorded in the communication matrix first server with it is described
The communication state of second server is abnormality.
4. according to the method described in claim 3, it is characterized in that,
The communication quality information is disposed in the virtual machine and the second server disposed in the first server
Virtual machine send when executing communication traffic;
Alternatively, the communication quality information is the first server to second server transmission detection packet, and receive institute
After the probe response packet for stating second server transmission, generated according to the detection packet and the probe response packet.
5. the method according to claim 1, wherein described take the purpose deploying virtual machine in the purpose
It is engaged in device, comprising:
Determine the number of the destination server;
If the number of the destination server is equal to 1, by the purpose deploying virtual machine in the destination server;
If the number of the destination server is greater than 1, deployment is selected from the set of the destination server according to preset rules
Server;
By the purpose deploying virtual machine in the deployment services device.
6. according to the method described in claim 5, it is characterized in that, it is described according to preset rules from the collection of the destination server
Selection deployment server in conjunction, comprising:
Screening meets the alternate servers set of the standard of parameter preset from the server of Virtual Machine Manager module management, described
Parameter preset includes at least one of cpu resource, storage resource and network interface bandwidth;
It screens in the alternate servers set and is alternatively disposed with identical server in the set of the destination server
Server set;
Deployment server is selected from the alternative deployment services device set according to compatibility algorithm.
7. a kind of deploying virtual machine device, which is characterized in that described device includes:
Query unit, for inquiring with purpose virtual machine there are the opposite end virtual machine of communication traffic, the purpose virtual machine be to
Migrate virtual machine or virtual machine to be disposed;
First determination unit, for determining that the server of opposite end virtual machine is stated in deployment;
Acquiring unit, for obtaining destination server from preset communication matrix, the destination server is deployed with described
The communication state of the server of the opposite end virtual machine is normal condition, has recorded any two server in the communication matrix
Between communication state, the communication state includes normal condition or abnormality;
Deployment unit is used for the purpose deploying virtual machine in the destination server.
8. device according to claim 7, which is characterized in that the purpose virtual machine is virtual machine to be migrated, the dress
It sets further include:
First receiving unit, the instruction abnormal virtual machine and other virtual machines for receiving abnormal virtual machine transmission communicate shape
State is the communication abnormality information of abnormality;
Second determination unit, for determining that the exception service of abnormal virtual machine is stated in deployment according to the communication abnormality information
Device;
First statistic unit, the number of the abnormal server in server for counting Virtual Machine Manager module management;
Third determination unit, the number for the abnormal server in the server of the Virtual Machine Manager module management are equal to
When 1, the abnormal virtual machine is determined as the purpose virtual machine;
Second statistic unit, the number for the abnormal server in the server of the Virtual Machine Manager module management are greater than
When 1, the communication matrix is inquired, the communication state for counting each abnormal server and other abnormal servers is abnormal shape
The number of state;
4th determination unit, for communication state to be determined as destination server for the most server of the number of abnormality;
5th determination unit, it is virtual for the abnormal virtual machine disposed in the destination server to be determined as the purpose
Machine.
9. device according to claim 7, which is characterized in that described device further include:
Second receiving unit, for receiving the communication quality information of first server transmission, the communication quality information includes the
The communication quality of the mark of one server, the mark of second server and the first server and the second server, institute
It states first server and the second server is any two server in the server of Virtual Machine Manager module management;
Judging unit, for judging whether the communication quality is higher than predetermined quality threshold;
First recording unit, for recording institute in the communication matrix when the communication quality is higher than predetermined quality threshold
The communication state for stating first server and the second server is normal condition;
Second recording unit, for being recorded in the communication matrix when the communication quality is not higher than predetermined quality threshold
The communication state of the first server and the second server is abnormality.
10. device according to claim 9, which is characterized in that
The communication quality information is disposed in the virtual machine and the second server disposed in the first server
Virtual machine send when executing communication traffic;
Alternatively, the communication quality information is the first server to second server transmission detection packet, and receive institute
After the probe response packet for stating second server transmission, generated according to the detection packet and the probe response packet.
11. device according to claim 7, which is characterized in that the deployment unit, comprising:
Subelement is determined, for determining the number of the destination server;
First deployment subelement, when being equal to 1 for the number in the destination server, by the purpose deploying virtual machine in institute
It states in destination server;
Subelement is selected, when being greater than 1 for the number in the destination server, according to preset rules from the destination server
Set in selection deployment server;
Second deployment subelement, is used for the purpose deploying virtual machine in the deployment services device.
12. device according to claim 11, which is characterized in that the second deployment subelement is also used to:
Screening meets the alternate servers set of the standard of parameter preset from the server of Virtual Machine Manager module management, described
Parameter preset includes at least one of cpu resource, storage resource and network interface bandwidth;
It screens in the alternate servers set and is alternatively disposed with identical server in the set of the destination server
Server set;
Deployment server is selected from the alternative deployment services device set according to compatibility algorithm.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510524417.2A CN105119993B (en) | 2015-08-24 | 2015-08-24 | Virtual machine deployment method and device |
PCT/CN2016/094414 WO2017032223A1 (en) | 2015-08-24 | 2016-08-10 | Virtual machine deployment method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510524417.2A CN105119993B (en) | 2015-08-24 | 2015-08-24 | Virtual machine deployment method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105119993A CN105119993A (en) | 2015-12-02 |
CN105119993B true CN105119993B (en) | 2019-02-26 |
Family
ID=54667876
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510524417.2A Active CN105119993B (en) | 2015-08-24 | 2015-08-24 | Virtual machine deployment method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105119993B (en) |
WO (1) | WO2017032223A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105119993B (en) * | 2015-08-24 | 2019-02-26 | 华为技术有限公司 | Virtual machine deployment method and device |
CN106921977B (en) * | 2015-12-26 | 2020-11-06 | 华为技术有限公司 | Service quality planning method, device and system based on service flow |
CN106998560A (en) * | 2016-01-25 | 2017-08-01 | 中兴通讯股份有限公司 | A kind of management method, the network equipment and system for virtualizing network function |
CN106502760B (en) * | 2016-09-21 | 2019-06-21 | 华为技术有限公司 | A kind of virtual machine compatibility strategy visualization method and device |
CN113282366B (en) * | 2021-04-02 | 2024-06-28 | 中国船舶重工集团公司第七研究院 | Virtual machine static placement method oriented to embedded virtualization environment |
CN116566805B (en) * | 2023-07-10 | 2023-09-26 | 中国人民解放军国防科技大学 | System disaster-tolerant and anti-destruction oriented node cross-domain scheduling method and device |
CN116866154B (en) * | 2023-09-05 | 2023-11-28 | 湖北华中电力科技开发有限责任公司 | Intelligent dispatching management system for power distribution network communication service based on virtual machine cluster |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2618535A1 (en) * | 2010-10-19 | 2013-07-24 | ZTE Corporation | Method and system for realizing virtual machine mobility |
CN103605562A (en) * | 2013-12-10 | 2014-02-26 | 浪潮电子信息产业股份有限公司 | Method for migrating kernel-based virtual machine (KVM) between physical hosts |
CN104008002A (en) * | 2014-06-17 | 2014-08-27 | 电子科技大学 | Target host selection method for deploying virtual machine under cloud platform environment |
CN104657215A (en) * | 2013-11-19 | 2015-05-27 | 南京鼎盟科技有限公司 | Virtualization energy-saving system in Cloud computing |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101859263B (en) * | 2010-06-12 | 2012-07-25 | 中国人民解放军国防科学技术大学 | Quick communication method between virtual machines supporting online migration |
US20120102190A1 (en) * | 2010-10-26 | 2012-04-26 | International Business Machines Corporation | Inter-virtual machine communication |
CN102082692B (en) * | 2011-01-24 | 2012-10-17 | 华为技术有限公司 | Virtual machine migration method, device and cluster system based on network data flow |
CN105119993B (en) * | 2015-08-24 | 2019-02-26 | 华为技术有限公司 | Virtual machine deployment method and device |
-
2015
- 2015-08-24 CN CN201510524417.2A patent/CN105119993B/en active Active
-
2016
- 2016-08-10 WO PCT/CN2016/094414 patent/WO2017032223A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2618535A1 (en) * | 2010-10-19 | 2013-07-24 | ZTE Corporation | Method and system for realizing virtual machine mobility |
CN104657215A (en) * | 2013-11-19 | 2015-05-27 | 南京鼎盟科技有限公司 | Virtualization energy-saving system in Cloud computing |
CN103605562A (en) * | 2013-12-10 | 2014-02-26 | 浪潮电子信息产业股份有限公司 | Method for migrating kernel-based virtual machine (KVM) between physical hosts |
CN104008002A (en) * | 2014-06-17 | 2014-08-27 | 电子科技大学 | Target host selection method for deploying virtual machine under cloud platform environment |
Also Published As
Publication number | Publication date |
---|---|
WO2017032223A1 (en) | 2017-03-02 |
CN105119993A (en) | 2015-12-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105119993B (en) | Virtual machine deployment method and device | |
US11677622B2 (en) | Modifying resource allocation or policy responsive to control information from a virtual network function | |
US10601728B2 (en) | Software-defined data center and service cluster scheduling and traffic monitoring method therefor | |
US11218423B2 (en) | Method for service implementation in network function virtualization (NFV) system and communications unit | |
US10452422B2 (en) | Method and apparatus for deploying virtual machine instance, and device | |
CN104202264B (en) | Bearer resource allocation method, device and system for cloud data center network | |
US8311032B2 (en) | Dynamically provisioning virtual machines | |
US9584369B2 (en) | Methods of representing software defined networking-based multiple layer network topology views | |
EP3353952B1 (en) | Managing groups of servers | |
EP2989545A1 (en) | Defining interdependent virtualized network functions for service level orchestration | |
CN103582512A (en) | Feature extraction device and network flow identification method, device and system | |
KR101639797B1 (en) | Network interface apparatus and method for processing virtual machine packets | |
US10938688B2 (en) | Network costs for hyper-converged infrastructures | |
JP5364183B2 (en) | Network resource management device | |
US20230327967A1 (en) | Generating network flow profiles for computing entities | |
US8442013B2 (en) | Analysis and control of traffic based on identified packet control functions | |
CN117278567A (en) | Cluster load balancing method and device | |
Di Martino et al. | In production performance testing of SDN control plane for telecom operators | |
KR20180134219A (en) | The method for processing virtual packets and apparatus therefore | |
KR101773528B1 (en) | Network interface apparatus and method for processing virtual machine packets | |
CN110971676B (en) | Equipment state detection method and device, electronic equipment and storage medium | |
KR102091152B1 (en) | Method and apparatus for processing packet using multi-core in hierarchical networks | |
CN115883662A (en) | Storage system, scheduling method and device thereof, computer equipment and storage medium | |
WO2023218663A1 (en) | Execution platform determination system and execution platform determination method | |
WO2023188185A1 (en) | Arrangement system and arrangement method |
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 |