[go: up one dir, main page]

CN109213565B - Management method of heterogeneous virtual computing resources, related equipment and storage medium - Google Patents

Management method of heterogeneous virtual computing resources, related equipment and storage medium Download PDF

Info

Publication number
CN109213565B
CN109213565B CN201710513659.0A CN201710513659A CN109213565B CN 109213565 B CN109213565 B CN 109213565B CN 201710513659 A CN201710513659 A CN 201710513659A CN 109213565 B CN109213565 B CN 109213565B
Authority
CN
China
Prior art keywords
virtual
hosts
node information
host set
host
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
CN201710513659.0A
Other languages
Chinese (zh)
Other versions
CN109213565A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710513659.0A priority Critical patent/CN109213565B/en
Priority to PCT/CN2018/091144 priority patent/WO2019001280A1/en
Publication of CN109213565A publication Critical patent/CN109213565A/en
Application granted granted Critical
Publication of CN109213565B publication Critical patent/CN109213565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0895Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/45595Network integration; Enabling network access in virtual machine instances
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a management method of heterogeneous virtual computing resources, related equipment and a storage medium, wherein the method comprises the following steps: creating a virtual host set comprising a plurality of virtual hosts with the same attribute, and setting attribute information of the virtual host set; and adding cluster node information corresponding to the virtual host set in a metadata table of the virtual host set, and adding node information of the plurality of virtual hosts in the metadata table. Because the cluster node information corresponding to the virtual host set and the node information of a plurality of virtual hosts in the virtual host set are added in the metadata table of the created virtual host set, the virtual computing resources of the host level below the cluster level can be seen, and the management complexity of OpenStack on heterogeneous virtual computing resource pools is reduced.

Description

异构虚拟计算资源的管理方法、相关设备及存储介质Heterogeneous virtual computing resource management method, related equipment and storage medium

技术领域technical field

本发明涉及通信技术领域,特别涉及一种异构虚拟计算资源的管理方法、相关设备及存储介质。The present invention relates to the field of communication technology, in particular to a method for managing heterogeneous virtual computing resources, related equipment and storage media.

背景技术Background technique

开放协议栈(OpenStack)作为一个旨在为公共及私有云的建设与管理提供软件的开源云计算管理平台项目,其发展迅猛,受到越来越多的用户青睐,OpenStack在资源管理方面具有智能调度和全局调度的优势,可用于管理众多异构的虚拟计算资源池。利用OpenStack对异构的虚拟计算资源池进行管理时,首先需要将相应的虚拟化系统与OpenStack进行对接。目前,虚拟化系统在与OpenStack进行对接时,多是以集群(cluster)为单位进行对接,即此时在OpenStack中能看到的最小的虚拟计算资源就只能到集群级别,例如虚拟化系统vmware和OpenStack通过套件VMware集成OpenStack(VMware IntegratedOpenStack,VIO)进行对接时,vmware就是以集群为单位对接到OpenStack中的,所以在OpenStack中能看到的最小的vmware计算资源也只能到集群级别,从而导致OpenStack对异构的虚拟计算资源池进行管理时复杂度较高。Open Protocol Stack (OpenStack), as an open source cloud computing management platform project designed to provide software for the construction and management of public and private clouds, has developed rapidly and is favored by more and more users. OpenStack has intelligent scheduling in resource management And the advantage of global scheduling can be used to manage many heterogeneous virtual computing resource pools. When using OpenStack to manage heterogeneous virtual computing resource pools, it is first necessary to connect the corresponding virtualization system with OpenStack. At present, when the virtualization system is connected with OpenStack, it is mostly connected with the cluster (cluster), that is, the smallest virtual computing resource that can be seen in OpenStack at this time can only go to the cluster level, such as the virtualization system When vmware and OpenStack are connected through the suite VMware Integrated OpenStack (VMware Integrated OpenStack, VIO), vmware is connected to OpenStack in units of clusters, so the smallest vmware computing resources that can be seen in OpenStack can only be at the cluster level. As a result, OpenStack is more complex in managing heterogeneous virtual computing resource pools.

发明内容Contents of the invention

本发明实施例的目的在于提供一种异构虚拟计算资源的管理方法、相关设备及存储介质,解决了OpenStack对异构的虚拟计算资源池进行管理时复杂度较高的问题。The purpose of the embodiments of the present invention is to provide a management method for heterogeneous virtual computing resources, related equipment and storage media, which solves the problem of high complexity when OpenStack manages heterogeneous virtual computing resource pools.

为了达到上述目的,本发明实施例提供一种异构虚拟计算资源的管理方法,包括:In order to achieve the above purpose, an embodiment of the present invention provides a method for managing heterogeneous virtual computing resources, including:

创建包括属性相同的多个虚拟主机的虚拟主机集合,并设置所述虚拟主机集合的属性信息;Create a virtual host set including multiple virtual hosts with the same attributes, and set the attribute information of the virtual host set;

在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息。Adding the cluster node information corresponding to the virtual host set to the metadata table of the virtual host set, and adding the node information of the plurality of virtual hosts to the metadata table.

本发明实施例还提供一种异构虚拟计算资源的管理装置,包括:An embodiment of the present invention also provides a management device for heterogeneous virtual computing resources, including:

第一创建模块,用于创建包括属性相同的多个虚拟主机的虚拟主机集合,并设置所述虚拟主机集合的属性信息;The first creation module is used to create a virtual host set including multiple virtual hosts with the same attributes, and set the attribute information of the virtual host set;

第一信息添加模块,用于在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息。The first information adding module is configured to add cluster node information corresponding to the virtual host set to the metadata table of the virtual host set, and add node information of the plurality of virtual hosts to the metadata table.

本发明实施例还提供一种通信设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序;其特征在于,所述处理器执行所述程序时实现如权利要求1-5任一项所述的异构虚拟计算资源的管理方法。An embodiment of the present invention also provides a communication device, including a memory, a processor, and a computer program stored on the memory and operable on the processor; it is characterized in that, when the processor executes the program, the The method for managing heterogeneous virtual computing resources according to any one of claims 1-5.

本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-5任一项所述的异构虚拟计算资源的管理方法中的步骤。An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, wherein when the program is executed by a processor, the heterogeneous virtual computing resource according to any one of claims 1-5 is realized steps in the management method.

上述技术方案中的一个技术方案具有如下优点或有益效果:One of the above technical solutions has the following advantages or beneficial effects:

本发明实施例,创建包括属性相同的多个虚拟主机的虚拟主机集合,并设置所述虚拟主机集合的属性信息;在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息。由于在所创建的虚拟主机集合的元数据表中添加了虚拟主机集合对应的集群节点信息和虚拟主机集合内的多个虚拟主机的节点信息,从而可以看到集群级别以下的主机级别的虚拟计算资源,降低了OpenStack对异构的虚拟计算资源池的管理复杂度。In the embodiment of the present invention, a virtual host set including multiple virtual hosts with the same attributes is created, and the attribute information of the virtual host set is set; the cluster corresponding to the virtual host set is added to the metadata table of the virtual host set Node information, and adding the node information of the plurality of virtual hosts in the metadata table. Since the cluster node information corresponding to the virtual host set and the node information of multiple virtual hosts in the virtual host set are added to the metadata table of the created virtual host set, virtual computing at the host level below the cluster level can be seen resources, reducing the complexity of OpenStack's management of heterogeneous virtual computing resource pools.

附图说明Description of drawings

图1为本发明实施例可应用的异构虚拟计算资源的管理系统的结构图;FIG. 1 is a structural diagram of a management system for heterogeneous virtual computing resources applicable to an embodiment of the present invention;

图2为本发明实施例提供的一种异构虚拟计算资源的管理方法的流程图;FIG. 2 is a flow chart of a method for managing heterogeneous virtual computing resources provided by an embodiment of the present invention;

图3为图2所示实施例提供的异构虚拟计算资源的管理方法的举例图;FIG. 3 is an example diagram of a method for managing heterogeneous virtual computing resources provided by the embodiment shown in FIG. 2;

图4为本发明实施例提供的另一种异构虚拟计算资源的管理方法的流程图;FIG. 4 is a flowchart of another method for managing heterogeneous virtual computing resources provided by an embodiment of the present invention;

图5为图4所示实施例提供的异构虚拟计算资源的管理方法的举例图之一;Fig. 5 is one of the exemplary diagrams of the method for managing heterogeneous virtual computing resources provided by the embodiment shown in Fig. 4;

图6为图4所示实施例提供的异构虚拟计算资源的管理方法的举例图之二;Fig. 6 is the second example diagram of the method for managing heterogeneous virtual computing resources provided by the embodiment shown in Fig. 4;

图7为本发明实施例提供的一种异构虚拟计算资源的管理装置的结构图之一;FIG. 7 is one of the structural diagrams of a device for managing heterogeneous virtual computing resources provided by an embodiment of the present invention;

图8为本发明实施例提供的一种异构虚拟计算资源的管理装置的结构图之二;FIG. 8 is the second structural diagram of a device for managing heterogeneous virtual computing resources provided by an embodiment of the present invention;

图9为本发明实施例提供的一种异构虚拟计算资源的管理装置的结构图之三;FIG. 9 is the third structural diagram of a device for managing heterogeneous virtual computing resources provided by an embodiment of the present invention;

图10为本发明实施例提供的一种通信设备的结构图。FIG. 10 is a structural diagram of a communication device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.

如图1所示,为本发明实施例可应用的一种异构虚拟计算资源的管理系统的结构图,包括OpenStack11和虚拟化系统12。其中,上述虚拟化系统12可以是VMware、hyper-v等可能以集群为单位对接到OpenStack上的虚拟化系统。对此,本发明不作限定。As shown in FIG. 1 , it is a structural diagram of a heterogeneous virtual computing resource management system applicable to the embodiment of the present invention, including OpenStack 11 and a virtualization system 12 . Wherein, the above-mentioned virtualization system 12 may be a virtualization system that may be connected to OpenStack in units of clusters, such as VMware and hyper-v. In this regard, the present invention is not limited.

如图2所示,本发明实施例提供一种异构虚拟计算资源的管理方法,包括以下步骤:As shown in Figure 2, an embodiment of the present invention provides a method for managing heterogeneous virtual computing resources, including the following steps:

步骤S201、创建包括属性相同的多个虚拟主机的虚拟主机集合,并设置所述虚拟主机集合的属性信息;Step S201, creating a virtual host set including multiple virtual hosts with the same attributes, and setting the attribute information of the virtual host set;

其中,上述虚拟主机可以是VMware数据中心的集群下的ESXi主机。上述多个虚拟主机可以位于同一个集群内。上述属性相同可以是指具有某一种共同属性,也可以是指具有某几种共同属性。上述属性信息可以是属性键值对。上述设置所述虚拟主机集合的属性信息可以是设置虚拟主机集合(host aggregate,HA)的属性键值对,比如设置虚拟主机集合的属性键值对为“使用图形处理器=真实(use Graphics Processing Unit=true,useGPU=true)”或者设置虚拟主机集合的属性键值对为“未使用图形处理器=假的(useGraphics Processing Unit=false,useGPU=false)。Wherein, the aforementioned virtual host may be an ESXi host under a cluster of a VMware data center. The above multiple virtual hosts can be located in the same cluster. The above attributes being the same may refer to having a certain common attribute, or may refer to having several common attributes. The above attribute information may be an attribute key-value pair. The attribute information of the above-mentioned setting of the virtual host aggregate may be setting the attribute key-value pair of the virtual host aggregate (host aggregate, HA), such as setting the attribute key-value pair of the virtual host aggregate as "use Graphics Processing Unit=true (use Graphics Processing Unit=true, useGPU=true)" or set the attribute key-value pair of the virtual host set as "unused graphics processing unit=false (useGraphics Processing Unit=false, useGPU=false).

步骤S202、在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息。Step S202, adding cluster node information corresponding to the virtual host set to the metadata table of the virtual host set, and adding node information of the plurality of virtual hosts to the metadata table.

其中,上述元数据表可以是供上述虚拟主机集合定义额外属性使用的聚合-元数据(aggregate-metadata)表。上述集群可以是VMware数据中心的集群。上述集群节点信息可以是集群的名称,也可以是集群的编号,还可以是其他能够被用于找到对应集群的集群节点信息。上述虚拟主机的节点信息可以是虚拟主机的名称,也可以是虚拟主机的IP,还可以是其他能够被用于找到对应虚拟主机的虚拟主机节点信息如虚拟主机的编号等。需要注意,同一个集群可以对应一个虚拟主机集合,也可以对应多个虚拟主机集合,对此本发明实施例不作限定。Wherein, the above-mentioned metadata table may be an aggregate-metadata (aggregate-metadata) table used for defining additional attributes of the above-mentioned virtual host set. The foregoing cluster may be a cluster of a VMware data center. The above cluster node information may be the name of the cluster, the number of the cluster, or other cluster node information that can be used to find the corresponding cluster. The above node information of the virtual host can be the name of the virtual host, the IP of the virtual host, or other virtual host node information that can be used to find the corresponding virtual host, such as the number of the virtual host. It should be noted that the same cluster may correspond to one virtual host set, or may correspond to multiple virtual host sets, which is not limited in this embodiment of the present invention.

这样,由于将虚拟主机集合对应的集群节点信息和虚拟主机集合内的多个虚拟主机的节点信息添加到了虚拟主机集合的元数据表中,使得在OpenStack中可以看到集群级别以下的主机级别虚拟计算资源,方便OpenStack对主机级别的虚拟计算资源进行管理,降低了OpenStack对异构的虚拟计算资源池的管理复杂度。同时,由于上述集群节点信息和虚拟主机的节点信息均是添加到元数据表内,所以上述信息两种信息的添加不会改变OpenStack原有数据库结构,即可以很好的兼容OpenStack原有的功能。In this way, because the cluster node information corresponding to the virtual host set and the node information of multiple virtual hosts in the virtual host set are added to the metadata table of the virtual host set, the host-level virtual machines below the cluster level can be seen in OpenStack Computing resources facilitate OpenStack's management of host-level virtual computing resources, reducing the complexity of OpenStack's management of heterogeneous virtual computing resource pools. At the same time, since the above cluster node information and virtual host node information are added to the metadata table, the addition of the above two information will not change the original database structure of OpenStack, that is, it can be well compatible with the original functions of OpenStack .

可选的,所述在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息之前,还包括:Optionally, before adding the cluster node information corresponding to the virtual host set in the metadata table of the virtual host set, and before adding the node information of the plurality of virtual hosts in the metadata table, include:

在所述虚拟主机集合的主机数据表中添加所述虚拟主机集合对应的计算节点的节点信息。Add node information of computing nodes corresponding to the virtual host set to the host data table of the virtual host set.

其中,上述主机数据表可以是聚合-主机(aggregate-host)表。上述计算节点可以是OpenStack中的计算服务器(nova-compute)节点,其中,OpenStack在与虚拟化系统进行对接时,可以通过计算服务器节点链接到虚拟化系统的中央服务器,且每一个计算服务器节点可以负责管理虚拟化系统的一个集群或者多个集群,例如一个OpenStack的计算服务器节点可以管理vmware的一个集群,也可以管理vmware的多个集群,但这多个集群应当在同一个VMware中央服务器(VMware vCenter Server,vCenter)的管辖之下。上述计算节点的节点信息可以是计算服务器节点的名称或者编号。Wherein, the above-mentioned host data table may be an aggregate-host (aggregate-host) table. The computing node mentioned above may be a computing server (nova-compute) node in OpenStack, wherein, when OpenStack is docked with the virtualization system, it can be linked to the central server of the virtualization system through the computing server node, and each computing server node can be Responsible for managing one or more clusters of the virtualization system, for example, an OpenStack computing server node can manage one cluster of vmware, and can also manage multiple clusters of vmware, but these multiple clusters should be on the same VMware central server (VMware vCenter Server, vCenter) under the jurisdiction. The above node information of the computing node may be the name or number of the computing server node.

以虚拟化系统为vmware进行举例,包括以下步骤:Take vmware as an example of the virtualization system, including the following steps:

分别创建6个包括属性相同的n(n为大于或者等于1的整数)个ESXi主机的ESXi主机集合,并设置所述ESXi主机集合的属性信息,同时将这6个ESXi主机集合分别命名为主机集合1-1、主机集合1-2、主机集合1-3、主机集合2-1、主机集合2-2、主机集合2-3;Create 6 ESXi host collections including n (n is an integer greater than or equal to 1) ESXi hosts with the same attributes, set the attribute information of the ESXi host collections, and name the 6 ESXi host collections as hosts respectively Collection 1-1, Host Collection 1-2, Host Collection 1-3, Host Collection 2-1, Host Collection 2-2, Host Collection 2-3;

分别在主机集合1-1、主机集合1-2、主机集合1-3的聚合-主机表中添加主机集合1-1、主机集合1-2、主机集合1-3对应的计算节点的节点信息“计算服务器1”,同时分别在主机集合2-1、主机集合2-2、主机集合2-3的聚合-主机表中添加主机集合2-1、主机集合2-2、主机集合2-3对应的计算节点的节点信息“计算服务器2”(主机集合和计算节点之间的对应关系参见图3);Add the node information of the computing nodes corresponding to host set 1-1, host set 1-2, and host set 1-3 in the aggregation-host table of host set 1-1, host set 1-2, and host set 1-3 respectively "Compute server 1", and add host set 2-1, host set 2-2, and host set 2-3 to the aggregation-host table of host set 2-1, host set 2-2, and host set 2-3 respectively The node information "computing server 2" of the corresponding computing node (refer to Figure 3 for the correspondence between the host set and the computing node);

在主机集合1-1的聚合-元数据表中添加其对应的集群节点信息“集群1-1”,在主机集合1-2的聚合-元数据表中添加其对应的集群节点信息“集群1-2”,在主机集合1-3的聚合-元数据表中添加其对应的集群节点信息“集群1-3”,在主机集合2-1的聚合-元数据表中添加其对应的集群节点信息“集群2-1”,在主机集合2-2的聚合-元数据表中添加其对应的集群节点信息“集群2-2”,在主机集合2-3的聚合-元数据表中添加其对应的集群节点信息“集群2-3”(主机集合和集群之间的对应关系参见图3);Add its corresponding cluster node information "cluster 1-1" in the aggregation-metadata table of host collection 1-1, and add its corresponding cluster node information "cluster 1" in the aggregation-metadata table of host collection 1-2 -2", add its corresponding cluster node information "cluster 1-3" in the aggregation-metadata table of host collection 1-3, and add its corresponding cluster node in the aggregation-metadata table of host collection 2-1 Information "cluster 2-1", add its corresponding cluster node information "cluster 2-2" in the aggregation-metadata table of host collection 2-2, add its corresponding cluster node information in the aggregation-metadata table of host collection 2-3 Corresponding cluster node information "cluster 2-3" (refer to Figure 3 for the correspondence between host sets and clusters);

分别在主机集合1-1、主机集合1-2、主机集合1-3、主机集合2-1、主机集合2-2、主机集合2-3的聚合-元数据表中添加其各自对应的n个ESXi主机的主机节点信息(主机集合和ESXi主机之间的对应关系参见图3)。Add their corresponding n in the aggregation-metadata table of host collection 1-1, host collection 1-2, host collection 1-3, host collection 2-1, host collection 2-2, and host collection 2-3 respectively Host node information of an ESXi host (refer to Figure 3 for the correspondence between host sets and ESXi hosts).

本发明实施例,创建包括属性相同的多个虚拟主机的虚拟主机集合,并设置所述虚拟主机集合的属性信息;在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息。由于在所创建的虚拟主机集合的元数据表中添加了虚拟主机集合对应的集群节点信息和虚拟主机集合内的多个虚拟主机的节点信息,从而可以看到集群级别以下的主机级别的虚拟计算资源,降低了OpenStack对异构的虚拟计算资源池的管理复杂度。In the embodiment of the present invention, a virtual host set including multiple virtual hosts with the same attributes is created, and the attribute information of the virtual host set is set; the cluster corresponding to the virtual host set is added to the metadata table of the virtual host set Node information, and adding the node information of the plurality of virtual hosts in the metadata table. Since the cluster node information corresponding to the virtual host set and the node information of multiple virtual hosts in the virtual host set are added to the metadata table of the created virtual host set, virtual computing at the host level below the cluster level can be seen resources, reducing the complexity of OpenStack's management of heterogeneous virtual computing resource pools.

如图4所示,本发明实施例还提供一种异构虚拟计算资源的管理方法,包括以下步骤:As shown in FIG. 4, the embodiment of the present invention also provides a method for managing heterogeneous virtual computing resources, including the following steps:

步骤S401、创建包括属性相同的多个虚拟主机的虚拟主机集合,并设置所述虚拟主机集合的属性信息;Step S401, creating a virtual host set including multiple virtual hosts with the same attributes, and setting attribute information of the virtual host set;

步骤S402、在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息。Step S402, adding cluster node information corresponding to the virtual host set to the metadata table of the virtual host set, and adding node information of the plurality of virtual hosts to the metadata table.

其中,上述步骤S401和步骤S402与图2所示实施例的步骤S201和步骤S202相同,因此对于上述步骤S401和步骤S402的理解可以参考图2所示实施例中对步骤S201和步骤S202的相关说明,此处不作赘述。Wherein, the above-mentioned step S401 and step S402 are the same as the step S201 and step S202 of the embodiment shown in FIG. description, and will not be repeated here.

步骤S403、设置虚拟机类型,并添加虚拟机属性要求;Step S403, setting the virtual machine type, and adding virtual machine attribute requirements;

其中,上述设置虚拟机类型可以是指设置创建虚拟机所需的各项参数如处理器核数、硬盘大小等,也可以是从预先设定好的多套虚拟机类型模板中直接选择,对此本发明不作限定。上述虚拟机属性要求可以是指用于部署虚拟机的虚拟主机所须具备的属性,具体可以是前述步骤S401中所述的属性信息。Wherein, the aforementioned setting of the virtual machine type may refer to setting various parameters required for creating a virtual machine, such as the number of processor cores, the size of a hard disk, etc., or it may be directly selected from multiple sets of preset virtual machine type templates. This invention is not limited. The aforementioned attribute requirements of the virtual machine may refer to the attributes required by the virtual host used to deploy the virtual machine, and specifically may be the attribute information described in the aforementioned step S401.

步骤S404、将所述虚拟机属性要求和所述虚拟主机集合的属性信息进行匹配,找出与所述虚拟机属性要求匹配的虚拟主机集合的属性信息对应的目标虚拟主机集合;Step S404, matching the virtual machine attribute requirement with the attribute information of the virtual host set, and finding a target virtual host set corresponding to the attribute information of the virtual host set matching the virtual machine attribute requirement;

其中,上述将所述虚拟机属性要求和所述虚拟主机集合的属性信息进行匹配可以是将虚拟机属性要求和虚拟主机集合的属性信息进行比对,如若二者一致,则确定二者是匹配的。Wherein, the aforementioned matching of the attribute requirements of the virtual machine with the attribute information of the virtual host set may be comparing the attribute information of the virtual machine attribute with the attribute information of the virtual host set, and if the two are consistent, then it is determined that the two match of.

步骤S405、根据所述虚拟机类型创建虚拟机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。Step S405, creating a virtual machine according to the virtual machine type, and deploying the virtual machine to multiple virtual hosts in the target virtual host set.

可选的,所述在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息之前,还包括:Optionally, before adding the cluster node information corresponding to the virtual host set in the metadata table of the virtual host set, and before adding the node information of the plurality of virtual hosts in the metadata table, include:

在所述虚拟主机集合的主机数据表中添加所述虚拟主机集合对应的计算节点的节点信息。Add node information of computing nodes corresponding to the virtual host set to the host data table of the virtual host set.

其中,上述主机数据表、计算节点及计算节点的节点信息的描述可以参照图2所示实施例中的相关说明,此处不作赘述。For the description of the above-mentioned host data table, computing node and node information of the computing node, reference may be made to the relevant description in the embodiment shown in FIG. 2 , and details are not repeated here.

可选的,所述将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上,包括:Optionally, deploying the virtual machine to multiple virtual hosts in the target virtual host set includes:

根据所述目标虚拟主机集合的集群节点信息和多个虚拟主机的节点信息,找到所述目标虚拟主机集合内的多个虚拟主机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。According to the cluster node information of the target virtual host set and the node information of multiple virtual hosts, find multiple virtual hosts in the target virtual host set, and deploy the virtual machine to the target virtual host set on multiple virtual hosts.

其中,上述根据所述目标虚拟主机集合的集群节点信息和虚拟主机的节点信息,找到所述目标虚拟主机集合内的多个虚拟主机可以是,首先根据目标虚拟主机集合的集群节点信息找到目标虚拟主机集合对应的集群,然后再根据多个虚拟主机的节点信息在对应的集群内找到对应的多个虚拟主机。Wherein, according to the cluster node information of the target virtual host set and the node information of the virtual host, finding multiple virtual hosts in the target virtual host set may be, firstly, finding the target virtual host according to the cluster node information of the target virtual host set Collect the corresponding clusters of the hosts, and then find the corresponding multiple virtual hosts in the corresponding clusters according to the node information of the multiple virtual hosts.

可选的,所述将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上,包括:Optionally, deploying the virtual machine to multiple virtual hosts in the target virtual host set includes:

根据所述目标虚拟主机集合的计算节点的节点信息、集群节点信息及多个虚拟主机的节点信息,找到所述目标虚拟主机集合内的多个虚拟主机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。Find multiple virtual hosts in the target virtual host set according to the node information of computing nodes, cluster node information, and node information of multiple virtual hosts in the target virtual host set, and deploy the virtual machine to the On multiple virtual hosts within the target virtual host collection.

其中,上述根据所述目标虚拟主机集合的计算节点的节点信息、集群节点信息及多个虚拟主机的节点信息,找到所述目标虚拟主机集合内的多个虚拟主机可以是,首先根据目标虚拟主机集合的计算节点的节点信息找到目标虚拟主机集合对应的计算节点,然后根据目标虚拟主机集合的集群节点信息在对应计算节点所接管的多个集群中找到目标虚拟主机集合对应的集群,最后再根据多个虚拟主机的节点信息在对应集群内找到对应的多个虚拟主机。Wherein, according to the above node information of computing nodes, cluster node information and node information of multiple virtual hosts in the target virtual host set, finding multiple virtual hosts in the target virtual host set may be, first, according to the target virtual host Find the computing node corresponding to the target virtual host set based on the node information of the collected computing nodes, and then find the cluster corresponding to the target virtual host set among multiple clusters taken over by the corresponding computing node according to the cluster node information of the target virtual host set, and finally according to The node information of multiple virtual hosts finds corresponding multiple virtual hosts in the corresponding cluster.

以虚拟化系统为vmware,且假设该vmware中的一个集群A中包括8个ESXi主机,其中主机名为A、B、C、D的四个ESXi主机均未使用图形处理器(Graphics Processing Unit,GPU),而主机名为E、F、G、H的四个ESXi主机均使用了GPU进行举例,包括以下步骤:Take the virtualization system as vmware, and assume that a cluster A in the vmware includes 8 ESXi hosts, and none of the four ESXi hosts with the hostnames A, B, C, and D uses a graphics processor (Graphics Processing Unit, GPU), and the four ESXi hosts whose host names are E, F, G, and H all use GPUs as an example, including the following steps:

如图5所示,创建两个名称分别为主机集合A-1和主机集合A-2的ESXi主机集合,并设置主机集合A-1的属性键值对为useGPU=false,设置主机集合A-2的属性键值对为useGPU=true;As shown in Figure 5, create two ESXi host collections named host collection A-1 and host collection A-2, and set the attribute key-value pair of host collection A-1 to useGPU=false, and set host collection A- The attribute key-value pair of 2 is useGPU=true;

在主机集合A-1的聚合-主机表中添加主机集合A-1对应的计算节点的节点信息“计算服务器3”,在主机集合A-2的聚合-主机表中添加主机集合A-2对应的计算节点的节点信息“计算服务器3”;Add the node information "computing server 3" of the computing node corresponding to host collection A-1 to the aggregation-host table of host collection A-1, and add the corresponding host collection A-2 to the aggregation-host table of host collection A-2 The node information of the computing node "computing server 3";

在主机集合A-1的聚合-元数据表中添加主机集合A-1对应的集群节点信息“集群A”,在主机集合A-2的聚合-元数据表中添加主机集合A-2对应的集群节点信息“集群A”;Add the cluster node information "cluster A" corresponding to host collection A-1 to the aggregation-metadata table of host collection A-1, and add the information corresponding to host collection A-2 to the aggregation-metadata table of host collection A-2 Cluster node information "cluster A";

在主机集合A-1的聚合-元数据表中添加其对应的4个ESXi主机的主机名称A、B、C、D,在主机集合A-2的聚合-元数据表中添加其对应的4个ESXi主机的主机名称E、F、G、H;Add the host names A, B, C, and D of the corresponding 4 ESXi hosts to the aggregation-metadata table of host collection A-1, and add the corresponding 4 ESXi host names to the aggregation-metadata table of host collection A-2 The host name E, F, G, H of each ESXi host;

设置创建虚拟机所需的各项参数包括处理器核数、硬盘大小等,并在OpenStack的虚拟机类型模板(flavor)中添加虚拟机属性要求useGPU=true;Set various parameters required to create a virtual machine, including the number of processor cores, hard disk size, etc., and add the virtual machine attribute requirement useGPU=true in the virtual machine type template (flavor) of OpenStack;

将虚拟机属性要求useGPU=true同主机集合A-1和主机集合A-2的属性键值对进行比对,根据主机集合A-2的属性键值对与虚拟机属性要求一致,找到目标ESXi主机集合——主机集合A-2;Compare the virtual machine property requirement useGPU=true with the property key-value pairs of host set A-1 and host set A-2, and find the target ESXi according to the property key-value pair of host set A-2 consistent with the virtual machine property requirements Host set - host set A-2;

根据前述设置的创建虚拟机所需的各项参数创建虚拟机,并根据主机集合A-2的计算节点的节点信息“计算服务器3”找到计算服务器3,通过计算服务器3上面的vmware-驱动(vmware-driver)链接到vmware的中央服务器上,而后根据主机集合A-2的集群节点信息“集群A”链接到集群A上,再根据主机集合A-2的4个ESXi主机的主机名称E、F、G、H链接到集群A内的4个ESXi主机E、F、G、H上(链接关系参见图6),将所述虚拟机部署到ESXi主机E、F、G、H上。Create a virtual machine according to the various parameters required for creating a virtual machine set above, and find the computing server 3 according to the node information "computing server 3" of the computing node of the host set A-2, and use the vmware-driver on the computing server 3 ( vmware-driver) to connect to the central server of vmware, and then link to cluster A according to the cluster node information "cluster A" of host collection A-2, and then according to the host names E, E, F, G, and H are linked to 4 ESXi hosts E, F, G, and H in cluster A (see FIG. 6 for the link relationship), and the virtual machines are deployed on ESXi hosts E, F, G, and H.

本发明实施例,创建包括属性相同的多个虚拟主机的虚拟主机集合,并设置所述虚拟主机集合的属性信息;在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息;创建虚拟机类型,并添加虚拟机属性要求;将所述虚拟机属性要求和所述虚拟主机集合的属性信息进行匹配,并将与所述虚拟机属性要求匹配的虚拟主机集合的属性信息对应的虚拟主机集合作为目标虚拟主机集合;根据虚拟机类型创建虚拟机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。由于在虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息和多个虚拟主机的节点信息,从而在不影响OpenStack现有数据库设计以及其他架构变更的前提下,可以看到集群级别以下的主机级别的虚拟计算资源,进而将需要特殊资源的虚拟机部署到具有特殊资源的主机上面,使得OpenStack对异构的虚拟计算资源进行更为灵活的调度,降低管理的复杂度。In the embodiment of the present invention, a virtual host set including multiple virtual hosts with the same attributes is created, and the attribute information of the virtual host set is set; the cluster corresponding to the virtual host set is added to the metadata table of the virtual host set Node information, and adding the node information of the plurality of virtual hosts in the metadata table; creating a virtual machine type, and adding virtual machine attribute requirements; combining the virtual machine attribute requirements with the attribute information of the virtual host set Perform matching, and use the virtual host set corresponding to the attribute information of the virtual host set matching the virtual machine attribute requirements as the target virtual host set; create a virtual machine according to the virtual machine type, and deploy the virtual machine to the target On multiple virtual hosts within a virtual host collection. Since the cluster node information corresponding to the virtual host set and the node information of multiple virtual hosts are added to the metadata table of the virtual host set, it can be seen without affecting the existing database design and other architectural changes of OpenStack Host-level virtual computing resources below the cluster level, and then deploy virtual machines that require special resources to hosts with special resources, enabling OpenStack to more flexibly schedule heterogeneous virtual computing resources and reduce management complexity.

如图7所示,本发明实施例提供一种异构虚拟计算资源的管理装置700,能实现前述各实施例中的异构虚拟计算资源的管理方法的细节,并达到相同的技术效果。该异构虚拟计算资源的管理装置700包括:As shown in FIG. 7 , an embodiment of the present invention provides a management device 700 for heterogeneous virtual computing resources, which can implement details of the methods for managing heterogeneous virtual computing resources in the foregoing embodiments and achieve the same technical effect. The device 700 for managing heterogeneous virtual computing resources includes:

创建模块701,用于创建包括属性相同的多个虚拟主机的虚拟主机集合,并设置所述虚拟主机集合的属性信息;Creating module 701, configured to create a virtual host set including multiple virtual hosts with the same attributes, and set the attribute information of the virtual host set;

第一信息添加模块702,用于在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息。The first information adding module 702 is configured to add cluster node information corresponding to the virtual host set to the metadata table of the virtual host set, and add node information of the plurality of virtual hosts to the metadata table .

可选的,如图8所示,所述装置700还包括:Optionally, as shown in FIG. 8, the device 700 further includes:

第二信息添加模块703,用于在所述虚拟主机集合的主机数据表中添加所述虚拟主机集合对应的计算节点的节点信息。The second information adding module 703 is configured to add node information of computing nodes corresponding to the virtual host set in the host data table of the virtual host set.

可选的,如图9所示,所述装置700还包括:Optionally, as shown in FIG. 9, the device 700 further includes:

设置模块704,用于设置虚拟机类型,并添加虚拟机属性要求;A setting module 704, configured to set the virtual machine type and add virtual machine attribute requirements;

匹配模块705,用于将所述虚拟机属性要求和所述虚拟主机集合的属性信息进行匹配,找出与所述虚拟机属性要求匹配的虚拟主机集合的属性信息对应的目标虚拟主机集合;A matching module 705, configured to match the attribute requirements of the virtual machine with the attribute information of the virtual host set, and find a target virtual host set corresponding to the attribute information of the virtual host set matching the virtual machine attribute requirement;

部署模块706,用于根据所述虚拟机类型创建虚拟机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。The deployment module 706 is configured to create a virtual machine according to the virtual machine type, and deploy the virtual machine to multiple virtual hosts in the target virtual host set.

可选的,所述部署模块706用于根据所述虚拟机类型创建虚拟机,并根据所述目标虚拟主机集合的集群节点信息和多个虚拟主机的节点信息,找到所述目标虚拟主机集合内的多个虚拟主机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。Optionally, the deploying module 706 is configured to create a virtual machine according to the virtual machine type, and find the virtual machine in the target virtual host set according to the cluster node information of the target virtual host set and the node information of multiple virtual hosts. multiple virtual hosts, and deploy the virtual machine to multiple virtual hosts in the target virtual host set.

可选的,所述部署模块706用于根据所述虚拟机类型创建虚拟机,并根据所述目标虚拟主机集合的计算节点的节点信息、集群节点信息及多个虚拟主机的节点信息,找到所述目标虚拟主机集合内的多个虚拟主机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。Optionally, the deploying module 706 is configured to create a virtual machine according to the type of the virtual machine, and find all multiple virtual hosts in the target virtual host set, and deploy the virtual machine to the multiple virtual hosts in the target virtual host set.

本发明实施例提供的异构虚拟计算资源的管理装置中,创建模块创建包括属性相同的多个虚拟主机的虚拟主机集合,并设置所述虚拟主机集合的属性信息;第一信息添加模块在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息。由于在所创建的虚拟主机集合的元数据表中添加了虚拟主机集合对应的集群节点信息和虚拟主机集合内的多个虚拟主机的节点信息,从而可以看到集群级别以下的主机级别的虚拟计算资源,降低了OpenStack对异构的虚拟计算资源池的管理复杂度。In the device for managing heterogeneous virtual computing resources provided by the embodiment of the present invention, the creation module creates a virtual host set including multiple virtual hosts with the same attributes, and sets the attribute information of the virtual host set; the first information adding module is in the Add the cluster node information corresponding to the virtual host set to the metadata table of the virtual host set, and add the node information of the plurality of virtual hosts to the metadata table. Since the cluster node information corresponding to the virtual host set and the node information of multiple virtual hosts in the virtual host set are added to the metadata table of the created virtual host set, virtual computing at the host level below the cluster level can be seen resources, reducing the complexity of OpenStack's management of heterogeneous virtual computing resource pools.

请参阅图10,图10是本发明实施例应用的通信设备的结构图。需要指出,该通信设备可以是服务器、电脑、手机、平板等网络设备,对此本发明不作限定。如图10所示,该通信设备1000包括:处理器1001、收发机1002、存储器1003、用户接口1004和总线接口,其中:Referring to FIG. 10 , FIG. 10 is a structural diagram of a communication device applied in an embodiment of the present invention. It should be pointed out that the communication device may be a network device such as a server, a computer, a mobile phone, a tablet, etc., which is not limited in the present invention. As shown in FIG. 10, the communication device 1000 includes: a processor 1001, a transceiver 1002, a memory 1003, a user interface 1004, and a bus interface, wherein:

处理器1001,用于读取存储器1003中的程序,执行下列过程:The processor 1001 is used to read the program in the memory 1003 and execute the following processes:

创建包括属性相同的多个虚拟主机的虚拟主机集合,并设置所述虚拟主机集合的属性信息;Create a virtual host set including multiple virtual hosts with the same attributes, and set the attribute information of the virtual host set;

在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息。Adding the cluster node information corresponding to the virtual host set to the metadata table of the virtual host set, and adding the node information of the plurality of virtual hosts to the metadata table.

其中,收发机1002,用于在处理器1001的控制下接收和发送数据。Wherein, the transceiver 1002 is used for receiving and sending data under the control of the processor 1001 .

在图10中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1001代表的一个或多个处理器和存储器1003代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机1002可以是多个元件,即包括发送机和接收机,提供用于在传输介质上与各种其他装置通信的单元。针对不同的用户设备,用户接口1004还可以是能够外接内接需要设备的接口,连接的设备包括但不限于小键盘、显示器、扬声器、麦克风、操纵杆等。In FIG. 10 , the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 1001 and various circuits of memory represented by memory 1003 are linked together. The bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, etc., which are well known in the art and therefore will not be further described herein. The bus interface provides the interface. Transceiver 1002 may be a plurality of elements, including a transmitter and a receiver, providing a means for communicating with various other devices over transmission media. For different user equipments, the user interface 1004 may also be an interface capable of connecting externally and internally to required equipment, and the connected equipment includes but not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.

处理器1001负责管理总线架构和通常的处理,存储器1003可以存储处理器1001在执行操作时所使用的数据。The processor 1001 is responsible for managing the bus architecture and general processing, and the memory 1003 can store data used by the processor 1001 when performing operations.

可选的,处理器1001还用于:Optionally, the processor 1001 is also used for:

在所述虚拟主机集合的主机数据表中添加所述虚拟主机集合对应的计算节点的节点信息。Add node information of computing nodes corresponding to the virtual host set to the host data table of the virtual host set.

可选的,处理器1001还用于:Optionally, the processor 1001 is also used for:

设置虚拟机类型,并添加虚拟机属性要求;Set the virtual machine type and add virtual machine attribute requirements;

将所述虚拟机属性要求和所述虚拟主机集合的属性信息进行匹配,找出与所述虚拟机属性要求匹配的虚拟主机集合的属性信息对应的目标虚拟主机集合;Matching the attribute requirements of the virtual machine with the attribute information of the virtual host set, and finding a target virtual host set corresponding to the attribute information of the virtual host set matching the virtual machine attribute requirement;

根据所述虚拟机类型创建虚拟机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。Create a virtual machine according to the virtual machine type, and deploy the virtual machine to multiple virtual hosts in the target virtual host set.

可选的,处理器1001执行的将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上,包括:Optionally, deploying the virtual machine to multiple virtual hosts in the target virtual host set performed by the processor 1001 includes:

根据所述目标虚拟主机集合的集群节点信息和多个虚拟主机的节点信息,找到所述目标虚拟主机集合内的多个虚拟主机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。According to the cluster node information of the target virtual host set and the node information of multiple virtual hosts, find multiple virtual hosts in the target virtual host set, and deploy the virtual machine to the target virtual host set on multiple virtual hosts.

可选的,处理器1001执行的将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上,包括:Optionally, deploying the virtual machine to multiple virtual hosts in the target virtual host set performed by the processor 1001 includes:

根据所述目标虚拟主机集合的计算节点的节点信息、集群节点信息及多个虚拟主机的节点信息,找到所述目标虚拟主机集合内的多个虚拟主机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。Find multiple virtual hosts in the target virtual host set according to the node information of computing nodes, cluster node information, and node information of multiple virtual hosts in the target virtual host set, and deploy the virtual machine to the On multiple virtual hosts within the target virtual host collection.

本发明实施例提供的通信设备,创建包括属性相同的多个虚拟主机的虚拟主机集合,并设置所述虚拟主机集合的属性信息;在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息。由于在所创建的虚拟主机集合的元数据表中添加了虚拟主机集合对应的集群节点信息和虚拟主机集合内的多个虚拟主机的节点信息,从而可以看到集群级别以下的主机级别的虚拟计算资源,降低了OpenStack对异构的虚拟计算资源池的管理复杂度。The communication device provided by the embodiment of the present invention creates a virtual host set including multiple virtual hosts with the same attributes, and sets the attribute information of the virtual host set; adds the virtual host in the metadata table of the virtual host set Gather the corresponding cluster node information, and add the node information of the plurality of virtual hosts in the metadata table. Since the cluster node information corresponding to the virtual host set and the node information of multiple virtual hosts in the virtual host set are added to the metadata table of the created virtual host set, virtual computing at the host level below the cluster level can be seen resources, reducing the complexity of OpenStack's management of heterogeneous virtual computing resource pools.

本领域普通技术人员可以理解实现上述实施例方法的全部或者部分步骤是可以通过程序指令相关的硬件来完成,所述的程序可以存储于一计算机可读存取介质中,该程序在执行时,包括以下步骤:Those of ordinary skill in the art can understand that all or part of the steps for realizing the methods of the above embodiments can be completed by hardware related to program instructions, and the program can be stored in a computer-readable access medium. When the program is executed, Include the following steps:

创建包括属性相同的多个虚拟主机的虚拟主机集合,并设置所述虚拟主机集合的属性信息;Create a virtual host set including multiple virtual hosts with the same attributes, and set the attribute information of the virtual host set;

在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息。Adding the cluster node information corresponding to the virtual host set to the metadata table of the virtual host set, and adding the node information of the plurality of virtual hosts to the metadata table.

可选的,所述在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息之前,还包括:Optionally, before adding the cluster node information corresponding to the virtual host set in the metadata table of the virtual host set, and before adding the node information of the plurality of virtual hosts in the metadata table, include:

在所述虚拟主机集合的主机数据表中添加所述虚拟主机集合对应的计算节点的节点信息。Add node information of computing nodes corresponding to the virtual host set to the host data table of the virtual host set.

可选的,所述在所述虚拟主机集合的元数据表中添加所述虚拟主机集合对应的集群节点信息,以及在所述元数据表中添加所述多个虚拟主机的节点信息之后,还包括:Optionally, after adding the cluster node information corresponding to the virtual host set in the metadata table of the virtual host set, and adding the node information of the plurality of virtual hosts in the metadata table, further include:

设置虚拟机类型,并添加虚拟机属性要求;Set the virtual machine type and add virtual machine attribute requirements;

将所述虚拟机属性要求和所述虚拟主机集合的属性信息进行匹配,找出与所述虚拟机属性要求匹配的虚拟主机集合的属性信息对应的目标虚拟主机集合;Matching the attribute requirements of the virtual machine with the attribute information of the virtual host set, and finding a target virtual host set corresponding to the attribute information of the virtual host set matching the virtual machine attribute requirement;

根据所述虚拟机类型创建虚拟机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。Create a virtual machine according to the virtual machine type, and deploy the virtual machine to multiple virtual hosts in the target virtual host set.

可选的,所述将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上,包括:Optionally, deploying the virtual machine to multiple virtual hosts in the target virtual host set includes:

根据所述目标虚拟主机集合的集群节点信息和多个虚拟主机的节点信息,找到所述目标虚拟主机集合内的多个虚拟主机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。According to the cluster node information of the target virtual host set and the node information of multiple virtual hosts, find multiple virtual hosts in the target virtual host set, and deploy the virtual machine to the target virtual host set on multiple virtual hosts.

可选的,所述将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上,包括:Optionally, deploying the virtual machine to multiple virtual hosts in the target virtual host set includes:

根据所述目标虚拟主机集合的计算节点的节点信息、集群节点信息及多个虚拟主机的节点信息,找到所述目标虚拟主机集合内的多个虚拟主机,并将所述虚拟机部署到所述目标虚拟主机集合内的多个虚拟主机上。Find multiple virtual hosts in the target virtual host set according to the node information of computing nodes, cluster node information, and node information of multiple virtual hosts in the target virtual host set, and deploy the virtual machine to the On multiple virtual hosts within the target virtual host collection.

所述的存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (12)

1. A method for managing heterogeneous virtual computing resources, comprising:
creating a virtual host set comprising a plurality of virtual hosts with the same attribute, and setting attribute information of the virtual host set, wherein the attribute information is an attribute key value pair;
adding cluster node information corresponding to the virtual host set in a metadata table of the virtual host set, and adding node information of the plurality of virtual hosts in the metadata table, wherein the metadata table is an aggregation-metadata table for the virtual host set to define additional attributes.
2. The method of claim 1, wherein adding cluster node information corresponding to the set of virtual hosts in the metadata table of the set of virtual hosts, and before adding the node information of the plurality of virtual hosts in the metadata table, further comprises:
and adding node information of the computing nodes corresponding to the virtual host set in a host data table of the virtual host set.
3. The method according to claim 1 or 2, wherein adding cluster node information corresponding to the set of virtual hosts in the metadata table of the set of virtual hosts, and adding node information of the plurality of virtual hosts in the metadata table, further comprises:
setting a virtual machine type and adding attribute requirements of the virtual machine;
matching the virtual machine attribute requirements with the attribute information of the virtual host set, and finding out a target virtual host set corresponding to the attribute information of the virtual host set matched with the virtual machine attribute requirements;
and creating a virtual machine according to the virtual machine type, and deploying the virtual machine to a plurality of virtual hosts in the target virtual host set.
4. The method of claim 3, wherein the deploying the virtual machine onto a plurality of virtual hosts within the set of target virtual hosts comprises:
and finding out a plurality of virtual hosts in the target virtual host set according to the cluster node information of the target virtual host set and the node information of the plurality of virtual hosts, and deploying the virtual machines to the plurality of virtual hosts in the target virtual host set.
5. The method of claim 3, wherein the deploying the virtual machine onto a plurality of virtual hosts within the set of target virtual hosts comprises:
and finding out a plurality of virtual hosts in the target virtual host set according to the node information of the computing nodes of the target virtual host set, the cluster node information and the node information of the plurality of virtual hosts, and deploying the virtual machines to the plurality of virtual hosts in the target virtual host set.
6. A management apparatus for heterogeneous virtual computing resources, comprising:
the device comprises a creation module, a storage module and a storage module, wherein the creation module is used for creating a virtual host set comprising a plurality of virtual hosts with the same attribute, setting attribute information of the virtual host set, and the attribute information is an attribute key value pair;
the first information adding module is configured to add cluster node information corresponding to the virtual host set in a metadata table of the virtual host set, and add node information of the multiple virtual hosts in the metadata table, where the metadata table is an aggregation-metadata table used by the virtual host set to define additional attributes.
7. The apparatus as recited in claim 6, further comprising:
and the second information adding module is used for adding node information of the computing nodes corresponding to the virtual host set into the host data table of the virtual host set.
8. The apparatus according to claim 6 or 7, further comprising:
the setting module is used for setting the type of the virtual machine and adding attribute requirements of the virtual machine;
the matching module is used for matching the virtual machine attribute requirement with the attribute information of the virtual host set and finding out a target virtual host set corresponding to the attribute information of the virtual host set matched with the virtual machine attribute requirement;
the deployment module is used for creating a virtual machine according to the virtual machine type and deploying the virtual machine to a plurality of virtual hosts in the target virtual host set.
9. The apparatus of claim 8, wherein the deployment module is configured to create a virtual machine according to the virtual machine type, find a plurality of virtual hosts in the target set of virtual hosts according to cluster node information of the target set of virtual hosts and node information of the plurality of virtual hosts, and deploy the virtual machine to the plurality of virtual hosts in the target set of virtual hosts.
10. The apparatus of claim 8, wherein the deployment module is configured to create a virtual machine according to the virtual machine type, find a plurality of virtual hosts in the target set of virtual hosts according to node information of computing nodes of the target set of virtual hosts, cluster node information, and node information of the plurality of virtual hosts, and deploy the virtual machine to the plurality of virtual hosts in the target set of virtual hosts.
11. A communication device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of managing heterogeneous virtual computing resources of any of claims 1-5 when the program is executed by the processor.
12. A computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the method for managing heterogeneous virtual computing resources of any of claims 1-5.
CN201710513659.0A 2017-06-29 2017-06-29 Management method of heterogeneous virtual computing resources, related equipment and storage medium Active CN109213565B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710513659.0A CN109213565B (en) 2017-06-29 2017-06-29 Management method of heterogeneous virtual computing resources, related equipment and storage medium
PCT/CN2018/091144 WO2019001280A1 (en) 2017-06-29 2018-06-13 Heterogeneous virtual computing resource management method, related device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710513659.0A CN109213565B (en) 2017-06-29 2017-06-29 Management method of heterogeneous virtual computing resources, related equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109213565A CN109213565A (en) 2019-01-15
CN109213565B true CN109213565B (en) 2023-08-11

Family

ID=64742726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710513659.0A Active CN109213565B (en) 2017-06-29 2017-06-29 Management method of heterogeneous virtual computing resources, related equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109213565B (en)
WO (1) WO2019001280A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108037977B (en) * 2017-12-08 2021-10-29 上海市信息网络有限公司 Virtual computer resource management method, device, computer medium, and system
CN111352701A (en) * 2020-03-05 2020-06-30 山东汇贸电子口岸有限公司 Method for arranging Redis cluster in Openstack environment
CN112579258A (en) * 2020-12-14 2021-03-30 科东(广州)软件科技有限公司 Virtual machine management method, device, equipment and storage medium
CN115080242A (en) * 2022-06-30 2022-09-20 济南浪潮数据技术有限公司 A method, device and medium for unified scheduling of PCI device resources
CN119847682B (en) * 2025-01-08 2025-10-14 中国科学院国家天文台 Resource node device and online scientific research platform for astronomical big data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521012A (en) * 2011-11-24 2012-06-27 华中科技大学 Virtual machine-based general processing unit (GPU) cluster management system
CN103036986A (en) * 2011-12-15 2013-04-10 微软公司 Update notification provided on distributed application object
CN104219318A (en) * 2014-09-15 2014-12-17 北京联创信安科技有限公司 Distributed file storage system and method thereof
CN104424013A (en) * 2013-08-26 2015-03-18 国际商业机器公司 Method and device for deploying virtual machine in computing environment
CN104506589A (en) * 2014-12-10 2015-04-08 上海爱数软件有限公司 Resource migration scheduling method based on super fusion storage
CN106354548A (en) * 2016-08-31 2017-01-25 天津南大通用数据技术股份有限公司 Virtual cluster creating and management method and device in distributed database system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080192643A1 (en) * 2007-02-13 2008-08-14 International Business Machines Corporation Method for managing shared resources
CN102143215B (en) * 2011-01-20 2013-04-10 中国人民解放军理工大学 Network-based PB level cloud storage system and processing method thereof
CN103701890A (en) * 2013-12-20 2014-04-02 浪潮(北京)电子信息产业有限公司 Virtual cluster processing method and system based on cloud computing
US9823842B2 (en) * 2014-05-12 2017-11-21 The Research Foundation For The State University Of New York Gang migration of virtual machines using cluster-wide deduplication
CN105471607A (en) * 2014-09-04 2016-04-06 中国石油化工股份有限公司 Tree-shaped monitoring method for large-scale cluster nodes dynamic information
US9778870B2 (en) * 2015-04-28 2017-10-03 Vmware, Inc. Power management for a distributed storage system accessible by a cluster in a virtualized computing environment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521012A (en) * 2011-11-24 2012-06-27 华中科技大学 Virtual machine-based general processing unit (GPU) cluster management system
CN103036986A (en) * 2011-12-15 2013-04-10 微软公司 Update notification provided on distributed application object
CN104424013A (en) * 2013-08-26 2015-03-18 国际商业机器公司 Method and device for deploying virtual machine in computing environment
CN104219318A (en) * 2014-09-15 2014-12-17 北京联创信安科技有限公司 Distributed file storage system and method thereof
CN104506589A (en) * 2014-12-10 2015-04-08 上海爱数软件有限公司 Resource migration scheduling method based on super fusion storage
CN106354548A (en) * 2016-08-31 2017-01-25 天津南大通用数据技术股份有限公司 Virtual cluster creating and management method and device in distributed database system

Also Published As

Publication number Publication date
WO2019001280A1 (en) 2019-01-03
CN109213565A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN116848528B (en) Technology for automatically configuring minimal cloud service access permissions for container applications
US11842322B2 (en) Smart contract interpreter
CN109213565B (en) Management method of heterogeneous virtual computing resources, related equipment and storage medium
US11429442B2 (en) Parallel and distributed computing using multiple virtual machines
US10693989B2 (en) Brokering services from partner cloud platforms
WO2019179453A1 (en) Virtual machine creation method and apparatus
CN104239122B (en) A kind of virtual machine migration method and device
WO2019057055A1 (en) Task processing method and apparatus, electronic device, and storage medium
JP2018523192A (en) Executing commands on virtual machine instances in distributed computing environments
WO2018040525A1 (en) Method, device, and equipment for processing resource pool
US20150195213A1 (en) Request distribution method and information processing apparatus
CN115002215B (en) Resource allocation model training method and resource allocation method for government and enterprises on the cloud
JP2017531844A (en) Dynamic update stream for real-time provisioning
CN107291880A (en) The creation method and device of a kind of resource graphics
CN108075917A (en) The management method and system of a kind of data center
US10341181B2 (en) Method and apparatus to allow dynamic changes of a replica network configuration in distributed systems
CN104423933B (en) A kind of cloud platform user interface adaptation method and adapter
CN112860455A (en) Life cycle event processing method and device and electronic equipment
CN105100180A (en) Cluster node dynamic loading method, device and system
US20190306257A1 (en) Cloud enabling resources as a service
CN107391044A (en) A kind of creation method and creating device of cloud hard disk
CN114860166A (en) Volume localization method, device and medium
CN113110920A (en) Operation method, device, equipment and storage medium of block chain system
CN114979141B (en) A task processing method, device, equipment and storage medium
CN114070889B (en) Configuration methods, traffic forwarding methods, equipment, storage media and program products

Legal Events

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