CN109254829A - A kind of compatibility rule verification method and device based on load balancing - Google Patents

A kind of compatibility rule verification method and device based on load balancing Download PDF

Info

Publication number
CN109254829A
CN109254829A CN201810993967.2A CN201810993967A CN109254829A CN 109254829 A CN109254829 A CN 109254829A CN 201810993967 A CN201810993967 A CN 201810993967A CN 109254829 A CN109254829 A CN 109254829A
Authority
CN
China
Prior art keywords
virtual machine
rule
host
drs
migrated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810993967.2A
Other languages
Chinese (zh)
Inventor
栗丽霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810993967.2A priority Critical patent/CN109254829A/en
Publication of CN109254829A publication Critical patent/CN109254829A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • G06F9/5088Techniques for rebalancing the load in a distributed system involving task migration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Abstract

The application provides a kind of compatibility rule verification method and device based on load balancing, the method includes obtaining the corresponding all DRS rules of virtual machine to be migrated, the type of the DRS rule includes assembling virtual machine rule, separation virtual machine rule and/or virtual machine to host rule;Successively the corresponding all DRS rules of the virtual machine to be migrated are verified, filter out destination host in systems, the destination host and the relationship of the virtual machine to be migrated meet the corresponding all DRS rules of the virtual machine to be migrated.The embodiment of the present application introduces compatibility regulation management in load balancing, compatibility rule can be set by the user, the premise of load balance scheduling is to must satisfy set compatibility rule, and scheduling final in this way is more intelligent, and scheduling result is more in line with the expection and requirement of user.

Description

A kind of compatibility rule verification method and device based on load balancing
Technical field
This application involves field of computer technology, in particular to a kind of compatibility rule verification method based on load balancing And device.
Background technique
In recent years, operating system virtualization technology is increasingly mature, and xen, kvm, vmware system etc. all allows multiple Operation system example is concurrent and independent operating is on identical hardware resource.The core of these systems is a virtual machine monitoring Device, or make Hypervisor.Hypervisor provides a complete virtual hardware interface for guest operating system, and And it dispatches these guest operating systems and is executed in physical hardware resources.One of virtual machine is mainly characterized by guest operation system System can migrate online between different hosts.
Due to the information uncertainty of application program and the otherness of host processing power, virtual computation environmental is resulted in The load imbalance of middle host.Therefore, the load for how coordinating different hosts machine in a network, maintains efficient resource utilization, It is a critical issue in virtual computation environmental.
The core concept of load balancing is to be moved according to the different utilization powers of host resource each in system using virtual machine Shifting technology, on the virtual machine (vm) migration to most suitable destination host on the high host of resource utilization, to realize virtual The balancing dynamic load for calculating each host in environment reaches making full use of for resource in whole system.But the prior art In, most of load-balancing functions are virtual machine and the target master for automatically selecting migration by program according to the threshold value of setting Machine cannot meet the expectation of user well in many cases.
Summary of the invention
In view of this, the application's is designed to provide one kind.Its concrete scheme is as follows:
In a first aspect, the embodiment of the present application provides a kind of compatibility rule verification method based on load balancing, comprising:
The corresponding all DRS rules of virtual machine to be migrated are obtained, the type of the DRS rule includes aggregation virtual machine rule Then, separation virtual machine rule and/or virtual machine are regular to host;
Successively the corresponding all DRS rules of the virtual machine to be migrated are verified, filter out target master in systems Machine, the destination host and the relationship of the virtual machine to be migrated meet the corresponding all DRS rules of the virtual machine to be migrated.
Optionally, if the DRS rule is aggregation virtual machine rule, the aggregation virtual machine rule is verified, Include:
If there are a hosts to include the first virtual machine set in system, it is determined that the master comprising the first virtual machine set Machine meets the aggregation virtual machine rule, and the first virtual machine collection is combined into the virtual machine of the aggregation virtual machine rule constraint In, all virtual machines in open state in addition to the virtual machine to be migrated.
Optionally, if the DRS rule is separation virtual machine rule, the separation virtual machine rule is verified, Include:
If there are a hosts not to include any one virtual machine in the second virtual machine set in system, it is determined that do not include institute The host for stating any one virtual machine in the second virtual machine set meets the separation virtual machine rule, the second virtual machine collection It is combined into the virtual machine of the separation virtual machine rule constraint, it is all in open state in addition to the virtual machine to be migrated Virtual machine.
Optionally, if the DRS rule is virtual machine to host rule, and the type of the virtual machine to host rule is The virtual machine of virtual robot arm must be run on the host in host groups, then verified to the virtual machine to host rule, Include:
Determine that the virtual machine any one host into the host groups of host rule meets the virtual machine and advise to host Then.
Optionally, if the DRS rule is virtual machine to host rule, and the type of the virtual machine to host rule is The virtual machine of virtual robot arm must not be run on the host in host groups, then verified to the virtual machine to host rule, Include:
Determine that any one host in system in addition to the virtual machine to the host groups of host rule meets the void Quasi- machine is regular to host.
Second aspect, the embodiment of the present application provide a kind of compatibility rule verification module based on load balancing, comprising:
Acquiring unit, for obtaining the corresponding all DRS rules of virtual machine to be migrated, the type of the DRS rule includes Assemble virtual machine rule, separation virtual machine rule and/or virtual machine to host rule;
Authentication unit, for successively being verified to the corresponding all DRS rules of the virtual machine to be migrated, in systems Filter out destination host, it is corresponding that the destination host with the relationship of the virtual machine to be migrated meets the virtual machine to be migrated All DRS rules.
The third aspect, the embodiment of the present application provide a kind of compatibility regulation management device based on load balancing, comprising:
DRS group management module, for editing DRS group;
DRS rules administration module, for add, delete and/or editing system in DRS rule;
And authentication module described in above-mentioned second aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer storage, are stored on the computer storage Computer program, the computer program realize step described in above-mentioned first aspect when being executed by processor.
5th aspect, the embodiment of the present application provide a kind of computer equipment, comprising:
Memory, for storing computer program;
Processor realizes step described in above-mentioned first aspect when for executing the computer program.
The embodiment of the present application introduces compatibility regulation management in load balancing, can be set by the user compatibility rule, The premise of load balance scheduling is to must satisfy set compatibility rule, and scheduling final in this way is more intelligent, scheduling knot Fruit is more in line with the expection and requirement of user.
The application provides a kind of method and is applied to above-mentioned apparatus, and computer storage and equipment also have above-mentioned beneficial effect Fruit, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of compatibility rule conflict monitoring method based on load balancing that the application specific embodiment provides Flow diagram;
Fig. 2 is a kind of compatibility rule verification method flow based on load balancing that the application specific embodiment provides Schematic diagram;
Fig. 3 is a kind of compatibility rule conflict monitoring modular based on load balancing that the application specific embodiment provides Structural schematic diagram;
Fig. 4 is a kind of compatibility rule verification module structure based on load balancing that the application specific embodiment provides Schematic diagram.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
First below to the invention relates to concept be briefly described.
DRS rule, the compatibility rule of load balancing.Including compatibility and anti-compatibility, compatibility refers to virtually Machine can only be run on specified destination host;Anti- compatibility refers to that virtual machine cannot be run on specified destination host.
DRS group, including virtual robot arm and host groups, the group membership of virtual robot arm can only be virtual machines, and host group membership is only It can be host.
DRS rule, including aggregation virtual machine rule, separation virtual machine rule, virtual machine to host rule.Wherein, assemble Virtual machine rule refers to that several virtual machines chosen can only operate in same destination host;It is chosen if separation virtual machine rule refers to Dry virtual machine needs to operate in different hosts;Virtual machine to host rule be including two kinds of situations for for DRS group: it is a kind of It is that virtual machine in virtual robot arm has to run on host in host groups;Another kind be virtual machine in virtual robot arm not It obtains and is run on the host in host groups.
The embodiment of the present application introduces compatibility regulation management in load balancing, can be set by the user compatibility rule, The premise of load balance scheduling is to must satisfy set compatibility rule, and scheduling final in this way is more intelligent, scheduling knot Fruit is more in line with the expection and requirement of user.
Compatibility regulation management device provided by the embodiments of the present application mainly includes DRS group management module, DRS regulation management Module, compatibility rule conflict monitoring modular, compatibility rule verification module totally four nucleus modules.
Basic thought:
1) DRS group management module provides addition, deletes, the function of editor's DRS group, wherein DRS group is divided into virtual robot arm And host groups, at least more than 1 member is had in group.
2) DRS rules administration module, i.e. offer addition delete, the function of editor's DRS rule, including assemble virtual machine, divide From virtual machine, virtual machine to host.
3) compatibility rule conflict monitoring modular is to need first to detect down DRS rule before each execution addition DRS rule Then whether with the DRS rule conflict that adds before, such as before have existed DRS rule: VM1 and VM2 is needed in host HOST1 Upper operation, and increase a VM1 and need to run on different hosts from VM2, there is conflict does not allow then to add, and mentions to user Show.
4) the verification method whether offer of compatibility rule verification module meets DRS rule is called for DRS scheduler module, One of the premise of DRS scheduler module scheduling, this is dispatched virtual machine involved in migrated virtual machine and host and must satisfy Its corresponding DRS rule.
The key point of the embodiment of the present application is the conflict monitoring of DRS rule and the verifying of DRS rule, individually below into Row expansion explanation.
Referring to FIG. 1, Fig. 1 is a kind of compatibility rule punching based on load balancing that the application specific embodiment provides Prominent monitoring method flow diagram, as shown in Figure 1, it is mainly included the following steps that.
Step S101: when receiving the instruction of DRS rule creation, the DRS rule creation instruction request creation is determined The type of DRS rule.
The type of the DRS rule includes aggregation virtual machine rule, separation virtual machine rule, virtual machine to host rule.
Step S102: it according to the type of the DRS rule of the request creation, requests the DRS rule created to described and is Already existing DRS rule carries out conflict monitoring in system.
In the first possible implementation, the type of the DRS rule of the request creation is aggregation virtual machine rule, The then type of the DRS rule according to the request creation requests to have existed in the DRS rule and system that create to described DRS rule carry out conflict monitoring, comprising:
If already existing DRS rule in the aggregation virtual machine rule and system of creation is requested to meet following either conditions, Then determine already existing DRS rule conflict in the DRS rule and system of the request creation:
Already existing aggregation virtual machine rule repeats in the aggregation virtual machine rule and system of the request creation;Or Person,
There are virtual machine VM1 and VM2 in the aggregation virtual machine rule of the request creation, and the VM1 and VM2 are deposited simultaneously It is in the system in already existing separation virtual machine rule.
In the second possible implementation, the type of the DRS rule of the request creation is separation virtual machine rule, The then type of the DRS rule according to the request creation requests to have existed in the DRS rule and system that create to described DRS rule carry out conflict monitoring, comprising:
If already existing DRS rule in the separation virtual machine rule and system of creation is requested to meet following either conditions, Then determine already existing DRS rule conflict in the DRS rule and system of the request creation:
The separation virtual machine rule of the request creation is repeated with the virtual machine rule that separates already existing in system;Or Person,
There are virtual machine VM3 and VM4 in the separation virtual machine rule of the request creation, and the VM3 and VM4 are deposited simultaneously It is in the system in already existing aggregation virtual machine rule.
In the third possible implementation, the type of the DRS rule of the request creation is that virtual machine is advised to host Then, then the type of the DRS rule according to the request creation, in DRS rule and the system of the request creation Existing DRS rule carries out conflict monitoring, comprising:
If the virtual machine of the request creation meets to host rule with DRS rule already existing in system following any Condition, it is determined that already existing DRS rule conflict in the DRS rule and system of the request creation:
The virtual machine of the request creation already existing virtual machine into host rule and system is virtual to host rule Unit is identical, host groups are identical, and the type of virtual machine to host rule is identical.
Alternatively,
The virtual machine of the request creation is right to host rule to host rule and a virtual machine already existing in system The virtual robot arm answered is identical, host groups are identical, and the type of virtual machine to host rule is different.For example, request creation is virtual Machine to an already existing virtual machine in host rule and system to host rule include virtual robot arm 1 and host groups 1, still Request the virtual machine of creation that must run on the host in host groups to the virtual machine that the type of host rule is virtual robot arm, And the type of an already existing virtual machine to host rule is that the virtual machine of virtual robot arm must not be in host groups in system It is run on host, it is clear that the two has conflict.
Alternatively,
The virtual machine of the request creation is right to host rule to host rule and a virtual machine already existing in system The virtual robot arm answered is identical, host groups are different, and the type of virtual machine to host rule is identical.For example, request creation is virtual The virtual machine that machine is virtual robot arm to host rule type to host rule and a virtual machine already existing in system is necessary It is run on host in host groups, wherein request the virtual machine of creation to correspond to virtual robot arm 1 and host groups 1 to host rule, And already existing virtual machine to host rule corresponds to virtual robot arm 1 and host groups 2 in system.That is, request creation Virtual machine has to run in host groups 1 to host rule constraint virtual robot arm 1, and already existing virtual machine arrives in system Host rule constraint virtual robot arm 1 has to run in host groups 2, it is clear that the two mutually conflicts.
Wherein, the type of the virtual machine to host rule must be in the master in host groups comprising the virtual machine of virtual robot arm It is run on machine;With the virtual machine of virtual robot arm must not be run on the host in host groups.
Referring to FIG. 2, Fig. 2 is that a kind of compatibility rule based on load balancing that the application specific embodiment provides is tested Method flow schematic diagram is demonstrate,proved, as shown in Fig. 2, it is mainly included the following steps that.
Step S201: the corresponding all DRS rules of virtual machine to be migrated are obtained, the type of the DRS rule includes aggregation Virtual machine rule, separation virtual machine rule and/or virtual machine are regular to host.
Virtual machine needs to search the host for meeting transition condition in systems first before being migrated, and to be migrated virtual The corresponding DRS rule of machine is the influence factor in the transition condition.In the embodiment of the present application, the virtual machine to be migrated can Think one or more multiple, the DRS rule can be one or more multiple.
Step S202: successively the corresponding all DRS rules of the virtual machine to be migrated are verified, are screened in systems Destination host out, it is corresponding all that the destination host and the relationship of the virtual machine to be migrated meet the virtual machine to be migrated DRS rule.
In the specific implementation, can successively judge whether there is with the host in Ergodic Theory and meet virtual machine correspondence to be migrated All DRS rule host.For example, the corresponding two DRS rules of virtual machine to be migrated, respectively DRS rule 1 and DRS rule 2, then it needs successively to carry out the host in system 1 and DRS of DRS rule rule 2 and verifies.
Wherein, if the DRS rule is aggregation virtual machine rule, the aggregation virtual machine rule is verified, is wrapped It includes: if there are a hosts to include the first virtual machine set in system, it is determined that the host comprising the first virtual machine set is full The foot aggregation virtual machine rule, the first virtual machine collection are combined into the virtual machine of the aggregation virtual machine rule constraint, remove All virtual machines in open state other than the virtual machine to be migrated.For example, aggregation virtual machine rule constraint virtual machine VM1, VM2 and VM3 need to run on the same host, and virtual machine to be migrated is VM1, then meet the aggregation virtual machine rule Host need to include virtual machine VM2 and VM3.Certainly, the case where being in open state referred to herein as VM2 and VM3, if at VM3 In off-mode, then meeting the host of the aggregation virtual machine rule only needs comprising virtual machine VM2.
If the DRS rule is separation virtual machine rule, the separation virtual machine rule is verified, comprising: if There are a hosts not to include any one virtual machine in the second virtual machine set in system, it is determined that it is virtual not include described second The host of any one virtual machine meets the separation virtual machine rule in machine set, and the second virtual machine collection is combined into described point All virtual machines in open state in virtual machine from virtual machine rule constraint, in addition to the virtual machine to be migrated. For example, separation virtual machine rule constraint virtual machine VM1, VM2 and VM3 must not be run on the same host, virtual machine to be migrated is VM1, then the host for meeting the separation virtual machine rule must not include virtual machine VM2 and VM3.Similarly, referred to herein as VM2 and VM3 is in the case where open state, if VM3 is in off-mode, then meeting the host of the separation virtual machine rule It only needs to meet and does not include virtual machine VM2.
If the DRS rule is virtual machine to host rule, and the type of the virtual machine to host rule is virtual machine The virtual machine of group must be run on the host in host groups, then verified to the virtual machine to host rule, comprising: really The fixed virtual machine any one host into the host groups of host rule meets the virtual machine to host rule.
If the DRS rule is virtual machine to host rule, and the type of the virtual machine to host rule is virtual machine The virtual machine of group must not be run on the host in host groups, then verified to the virtual machine to host rule, comprising: really Determine any one host in system in addition to the virtual machine to the host groups of host rule and meets the virtual machine to host Rule.
The embodiment of the present application introduces compatibility regulation management in load balancing, can be set by the user compatibility rule, The premise of load balance scheduling is to must satisfy set compatibility rule, and scheduling final in this way is more intelligent, scheduling knot Fruit is more in line with the expection and requirement of user.
On the basis of above method embodiment, the compatibility rule punching based on load balancing that present invention also provides a kind of Prominent monitoring modular.
Referring to FIG. 3, Fig. 3 is a kind of compatibility rule punching based on load balancing that the application specific embodiment provides Prominent monitoring modular structural schematic diagram, as shown in figure 3, it mainly includes with lower unit.
Type determining units 301, for when receiving the instruction of DRS rule creation, determining the DRS rule creation instruction Request the type of the DRS rule of creation;
Conflict monitoring unit 302, the type of the DRS rule for being created according to the request, to the request creation Already existing DRS rule carries out conflict monitoring in DRS rule and system.
In an alternative embodiment, described if the type of the DRS rule of the request creation is aggregation virtual machine rule Conflict monitoring unit 302, is specifically used for:
If already existing DRS rule in the aggregation virtual machine rule and system of creation is requested to meet following either conditions, Then determine already existing DRS rule conflict in the DRS rule and system of the request creation:
Already existing aggregation virtual machine rule repeats in the aggregation virtual machine rule and system of the request creation;Or Person,
There are virtual machine VM1 and VM2 in the aggregation virtual machine rule of the request creation, and the VM1 and VM2 are deposited simultaneously It is in the system in already existing separation virtual machine rule.
In an alternative embodiment, described if the type of the DRS rule of the request creation is separation virtual machine rule Conflict monitoring unit 302, is specifically used for:
If already existing DRS rule in the separation virtual machine rule and system of creation is requested to meet following either conditions, Then determine already existing DRS rule conflict in the DRS rule and system of the request creation:
The separation virtual machine rule of the request creation is repeated with the virtual machine rule that separates already existing in system;Or Person,
There are virtual machine VM3 and VM4 in the separation virtual machine rule of the request creation, and the VM3 and VM4 are deposited simultaneously It is in the system in already existing aggregation virtual machine rule.
In an alternative embodiment, if the type of the DRS rule of the request creation is that virtual machine is regular to host, institute Conflict monitoring unit 302 is stated, is specifically used for:
If the virtual machine of the request creation meets to host rule with DRS rule already existing in system following any Condition, it is determined that already existing DRS rule conflict in the DRS rule and system of the request creation:
The virtual machine of the request creation already existing virtual machine into host rule and system is virtual to host rule Unit is identical, host groups are identical, and the type of virtual machine to host rule is identical;
Alternatively,
The virtual machine of the request creation is right to host rule to host rule and a virtual machine already existing in system The virtual robot arm answered is identical, host groups are identical, and the type of virtual machine to host rule is different;
Alternatively,
The virtual machine of the request creation is right to host rule to host rule and a virtual machine already existing in system The virtual robot arm answered is identical, host groups are different, and the type of virtual machine to host rule is identical;
Wherein, the type of the virtual machine to host rule must be in the master in host groups comprising the virtual machine of virtual robot arm It is run on machine;With the virtual machine of virtual robot arm must not be run on the host in host groups.
On the basis of above method embodiment, present invention also provides a kind of, and the compatibility rule based on load balancing is tested Demonstrate,prove module.
Referring to FIG. 4, Fig. 4 is that a kind of compatibility rule based on load balancing that the application specific embodiment provides is tested Modular structure schematic diagram is demonstrate,proved, as shown in figure 4, it mainly includes with lower unit.
Acquiring unit 401, for obtaining the corresponding all DRS rules of virtual machine to be migrated, the type packet of the DRS rule Aggregation virtual machine rule, separation virtual machine rule and/or virtual machine are included to host rule;
Authentication unit 402 is being for successively verifying to the corresponding all DRS rules of the virtual machine to be migrated Destination host is filtered out in system, the relationship of the destination host and the virtual machine to be migrated meets the virtual machine pair to be migrated All DRS rule answered.
In an alternative embodiment, if the DRS rule is aggregation virtual machine rule, the aggregation virtual machine is advised Then verified, comprising:
If there are a hosts to include the first virtual machine set in system, it is determined that the master comprising the first virtual machine set Machine meets the aggregation virtual machine rule, and the first virtual machine collection is combined into the virtual machine of the aggregation virtual machine rule constraint In, all virtual machines in open state in addition to the virtual machine to be migrated.
In an alternative embodiment, if the DRS rule is separation virtual machine rule, the separation virtual machine is advised Then verified, comprising:
If there are a hosts not to include any one virtual machine in the second virtual machine set in system, it is determined that do not include institute The host for stating any one virtual machine in the second virtual machine set meets the separation virtual machine rule, the second virtual machine collection It is combined into the virtual machine of the separation virtual machine rule constraint, it is all in open state in addition to the virtual machine to be migrated Virtual machine.
In an alternative embodiment, if the DRS rule is that virtual machine is regular to host, and the virtual machine is to host The type of rule is that the virtual machine of virtual robot arm must be run on the host in host groups, then advises to the virtual machine to host Then verified, comprising:
Determine that the virtual machine any one host into the host groups of host rule meets the virtual machine and advise to host Then.
In an alternative embodiment, if the DRS rule is that virtual machine is regular to host, and the virtual machine is to host The type of rule is that the virtual machine of virtual robot arm must not be run on the host in host groups, then advises to the virtual machine to host Then verified, comprising:
Determine that any one host in system in addition to the virtual machine to the host groups of host rule meets the void Quasi- machine is regular to host.
In another specific embodiment of the application, the embodiment of the present application provides a kind of computer-readable memory, Computer program is stored on the computer storage, the computer program realizes above-mentioned specific reality when being executed by processor The compatibility rule conflict monitoring method based on load balancing and/or the compatibility rule based on load balancing applied in mode are tested The step of card method.
In a kind of specific embodiment of the application, the embodiment of the present application provides a kind of computer equipment, comprising:
Memory, for storing computer program;
Processor, realized when for executing the computer program in above-mentioned specific embodiment based on load balancing The step of compatibility rule conflict monitoring method and/or compatibility rule verification method based on load balancing.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description, The specific work process of equipment and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device, device and method can be with It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the division of unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another device, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of equipment or unit or Communication connection can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment The whole of (can be personal computer, funcall equipment or the network equipment etc.) execution each embodiment method of the application Or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The medium of code.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
System and method, computer storage are monitored to a kind of server power-up state provided herein above and set Standby to be described in detail, specific examples are used herein to illustrate the principle and implementation manner of the present application, above The explanation of embodiment is merely used to help understand the present processes and its core concept;Meanwhile for the general skill of this field Art personnel, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion this Description should not be construed as the limitation to the application.

Claims (9)

1. a kind of compatibility rule verification method based on load balancing characterized by comprising
The corresponding all DRS rules of virtual machine to be migrated are obtained, the type of the DRS rule includes aggregation virtual machine rule, divides It is regular to host from virtual machine rule and/or virtual machine;
Successively the corresponding all DRS rules of the virtual machine to be migrated are verified, filter out destination host in systems, institute It states destination host and the relationship of the virtual machine to be migrated and meets the corresponding all DRS rules of the virtual machine to be migrated.
2. the method according to claim 1, wherein if the DRS rule is aggregation virtual machine rule, to institute Aggregation virtual machine rule is stated to be verified, comprising:
If there are a hosts to include the first virtual machine set in system, it is determined that the host comprising the first virtual machine set is full The foot aggregation virtual machine rule, the first virtual machine collection are combined into the virtual machine of the aggregation virtual machine rule constraint, remove All virtual machines in open state other than the virtual machine to be migrated.
3. the method according to claim 1, wherein if the DRS rule is separation virtual machine rule, to institute Separation virtual machine rule is stated to be verified, comprising:
If there are a hosts not to include any one virtual machine in the second virtual machine set in system, it is determined that do not include described the The host of any one virtual machine meets the separation virtual machine rule in two virtual machine set, and the second virtual machine collection is combined into In the virtual machine of the separation virtual machine rule constraint, all void in open state in addition to the virtual machine to be migrated Quasi- machine.
4. the method according to claim 1, wherein if the DRS rule is that virtual machine is regular to host, and institute The type for stating virtual machine to host rule is that the virtual machine of virtual robot arm must be run on the host in host groups, then to described Virtual machine is verified to host rule, comprising:
Determine that the virtual machine any one host into the host groups of host rule meets the virtual machine to host rule.
5. the method according to claim 1, wherein if the DRS rule is that virtual machine is regular to host, and institute The type for stating virtual machine to host rule is that the virtual machine of virtual robot arm must not be run on the host in host groups, then to described Virtual machine is verified to host rule, comprising:
Determine that any one host in system in addition to the virtual machine to the host groups of host rule meets the virtual machine To host rule.
6. a kind of compatibility rule verification module based on load balancing characterized by comprising
Acquiring unit, for obtaining the corresponding all DRS rules of virtual machine to be migrated, the type of the DRS rule includes aggregation Virtual machine rule, separation virtual machine rule and/or virtual machine are regular to host;
Authentication unit screens in systems for successively verifying to the corresponding all DRS rules of the virtual machine to be migrated Destination host out, it is corresponding all that the destination host and the relationship of the virtual machine to be migrated meet the virtual machine to be migrated DRS rule.
7. a kind of compatibility regulation management device based on load balancing characterized by comprising
DRS group management module, for editing DRS group;
DRS rules administration module, for add, delete and/or editing system in DRS rule;
And authentication module as claimed in claim 6.
8. a kind of computer storage, which is characterized in that be stored with computer program, the calculating on the computer storage Such as step described in any one of claim 1 to 5 is realized when machine program is executed by processor.
9. a kind of computer equipment characterized by comprising
Memory, for storing computer program;
Processor realizes such as step described in any one of claim 1 to 5 when for executing the computer program.
CN201810993967.2A 2018-08-29 2018-08-29 A kind of compatibility rule verification method and device based on load balancing Pending CN109254829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810993967.2A CN109254829A (en) 2018-08-29 2018-08-29 A kind of compatibility rule verification method and device based on load balancing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810993967.2A CN109254829A (en) 2018-08-29 2018-08-29 A kind of compatibility rule verification method and device based on load balancing

Publications (1)

Publication Number Publication Date
CN109254829A true CN109254829A (en) 2019-01-22

Family

ID=65048803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810993967.2A Pending CN109254829A (en) 2018-08-29 2018-08-29 A kind of compatibility rule verification method and device based on load balancing

Country Status (1)

Country Link
CN (1) CN109254829A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625338A (en) * 2020-05-28 2020-09-04 广东浪潮大数据研究有限公司 Affinity rule scheduling method, device and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184813A (en) * 2014-08-20 2014-12-03 杭州华为数字技术有限公司 Load balancing method of virtual machines, related equipment and trunking system
CN105607950A (en) * 2015-10-30 2016-05-25 浪潮(北京)电子信息产业有限公司 Virtual machine resource configuration method and apparatus
CN107608754A (en) * 2017-07-31 2018-01-19 郑州云海信息技术有限公司 A kind of dispatching method of virtual machine and device
CN107885579A (en) * 2017-11-13 2018-04-06 郑州云海信息技术有限公司 The load-balancing method and computer-readable recording medium of virtual machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184813A (en) * 2014-08-20 2014-12-03 杭州华为数字技术有限公司 Load balancing method of virtual machines, related equipment and trunking system
CN105607950A (en) * 2015-10-30 2016-05-25 浪潮(北京)电子信息产业有限公司 Virtual machine resource configuration method and apparatus
CN107608754A (en) * 2017-07-31 2018-01-19 郑州云海信息技术有限公司 A kind of dispatching method of virtual machine and device
CN107885579A (en) * 2017-11-13 2018-04-06 郑州云海信息技术有限公司 The load-balancing method and computer-readable recording medium of virtual machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625338A (en) * 2020-05-28 2020-09-04 广东浪潮大数据研究有限公司 Affinity rule scheduling method, device and related equipment
CN111625338B (en) * 2020-05-28 2024-01-19 广东浪潮大数据研究有限公司 Affinity rule scheduling method and device and related equipment

Similar Documents

Publication Publication Date Title
US10474488B2 (en) Configuration of a cluster of hosts in virtualized computing environments
US9329889B2 (en) Rapid creation and reconfiguration of virtual machines on hosts
US10977086B2 (en) Workload placement and balancing within a containerized infrastructure
CN102955675B (en) For improvement of method and the device of the resource utilization in data center
US20170277575A1 (en) Virtual data center resource mapping method and device
EP3287898A1 (en) Method, system and apparatus for creating virtual machine
CN104184813A (en) Load balancing method of virtual machines, related equipment and trunking system
EP2799988A2 (en) Defining disjoint node groups for virtual machines with pre-existing placement policies
CN110825494A (en) Physical machine scheduling method and device and computer storage medium
CN105573830B (en) A kind of virtual machine migration method
CN104270416A (en) Load balancing control method and management node
CN112948063B (en) Cloud platform creation method and device, cloud platform and cloud platform implementation system
US11755385B2 (en) Cross-cluster load balancer
CN108268301B (en) Virtual machine deployment method and device for virtual network function
US9184982B2 (en) Balancing the allocation of virtual machines in cloud systems
CN109417488A (en) The method and apparatus of virtual network function resource management
CN103634128A (en) A configuration method of a virtual machine placing strategy and an apparatus
CN117480494A (en) Coordinated container scheduling for improved resource allocation in virtual computing environments
CN107395710A (en) A kind of configuration of cloud platform network element and High Availabitity HA implementation methods and device
CN106325999A (en) Method and device for distributing resources of host machine
CN111988160B (en) Method and device for deploying virtualized network function
CN114996003A (en) Cloud service deployment method and device, electronic equipment and storage medium
CN113918278A (en) Management method of virtual machine affinity group
CN106325972B (en) Virtual machine management method and network equipment
CN109254829A (en) A kind of compatibility rule verification method and device based on load balancing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190122

RJ01 Rejection of invention patent application after publication