CN106502760B - A kind of virtual machine compatibility strategy visualization method and device - Google Patents

A kind of virtual machine compatibility strategy visualization method and device Download PDF

Info

Publication number
CN106502760B
CN106502760B CN201610838824.5A CN201610838824A CN106502760B CN 106502760 B CN106502760 B CN 106502760B CN 201610838824 A CN201610838824 A CN 201610838824A CN 106502760 B CN106502760 B CN 106502760B
Authority
CN
China
Prior art keywords
virtual machine
checked
deployment
compatibility
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610838824.5A
Other languages
Chinese (zh)
Other versions
CN106502760A (en
Inventor
李候青
肖璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610838824.5A priority Critical patent/CN106502760B/en
Publication of CN106502760A publication Critical patent/CN106502760A/en
Application granted granted Critical
Publication of CN106502760B publication Critical patent/CN106502760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention provides a kind of virtual machine compatibility strategy visualization method and device, provide it is a kind of intuitively and the mode of unified presentation virtual machine compatibility policy deployment.This method comprises: operation management system determines the virtual machine compatibility strategy that virtual machine to be checked is used in deployment;Operation management system obtains the relevant information that virtual machine compatibility policy deployment virtual machine to be checked is used for virtual machine to be checked, and relevant information includes the second incidence relation between the resource of host or the resource of host groups where the first incidence relation and the virtual machine to be checked resource used and virtual machine to be checked between resource, virtual machine to be checked and other virtual machines that virtual machine to be checked uses;Operation management system is based on corresponding relationship and generates the corresponding topological diagram of virtual machine compatibility strategy, and is shown to user.

Description

A kind of virtual machine compatibility strategy visualization method and device
Technical field
The present invention relates to information technology field more particularly to a kind of virtual machine compatibility strategy visualization methods and dress It sets.
Background technique
In the prior art, general using cloud computing technologies such as virtualization, load balancing and distributed computings, to business system System carries out application integrating or cloudization deployment, the utilization rate of Lai Tigao operation system resource and the reliability of operation system.With cloud The large-scale use of computing technique, client are higher and higher to the Performance And Reliability requirement of operation system, therefore use virtual machine (English: Virtual Machine, referred to as: VM) compatibility (affinity) strategy come further promoted operation system performance and Reliability.
Existing virtual machine compatibility strategy mainly includes following four kinds:
1), virtual machine virtual center processor (English: Virtual central processing unit, referred to as: VCPU) core binds compatibility, refers to virtual machine vCPU and physical central processor (Physical Central Processing Unit, referred to as: the pCPU) compatibility of binding, i.e. vCPU and pCPU binds one by one, and the resource of the vCPU of different VM is from different PCPU is not shared between pCPU, VM, so that pCPU excessive distribution bring system performance be avoided to decline.
2), the access of virtual machine Non Uniform Memory Access (English: non-uniform memory access, abbreviation: NUMA) parent And property, NUMA are made of multiple nodes (node), each node has the CPU, memory, I/O of oneself, is ok between node Mechanism, which is interconnected, by node carries out information exchange.Virtual machine NUMA compatibility will guarantee virtual machine vCPU, memory, input/output (I/O) and network interface card (Network Interface Card, referred to as: NIC) is in same NUMA node, so that CPU be avoided to access Remote memory leads to problems such as service delay big.
3), virtual robot arm mutual exclusion compatibility refers to that one group of specified virtual machine does not share the resource of physical server, i.e., empty Each virtual machine that quasi- unit includes need to be run on different hosts (host), thus carry on one group of virtual machine of raising The reliability of business.
4), virtual machine host group compatibility, host groups refer to the set of at least one host, by virtual machine to be checked and refer to Determine host groups association, which can only dispose and migrate in the host in the host groups.
Virtual machine compatibility strategy is relatively complicated, and administrator is based on virtual machine compatibility strategy, and deploying virtual machine is complete Bi Hou, not can determine that virtual machine compatibility deployment whether successful execution.If determine virtual machine compatibility strategy whether It runs succeeded, needs administrator to input multiple orders in system background and the deployment of virtual machine is inquired one by one, therefore, existing rank The mode of none intuitive and unified presentation virtual machine compatibility policy deployment of section.
Summary of the invention
The embodiment of the present invention provides a kind of virtual machine compatibility management method and device, provides and a kind of intuitively and unified is in The mode of existing virtual machine compatibility policy deployment.
In a first aspect, the embodiment of the invention provides a kind of virtual machine compatibility strategy visualization methods, comprising: O&M Management system determines the virtual machine compatibility strategy that virtual machine to be checked is used in deployment;Wherein, a virtual machine to be checked A variety of virtual machine compatibility strategies may be used in deployment, then operation management system can determine that virtual machine to be checked exists respectively The every kind of virtual machine compatibility strategy used when deployment.
Then the correlation that the virtual machine compatibility policy deployment virtual machine to be checked is used for virtual machine to be checked is obtained Information, the corresponding relevant information of virtual machine compatibility strategy include resource, the virtual machine to be checked that virtual machine to be checked uses The resource that the first incidence relation and virtual machine to be checked between other virtual machines use is corresponding with virtual machine to be checked The second incidence relation between host resource;Other virtual machines include sharing the virtual of same host resource with virtual machine to be checked Machine or with deploying virtual machine to be checked in the virtual machine of same host groups or there are mutex relations with virtual machine to be checked Virtual machine;The corresponding host resource of virtual machine to be checked includes the resource of host where virtual machine to be checked or to be checked The resource of host groups where virtual machine.
It wherein, may include that virtual machine to be checked and other virtual machines share a host resource in the first incidence relation, Perhaps virtual machine to be checked and other deploying virtual machines are deposited in the same host groups or virtual machine to be checked with other virtual machines In mutex relation, wherein mutex relation refers to that virtual machine to be checked and other virtual machines cannot share a physical host resource.
Second incidence relation includes: the resource of the host where the resource that virtual machine to be checked uses and virtual machine to be checked Incidence relation or the resource that uses of virtual machine to be checked and inquired virtual machine host group resource incidence relation.
Operation management system is generated after obtaining the corresponding relevant information of virtual machine compatibility strategy based on corresponding relationship The corresponding topological diagram of virtual machine compatibility strategy, and it is shown to user;Wherein, corresponding relationship includes object and is used to identify described The corresponding relationship of the drawing element of object, incidence relation between object and for identifying the incidence relation between the object The corresponding relationship of drawing element;Object includes virtual machine to be checked, other virtual machines, the used resource of virtual machine to be checked, master The resource of machine and the resource of host groups, the incidence relation between the object include the first incidence relation and the second association Relationship.
The scheme provided through the embodiment of the present invention will dispose virtual machine to be checked and meet each virtual machine compatibility plan There are the relationships between each resource and resource of incidence relation to be presented on display interface for summary and virtual machine compatibility strategy On so that user can more intuitively observe the deployment scenario of virtual machine compatibility strategy, and can to virtual machine into Row manages and maintains, and improves the efficiency of operation management and maintenance.
In a kind of possible design, the virtual machine that virtual machine to be checked is used when disposing is determined in operation management system Before compatibility strategy, operation management system receives the querying command of user, and querying command is for inquiring virtual machine to be checked Virtual machine compatibility deployment scenario.
Before the corresponding topological diagram of virtual machine compatibility strategy is shown to user by operation management system, can be to When inquiry virtual machine is established, then operation management system executes the processing for generating topological diagram.If after the querying command for receiving user, The querying command is used to inquire the virtual machine compatibility deployment scenario of the virtual machine to be checked, then should by operation management system The topological diagram of virtual machine to be checked is shown to user.
Before the corresponding topological diagram of the virtual machine compatibility strategy is shown to user by operation management system, it can also be Before the virtual machine compatibility strategy used when operation management system determines virtual machine to be checked in deployment.If receiving user Querying command after, which is used to inquire the virtual machine compatibility deployment scenario of the virtual machine to be checked, then will fortune It ties up management system and executes the operation for generating the topological diagram of virtual machine to be checked, then show the topological diagram of the virtual machine to be checked To user.
By above-mentioned design, enable to user that can more intuitively observe the deployment scenario of virtual machine compatibility strategy, And virtual machine can be managed and be safeguarded, improve the efficiency of operation management and maintenance.
In a kind of possible design, is obtained in the operation management system and use the void for the virtual machine to be checked After the relevant information of virtual machine to be checked described in quasi- machine compatibility policy deployment, the method can also include:
It is to be checked using the virtual machine compatibility policy deployment that the operation management system is based on the virtual machine to be checked The relevant information of virtual machine determines whether the deployment of virtual machine to be checked meets the virtual machine compatibility strategy;
The operation management system is generated in the corresponding topological diagram of virtual machine compatibility strategy based on corresponding relationship The corresponding alarm button of virtual machine to be checked;It further include alerting button and the drawing member for identifying alarm button in corresponding relationship The corresponding relationship of element;Alerting button includes the first display state and the second display state, and the first display state is for indicating to be checked The deployment for asking virtual machine meets the virtual machine compatibility strategy;Second display state is used to indicate the deployment of virtual machine to be checked not Meet the virtual machine compatibility strategy.
By above-mentioned design, user can more intuitively determine whether the deployment of virtual machine to be checked is full according to alarm button The deployment of sufficient compatibility strategy.
In a kind of possible design, if the display state of alarm button is the second display state, operation management system is connect The first input for receiving user, generates display menu and is shown to user, includes at least one menu item in menu;
Wherein, each menu item includes to the corresponding modifiable portion of virtual machine of alarm button at least one menu item Affix one's name to operation prompt information;First input is for choosing the alarm button.
By above-mentioned design, it when determining that the deployment of virtual machine to be checked is unsatisfactory for compatibility strategy, is provided more for user The operation instruction menu for changing deployment enables a user to the change deployment operation provided faster virtual machine to be checked.
In a kind of possible design, operation management system receives the second input of user, and the second input is for choosing A menu item at least one menu item;Operation management system is prompted according to the deployment operation that the menu item chosen is shown Information, the deployment of the corresponding virtual machine of change alarm button, so that the corresponding virtual machine of the alarm button after change deployment Meet its corresponding virtual machine compatibility strategy.
By above-mentioned design, it when determining that the deployment of virtual machine to be checked is unsatisfactory for compatibility strategy, is provided more for user Change the operation instruction menu of deployment, so that user is by the menu item in selecting choices from menus come faster to virtual machine to be checked It is modified deployment, so that the corresponding virtual machine of the alarm button after change deployment meets its corresponding virtual machine parent With property strategy.
In a kind of possible design, the deployment operation prompt information shown according to the menu item chosen, change After the deployment for alerting the corresponding virtual machine of button, operation management system will alert the display state of button by the second display shape State is changed to the first display state.
By above-mentioned design, user is after the deployment for changing virtual machine to be checked, can more intuitive determining change deployment be No success.
Second aspect, the embodiment of the invention also provides a kind of virtual machine compatibility strategy visible apparatus, comprising:
First determining module, the virtual machine compatibility strategy used for determining virtual machine to be checked in deployment;
Relating module, for obtaining for the virtual machine to be checked using described in the virtual machine compatibility policy deployment The relevant information of virtual machine to be checked;The corresponding relevant information of the virtual machine compatibility strategy includes the void to be checked Quasi- machine uses between resource, the virtual machine to be checked and other virtual machines the first incidence relation and described to be checked The second incidence relation between the resource that virtual machine uses host resource corresponding with the virtual machine to be checked;Other void Quasi- machine include shared with the virtual machine to be checked same host resource virtual machine or with the deploying virtual machine to be checked In the virtual machine of same host groups or there are the virtual machines of mutex relation with the virtual machine to be checked;The void to be checked The quasi- corresponding host resource of machine includes the resource of host where the virtual machine to be checked or the virtual machine place to be checked The resource of host groups;
Generation module, for generating the corresponding topological diagram of virtual machine compatibility strategy based on corresponding relationship;Wherein, described right Should be related to the corresponding relationship including object with the drawing element for identifying the object, the incidence relation between object be used for Identify the corresponding relationship of the drawing element of the incidence relation between the object;The object include the virtual machine to be checked, Other virtual machines, the used resource of the virtual machine to be checked, the resource of the resource of host and host groups are described right Incidence relation as between includes first incidence relation and second incidence relation.
Display module, it is corresponding for being based on the corresponding relationship generation virtual machine compatibility strategy in the generation module After topological diagram, the corresponding topological diagram of the virtual machine compatibility strategy is shown to user.
The scheme provided through the embodiment of the present invention will dispose virtual machine to be checked and meet each virtual machine compatibility plan There are the relationships between each resource and resource of incidence relation to be presented on display interface for summary and virtual machine compatibility strategy On so that user can more intuitively observe the deployment scenario of virtual machine compatibility strategy, and can to virtual machine into Row manages and maintains, and improves the efficiency of operation management and maintenance.
In a kind of possible design, described device further include:
Receiving module, for display module by the corresponding topological diagram of the virtual machine compatibility strategy be shown to user it Before, the querying command of user is received, the querying command is used to inquire the virtual machine compatibility portion of the virtual machine to be checked Affix one's name to situation.
By above-mentioned design, enable to user that can more intuitively observe the deployment scenario of virtual machine compatibility strategy, And virtual machine can be managed and be safeguarded, improve the efficiency of operation management and maintenance.
In a kind of possible design, described device further include:
Second determining module uses the virtual machine for the virtual machine to be checked for obtaining in the relating module It is corresponding based on the virtual machine compatibility policy deployment after the relevant information of virtual machine to be checked described in compatibility policy deployment Relevant information determine whether the deployment of presently described virtual machine to be checked meets the virtual machine compatibility strategy;
The display module is also used to be shown in display alarm button in the topological diagram;It is also wrapped in the corresponding relationship Include the corresponding relationship of alarm button with the drawing element for identifying alarm button;The alarm button includes the first display state With the second display state, the first display state is for indicating that the deployment of the virtual machine to be checked meets the virtual machine parent With property strategy;The second display state is for indicating that the deployment of the virtual machine to be checked is unsatisfactory for the virtual machine compatibility Strategy.
By above-mentioned design, user can more intuitively determine whether the deployment of virtual machine to be checked is full according to alarm button The deployment of sufficient compatibility strategy.
It is described to connect if the display state of the alarm button is the second display state in a kind of possible design Module is received, is also used to receive the first input of user;
The generation module is also used to generate display menu;
The display module is also used to for the menu being shown to the user, includes at least one dish in the menu Individual event;
Wherein, at least one described menu item each menu item include can be more to the corresponding virtual machine of the alarm button The deployment operation prompt information changed;First input is for choosing the alarm button.
By above-mentioned design, it when determining that the deployment of virtual machine to be checked is unsatisfactory for compatibility strategy, is provided more for user The operation instruction menu for changing deployment enables a user to the change deployment operation provided faster virtual machine to be checked.
In a kind of possible design, the receiving module is also used to detect that the second input, second input are used for Choose a menu item at least one described menu item;
Described device further include:
Deployment change module, the deployment operation prompt information for being shown according to the menu item chosen, described in change The deployment of the corresponding virtual machine of button is alerted, so that the corresponding virtual machine of the alarm button after change deployment meets its correspondence Virtual machine compatibility strategy.
By above-mentioned design, it when determining that the deployment of virtual machine to be checked is unsatisfactory for compatibility strategy, is provided more for user Change the operation instruction menu of deployment, so that user is by the menu item in selecting choices from menus come faster to virtual machine to be checked It is modified deployment, so that the corresponding virtual machine of the alarm button after change deployment meets its corresponding virtual machine parent With property strategy.
In a kind of possible design, further includes:
Module is changed, for prompting in the deployment change module according to the deployment operation that the menu item chosen is shown Information, after changing the deployment of the corresponding virtual machine of the alarm button, by the display state of the alarm button by described second Display state is changed to the first display state.
By above-mentioned design, user is after the deployment for changing virtual machine to be checked, can more intuitive determining change deployment be No success.
The third aspect, the embodiment of the invention also provides a kind of virtual machine compatibility strategy visible apparatus, the dresses It sets and includes:
Communication interface, processor and memory.The memory, the communication interface and the processor lead to respectively Cross bus interconnection;Communication interface is for obtaining information;Memory is for program code performed by storage processor;Processing Device is set for executing the program code that memory is stored specifically for any one of execution first aspect or first aspect The meter method.
Fourth aspect provides a kind of computer-readable medium, and for storing computer program, which includes The instruction of the method in any possible design for executing first aspect or first aspect.
5th aspect, the embodiment of the invention also provides a kind of virtual machine compatibility strategy visualization method, the sides Method includes:
User terminal is in response to the first input detected, and first input is for inquiring the virtual of virtual machine to be checked Machine compatibility policy deployment situation,
User terminal shows the corresponding topological diagram of virtual machine compatibility strategy of the virtual machine to be checked.
Wherein, it is marked in the topological diagram including First Kind Graph and the second class icon, the first kind icon is used to indicate Object, the object include the virtual machine to be checked, other virtual machines, the used resource of virtual machine to be checked with And the corresponding host resource of the virtual machine to be checked.Other virtual machines include shared with the virtual machine to be checked it is same The virtual machine of host resource or with the deploying virtual machine to be checked the virtual machine of same host groups or with it is described to Inquiring virtual machine, there are the virtual machines of mutex relation.The corresponding host resource of the virtual machine to be checked includes the void to be checked The resource of host groups where the resource of host where quasi- machine or the virtual machine to be checked.
The second class icon is used to identify the incidence relation between the object, the incidence relation packet between the object Include the money that the first incidence relation between the virtual machine to be checked and other virtual machines and the virtual machine to be checked use The second incidence relation between the host resource corresponding with the virtual machine to be checked of source;The corresponding master of the virtual machine to be checked Machine resource includes the money of host groups where the resource of host where the virtual machine to be checked or the virtual machine to be checked Source.
In a kind of possible design, in the topological diagram further include the virtual machine to be checked the virtual machine it is affine Property the corresponding alarm button of strategy, the alarm button include first display state and second display state, it is described first display State is for indicating that the deployment of the virtual machine to be checked meets the virtual machine compatibility strategy;The second display state is used The virtual machine compatibility strategy is unsatisfactory in the deployment for indicating the virtual machine to be checked.
The scheme provided through the embodiment of the present invention will dispose virtual machine to be checked and meet each virtual machine compatibility plan There are the relationships between each resource and resource of incidence relation to be presented on display interface for summary and virtual machine compatibility strategy On so that user can more intuitively observe the deployment scenario of virtual machine compatibility strategy, and can to virtual machine into Row manages and maintains, and improves the efficiency of operation management and maintenance.
6th aspect, the embodiment of the invention also provides a kind of virtual machine compatibility strategy visible apparatus, the sides Method includes:
Processing module, for the first input in response to detecting, first input is for inquiring virtual machine to be checked Virtual machine compatibility policy deployment situation,
Display module, for showing the corresponding topological diagram of the virtual machine compatibility strategy of the virtual machine to be checked.
Wherein, it is marked in the topological diagram including First Kind Graph and the second class icon, the first kind icon is used to indicate Object, the object include the virtual machine to be checked, other virtual machines, the used resource of virtual machine to be checked with And the host where the virtual machine to be checked resource or host groups resource.Other virtual machines include with it is described to Inquiry virtual machine share same host resource virtual machine or with the deploying virtual machine to be checked same host groups void Intend machine or there are the virtual machines of mutex relation with the virtual machine to be checked.
The second class icon is used to identify the incidence relation between the object, the incidence relation packet between the object Include the money that the first incidence relation between the virtual machine to be checked and other virtual machines and the virtual machine to be checked use The second incidence relation between the host resource corresponding with the virtual machine to be checked of source;The corresponding master of the virtual machine to be checked Machine resource includes the money of host groups where the resource of host where the virtual machine to be checked or the virtual machine to be checked Source.
It further include the virtual machine compatibility plan of the virtual machine to be checked in a kind of possible design, in the topological diagram Slightly corresponding alarm button, the alarm button include the first display state and the second display state, the first display state For indicating that the deployment of the virtual machine to be checked meets virtual machine compatibility strategy;The second display state is for indicating institute The deployment for stating virtual machine to be checked is unsatisfactory for virtual machine compatibility strategy, and i-th kind of virtual machine compatibility strategy is N kind virtual machine parent One of with property strategy.
7th aspect, the embodiment of the invention also provides a kind of virtual machine compatibility strategy visible apparatus, the sides Method includes:
Communication interface, processor, memory and display.The memory, the communication interface and the processing Device is connected with each other by bus respectively;Communication interface is for receiving input.Memory is for program performed by storage processor Code;Processor is for executing the program code that memory is stored, specifically for executing fourth aspect or fourth aspect A kind of method described in design, the display is for showing topological diagram.
Eighth aspect provides a kind of computer-readable medium, and for storing computer program, which includes The instruction of the method in any possible implementation for executing fourth aspect or fourth aspect.
Detailed description of the invention
Fig. 1 is a kind of virtual machine compatibility strategy visualization method flow chart provided in an embodiment of the present invention;
Fig. 2 is another virtual machine compatibility strategy visualization method flow chart provided in an embodiment of the present invention;
Fig. 3 A is the display of the virtual machine vCPU core binding compatibility in resource abundance situation provided in an embodiment of the present invention Interface schematic diagram;
Virtual machine vCPU core in the case that Fig. 3 B is inadequate resource provided in an embodiment of the present invention binds the aobvious of compatibility Show interface schematic diagram;
Fig. 4 A is the display interface schematic diagram of NUMA compatibility in the case that resource provided in an embodiment of the present invention is sufficient;
Fig. 4 B be inadequate resource provided in an embodiment of the present invention in the case where NUMA compatibility display interface schematic diagram;
Fig. 5 A is the display interface of virtual robot arm mutual exclusion compatibility in the case that resource provided in an embodiment of the present invention is sufficient Schematic diagram;
Fig. 5 B be inadequate resource provided in an embodiment of the present invention in the case where virtual robot arm mutual exclusion compatibility display interface Schematic diagram;
Fig. 6 A is the display interface of virtual machine host group compatibility in the case that resource provided in an embodiment of the present invention is sufficient Schematic diagram;
Fig. 6 B be inadequate resource provided in an embodiment of the present invention in the case where virtual machine host group compatibility display interface Schematic diagram;
Fig. 7 is a kind of virtual machine compatibility strategy visible apparatus schematic diagram provided in an embodiment of the present invention;
Fig. 8 is the visual schematic diagram of another virtual machine compatibility management strategy provided in an embodiment of the present invention;
Fig. 9 is another virtual machine compatibility strategy visualization method flow chart provided in an embodiment of the present invention;
Figure 10 is another virtual machine compatibility strategy visible apparatus schematic diagram provided in an embodiment of the present invention;
Figure 11 is another virtual machine compatibility strategy visible apparatus schematic diagram provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of virtual machine compatibility strategy visualization method and device, provide it is a kind of intuitively and The unified mode virtual machine compatibility strategy is presented is in as smallest particles degree using virtual machine on operation management system The topological structure of existing relevant compatibility deployment.Wherein, method and apparatus are based on the same inventive concept, due to method and dress Set that the principle solved the problems, such as is similar, therefore the implementation of apparatus and method can be with cross-reference, overlaps will not be repeated.
Scheme provided in an embodiment of the present invention can be applied to user terminal, and user can connect O&M by user terminal The page access operation management system that management system provides.User terminal has the display device that can show image information, example Such as display, projector have input unit, such as keyboard, cursor control device, such as mouse, Trackpad etc..User is whole End can be desktop computer, mobile computer, tablet computer etc..
The virtual machine compatibility strategy that the embodiment of the present invention refers to can include but is not limited to following four class: virtual machine vCPU Core binds compatibility, virtual machine NUMA compatibility, virtual robot arm mutual exclusion compatibility, virtual machine host group compatibility.
It is virtual machine compatibility strategy visualization method flow chart provided in an embodiment of the present invention, this method referring to Fig. 1 It can be executed by operation management system, the virtual machine system where operation management system can be virtual machine in virtualization architecture In operation management system, be also possible to third party's management system, carried out by taking operation management system as an example in the embodiment of the present invention Explanation.
S101, operation management system determine the virtual machine compatibility strategy that virtual machine to be checked is used in deployment.
Wherein, a virtual machine to be checked may use N kind virtual machine compatibility strategy in deployment, then operation management system System can determine every kind of virtual machine compatibility strategy that virtual machine to be checked is used in deployment respectively.
Operation management system is for every kind of virtual machine compatibility in the virtual machine compatibility strategy of the virtual machine to be checked Strategy executes S102 and S103 respectively.
Illustratively, virtual machine 1 is virtual machine to be checked, and two kinds of compatibility strategies are used when disposing, are virtual respectively Machine vCPU core binds compatibility strategy and virtual robot arm mutual exclusion compatibility strategy, then operation management system can be obtained respectively for void Quasi- machine 1 uses the relevant information of virtual machine 1 described in above two compatibility policy deployment.
S102, operation management system, which is obtained, uses the virtual machine compatibility policy deployment for the virtual machine to be checked The relevant information of the virtual machine to be checked.
The relevant information includes resource, the virtual machine to be checked and other virtual that the virtual machine to be checked uses The resource that the first incidence relation and the virtual machine to be checked between machine use master corresponding with the virtual machine to be checked The second incidence relation between machine resource;The corresponding host resource of the virtual machine to be checked includes the virtual machine institute to be checked In the resource of host groups where the resource of host or the virtual machine to be checked.
Other virtual machines include shared with the virtual machine to be checked same host resource virtual machine or with institute Stating deploying virtual machine to be checked, there are the void of mutex relation in the virtual machine of same host groups or with the virtual machine to be checked Quasi- machine.Such as: other virtual machines include shared with the virtual machine to be checked pCPU virtual machine or with it is described to be checked The void of a host resource cannot be shared with the virtual machine in host groups or with the virtual machine to be checked by asking virtual machine Quasi- machine.
Wherein, the resource that the virtual machine to be checked uses may include the vCPU that the virtual machine to be checked uses, empty Quasi- memory (memory) and Microsoft Loopback Adapter (English: virtual Network Interface Card, referred to as: vNIC) etc..
It may include that the virtual machine to be checked and other virtual machines share a host and provide in first incidence relation Source perhaps the virtual machine to be checked and other deploying virtual machines in the same host groups or described to be checked virtual Machine and other virtual machines are there are mutex relation, and wherein mutex relation refers to the virtual machine to be checked and described other virtual Machine cannot share a physical host resource.
Second incidence relation includes: the master where the resource that the virtual machine to be checked uses and the virtual machine to be checked The resource and the virtual machine host group resource to be checked that the incidence relation of the resource of machine or the virtual machine to be checked use Incidence relation.Such as: the pCPU incidence relation for including in vCPU used in the virtual machine to be checked and host, it is described to Inquire the incidence relation and the virtual machine to be checked of virtual memory used in virtual machine and the physical storage in host The incidence relation of physical network card in used Microsoft Loopback Adapter and host, the virtual machine to be checked disposed in host groups with And migration etc..
S103, operation management system are based on corresponding relationship and generate the corresponding topological diagram of virtual machine compatibility strategy.
Wherein, the corresponding relationship is to be pre-configured and including object pass corresponding with the drawing element for identifying object It is the corresponding relationship of the incidence relation between object and the drawing element for identifying the incidence relation between the object;Institute State object include the virtual machine to be checked, other virtual machines, the used resource of the virtual machine to be checked and with institute Virtual machine to be checked is stated there are the server of incidence relation, the incidence relation between the object includes first incidence relation And second incidence relation.
The corresponding topological diagram of the virtual machine compatibility strategy is shown to user by S104, operation management system.
Deployment of the operation management system in the virtual machine compatibility strategy for generating virtual machine to be checked in the embodiment of the present invention It, can be by the corresponding topological diagram of deployment of a variety of virtual machine compatibility strategies of virtual machine to be checked when the corresponding topological diagram of situation Generation is shown on a display interface, also be can be generated and is shown on multiple display pages.
The scheme provided through the embodiment of the present invention will dispose virtual machine to be checked and meet each virtual machine compatibility plan There are the relationships between each resource and resource of incidence relation to be presented on display interface for summary and virtual machine compatibility strategy On so that user can more intuitively observe the deployment scenario of virtual machine compatibility strategy, and can to virtual machine into Row manages and maintains, and improves the efficiency of operation management and maintenance.
Optionally, it is obtained in operation management system and uses the virtual machine compatibility strategy for the virtual machine to be checked It disposes after the relevant information of the virtual machine to be checked, operation management system is based on the virtual machine to be checked and uses i-th kind The relevant information of virtual machine to be checked described in virtual machine compatibility policy deployment determine the virtual machine to be checked deployment whether Meet the virtual machine compatibility strategy;
Described generated in the corresponding topological diagram of the virtual machine compatibility strategy based on corresponding relationship includes described to be checked The corresponding alarm button of virtual machine;It further include alerting button and the drawing element for identifying alarm button in the corresponding relationship Corresponding relationship.
Wherein, the alarm button includes the first display state and the second display state, and the first display state is used for Indicate that the deployment of the virtual machine to be checked meets the virtual machine compatibility strategy;The second display state is for indicating institute The deployment for stating virtual machine to be checked is unsatisfactory for the virtual machine compatibility strategy.
Operation management system carries out binding pass after the relevant information for getting virtual machine to be checked, to the relevant information It is described virtual to determine whether the deployment of the virtual machine to be checked meets based on the analysis results for the analysis of system or mutex relation Machine compatibility strategy.Such as: compatibility scene is bound for the virtual machine vCPU core of virtual machine to be checked, if closed by binding After system's analysis, the pCPU of virtual machine to be checked Yu the public host of another virtual machine is determined, so that it is determined that the void to be checked The deployment of quasi- machine is unsatisfactory for virtual machine vCPU core binding compatibility.
Optionally, the corresponding topological diagram of the virtual machine compatibility strategy is shown to user in the operation management system Before, the operation management system receives the querying command of user, and the querying command is described to be checked virtual for inquiring The virtual machine compatibility deployment scenario of machine.
On the one hand, the operation management system by the corresponding topological diagram of the virtual machine compatibility strategy be shown to user it Before, before can be the virtual machine compatibility strategy that determining virtual machine to be checked is used in deployment, then operation management system is examined After the querying command for measuring user, thereby executing the corresponding processing of step S101-S104.
On the other hand, the corresponding topological diagram of the virtual machine compatibility strategy is shown to use by the operation management system Before family, when can be virtual machine to be checked and establishing, the corresponding processing of S101-S103 is thened follow the steps.If receiving user's After querying command, which is used to inquire the virtual machine compatibility deployment scenario of the virtual machine to be checked, then O&M pipe Reason system executes S104, and the topological diagram of the virtual machine to be checked is shown to user.
Fig. 2 show a kind of virtual machine compatibility strategy visualization method schematic flow provided in an embodiment of the present invention Figure.This method can be executed by operation management system or management node.The embodiment of the present invention by taking operation management system as an example into Row explanation.
S201, operation management system receive the querying command of user, and the querying command is described to be checked for inquiring The virtual machine compatibility deployment scenario of virtual machine.
S202, operation management system determine that virtual machine to be checked is used in deployment after the querying command for receiving user Virtual machine compatibility strategy.
It can be based on a kind of virtual machine compatibility policy deployment for each virtual machine, it can also be based on a variety of virtual machine parents With property policy deployment.Used all virtual machines are affine when available deploying virtual machine to be checked in the embodiment of the present invention Property strategy illustrates by taking one of virtual machine compatibility strategy as an example in the embodiment of the present invention.
The relevant information that virtual machine compatibility strategy is pre-saved in operation management system is receiving user query life After order, the identification information of virtual machine to be checked can be carried in querying command, and can store in operation management system each Virtual machine identifies the relevant information of corresponding virtual machine compatibility strategy, thus operation management system can determine it is to be checked virtual Machine disposes met virtual machine compatibility strategy.
In addition, operation management system can use used every kind of compatibility strategy letter when interface polls deploying virtual machine Breath, such as using Rest or Soap application programming interface (it is English: Application Programming Interface, Referred to as: API) inquire.User can send a subcommand, when by the interface polls in operation management system to deploying virtual machine The relevant information of used every kind of compatibility strategy.
It is exemplified below using the method for operation management system API inquiry virtual machine compatibility strategy, inquiry purpose is accurate The classification and title of the compatibility strategy of virtual machine to be checked in cloud operation management system are obtained, as shown in table 1.
Table 1
Method URI Function
GET /v2/{project_id}/os-affinity-group Inquire compatibility Policy List.
GET /v2/{project_id}/os-affinity-group/{affinity_group_id} Inquire compatibility strategy details.
S203, operation management system when determining virtual machine to be checked in deployment after the virtual machine compatibility strategy that uses, Obtain the related letter for the virtual machine to be checked using virtual machine to be checked described in the virtual machine compatibility policy deployment Breath.
The relevant information includes resource, the virtual machine to be checked and other virtual that the virtual machine to be checked uses The resource that the first incidence relation and the virtual machine to be checked between machine use master corresponding with the virtual machine to be checked The second incidence relation between machine resource;Other virtual machines include sharing same host resource with the virtual machine to be checked Virtual machine or with the deploying virtual machine to be checked the virtual machine of same host groups or with it is described to be checked virtual There are the virtual machines of mutex relation for machine;Where the corresponding host resource of the virtual machine to be checked includes the virtual machine to be checked The resource of host groups where the resource of host or the virtual machine to be checked.
Specifically, continuing refinement and virtual machine to be checked after determining the virtual machine compatibility strategy of virtual machine to be checked Incidence relation between the detailed information and acquisition object of associated object, it is therefore an objective to collect affine with virtual machine to be checked The specification of property policy-related (noun) object, binding relationship, mutex relation etc. carry out between subsequent object and drawing element to facilitate Visualization is presented to the user after mapping, wherein object includes the virtual machine to be checked, other virtual machines, described to be checked Ask virtual machine using resource and with the virtual machine to be checked, there are the servers of incidence relation.
In addition, user can obtain the object and the object by Rest the or soap interface of operation management system Between incidence relation.For example, the incidence relation between the object and the object shown in table 2.
Table 2
4 kinds of compatibility strategies that operation management system obtains virtual machine to be checked are illustratively listed in above-mentioned table 2 Relevant information, if when the deployment of virtual machine to be checked uses two kinds of compatibility strategies, such as virtual machine vCPU core binding parent With property strategy, virtual machine host group compatibility strategy, then in the relevant information for obtaining virtual machine to be checked, it is only necessary to obtain to be checked The virtual machine vCPU core for asking virtual machine binds compatibility strategy, the corresponding relevant information of virtual machine host group compatibility strategy, such as Compatibility strategy is bound only with virtual machine vCPU core when fruit deploying virtual machine to be checked, then operation management system only needs to obtain The relevant information of the virtual machine vCPU core binding compatibility strategy of virtual machine to be checked.
S204, based on the virtual machine to be checked using virtual machine to be checked described in the virtual machine compatibility policy deployment Relevant information determine whether the deployment of the virtual machine to be checked meets the virtual machine compatibility strategy.
For example, the vCPU core for virtual machine to be checked binds compatibility strategy, if the vCPU of virtual machine to be checked can To monopolize some pCPU of host, therefore the deployment of virtual machine to be checked meets virtual machine vCPU core binding compatibility, if to The vCPU and another virtual machine for inquiring virtual machine account for some pCPU of host altogether, then the deployment of the virtual machine to be checked is not Meet virtual machine vCPU core binding compatibility.
S205 generates the corresponding topological diagram of virtual machine compatibility strategy based on corresponding relationship.
Wherein, the corresponding relationship is to be pre-configured and including object pass corresponding with the drawing element for identifying object It is the corresponding relationship of the incidence relation between object and the drawing element for identifying the incidence relation between the object;Institute Stating object includes the virtual machine to be checked, other virtual machines, the used resource of the virtual machine to be checked, the money of host The resource of source and host groups, the incidence relation between the object include that first incidence relation and described second are closed Connection relationship.
It include the corresponding alarm button of the virtual machine to be checked in above topology figure;It further include accusing in the corresponding relationship The corresponding relationship of alert button and the drawing element for identifying alarm button.
The alarm button includes the first display state and the second display state, and the first display state is for indicating institute The deployment for stating virtual machine to be checked meets the virtual machine compatibility strategy;The second display state is for indicating described to be checked The deployment for asking virtual machine is unsatisfactory for the virtual machine compatibility strategy.
The alarm button includes the first display state and the second display state, and the first display state is for indicating institute The deployment for stating virtual machine to be checked meets the virtual machine compatibility strategy;The second display state is for indicating described to be checked The deployment for asking virtual machine is unsatisfactory for the virtual machine compatibility strategy.
The second display state is referred to as alarm status, i.e., is unsatisfactory for institute in the deployment of the virtual machine to be checked When stating virtual machine compatibility strategy, the alarm status of generation, for identifying the current resource deployment feelings of the virtual machine to be checked Condition is unsatisfactory for the requirement of the virtual machine compatibility strategy;It is affine to meet the virtual machine in the deployment of the virtual machine to be checked Property strategy when, cancel alarm.
The purpose of step S204 is in order to which the corresponding virtual machine compatibility strategy of virtual machine to be checked, there are associated objects And the incidence relation between object is presented using specific drawing element, facilitates user subsequent to the compatibility of virtual machine Strategy is managed.
User can be pre-configured with the relationship between mark object, object that is used on according to business demand and alert button Drawing element, such as color, image, size etc..
For example, table 3 is shown for identifying the corresponding relationship between object and the drawing element and object of alarm button.Its In, table 3 is only a kind of example, not to for identifying the corresponding pass between object and the drawing element and object of alarm button System is specifically limited.
Table 3
In the embodiment of the present invention for identify the drawing element of corresponding relationship between object can be curve, straight line or Person's arrow etc. form can configure different colors.The present invention is not especially limit this.
User can also be pre-configured with pair between the drawing element and object for identifying the corresponding relationship between object It should be related to, for example, shown in table 4.
Table 4
The corresponding topological diagram of the virtual machine compatibility strategy is shown to the user by S206.
In embodiments of the present invention, if the display state of alarm button described in the topological diagram of display is the second display state When, the method can also include:
S207 receives the first input of user, generates display menu and be shown to the user.
It wherein, include at least one menu item in the menu;The menu item includes corresponding to the alarm button The modifiable deployment operation prompt information of virtual machine;First input is for choosing the alarm button.
For example, (for red to there is alarm, green is just when shown in red for the corresponding alarm button of virtual machine to be checked Often), related VM relevant operation entrance, such as virtual machine (vm) migration, virtual machine pause be can integrate, virtual machine is deleted, and virtual machine opens It is dynamic, other more multioperations etc..Such as left mouse button clicks button, and menu can be shown beside button, includes multiple in menu Menu item, menu item include virtual machine (vm) migration, virtual machine pause, virtual machine deletion, virtual machine starting, other more multioperations etc. Deng.When showing menu, can be used to indicate with display alarm prompt information, the alarm prompt deployment be unsatisfactory for it is affine The reason of property strategy.
Optionally, in the embodiment of the present invention after showing menu, when the user clicks when some menu item, into cloud management system The concrete operations interface of system being managed to virtual machine is managed operation to virtual machine, changes the deployment of virtual machine, so that It is affine that the corresponding virtual machine of icon for identifying the definitive result after change deployment meets its corresponding virtual machine Property strategy.
Therefore, after showing menu, the method can also include:
S208 receives the second input of user, and second input is for choosing at least one described menu item One menu item;
It is corresponding to change the alarm button according to the deployment operation prompt information that the menu item chosen is shown by S209 Virtual machine deployment.To change the corresponding virtual machine of the alarm button after deployment, to meet its corresponding virtual machine affine Property strategy.
When processing is so that the corresponding virtual machine of the alarm button meets its corresponding virtual machine compatibility strategy, a side Face can handle the corresponding virtual machine of alarm button by step S209, can also be directed to and the alarm button pair There are other virtual machines of incidence relation to be handled for the virtual machine answered.Specifically, shown according to the menu item chosen Deployment operation prompt information, changing virtual machine corresponding with the alarm button, there are the portions of other virtual machines of incidence relation Administration, so that the corresponding virtual machine of the alarm button after change deployment meets its corresponding virtual machine compatibility strategy.
In the embodiment of the present invention, according to the deployment operation prompt information that the menu item chosen is shown, the announcement is changed There are the other of incidence relation for the deployment of the corresponding virtual machine of police's button or change virtual machine corresponding with the alarm button After the deployment of virtual machine, the method can also include:
The display state of the alarm button is changed to the first display shape by the second display state by S210 State.
In the embodiment of the present invention, can also to the drawing element for identifying the incidence relation between object and object into Row modification.When modifying for the drawing element for identifying object, the method can also include:
The third input of user is received, the third input is for modifying the corresponding drawing element of at least one object;
Modification is inputted for identifying the drawing element of at least one object based on the third.
When modifying for the corresponding drawing element of incidence relation between object, the method can also include:
Receive the 4th input of user, incidence relation pair of the 4th input for modifying between at least one object The drawing element answered;
Based on the 4th input display modification for identifying the drawing of the incidence relation between at least one described object Element.
Point four kinds of typical scenes are carried out into detailed example below and illustrate VM compatibility policy management method.In out-of-resource condition Under, show compatibility alarm status, and be integrated with the administration interface of VM operation O&M entrance.
1, virtual machine vCPU core binds compatibility scene
Deployment for virtual machine to be checked meets virtual machine vCPU core binding this scene of compatibility strategy, and the present invention is real It applies example and provides following implementation example, but be not limited to following expression, can also be presented with other subtypes, the present invention Embodiment is not especially limited this.
Assuming that virtual machine to be checked is VM1, and binds compatibility strategy using vCPU core when VM1 deployment, VM1 is deployed in master On the node 0 of machine 1, resource includes 2 vCPU in VM1.In 2 vCPU each vCPU respectively with one pCPU pairs on host 1 It answers, 2 vCPU do not share pCPU with other VM in VM1.
In addition, including multicore physical cpu in host 1, CPU specification is 2 tunnel, 10 core, and 2 tunnels refer to: host 1 includes 2 nodes (Node).10 cores refer to: each node respectively has 10 pCPU in 2 nodes (Node), includes memory in host 1.
In the pCPU resource abundance of host 1, the vCPU of VM1 can monopolize some pCPU of host 1.VM1 can be deployed to Function and meet virtual machine vCPU core binding compatibility, therefore the resource that above-mentioned VM1 is used can be inquired by api interface and include Two vCPU, respectively vCPU0, vCPU1, and determine that the vCPU0 in VM1 is corresponding with the pCPU8 of 1 interior joint 0 of host, VM1 In vCPU1 it is corresponding with the pCPU9 of 1 interior joint 0 of host, and two vCPU in VM1 not with other VM share pCPU money Source, i.e. pCPU8 and pCPU9 are VM1 dedicated.
When receiving the querying command of compatibility policy deployment situation for inquiring VM1, for example, user click VM1, To show display interface shown in Fig. 3 A.
Being connected between pCPU and vCPU by straight line in figure 3 a indicates one-to-one relationship, pCPU by red circle and The mark of circle sideband pCPU indicates that vCPU indicated by red circle and the mark of circle sideband vCPU.Memory is logical The mark in rectangular box and rectangular box with memory is crossed to indicate, green alarm button indication virtual machine Current resource makes Meet virtual machine vCPU core binding compatibility with situation.
In the case where 1 inadequate resource of host, i.e. the vCPU that VM1 needs cannot be provided separately by some pCPU of host 1, Some pCPU is shared with VM2, the deployment of VM at this time is unsatisfactory for virtual machine vCPU core binding compatibility.Fig. 3 B institute specific as follows Show there is alarm button by VM1 title, alarm button is shown as in the case where being unsatisfactory for virtual machine vCPU core binding compatibility Red is detecting that the input for choosing the alarm button, such as user click left button choose the alarm button, is then showing Alarm prompt shown in Fig. 3 B and menu bar are closed so that administrator can according to need the migration for carrying out VM, starting Etc. a variety of operations.
2, virtual machine NUMA compatibility scene
Deployment for virtual machine to be checked meets this scene of virtual machine NUMA compatibility strategy, and the embodiment of the present invention is given It is following out to implement example, be not limited to following expression, can also be presented with other subtypes, the embodiment of the present invention to this not Make specific limit.
Virtual machine to be checked is VM1, and VM1 uses NUMA compatibility policy deployment, and VM1 is deployed in the node 0 of physical host 1 On, the resource that VM1 is used includes: 2 vCPU and 1 Microsoft Loopback Adapters, memory 0;Memory 1 of the memory 0 from node 0.
In addition, including multicore physical cpu in host 1, CPU specification is: 2 nodes (Node), each node (Node) Respectively there are 4 pCPU.Each node (Node) includes a memory and a physical network card and a memory control in host 1 Device (memory Controler) processed, Memory Controller Hub are used to control exchanging for data between CPU and memory.Two nodes (Node) Memory Controller Hub carries out physical connection inside CPU in, to realize shared drive resource between different nodes.
Under network function virtualization (English: Network Function Virtualization, abbreviation: NFV) scene The corresponding thread of a general pCPU, the corresponding vCPU of a thread, the i.e. corresponding vCPU of a pCPU.
When the resource abundance of host 1, resource needed for VM1 can be provided by the same node of host 1, and VM1 meets Virtual machine NUMA compatibility.Therefore it includes two vCPU that the resource that above-mentioned VM1 is used can be inquired by api interface, respectively Further include memory 0 and Microsoft Loopback Adapter 0 for vCPU0, vCPU1, and determines the vCPU0 of VM1, vCPU1, memory, Microsoft Loopback Adapter With the pCPU on node 0, memory and IO network interface card are corresponded, i.e., the vCPU0 of VM1 is corresponding with the pCPU0 of node 0, VM1's VCPU1 is corresponding with the pCPU1 of node 0, and the memory 0 in VM1 is corresponding with the memory 1 in node 0, Microsoft Loopback Adapter 0 and physics in VM1 Network interface card 1 is corresponding.
Based on the deployment scenario of above-mentioned VM, when the inquiry for receiving the compatibility policy deployment situation for inquiring VM1 is ordered When enabling, for example, user click VM1, shows display interface shown in Fig. 4 A.
Being connected in Fig. 4 A with straight line indicates that the vCPU0 of VM1 is corresponding with the pCPU0 of node (Node) 0, the vCPU1 and section of VM1 The pCPU1 of point (Node) 0 is corresponding, and the memory 0 in VM1 is corresponding with the memory 1 in node (Node) 0, in VM1 Microsoft Loopback Adapter 0 and Physical network card 1 is corresponding, is closed by the connection between curve with the arrow expression pCPU, Memory Controller Hub, memory 1, physical network card 1 System.
The NUMA compatibility topological structure of host 1 can be showed intuitively, and as shown in Figure 4 A, vCPU passes through red circle The mark of circle and circle sideband vCPU indicate.Memory, Memory Controller Hub, pCPU, physical network card 1 pass through rectangular box respectively Tape identification indicates that the resource service condition of the green alarm button indication virtual machine meets NUMA compatibility strategy.
VM1 uses NUMA compatibility strategy but 1 inadequate resource of host, i.e. resource needed for VM1 cannot be by the same of host 1 A node provides, and at least needs 2 nodes that could provide whole resources.At this point, VM1 may also deployment success, but VM1 VCPU0, vCPU1, memory 0, Microsoft Loopback Adapter 0 are not limited in the range of node (Node) 0, but a part is in node 0, and one Part is in node 1, therefore the deployment of VM1 is unsatisfactory for virtual machine NUMA compatibility.It is specific as shown in Figure 4 B, the vCPU0 and section of VM1 The pCPU0 of point (Node) 0 is corresponding, and the Microsoft Loopback Adapter 0 of VM1 and the physical network card 1 of node 0 are corresponding, the vCPU1 and node of VM1 (Node) 1 pCPU5 is corresponding, and the memory 0 of VM1 is corresponding with the memory 2 of node (Node) 1.Above-mentioned corresponding relationship is used in figure 4b Straight line connection indicates.There is alarm button in the case where being unsatisfactory for virtual machine NUMA compatibility by VM1 title, alerts button It is shown in red, detecting that the input for choosing the alarm button, such as user click left button choose the alarm button, then It shows alarm prompt shown in Fig. 4 B and menu bar, so that administrator can according to need the migration for carrying out VM, closes It closes, a variety of operations such as starting.
3, virtual robot arm mutual exclusion compatibility scene
For virtual machine to be checked deployment when use this scene of virtual robot arm mutual exclusion compatibility strategy, the present invention implement Example provides following implementation example, is not limited to following expression, can also be presented with other subtypes, the embodiment of the present invention pair This is not especially limited.
Virtual machine to be checked is that VM1 or VM2, VM1 and VM2 are belonging respectively to different virtual machine group, each virtual robot arm pair A host is answered, and when the virtual robot arm where VM1, VM2 needs to meet virtual robot arm mutual exclusion compatibility strategy, i.e. VM1 and VM2 It cannot be deployed on the same host.
Assuming that there are 2 two hosts of host 1 and host in system, and in the case where host 1 and sufficient 2 resource of host, VM1 It is deployed on host 1, and VM2 is deployed on host 2, VM1, VM2 meet virtual robot arm mutual exclusion compatibility strategy at this time.Work as reception When to the querying command of compatibility policy deployment situation for inquiring VM1 or VM2, for example, user click VM1, display figure Display interface shown in 5A, VM1 are deployed on host 1, and VM2 is deployed on host 2.
When 2 inadequate resource of host, i.e., surplus resources are not able to satisfy the resource service condition of VM2 on host 2, in order to guarantee The reliability of whole business, VM2 may pass through scheduling of resource, be deployed on host 1 together with VM1, and VM2 and VM1 is discontented at this time Sufficient virtual robot arm mutual exclusion compatibility strategy.When receiving the querying command of compatibility policy deployment situation for inquiring VM1, For example, user click VM1, shows display interface shown in Fig. 5 B.As shown in Figure 5 B, there are VM3 and VM4, hosts 2 in host 2 Middle surplus resources are unable to satisfy resource requirement needed for VM, then VM2 can only be deployed on the host 1 where VM1, so that VM1 Deployment with VM2 is unsatisfactory for mutual exclusion compatibility strategy.There is alarm prompt button by VM1 and VM2 title, after clicking VM2 left button There is prompt information and menu bar as shown in Figure 5 B, administrator, which can according to need, first arrives virtual machine (vm) migration in host 2 In host 1, when surplus resources meet resource specification needed for VM2 in host 2, VM2 is moved into host 2, then the alarm of VM2 Green can be reverted to by red, the deployment that green represents VM2 meets mutual exclusion compatibility, and the deployment that red represents VM2 is unsatisfactory for Mutual exclusion compatibility.
4, virtual machine host group compatibility scene
Deployment for virtual machine to be checked meets this scene of virtual machine host group compatibility strategy, the embodiment of the present invention Following implementation example is provided, following expression is not limited to, can also be presented with other subtypes, the embodiment of the present invention is to this It is not especially limited.
Host 1, host 2, host 3 form a host groups (host Aggregate) 1, and host 4 is not belonging to host groups 1, Assuming that VM1 uses virtual machine host group compatibility strategy, then virtual machine VM1 to be checked can be upper free between this 3 hosts Migration.
In 1 resource abundance situation of host groups, VM1 is deployed on host 1 or host 2 or host 3.Pass through API The resource that interface polls are disposed to above-mentioned VM1.The compatibility policy deployment situation for inquiring VM1 is received, for example, user is single VM1 is hit, to show display interface shown in Fig. 6 A.VM1 can be deployed in host 1, host 2, on host 3, and can be Host 1, host 2 are realized migration in host 3, but cannot be deployed on host 4.Alerting button is that green indicates its affine character State is normal, i.e. the deployment of VM1 meets host groups compatibility.
Resource in the case where 1 inadequate resource of host groups, such as in host groups 1 is occupied by VM2, VM3, VM4, remaining Resource is not able to satisfy VM1 deployment request, and in order to guarantee service reliability, VM1, which may be deployed in except host groups, vacant money On source, for example host 4 has vacant resource and meets the deployment request of VM1, but the deployment of VM1 is unsatisfactory for virtual machine host at this time Group compatibility strategy.When receiving the querying command of compatibility policy deployment situation for inquiring VM1, for example, user is single VM1 is hit, shows that display interface shown in Fig. 6 B, VM1 are deployed on host 4, the alarm button beside VM1 is shown in red.It is single Hit the alarm button beside VM1, it may appear that prompt information shown in Fig. 6 B and menu bar, administrator can according to need, first VM4 is migrated from host 1, is migrated on VM1 to host 1 again after vacating enough resources, then the alarm of VM1 can be by red Green is reverted to, green indicates that the deployment of VM1 meets mutual exclusion group compatibility, and red indicates that the deployment of VM1 is unsatisfactory for mutual exclusion group parent And property.
Deployment of the operation management system in the virtual machine compatibility strategy for generating virtual machine to be checked in the embodiment of the present invention It, can be by the corresponding topological diagram of deployment of a variety of virtual machine compatibility strategies of virtual machine to be checked when the corresponding topological diagram of situation Generation is shown on a display interface, also be can be generated and is shown on multiple display pages.Such as the portion of virtual machine to be checked Administration meets the above-mentioned binding of virtual machine vCPU core compatibility, virtual machine NUMA compatibility, virtual robot arm mutual exclusion compatibility, virtual owner When four kinds of compatibility strategies of unit compatibility, then the corresponding topological diagram of four kinds of scenes as above can be shown in the same window, Certainly the corresponding topological diagram of four kinds of scenes can also be displayed separately in four windows.
In the embodiment of the present invention, when using a variety of compatibility strategies when a deploying virtual machine, it can show to be checked The corresponding topological diagram of every kind of compatibility strategy of virtual machine, as certain parent for the inquiry virtual machine to be checked for receiving user When with the querying command of property strategy, then the corresponding topological diagram of this kind of compatibility strategy is shown.
Based on inventive concept same as embodiment of the method, the embodiment of the invention also provides a kind of virtual machine compatibility plans Slightly visible apparatus, the device are set in operation management system.As shown in fig. 7, the device includes:
First determining module 701, the virtual machine compatibility strategy used for determining virtual machine to be checked in deployment.
Relating module 702 uses the virtual machine compatibility policy deployment for the virtual machine to be checked for obtaining The relevant information of the virtual machine to be checked;The relevant information include the virtual machine to be checked use resource, it is described to The first incidence relation and the resource that uses of the virtual machine to be checked between inquiry virtual machine and other virtual machines with it is described The second incidence relation between the resource of the corresponding host of virtual machine to be checked;Other virtual machines include with it is described to be checked Virtual machine shares the virtual machine of same host resource or with the deploying virtual machine to be checked in the virtual of same host groups Machine or there are the virtual machines of mutex relation with the virtual machine to be checked;The corresponding host resource of the virtual machine to be checked Resource including host groups where the resource of host where the virtual machine to be checked or the virtual machine to be checked.
Generation module 703, for generating the corresponding topological diagram of virtual machine compatibility strategy based on corresponding relationship;Wherein, institute State the corresponding relationship that corresponding relationship includes object with the drawing element for identifying the object, the incidence relation between object with For identifying the corresponding relationship of the drawing element of the incidence relation between the object;The object includes described to be checked virtual Machine, other virtual machines, the used resource of the virtual machine to be checked, the resource of the resource of host and host groups, it is described Incidence relation between object includes first incidence relation and second incidence relation.
Display module 704 generates the virtual machine compatibility strategy pair for being based on corresponding relationship in the generation module After the topological diagram answered, the corresponding topological diagram of the virtual machine compatibility strategy is shown to user.
It may include that the virtual machine to be checked and other virtual machines share a master in first incidence relation Machine resource perhaps the virtual machine to be checked and other deploying virtual machines in the same host groups or described to be checked Virtual machine and other virtual machines there are mutex relation, wherein mutex relation refer to the virtual machine to be checked with it is described other Virtual machine cannot share a physical host resource.
Second incidence relation includes: the master where the resource that the virtual machine to be checked uses and the virtual machine to be checked The resource and the virtual machine host group resource to be checked that the incidence relation of the resource of machine or the virtual machine to be checked use Incidence relation.
The scheme provided through the embodiment of the present invention will dispose virtual machine to be checked and meet each virtual machine compatibility plan There are the relationships between each resource and resource of incidence relation to be presented on display interface for summary and virtual machine compatibility strategy On so that user can more intuitively observe the deployment scenario of virtual machine compatibility strategy, and can to virtual machine into Row manages and maintains, and improves the efficiency of operation management and maintenance.
In a kind of possible design, the apparatus may include:
Receiving module 705, for being shown to the corresponding topological diagram of the virtual machine compatibility strategy in display module 704 Before user, the querying command of user is received, the querying command is used to inquire the virtual machine parent of the virtual machine to be checked With property deployment scenario.
By above-mentioned design, enable to user that can more intuitively observe the deployment scenario of virtual machine compatibility strategy, And virtual machine can be managed and be safeguarded, improve the efficiency of operation management and maintenance.
In a kind of possible design, described device can also include:
Second determining module 706, for obtaining in the relating module 702 for described in the virtual machine use to be checked After the relevant information of virtual machine to be checked described in virtual machine compatibility policy deployment, institute is used based on the virtual machine to be checked The relevant information for stating virtual machine to be checked described in virtual machine compatibility policy deployment determines that the deployment of the virtual machine to be checked is It is no to meet the virtual machine compatibility strategy.
The display module 704 is also used to be shown in display alarm button in the topological diagram;In the corresponding relationship also Corresponding relationship including alarm button with the drawing element for identifying alarm button;The alarm button includes the first display shape State and the second display state, the first display state is for indicating that the deployment of the virtual machine to be checked meets the virtual machine Compatibility strategy;The second display state is affine for indicating that the deployment of the virtual machine to be checked is unsatisfactory for the virtual machine Property strategy.
By above-mentioned design, user can more intuitively determine whether the deployment of virtual machine to be checked is full according to alarm button The deployment of sufficient compatibility strategy.
In a kind of possible design, the receiving module 705 is also used to receive the first input of user;Described One input is for choosing the alarm button.
The generation module 703 is also used to after the receiving module 705 receives the first input of user, is generated aobvious Show menu;
The display module 704 is also used to the menu that the generation module 703 generates being shown to the user, It include at least one menu item in the menu;
Wherein, at least one described menu item each menu item include can be more to the corresponding virtual machine of the alarm button The deployment operation prompt information changed.
Optionally, the receiving module 705 is also used to detect that the second input, second input are described for choosing A menu item at least one menu item;
Described device further include: deployment change module 707, the deployment operation for being shown according to the menu item chosen Prompt information changes the deployment of the corresponding virtual machine of the alarm button, so that the alarm button after change deployment is corresponding Virtual machine meet its corresponding virtual machine compatibility strategy.
Optionally, the display module 704 is also used to change module 707 according to the menu chosen in the deployment The deployment operation prompt information of item display, after changing the deployment of the corresponding virtual machine of the alarm button, by the alarm button Display state the first display state is changed to by the second display state.
It is schematical, only a kind of logical function partition to the division of unit in the embodiment of the present invention, it is practical to realize When there may be another division manner, in addition, each functional unit in each embodiment of the present invention can integrate at one It manages in device, is also possible to physically exist alone, can also be integrated in one unit with two or more units.It is above-mentioned integrated Unit both can take the form of hardware realization, can also be realized in the form of software function module.
Wherein, when integrated unit uses formal implementation of hardware, as shown in figure 8, may include communication interface 801, Processor 802 and memory 803.Described device further includes display 804, the finger of the display 804 based on processor 802 Show to show icon.The memory 803, the program code executed for storing the processor 802.Communication interface 801 is used In the querying command of the input of reception first, the second input and user.First determining module 701, generates mould at relating module 702 Block 703, display module 704, receiving module 705, the second determining module 706, the deployment change corresponding function of module 707 can be with It is realized by processor 802.
Processor 802, can be a central processing unit (English: central processing unit, referred to as: It CPU), or is digital processing element etc..Processor 802 is used to execute the program code of the storage of memory 803, specifically, Processor 802 gets the input of user by communication interface 801, inputs corresponding place to execute according to the input of user Reason, then by treated, topological diagram is shown indication display 804.
Above-mentioned communication interface 801, processor 802, processor 803 and display 804 are not limited in the embodiment of the present invention Between specific connection medium.The embodiment of the present invention with communication interface 801, processor 802, memory 803 and is shown in fig. 8 Show and connected between device 804 by bus 805, bus is indicated in fig. 8 with thick line, and the connection type between other components is only It is schematically illustrated, does not regard it as and be limited.The bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, Fig. 8, it is not intended that an only bus or a type of bus.
Memory 803 can be volatile memory (English: volatile memory), such as random access memory (English: random-access memory, abbreviation: RAM);Memory 803 be also possible to nonvolatile memory (English: Non-volatile memory), for example, read-only memory (English: read-only memory, abbreviation: ROM), flash Device (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid state hard disk (English: Solid-state drive, abbreviation: SSD) or memory 803 can be used for carrying or storage has instruction or data knot The desired program code of configuration formula and can by any other medium of computer access, but not limited to this.Memory 803 can To be the combination of above-mentioned memory.
Fourth aspect, the embodiment of the invention also provides a kind of virtual machine compatibility strategy visualization methods.This method Applied to user terminal, the interface that user terminal can be provided by operation management system accesses operation management system.Referring to Fig. 9 It is shown, which comprises
S901, user terminal is in response to the first input detected, and first input is for inquiring virtual machine to be checked Virtual machine compatibility policy deployment situation.
S902, user terminal show the corresponding topological diagram of virtual machine compatibility strategy of the virtual machine to be checked.
Wherein, it is marked in the topological diagram including First Kind Graph and the second class icon, the first kind icon is used to indicate Object, the object include the virtual machine to be checked, other virtual machines, the used resource of virtual machine to be checked with And the corresponding host resource of the virtual machine to be checked;Other virtual machines include shared with the virtual machine to be checked it is same The virtual machine of host resource or with the deploying virtual machine to be checked the virtual machine of same host groups or with it is described to Inquiring virtual machine, there are the virtual machines of mutex relation.The corresponding host resource of the virtual machine to be checked includes the void to be checked The resource of host groups where the resource of host where quasi- machine or the virtual machine to be checked.
The second class icon is used to identify the incidence relation between the object, the incidence relation packet between the object Include the money that the first incidence relation between the virtual machine to be checked and other virtual machines and the virtual machine to be checked use The second incidence relation between the host resource corresponding with the virtual machine to be checked of source.
In a kind of possible design, in the topological diagram further include the virtual machine to be checked the virtual machine it is affine Property the corresponding alarm button of strategy, the alarm button include first display state and second display state, it is described first display State is for indicating that the deployment of the virtual machine to be checked meets the virtual machine compatibility strategy;The second display state is used The virtual machine compatibility strategy is unsatisfactory in the deployment for indicating the virtual machine to be checked.
The scheme provided through the embodiment of the present invention will dispose virtual machine to be checked and meet each virtual machine compatibility plan There are the relationships between each resource and resource of incidence relation to be presented on display interface for summary and virtual machine compatibility strategy On so that user can more intuitively observe the deployment scenario of virtual machine compatibility strategy, and can to virtual machine into Row manages and maintains, and improves the efficiency of operation management and maintenance.
Based on inventive concept same as embodiment of the method corresponding to Fig. 9, the embodiment of the invention also provides a kind of void Quasi- machine compatibility strategy visible apparatus, as shown in Figure 10, described device is applied to user terminal.
Processing module 1001, for the input of the user in response to detecting, the input is to be checked virtual for inquiring The virtual machine compatibility policy deployment situation of machine,
Display module 1002, for showing the corresponding topological diagram of virtual machine compatibility strategy of the virtual machine to be checked;N For the positive integer greater than 0.
Wherein, it is marked in the topological diagram including First Kind Graph and the second class icon, the first kind icon is used to indicate Object, the object include the virtual machine to be checked, other virtual machines, the used resource of virtual machine to be checked with And the corresponding host resource of the virtual machine to be checked.Other virtual machines include shared with the virtual machine to be checked it is same The virtual machine of host resource or with the deploying virtual machine to be checked the virtual machine of same host groups or with it is described to Inquiring virtual machine, there are the virtual machines of mutex relation.The corresponding host resource of the virtual machine to be checked includes the void to be checked The resource of host groups where the resource of host where quasi- machine or the virtual machine to be checked.
The second class icon is used to identify the incidence relation between the object, the incidence relation packet between the object Include the money that the first incidence relation between the virtual machine to be checked and other virtual machines and the virtual machine to be checked use The second incidence relation between the host resource corresponding with the virtual machine to be checked of source;The corresponding master of the virtual machine to be checked Machine resource includes the money of host groups where the resource of host where the virtual machine to be checked or the virtual machine to be checked Source.
In a kind of possible design, in the topological diagram further include the virtual machine to be checked the virtual machine it is affine Property the corresponding alarm button of strategy, the alarm button include first display state and second display state, it is described first display State is for indicating that the deployment of the virtual machine to be checked meets the virtual machine compatibility strategy;The second display state is used The virtual machine compatibility strategy is unsatisfactory in the deployment for indicating the virtual machine to be checked.
It is schematical, only a kind of logical function partition to the division of unit in the embodiment of the present invention, it is practical to realize When there may be another division manner, in addition, each functional unit in each embodiment of the present invention can integrate at one It manages in device, is also possible to physically exist alone, can also be integrated in one unit with two or more units.It is above-mentioned integrated Unit both can take the form of hardware realization, can also be realized in the form of software function module.
It wherein, may include communication interface as shown in figure 11 when integrated unit uses formal implementation of hardware 1101, processor 1102 and memory 1103.Described device further includes display 1104, and the display 1104 is based on processing The instruction of device 1102 shows topological diagram.The memory 1103, the program code executed for storing the processor 1102. Communication interface 1101 is used to receive the input of user.Processing module 1001 and the corresponding function of display module 1002 can be by Processor 1102 is realized.
Processor 1102 can be a CPU, or be digital processing element etc..Processor 1102 is deposited for executing The program code that reservoir 1103 stores, specifically, processor 1102 gets the input of user by communication interface 1101, thus It is executed according to the input of user and inputs corresponding processing, then topological diagram is shown indication display 1104 by treated.
Above-mentioned communication interface 1101, processor 1102, processor 1103 and display are not limited in the embodiment of the present invention Specific connection medium between 1104.The embodiment of the present invention is in fig. 8 with communication interface 1101, processor 1102, memory It is connected between 1103 and display 1104 by bus 1105, bus is indicated in fig. 8 with thick line, the company between other components Mode is connect, is only to be schematically illustrated, does not regard it as and be limited.The bus can be divided into address bus, data/address bus, control Bus etc..Only to be indicated with a thick line in Fig. 8 convenient for indicating, it is not intended that an only bus or a type of total Line.
Memory 1103 can be volatile memory, such as RAM;Memory 1103 is also possible to non-volatile memories Device, such as ROM, flash memory, HDD or SSD or memory 1103 can be used for carrying or storing have instruction or number According to structure type desired program code and can by any other medium of computer access, but not limited to this.Memory 1103 can be the combination of above-mentioned memory.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of virtual machine compatibility strategy visualization method characterized by comprising
Operation management system determines the virtual machine compatibility strategy that virtual machine to be checked is used in deployment;
The operation management system is obtained for the virtual machine to be checked using described in the virtual machine compatibility policy deployment The relevant information of virtual machine to be checked, the corresponding relevant information of the virtual machine compatibility strategy includes the void to be checked Quasi- machine uses between resource, the virtual machine to be checked and other virtual machines the first incidence relation and described to be checked The second incidence relation between the resource that virtual machine uses host resource corresponding with the virtual machine to be checked;Other void Quasi- machine include shared with the virtual machine to be checked same host resource virtual machine or with the deploying virtual machine to be checked In the virtual machine of same host groups or there are the virtual machines of mutex relation with the virtual machine to be checked;The void to be checked The quasi- corresponding host resource of machine includes the resource of host where the virtual machine to be checked or the virtual machine place to be checked The resource of host groups;
The operation management system is based on corresponding relationship and generates the corresponding topological diagram of the virtual machine compatibility strategy, and is shown to User;Wherein, the corresponding relationship that the corresponding relationship includes object with the drawing element for identifying the object, between object Incidence relation and the drawing element for identifying the incidence relation between the object corresponding relationship;The object includes institute State virtual machine to be checked, other virtual machines, the used resource of the virtual machine to be checked, the resource of the host and The resource of the host groups, the incidence relation between the object include that first incidence relation and second association are closed System.
2. the method as described in claim 1, which is characterized in that determine virtual machine to be checked in portion in the operation management system Before the virtual machine compatibility strategy used when administration, the method also includes:
The operation management system receives the querying command of the user, and the querying command is for inquiring the void to be checked The virtual machine compatibility deployment scenario of quasi- machine.
3. method according to claim 1 or 2, which is characterized in that obtain in the operation management system for described to be checked After virtual machine is ask using the relevant information of virtual machine to be checked described in the virtual machine compatibility policy deployment, further includes:
The operation management system is based on the corresponding relevant information of the virtual machine compatibility strategy, determines presently described to be checked Whether the deployment of virtual machine meets the virtual machine compatibility strategy;
The operation management system is based on corresponding relationship to generate in the corresponding topological diagram of the virtual machine compatibility strategy including institute State the corresponding alarm button of virtual machine to be checked;In the corresponding relationship further include alarm button and alerts button for identifying The corresponding relationship of drawing element;The alarm button includes the first display state and the second display state, the first display shape State is for indicating that the deployment of the virtual machine to be checked meets the virtual machine compatibility strategy;The second display state is used for Indicate that the deployment of the virtual machine to be checked is unsatisfactory for the virtual machine compatibility strategy.
4. method as claimed in claim 3, which is characterized in that if the display state of the alarm button is second display State, the method also includes:
The operation management system receives the first input of user, generates display menu and is shown to the user, the dish It include at least one menu item in list;
Wherein, each menu item includes modifiable to the corresponding virtual machine of the alarm button at least one described menu item Deployment operation prompt information;First input is for choosing the alarm button.
5. method as claimed in claim 4, which is characterized in that the method also includes:
The operation management system receives the second input of user, and second input is for choosing at least one described menu A menu item in;
The deployment operation prompt information that the operation management system is shown according to the menu item chosen is changed the alarm and is pressed The deployment of the corresponding virtual machine of button, so as to meet its corresponding virtual for the corresponding virtual machine of the alarm button after change deployment Machine compatibility strategy.
6. method as claimed in claim 5, which is characterized in that the deployment operation shown according to the menu item chosen Prompt information, after changing the deployment of the corresponding virtual machine of the alarm button, the method also includes:
The display state of the alarm button is changed to described first by the second display state by the operation management system Display state.
7. a kind of virtual machine compatibility strategy visible apparatus characterized by comprising
First determining module, the virtual machine compatibility strategy used for determining virtual machine to be checked in deployment;
Relating module, for obtaining for the virtual machine to be checked using to be checked described in the virtual machine compatibility policy deployment Ask the relevant information of virtual machine;The corresponding relevant information of the virtual machine compatibility strategy includes that the virtual machine to be checked uses Resource, the first incidence relation between the virtual machine to be checked and other virtual machines and the virtual machine to be checked make The second incidence relation between resource host resource corresponding with the virtual machine to be checked;Other virtual machines include The virtual machine of same host resource is shared or with the deploying virtual machine to be checked in same master with the virtual machine to be checked The virtual machine of unit or there are the virtual machines of mutex relation with the virtual machine to be checked;The virtual machine to be checked is corresponding Host resource include host groups where the resource of host where the virtual machine to be checked or the virtual machine to be checked Resource;
Generation module, for generating the corresponding topological diagram of the virtual machine compatibility strategy based on corresponding relationship;Wherein, described right It should be related to the corresponding relationship of the drawing element for pre-configuration and including object and for identifying the object, the association between object The corresponding relationship of relationship and the drawing element for identifying the incidence relation between the object;The object includes described to be checked Ask the money of virtual machine, other virtual machines, the used resource of the virtual machine to be checked, the resource of host and host groups Source, the incidence relation between the object includes first incidence relation and second incidence relation;
Display module generates the corresponding topology of the virtual machine compatibility strategy for being based on corresponding relationship in the generation module After figure, the corresponding topological diagram of the virtual machine compatibility strategy is shown to user.
8. device as claimed in claim 7, which is characterized in that described device further include:
Receiving module, the virtual machine compatibility for being used when first determining module determines virtual machine to be checked in deployment Before strategy, the querying command of user is received, the querying command is used to inquire the virtual machine parent of the virtual machine to be checked With property deployment scenario.
9. device as claimed in claim 7 or 8, which is characterized in that described device further include:
Second determining module, it is affine using the virtual machine for the virtual machine to be checked for being obtained in the relating module Property policy deployment described in virtual machine to be checked relevant information after, based on the corresponding related letter of the virtual machine compatibility strategy Breath determines whether the deployment of presently described virtual machine to be checked meets the virtual machine compatibility strategy;
The display module is also used to be shown in display alarm button in the topological diagram;It further include accusing in the corresponding relationship The corresponding relationship of alert button and the drawing element for identifying alarm button;The alarm button includes the first display state and the Two display states, the first display state is for indicating that the deployment of the virtual machine to be checked meets the virtual machine compatibility Strategy;The second display state is for indicating that the deployment of the virtual machine to be checked is unsatisfactory for the virtual machine compatibility plan Slightly.
10. device as claimed in claim 9, which is characterized in that if the display state of the alarm button is described second aobvious Show state, the receiving module for including in described device, for receiving the first input of user;First input is for choosing The alarm button;
The generation module is also used to after the receiving module receives the first input of user, generates display menu;
The display module, the menu for being also used to generate the generation module are shown to the user, in the menu Including at least one menu item;
Wherein, each menu item includes modifiable to the corresponding virtual machine of the alarm button at least one described menu item Deployment operation prompt information.
11. device as claimed in claim 10, which is characterized in that the receiving module is also used to receive the second of user Input, second input is for choosing a menu item at least one described menu item;
Described device further include:
Deployment change module, the deployment operation prompt information for showing according to the menu item chosen change the alarm The deployment of the corresponding virtual machine of button, so that the corresponding virtual machine of the alarm button after change deployment meets its corresponding void Quasi- machine compatibility strategy.
12. device as claimed in claim 11, which is characterized in that further include:
Module is changed, the deployment operation prompt letter for showing in the deployment change module according to the menu item chosen After changing the deployment of the corresponding virtual machine of the alarm button, the display state of the alarm button is shown by described second for breath Show that state is changed to the first display state.
CN201610838824.5A 2016-09-21 2016-09-21 A kind of virtual machine compatibility strategy visualization method and device Active CN106502760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610838824.5A CN106502760B (en) 2016-09-21 2016-09-21 A kind of virtual machine compatibility strategy visualization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610838824.5A CN106502760B (en) 2016-09-21 2016-09-21 A kind of virtual machine compatibility strategy visualization method and device

Publications (2)

Publication Number Publication Date
CN106502760A CN106502760A (en) 2017-03-15
CN106502760B true CN106502760B (en) 2019-06-21

Family

ID=58290857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610838824.5A Active CN106502760B (en) 2016-09-21 2016-09-21 A kind of virtual machine compatibility strategy visualization method and device

Country Status (1)

Country Link
CN (1) CN106502760B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110750354B (en) * 2018-07-24 2023-01-10 中国移动通信有限公司研究院 vCPU resource allocation method, device and computer readable storage medium
CN109976757A (en) * 2019-03-25 2019-07-05 浪潮商用机器有限公司 A kind of configuration method of Virtual I/O Server, device, equipment and medium
CN114697319B (en) * 2020-12-30 2023-06-16 华为云计算技术有限公司 Tenant service management method and device for public cloud
CN113067809B (en) * 2021-03-15 2023-05-16 公安部第三研究所 Environment safety detection system and method for cloud platform
CN113630342B (en) * 2021-06-25 2023-08-15 济南浪潮数据技术有限公司 Forwarding table management method, system and device of virtual switch
CN114020405B (en) * 2021-10-27 2024-09-06 郑州云海信息技术有限公司 Virtual machine scheduling method, device, equipment and medium
CN114048006A (en) * 2021-11-29 2022-02-15 中国电信股份有限公司 Virtual machine dynamic migration method and device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812930A (en) * 2014-01-16 2014-05-21 华为技术有限公司 Method and device for resource scheduling
CN104166594A (en) * 2014-08-19 2014-11-26 杭州华为数字技术有限公司 Load balancing control method and related devices
CN105119993A (en) * 2015-08-24 2015-12-02 华为技术有限公司 Virtual machine deployment method and apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8621458B2 (en) * 2004-12-21 2013-12-31 Microsoft Corporation Systems and methods for exposing processor topology for virtual machines
US9342342B2 (en) * 2013-03-15 2016-05-17 International Business Machines Corporation Refreshing memory topology in virtual machine operating systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812930A (en) * 2014-01-16 2014-05-21 华为技术有限公司 Method and device for resource scheduling
CN104166594A (en) * 2014-08-19 2014-11-26 杭州华为数字技术有限公司 Load balancing control method and related devices
CN105119993A (en) * 2015-08-24 2015-12-02 华为技术有限公司 Virtual machine deployment method and apparatus

Also Published As

Publication number Publication date
CN106502760A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN106502760B (en) A kind of virtual machine compatibility strategy visualization method and device
US10067940B2 (en) Enhanced storage quota management for cloud computing systems
US9331911B2 (en) Resizing resource allocation in a computing environment
US10063427B1 (en) Visualizing and interacting with resources of an infrastructure provisioned in a network
US10324754B2 (en) Managing virtual machine patterns
US10140162B2 (en) Managing a shared pool of configurable computing resources using a set of scaling factors and a set of workload resource data
US9420035B2 (en) Transaction isolation during multi-tenant transaction requests
US8972941B2 (en) Integrated development environment-based workload testing in a networked computing environment
US10367705B1 (en) Selecting and configuring metrics for monitoring
US9225662B2 (en) Command management in a networked computing environment
CN110290557A (en) A kind of method and apparatus of the interior page-tag of load application
US10476766B1 (en) Selecting and configuring metrics for monitoring
US10839036B2 (en) Web browser having improved navigational functionality
CN110290172B (en) Container application cloning method and device, computer equipment and storage medium
Yang et al. On construction of a cloud storage system with heterogeneous software-defined storage technologies
US10795540B2 (en) Visualizing migration of a resource of a distributed computing environment
US10958730B2 (en) Mapping virtual network functions
TWI806603B (en) Computer-implemented method, computer program product and computer system for accessing topological mapping of cores
US20190188185A1 (en) Defining Software Infrastructure Using a Picture
US11645583B2 (en) Automatic rule learning in shared resource solution design
US10242111B2 (en) Node controllers for hierarchical data structures
WO2018000395A1 (en) Method and apparatus for managing data
US10305733B1 (en) Defining software infrastructure using a physical model
US10101912B2 (en) Automated home memory cloud with key authenticator
US10475111B1 (en) Selecting and configuring metrics for monitoring

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant