Movatterモバイル変換


[0]ホーム

URL:


CN108399106A - The method and apparatus for managing physical host - Google Patents

The method and apparatus for managing physical host
Download PDF

Info

Publication number
CN108399106A
CN108399106ACN201810167116.2ACN201810167116ACN108399106ACN 108399106 ACN108399106 ACN 108399106ACN 201810167116 ACN201810167116 ACN 201810167116ACN 108399106 ACN108399106 ACN 108399106A
Authority
CN
China
Prior art keywords
physical host
host
physical
tenant
dedicated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810167116.2A
Other languages
Chinese (zh)
Inventor
张吉海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN201810167116.2ApriorityCriticalpatent/CN108399106A/en
Publication of CN108399106ApublicationCriticalpatent/CN108399106A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请提供了一种管理物理主机的方法和装置。该方法包括:从公共资源池中,为第一租户分配第一物理主机集合,其中,公共资源池中包括至少两个物理主机,该至少两个物理主机用于处理多个租户的业务,第一物理主机集合包括公共资源池中的至少一个物理主机;为第一物理主机集合中的各物理主机配置第一标识信息,第一标识信息用于指示第一物理主机集合中的物理主机在第一时段内仅用于处理第一租户的业务;根据第一标识信息,控制第一物理主机集合中的物理主机进行业务处理。本申请通过为租户分配物理主机集合,可以租户单独地配置资源的超配比,提供用户体验。

The present application provides a method and device for managing a physical host. The method includes: allocating a first set of physical hosts to a first tenant from a public resource pool, wherein the public resource pool includes at least two physical hosts, and the at least two physical hosts are used to process services of multiple tenants, the first A physical host set includes at least one physical host in a public resource pool; first identification information is configured for each physical host in the first physical host set, and the first identification information is used to indicate that the physical host in the first physical host set is in the first It is only used to process the business of the first tenant within a period of time; according to the first identification information, the physical host in the first physical host set is controlled to process the business. In this application, by allocating a set of physical hosts to tenants, tenants can individually configure resource overprovision ratios to provide user experience.

Description

Translated fromChinese
管理物理主机的方法和装置Method and device for managing physical host

技术领域technical field

本申请涉及存储领域,更具体地,涉及一种管理物理主机的方法及装置。The present application relates to the field of storage, and more specifically, to a method and device for managing a physical host.

背景技术Background technique

随着云计算的不断成熟,越来越多的企业应用开始上云,由于各个企业应用对安全、稳定等能力存在特殊述求,导致公有云中存在不同形态的资源专属、安全隔离技术。With the continuous maturity of cloud computing, more and more enterprise applications have begun to migrate to the cloud. Because each enterprise application has special requirements for security and stability, there are different forms of resource-specific and security isolation technologies in the public cloud.

租户资源隔离技术是云资源逻辑隔离,但是这些租户的云资源仍然混合部署在相同的物理资源上,部署在同一台物理主机上的不同租户间虚拟机,会发生对物理主机上资源的争抢,导致这台物理主机上虚拟机性能下降。因此无法满足一些用户关于物理资源独享的述求。Tenant resource isolation technology is the logical isolation of cloud resources, but the cloud resources of these tenants are still mixed and deployed on the same physical resources, and virtual machines between different tenants deployed on the same physical host will compete for resources on the physical host , causing the performance of the virtual machine on this physical host to degrade. Therefore, it is impossible to meet the requirements of some users about the exclusive use of physical resources.

专属主机资源隔离是可以做到不同租户的虚拟机部署在不同的物理主机上,不同租户间虚拟机不会抢占物理资源。但是不同租户的相同类型专属主机是部署在相同的主机集群内,资源的超配比率是统一配置的,不能按租户独立配置。且专属主机上的虚拟机不支持高可用(High Availbility,HA)、反亲和策略部署。Dedicated host resource isolation means that virtual machines of different tenants can be deployed on different physical hosts, and virtual machines of different tenants will not seize physical resources. However, the same type of dedicated hosts of different tenants are deployed in the same host cluster, and the over-allocation ratio of resources is uniformly configured and cannot be configured independently for each tenant. And the virtual machine on the dedicated host does not support high availability (High Availability, HA), anti-affinity policy deployment.

因此,需要一种资源隔离技术,以使能够为租户独立配置资源的超配比。Therefore, there is a need for a resource isolation technique to enable the over-provisioning of resources to be independently configured for tenants.

发明内容Contents of the invention

本申请提供一种管理物理主机的方法和装置,能够使得主机集群在一定的时间段内仅处理一个租户的业务,从而能够在该时间段内为租户独立配置资源的超配比。The present application provides a method and device for managing physical hosts, which can enable a host cluster to process only one tenant's business within a certain period of time, so that tenants can independently configure resource overprovision ratios within this period of time.

第一方面,提供了一种管理物理主机的方法,该方法包括:从公共资源池中,为第一租户分配第一物理主机集合,其中,所述公共资源池中包括至少两个物理主机,所述至少两个物理主机用于处理多个租户的业务,所述第一物理主机集合包括所述公共资源池中的至少一个物理主机;为所述第一物理主机集合中的各物理主机配置第一标识信息,所述第一标识信息用于指示所述第一物理主机集合中的物理主机在第一时段内仅用于处理所述第一租户的业务;根据所述第一标识信息,控制所述第一物理主机集合中的物理主机进行业务处理。In a first aspect, a method for managing physical hosts is provided, the method comprising: allocating a first set of physical hosts to a first tenant from a public resource pool, wherein the public resource pool includes at least two physical hosts, The at least two physical hosts are used to process services of multiple tenants, the first set of physical hosts includes at least one physical host in the public resource pool; each physical host in the first set of physical hosts is configured First identification information, where the first identification information is used to indicate that the physical hosts in the first physical host set are only used to process the business of the first tenant within a first period of time; according to the first identification information, Control the physical hosts in the first set of physical hosts to perform service processing.

根据本申请实施例的管理物理主机的方法,通过为租户分配一个物理主机集合,并为该物理主机集合中的各物理主机配置标识信息,使得该物理主机集合中的各物理主机在一个时段内仅用于处理一个租户的业务,从而可以根据租户的业务需求,为租户单独配置资源的超配比。此外,当物理主机集合中包括多个物理主机时,可以保障租户的业务处理,能够实现高可用和反亲和策略。According to the method for managing physical hosts in the embodiment of the present application, by assigning a set of physical hosts to tenants and configuring identification information for each physical host in the set of physical hosts, each physical host in the set of physical hosts can be within a period of time It is only used to process the business of one tenant, so that the overprovision of resources can be individually configured for the tenant according to the business needs of the tenant. In addition, when the physical host set includes multiple physical hosts, the business processing of tenants can be guaranteed, and high availability and anti-affinity strategies can be implemented.

结合第一方面,在第一方面的某些实现方式中,所述第一标识信息包括第一映射关系信息和/或第二映射关系信息,其中,所述第一映射关系信息包括所述第一租户与所述第一物理主机集合中的各物理主机之间的映射关系信息,所述第二映射关系信息包括所述第一租户与所述第一物理主机集合之间的映射关系信息。With reference to the first aspect, in some implementation manners of the first aspect, the first identification information includes first mapping relationship information and/or second mapping relationship information, where the first mapping relationship information includes the first mapping relationship information Mapping relationship information between a tenant and each physical host in the first physical host set, the second mapping relationship information includes mapping relationship information between the first tenant and the first physical host set.

通过记录租户与物理主机集合,或者租户与物理主机集合中的各物理主机之间的映射关系信息,可以使得该物理主机集合在一定的时间段内仅属于租户,进而物理主机集合中的物理主机也仅供租户进行业务处理。By recording the mapping relationship information between tenants and physical host sets, or between tenants and physical hosts in the physical host set, the physical host set can only belong to tenants within a certain period of time, and then the physical hosts in the physical host set It is also only used by tenants for business processing.

结合第一方法,在第一方面的某些实现方式中,该方法还包括:接收所述第一租户发送的主机类型信息,所述主机类型信息用于指示所述第一租户所需要的物理主机的类型;以及,所述根据所述第一标识信息,控制所述第一物理主机集合中的物理主机进行业务处理,包括:根据所述第一标识信息和所述主机类型信息,确定目标物理主机,其中,所述目标物理主机属于所述第一物理主机集合,且所述目标物理主机的类型属于所述第一租户所需要的物理主机的类型。With reference to the first method, in some implementations of the first aspect, the method further includes: receiving host type information sent by the first tenant, where the host type information is used to indicate the physical The type of the host; and, according to the first identification information, controlling the physical hosts in the first physical host set to perform business processing includes: determining the target according to the first identification information and the host type information A physical host, wherein the target physical host belongs to the first physical host set, and the type of the target physical host belongs to the type of the physical host required by the first tenant.

通过预先记录的标识信息和租户所需的主机类型信息,可以在租户请求处理业务时,很快地确定为租户处理业务的目标物理主机。Through the pre-recorded identification information and the host type information required by the tenant, when the tenant requests to process the service, the target physical host for the tenant to process the service can be quickly determined.

结合第一方面,在第一方面的某些实现方式中,所述根据所述第一标识信息和所述主机类型信息,确定目标物理主机,包括:根据所述主机类型信息确定T个物理主机,所述T个物理主机中的每个物理主机的类型均属于所述第一租户所需要的物理主机的类型,其中,所述T为正整数;根据所述第一标识信息,从所述T个物理主机中确定所述目标物理主机。With reference to the first aspect, in some implementation manners of the first aspect, the determining the target physical host according to the first identification information and the host type information includes: determining T physical hosts according to the host type information , the type of each physical host in the T physical hosts belongs to the type of physical host required by the first tenant, wherein, the T is a positive integer; according to the first identification information, from the The target physical host is determined among the T physical hosts.

当租户在请求处理业务时,可以根据所需的物理主机类型确定多个物理主机,再根据第一标识信息,从多个符合类型的物理主机中确定目标物理主机。When a tenant requests to process a service, multiple physical hosts may be determined according to the type of the required physical host, and then a target physical host may be determined from multiple physical hosts conforming to the type according to the first identification information.

结合第一方面,在第一方面的某些实现方式中,所述根据所述第一标识信息和所述主机类型信息,确定目标物理主机,包括:根据所述主机类型信息,从所述第一物理主机集合中确定所述目标物理主机。With reference to the first aspect, in some implementation manners of the first aspect, the determining the target physical host according to the first identification information and the host type information includes: according to the host type information, from the second The target physical host is determined in a set of physical hosts.

通过主机类型和标识信息可以确定出物理主机集合,再进一步根据主机类型信息从物理主机集合中确定出符合条件的目标物理主机。A set of physical hosts can be determined through the host type and identification information, and then a qualified target physical host can be determined from the set of physical hosts according to the host type information.

结合第一方面,在第一方面的某些实现方式中,该方法还包括:接收所述第一租户发送的主机类型信息,所述主机类型信息用于指示所述第一租户所需要的物理主机的类型;以及,所述从公共资源池中,为第一租户分配第一物理主机集合,包括:根据所述主机类型信息,从公共资源池中,为第一租户分配第一物理主机集合,其中,所述第一物理主机集合中的每个物理主机的类型均属于所述第一租户所需要的物理主机的类型。With reference to the first aspect, in some implementations of the first aspect, the method further includes: receiving host type information sent by the first tenant, where the host type information is used to indicate the physical The type of the host; and, the allocating the first physical host set to the first tenant from the public resource pool includes: according to the host type information, allocating the first physical host set to the first tenant from the public resource pool , wherein the type of each physical host in the first set of physical hosts belongs to the type of physical host required by the first tenant.

根据租户的需求,为租户分配合适的物理主机,不仅可以保障租户的业务处理,而且可以提高物理主机的利用率。According to the needs of tenants, allocating suitable physical hosts to tenants can not only guarantee the business processing of tenants, but also improve the utilization rate of physical hosts.

结合第一方面,在第一方面的某些实现方式中,该方法还包括:获取第一指示信息,所述第一指示信息用于指示所述第一物理主机集合所对应的主机类型。With reference to the first aspect, in some implementation manners of the first aspect, the method further includes: acquiring first indication information, where the first indication information is used to indicate a host type corresponding to the first set of physical hosts.

根据指示信息可以确定出物理主机集合中各物理主机的类型,进而可以为租户确定合适的物理主机处理业务。According to the indication information, the type of each physical host in the physical host set can be determined, and then an appropriate physical host can be determined for the tenant to process services.

结合第一方面,在第一方面的某些实现方式中,所述第一物理主机集合中的各物理主机的主机类型相同。With reference to the first aspect, in some implementation manners of the first aspect, the host types of the physical hosts in the first physical host set are the same.

当第一物理主机集合中的物理主机类型一致时,不仅便于管理为租户进行业务处理的各类型的物理主机,且可以使得物理主机集合中的各物理主机支持高可用和反亲和策略,进一步保障租户的业务进行。When the physical hosts in the first physical host set are of the same type, it is not only convenient to manage various types of physical hosts that perform business processing for tenants, but also enables each physical host in the physical host set to support high availability and anti-affinity policies, further Safeguard tenants' business operations.

结合第一方面,在第一方面的某些实现方式中,所述业务为云存储业务。With reference to the first aspect, in some implementation manners of the first aspect, the service is a cloud storage service.

当业务为云存储业务时,通过为租户创建云硬盘,不仅可以使得租户的存储资源池专属,也可以使得租户的计算资源和存储资源物理隔离,进一步提高资源隔离的安全性。When the business is cloud storage, by creating a cloud hard disk for the tenant, not only can the tenant's storage resource pool be exclusive, but also the tenant's computing resources and storage resources can be physically isolated, further improving the security of resource isolation.

第二方面,提供了一种管理物理主机的装置,所述装置包括:存储器,用于存储计算机程序;处理器,用于执行所述存储器中存储的计算机程序,以使得所述装置执行如第一方面及各种实现方式中的任一种管理物理主机的方法。In a second aspect, an apparatus for managing a physical host is provided, and the apparatus includes: a memory configured to store computer programs; a processor configured to execute the computer programs stored in the memory, so that the apparatus performs as described in the first aspect. A method of managing a physical host in one aspect and any of the various implementations.

第三方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序代码,当所述计算机程序代码被处理器运行时,使得装置执行上述第一方面及其各种实现方式中的任一种管理物理主机的方法。In a third aspect, a computer program product is provided, and the computer program product includes: computer program code, when the computer program code is executed by a processor, the device executes the above-mentioned first aspect and its various implementations. Any method of managing physical hosts.

第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有程序,所述程序使得装置执行上述第一方面及其各种实现方式中的任一种管理物理主机的方法。或者说,该计算机可读存储介质用于储存为上述装置所用的计算机软件指令,其包含用于执行上述第一方面的方法所设计的程序。In a fourth aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores a program, and the program enables the device to execute any one of the above-mentioned first aspect and its various implementations to manage the physical host method. Or in other words, the computer-readable storage medium is used to store computer software instructions used by the above-mentioned device, which includes a program designed to execute the method of the above-mentioned first aspect.

第五方面,提供了一种芯片系统,该芯片系统包括处理器,用于支持装置实现上述第一方面中所涉及的功能,例如,确定第一映射关系和多个第二映射关系,并根据该第一映射关系和该第二映射关系,控制处理业务的物理主机。在一种可能的设计中,所述芯片系统还包括存储器,用于保存实现上述功能必要的程序指令和数据。In a fifth aspect, a chip system is provided, the chip system includes a processor, configured to support the device in realizing the functions involved in the above-mentioned first aspect, for example, determine a first mapping relationship and a plurality of second mapping relationships, and according to The first mapping relationship and the second mapping relationship control physical hosts that process services. In a possible design, the system-on-a-chip further includes a memory, configured to store program instructions and data necessary to realize the above-mentioned functions.

通过为租户分配一个物理主机集合,并为该物理主机集合中的各物理主机配置标识信息,使得该物理主机集合中的各物理主机在一个时段内仅用于处理一个租户的业务,从而可以根据租户的业务需求,为租户单独配置资源的超配比。此外,当物理主机集合中包括多个物理主机时,可以很好地进行资源隔离,保障租户的业务处理,能够实现高可用和反亲和策略。By assigning a physical host set to a tenant and configuring identification information for each physical host in the physical host set, each physical host in the physical host set is only used to process the business of one tenant in a period of time, so that it can be based on The business requirements of tenants, and the over-provisioning ratio of resources are individually configured for tenants. In addition, when multiple physical hosts are included in the physical host set, resource isolation can be performed well, business processing of tenants can be guaranteed, and high availability and anti-affinity strategies can be realized.

附图说明Description of drawings

图1是适用于本申请实施例的管理物理主机的方法和装置的系统架构的示意图;FIG. 1 is a schematic diagram of a system architecture of a method and device for managing a physical host applicable to an embodiment of the present application;

图2是租户间资源隔离的示意图;Figure 2 is a schematic diagram of resource isolation between tenants;

图3是专属主机资源隔离的示意图;Fig. 3 is a schematic diagram of dedicated host resource isolation;

图4是本申请一实施例的管理物理主机的方法的示意性框图;FIG. 4 is a schematic block diagram of a method for managing a physical host according to an embodiment of the present application;

图5是专属物理主机的架构图;Figure 5 is an architecture diagram of a dedicated physical host;

图6是本申请另一实施例的管理物理主机的方法的专属物理主机的发放流程图;FIG. 6 is a flow chart of issuing a dedicated physical host in a method for managing a physical host according to another embodiment of the present application;

图7是专属资源池的架构图;Figure 7 is a structural diagram of a dedicated resource pool;

图8是本申请再一实施例的管理物理主机的方法的专属资源池资源发放流程图;FIG. 8 is a flow chart of resource allocation in a dedicated resource pool of a method for managing a physical host according to yet another embodiment of the present application;

图9是本申请实施例的管理物理主机的装置的示意性框图;FIG. 9 is a schematic block diagram of an apparatus for managing a physical host according to an embodiment of the present application;

图10是本申请实施例的管理物理主机的装置的另一示意性结构图。FIG. 10 is another schematic structural diagram of an apparatus for managing a physical host according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below with reference to the accompanying drawings.

图1是本申请实施例的系统架构的示意性框图。Fig. 1 is a schematic block diagram of a system architecture of an embodiment of the present application.

如图1所示,该系统中的设备包括专属云(即,第一物理主机集合的一例)、虚拟机,还可以包括多租户共享主机、专属主机。在本申请实施例中,用三角形、方形和圆形分别表示不同的租户。As shown in FIG. 1 , devices in the system include a dedicated cloud (that is, an example of the first set of physical hosts), virtual machines, and may also include multi-tenant shared hosts and dedicated hosts. In this embodiment of the application, triangles, squares and circles are used to represent different tenants respectively.

本申请实施例可以适用于租户向公共资源池申请物理主机用于进行业务处理的场景。公共资源池中包括多个物理主机,用于为不同的租户提供服务。The embodiment of the present application may be applicable to a scenario where a tenant applies for a physical host from a public resource pool for business processing. The public resource pool includes multiple physical hosts to provide services for different tenants.

物理主机可以为租户进行业务处理,例如,创建虚拟机、创建云硬盘存储数据等。在本申请实施例中,以为租户创建虚拟机为例进行说明。Physical hosts can perform business processing for tenants, for example, create virtual machines, create cloud disks to store data, and so on. In this embodiment of the application, it is described as an example to create a virtual machine for a tenant.

下面对上述设备分别进行说明。The above-mentioned devices will be described respectively below.

1、多租户共享主机1. Multi-tenant shared hosting

多租户共享主机,即,多租户共享一台物理主机。如图所示,不同形状代表不同租户,不同租户创建的虚拟机不同,不同租户间不可见彼此的虚机,但是不同租户的虚拟机是可以部署在相同的物理主机上,即一台物理主机运行着多种形状的虚拟机。其中,租户是指在云计算环境中,通过云计算服务接口使用云计算提供的各类资源的用户。Multi-tenant shared host, that is, multiple tenants share a physical host. As shown in the figure, different shapes represent different tenants. Different tenants create different virtual machines. Different tenants cannot see each other's virtual machines. However, virtual machines of different tenants can be deployed on the same physical host, that is, a physical host. Virtual machines of various shapes are running. Wherein, a tenant refers to a user who uses various resources provided by cloud computing through a cloud computing service interface in a cloud computing environment.

图2示出了租户间资源隔离的示意图。如图2所示,公有云资源自身是通过项目(租户)进行资源隔离的,并且隔离的资源是云服务器、云硬盘等,租户间是逻辑间隔离,彼此间看不到云服务器、云硬盘等,但在物理资源层是不能进行隔离的。这意味着租户间的云服务器或云硬盘还是会发放到相同的物理资源上,因此存在如下问题:Fig. 2 shows a schematic diagram of resource isolation among tenants. As shown in Figure 2, public cloud resources themselves are isolated through projects (tenants), and the isolated resources are cloud servers, cloud hard disks, etc. Tenants are logically isolated, and cloud servers and cloud hard disks cannot be seen from each other. etc., but isolation cannot be performed at the physical resource layer. This means that the cloud servers or cloud hard disks between tenants will still be allocated to the same physical resources, so there are the following problems:

(1)运行在相同物理主机上的不同租户的虚拟机,对物理主机的资源存在抢占,例如其中一个租户的虚拟机运行业务导致CPU、总线IO压力大,导致物理机压力高,从而导致其他租户的虚拟机运行性能下降;(1) The virtual machines of different tenants running on the same physical host preempt the resources of the physical host. For example, one of the tenants’ virtual machines running business causes high pressure on CPU and bus IO, which leads to high pressure on the physical machine, which leads to other The running performance of the tenant's virtual machine is degraded;

(2)公共资源池资源存在超配,但租户不能对该超配系数进行调整,进而无法控制物理主机上发放云服务器的能力;(2) There is an over-allocation of resources in the public resource pool, but the tenant cannot adjust the over-allocation coefficient, and thus cannot control the ability to issue cloud servers on the physical host;

(3)在同一台物理主机上运行不同租户的虚拟机,当其中一个租户的虚拟机被攻击,其他租户的虚拟机也存在被攻击的威胁。(3) Running virtual machines of different tenants on the same physical host, when a virtual machine of one tenant is attacked, the virtual machines of other tenants may also be attacked.

因此,对于某类型的租户,例如,对业务安全性要求极高的租户,可能会在公有云资源中申请专属主机。Therefore, for certain types of tenants, for example, tenants with extremely high business security requirements, they may apply for dedicated hosts in public cloud resources.

2、专属主机2. Dedicated host

专属主机(Dedicated Host,DeH)是将一台计算主机或者物理主机专属于某个租户,只有专属主机的租户可以向该主机上发放云服务器,其他租户是不可以发放云服务器到该专属主机上的。专属主机能带来更多的可见性,能够控制实例在物理服务器上的放置方式,能够可靠地使用同一台物理服务器。专属主机资源只能专属于一个租户使用,这样可以做到与不同租户的物理资源隔离,进而避免租户间资源抢占或被攻击的风险。专属主机与公共物理主机是混合部署在一起的,所有租户的相同类型的专属主机都部署在同一个主机集群内,或者说,是在同一个公共资源池内,因此专属主机与公共物理主机是逻辑隔离的。Dedicated Host (Dedicated Host, DeH) is to dedicate a computing host or physical host to a certain tenant. Only the tenant of the dedicated host can issue cloud servers to the host, and other tenants cannot issue cloud servers to the dedicated host. of. Dedicated hosting brings more visibility, the ability to control how instances are placed on physical servers, and the ability to reliably use the same physical server. Dedicated host resources can only be used exclusively by one tenant, so that they can be isolated from the physical resources of different tenants, thereby avoiding the risk of resource preemption or attacks between tenants. Dedicated hosts and public physical hosts are mixed and deployed together. Dedicated hosts of the same type of all tenants are deployed in the same host cluster, or in the same public resource pool, so dedicated hosts and public physical hosts are logical Isolated.

图3示出了专属主机资源隔离的示意图。如图3所示,专属主机上运行的虚拟机都是相同的颜色,即专属主机上虚拟机都是同一个租户的。不同租户专属不同的计算主机,则专属主机资源在租户间是隔离的。所有相同类型的专属主机部署在同一个主机集群中,而公共主机按类型部署到公共的主机集群中。FIG. 3 shows a schematic diagram of dedicated host resource isolation. As shown in Figure 3, the virtual machines running on the dedicated host are all of the same color, that is, the virtual machines on the dedicated host belong to the same tenant. Different tenants own different computing hosts, and the dedicated host resources are isolated between tenants. All dedicated hosts of the same type are deployed in the same host cluster, while public hosts are deployed by type in a common host cluster.

由于在专属主机上创建的虚拟机是绑定物理主机的,另外物理部署上不存在特殊处理,因此存在如下问题:Since the virtual machine created on the dedicated host is bound to the physical host, and there is no special processing on the physical deployment, there are the following problems:

(1)所有的专属主机物理部署上与普通物理主机是混合在相同的机柜中,没有物理空间上的隔离,因此机柜不易管理;(1) All dedicated hosts are physically deployed in the same cabinet as common physical hosts, and there is no isolation in physical space, so the cabinets are not easy to manage;

(2)所有租户的专属主机都是部署在一个主机集群中,资源的超配比率是统一配置的,不能按租户独立配置;(2) The dedicated hosts of all tenants are deployed in a host cluster, and the resource overprovision ratio is uniformly configured and cannot be configured independently by tenants;

(3)专属主机上运行的虚拟机不能进行高可用(high availability,HA)和反亲和策略,无法保证用户业务的高可用性和稳定性。(3) Virtual machines running on dedicated hosts cannot perform high availability (HA) and anti-affinity strategies, and cannot guarantee high availability and stability of user services.

因此,本申请提出了一种专属云资源隔离的方法,在专属云资源隔离中,称专属主机为专属物理主机或专属计算主机,即,专属物理主机或专属计算主机是专属资源池中的专属主机。接下来具体描述。Therefore, this application proposes a method for isolating dedicated cloud resources. In dedicated cloud resource isolation, a dedicated host is called a dedicated physical host or a dedicated computing host, that is, a dedicated physical host or a dedicated computing host is a dedicated resource pool. host. Next, it will be described in detail.

3、专属云3. Dedicated cloud

专属云(Dedicated Cloud,DeC),基于物理资源池的专属管理,以满足企业用户对资源专属、隔离的需求,又为企业用户提供公用云上的各种服务能力,除了云资源租赁成本,无需其他不必要的成本投入。本申请提出的专属云资源隔离,可以提供的资源专属能力有:Dedicated Cloud (Dedicated Cloud, DeC), based on the dedicated management of physical resource pools, meets the needs of enterprise users for exclusive and isolated resources, and provides enterprise users with various service capabilities on the public cloud. In addition to the cost of cloud resource leasing, there is no need Other unnecessary cost input. The dedicated cloud resource isolation proposed in this application can provide resource-specific capabilities as follows:

计算专属资源池:租户可以专属弹性云服务(elastic cloud service,ECS)和裸金属服务(bare metal service,BMS)计算资源,发放虚拟机(virtual machine,VM)到专属ECS计算主机上,而裸金属服务器则发放到专属BMS计算主机上,不同租户间计算资源不会争抢。Dedicated resource pool for computing: Tenants can dedicate elastic cloud service (elastic cloud service, ECS) and bare metal service (bare metal service, BMS) computing resources, distribute virtual machines (virtual machine, VM) to dedicated ECS computing hosts, and Metal servers are assigned to dedicated BMS computing hosts, so there will be no competition for computing resources between different tenants.

存储专属资源池:租户可以专属存储服务器资源或存储阵列设备,不同租户的应用数据保存到不同的存储服务器或存储设备上,彼此间数据不可见。Dedicated resource pool for storage: Tenants can exclusively store server resources or storage array devices, and the application data of different tenants are stored on different storage servers or storage devices, and the data is not visible to each other.

虚拟私有云(virtual private cloud,VPC)网络专属:由于基于公有云架构,物理网络与公有云网络基本一致,则由VPC网络专属进行租户流量隔离。对于要求物理网络隔离的租户,可以进行管理网络与公有云一致,数据网络单独部署的形式进行专属。Virtual private cloud (virtual private cloud, VPC) network exclusive: Since it is based on the public cloud architecture, the physical network is basically the same as the public cloud network, and the VPC network is dedicated to isolate tenant traffic. For tenants who require physical network isolation, the management network can be consistent with the public cloud, and the data network can be deployed separately.

本申请提出的专属云资源隔离是每个租户专属一个资源池,即每个租户有专属资源池(即,第一物理主机集合的一例)。该专属资源池可以理解为是从公共资源池中划分的部分资源池。该专属资源池内包含多台物理主机,每个租户的专属物理主机与公共物理主机以及专属主机是在不同的资源池,不同租户间的资源池也是各自独立的。专属云同一个资源池内的虚拟机支持HA,也可以进行反亲和策略。专属云下不仅计算资源专属,也可以集成存储和网络资源专属能力,使得的整个基础设施即服务(Infrastructure as aService,IaaS)层资源全部可以专属。The dedicated cloud resource isolation proposed in this application is that each tenant has a dedicated resource pool, that is, each tenant has a dedicated resource pool (that is, an example of the first physical host set). The dedicated resource pool can be understood as a partial resource pool divided from the public resource pool. The dedicated resource pool contains multiple physical hosts. The dedicated physical hosts of each tenant are in different resource pools from the public physical hosts and the dedicated hosts. The resource pools between different tenants are also independent. The virtual machines in the same resource pool of the dedicated cloud support HA, and anti-affinity policies can also be implemented. Under the dedicated cloud, not only computing resources are exclusive, but also storage and network resource exclusive capabilities can be integrated, so that the entire infrastructure as a service (Infrastructure as a Service, IaaS) layer resources can be exclusive.

4、专属资源池4. Exclusive resource pool

专属资源池(即,第一物理主机集合的一例)包括公共资源池中的至少一个物理主机。如前所述,本申请实施例中,专属资源池中的专属物理主机与租户进行专属映射,使得整个资源池交付给映射的专属租户在一定的时间段内专属使用。专属资源池专属于一个租户,一个租户可以对应多个专属资源池。专属资源池中的物理主机或者专属主机也可以称为专属物理主机。The dedicated resource pool (ie, an example of the first set of physical hosts) includes at least one physical host in the public resource pool. As mentioned above, in the embodiment of this application, the dedicated physical host in the dedicated resource pool is mapped exclusively to the tenant, so that the entire resource pool is delivered to the mapped dedicated tenant for exclusive use within a certain period of time. A dedicated resource pool is dedicated to one tenant, and one tenant can correspond to multiple dedicated resource pools. A physical host in a dedicated resource pool or a dedicated host may also be called a dedicated physical host.

5、专属物理主机5. Dedicated physical host

物理主机,又称为计算主机,是相对于虚拟机而言的对实体计算机的称呼。物理主机是实际存在的硬件专用独立主机,可以用来创建运行虚拟机。A physical host, also known as a computing host, is a name for a physical computer as opposed to a virtual machine. A physical host is an actual hardware-dedicated independent host that can be used to create and run virtual machines.

在本申请实施例中,称专属资源池中的物理主机为专属物理主机。专属物理主机是从公共资源池中选择的部分物理主机。专属物理主机在一定的时间内为一个租户进行业务处理。In this embodiment of the present application, the physical hosts in the dedicated resource pool are referred to as dedicated physical hosts. Dedicated physical hosts are some physical hosts selected from the public resource pool. A dedicated physical host performs business processing for a tenant within a certain period of time.

6、虚拟机6. Virtual machine

虚拟机是指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统。其中,一个物理主机通过虚拟化技术被虚拟成了多个逻辑计算机,每一个逻辑计算机即是一个虚拟机。每个虚拟机可以运行不同的操作系统,因此,各个虚拟机的应用程序可以运行在相互独立的操作系统的空间内。A virtual machine refers to a complete computer system that is simulated by software and has complete hardware system functions and runs in a completely isolated environment. Wherein, a physical host is virtualized into multiple logical computers through virtualization technology, and each logical computer is a virtual machine. Each virtual machine can run a different operating system, therefore, the application programs of each virtual machine can run in spaces of independent operating systems.

需要说明的是,在本申请实施例中,一个物理主机上可以运行一个虚拟机。或者,一个物理主机上也可以运行多个虚拟机。本申请实施例对此并未作任何限定。It should be noted that, in the embodiment of the present application, one virtual machine may run on one physical host. Alternatively, multiple virtual machines can run on one physical host. The embodiment of the present application does not make any limitation on this.

下文结合图4至图8,对本申请实施例的用于创建虚拟机的方法的具体步骤和过程进行详细说明。The specific steps and processes of the method for creating a virtual machine according to the embodiment of the present application will be described in detail below with reference to FIG. 4 to FIG. 8 .

以下,为了便于理解和说明,不失一般性,以租户#A为例进行说明。In the following, for ease of understanding and description, without loss of generality, tenant #A is used as an example for description.

图4示出了根据本申请一实施例的管理物理主机的方法100的示意性框图。如图4所示,该方法100包括:Fig. 4 shows a schematic block diagram of a method 100 for managing a physical host according to an embodiment of the present application. As shown in Figure 4, the method 100 includes:

110,从公共资源池中,为第一租户分配第一物理主机集合,其中,所述公共资源池中包括至少两个物理主机,所述至少两个物理主机用于处理多个租户的业务,所述第一物理主机集合包括所述公共资源池中的至少一个物理主机;110. Allocate a first physical host set to a first tenant from a public resource pool, where the public resource pool includes at least two physical hosts, and the at least two physical hosts are used to process services of multiple tenants, The first set of physical hosts includes at least one physical host in the public resource pool;

120,为所述第一物理主机集合中的各物理主机配置第一标识信息,所述第一标识信息用于指示所述第一物理主机集合中的物理主机在第一时段内仅用于处理所述第一租户的业务;120. Configure first identification information for each physical host in the first physical host set, where the first identification information is used to indicate that the physical hosts in the first physical host set are only used for processing the business of the first tenant;

130,根据所述第一标识信息,控制所述第一物理主机集合中的物理主机进行业务处理。130. Control physical hosts in the first physical host set to perform service processing according to the first identification information.

通过为租户分配专属资源池(即,第一物理主机集合的一例),并为专属资源池中的专属物理主机(即,第一物理主机集合中的物理主机的一例)配置标识信息,使得专属资源池在一定的时段内仅供一个租户使用,不仅可以资源隔离,提升安全的能力,而且可以使得在该一定的时段内,单独地根据租户的业务需求设置资源的超配比。此外,当专属资源池中包括多个专属物理主机时,可以使得专属资源池内的物理主机主持HA与反亲和策略,保障租户的业务运行。By assigning a dedicated resource pool (that is, an example of the first physical host set) to the tenant, and configuring identification information for the dedicated physical host in the dedicated resource pool (that is, an example of the physical host in the first physical host set), the dedicated The resource pool can only be used by one tenant within a certain period of time, which can not only isolate resources and improve security capabilities, but also enable the over-provisioning of resources to be set independently according to the business needs of tenants within the certain period of time. In addition, when the dedicated resource pool includes multiple dedicated physical hosts, the physical hosts in the dedicated resource pool can host HA and anti-affinity policies to ensure the business operation of tenants.

接下来,详细介绍上述方法。Next, the above methods are described in detail.

可选地,接收所述第一租户发送的主机类型信息,所述主机类型信息用于指示所述第一租户所需要的物理主机的类型;以及,所述根据所述第一标识信息,控制所述第一物理主机集合中的物理主机进行业务处理,包括:根据所述第一标识信息和所述主机类型信息,确定目标物理主机,其中,所述目标物理主机属于所述第一物理主机集合,且所述目标物理主机的类型属于所述第一租户所需要的物理主机的类型。Optionally, receiving host type information sent by the first tenant, where the host type information is used to indicate the type of physical host required by the first tenant; and, according to the first identification information, controlling The physical host in the first physical host set performs service processing, including: determining a target physical host according to the first identification information and the host type information, wherein the target physical host belongs to the first physical host set, and the type of the target physical host belongs to the type of the physical host required by the first tenant.

具体地,如前所述,公共资源池中包括多个物理主机,该多个物理主机供多个租户进行业务处理。可选地,公共资源池中包括多个专属资源池,该专属资源池在一定的时间段内仅供一个租户使用。该一定的时间段可以是租户的业务从开始到结束的时间段;也可以是预设的时间段,例如,一年;或者,也可以是根据租户的权限配置一个时间段,本申请实施例对此不作限定。通过租户发送的主机类型信息,可以为租户分配合适的物理主机,从而不仅保障租户的业务,而且可以提高物理主机的使用率。Specifically, as mentioned above, the public resource pool includes multiple physical hosts, and the multiple physical hosts are used by multiple tenants for business processing. Optionally, the public resource pool includes multiple dedicated resource pools, and the dedicated resource pools are only used by one tenant within a certain period of time. The certain time period can be the time period from the beginning to the end of the tenant's business; it can also be a preset time period, for example, one year; or, it can also be a time period configured according to the tenant's authority. There is no limit to this. Through the host type information sent by the tenant, a suitable physical host can be allocated to the tenant, so as to not only guarantee the business of the tenant, but also improve the utilization rate of the physical host.

具体地,以租户#A请求创建虚拟机,该虚拟机用于为租户#A处理业务为例。不同业务需要的虚拟机配置类型不同,例如,对于ECS服务,不同配置类型的虚拟机,例如,分为通用计算型、高性能计算型等,不同配置类型的虚拟机对物理主机有不同的硬件配置要求。不同业务需要的裸金属服务器硬件配置也是不一样的,例如对于BMS服务,因此物理主机根据硬件配置是划分成不同类型的,主机类型就是支持创建的云服务器类型(Flavor)。租户#A基于业务需求申请至少一个物理主机,并选择物理主机的主机类型,从公共资源池中为租户#A选择至少一个物理主机,记为专属物理主机(即,第一物理主机集合中的物理主机的一例)。可选地,判断与主机类型匹配的专属资源池是否存在,若存在,则将专属物理主机加入到专属资源池中;若不存在,则先创建专属资源池,并将专属物理主机加入到专属资源池中。Specifically, take tenant #A requesting to create a virtual machine, and the virtual machine is used to process services for tenant #A as an example. Different types of virtual machine configurations are required by different businesses. For example, for ECS services, virtual machines of different configuration types, for example, are divided into general computing type, high performance computing type, etc. Virtual machines of different configuration types have different hardware requirements for physical hosts. configuration requirements. The hardware configuration of bare metal servers required by different businesses is also different. For example, for BMS services, physical hosts are divided into different types according to the hardware configuration. The host type is the cloud server type (flavor) that supports creation. Tenant #A applies for at least one physical host based on business requirements, and selects the host type of the physical host, selects at least one physical host for tenant #A from the public resource pool, and records it as a dedicated physical host (that is, the first physical host set) An example of a physical host). Optionally, it is determined whether a dedicated resource pool matching the host type exists, and if it exists, add the dedicated physical host to the dedicated resource pool; if not, create a dedicated resource pool first, and add the dedicated physical host to the dedicated resource pool in the resource pool.

可选地,专属资源池中的专属物理主机类型相同。具体地,租户#A在申请物理主机时,会选择物理主机的类型,租户#A可以申请多个同种类型的物理主机,也可以申请多个不同类型的物理主机。当租户#A申请多个不同类型的物理主机时,可以将同种类型的物理主机放在一个专属资源池中,这样不仅便于管理,而且可以使租户进行业务处理时,更加灵活地确定用于进行业务处理的物理主机。Optionally, the dedicated physical hosts in the dedicated resource pool are of the same type. Specifically, when tenant #A applies for a physical host, it will select the type of physical host. Tenant #A can apply for multiple physical hosts of the same type, or multiple physical hosts of different types. When tenant #A applies for multiple physical hosts of different types, the same type of physical hosts can be placed in a dedicated resource pool. A physical host for business processing.

应理解,由于资源池下的专属物理主机都专属于一个租户,因此该资源池也是专属于该租户的。不同的租户有各自的专属资源池,即使资源池类型相同,不同租户的专属资源池也是单独划分的。专属资源池中的专属物理主机在一定的时段内仅供租户#A进行业务处理。该一定的时段可以是业务从开始到结束的时间段,也可以是预先设定的最长期限,例如,一年期限,此处不作限定。It should be understood that since the dedicated physical hosts under the resource pool are all dedicated to a tenant, the resource pool is also dedicated to the tenant. Different tenants have their own dedicated resource pools. Even if the resource pools are of the same type, the dedicated resource pools of different tenants are divided separately. The dedicated physical hosts in the dedicated resource pool are only available to tenant #A for business processing within a certain period of time. The certain period of time may be the time period from the beginning to the end of the business, or a preset longest period, for example, a one-year period, which is not limited here.

为租户#A分配好专属物理主机后,会对专属物理主机配置标识信息,以指专属资源池中的专属物理主机在一定时段内仅用于处理租户#A的业务。After assigning a dedicated physical host to tenant #A, the dedicated physical host will be configured with identification information to indicate that the dedicated physical host in the dedicated resource pool is only used to process the business of tenant #A within a certain period of time.

可选地,所述第一标识信息包括第一映射关系信息和/或第二映射关系信息,其中,所述第一映射关系信息包括所述第一租户与所述第一物理主机集合中的每个物理主机之间的映射关系信息,所述第二映射关系信息包括所述第一租户与所述第一物理主机集合之间的映射关系信息;所述根据所述第一标识信息,控制所述第一物理主机集合中的物理主机进行业务处理,包括:根据所述第一映射关系信息和/或所述第二映射关系信息,控制所述第一物理主机集合中的物理主机进行业务处理。Optionally, the first identification information includes first mapping relationship information and/or second mapping relationship information, where the first mapping relationship information includes the first tenant and the first physical host set The mapping relationship information between each physical host, the second mapping relationship information includes the mapping relationship information between the first tenant and the first physical host set; according to the first identification information, the control The physical hosts in the first physical host set perform service processing, including: controlling the physical hosts in the first physical host set to perform service according to the first mapping relationship information and/or the second mapping relationship information deal with.

通过为专属资源池中的专属物理主机配置标识信息,使得专属资源池在一定的时段内仅供租户使用,不仅可以资源隔离,提升安全的能力,而且可以使得在该一定的时段内,单独地为租户设置资源的超配比。此外,当专属资源池中包括多个专属物理主机时,可以使得专属资源池内的物理主机主持HA与反亲和策略,保障租户的业务运行。By configuring the identification information for the dedicated physical host in the dedicated resource pool, the dedicated resource pool can only be used by tenants within a certain period of time, which can not only isolate resources and improve security capabilities, but also make it possible within the certain period of time. Set resource overprovisioning for tenants. In addition, when the dedicated resource pool includes multiple dedicated physical hosts, the physical hosts in the dedicated resource pool can host HA and anti-affinity policies to ensure the business operation of tenants.

可选地,根据所述主机类型信息确定T个物理主机,所述T个物理主机中的每个物理主机的类型均属于所述第一租户所需要的物理主机的类型,其中,所述T为正整数;根据所述第一标识信息,从所述T个物理主机中确定所述目标物理主机。Optionally, T physical hosts are determined according to the host type information, and the type of each physical host in the T physical hosts belongs to the type of the physical host required by the first tenant, where the T is a positive integer; the target physical host is determined from the T physical hosts according to the first identification information.

具体地,根据主机类型信息确定T个符合类型的物理主机,再根据第一标识,例如,第一映射关系信息,从T个物理主机中确定出目标物理主机。Specifically, T physical hosts conforming to the type are determined according to the host type information, and then the target physical host is determined from the T physical hosts according to the first identifier, for example, the first mapping relationship information.

可选地,所述根据所述第一标识信息和所述主机类型信息,确定目标物理主机,包括:根据所述主机类型信息,从所述第一物理主机集合中确定所述目标物理主机。Optionally, the determining the target physical host according to the first identification information and the host type information includes: determining the target physical host from the first set of physical hosts according to the host type information.

可选地,接收所述第一租户发送的主机类型信息,所述主机类型信息用于指示所述第一租户所需要的物理主机的类型;以及,所述从公共资源池中,为第一租户分配第一物理主机集合,包括:根据所述主机类型信息,从公共资源池中,为第一租户分配第一物理主机集合,其中,所述第一物理主机集合中的每个物理主机的类型均属于所述第一租户所需要的物理主机的类型。Optionally, receiving host type information sent by the first tenant, where the host type information is used to indicate the type of physical host required by the first tenant; and, the public resource pool is the first Allocating the first physical host set by the tenant includes: allocating the first physical host set to the first tenant from the public resource pool according to the host type information, wherein each physical host in the first physical host set The types belong to the type of the physical host required by the first tenant.

可选地,获取第一指示信息,所述第一指示信息用于指示所述第一物理主机集合所对应的主机类型。Optionally, first indication information is acquired, where the first indication information is used to indicate a host type corresponding to the first set of physical hosts.

具体地,当第一物理主机集合中包括多个类型的物理主机时,可以根据该指示信息,为租户从多个类型的物理主机中确定合适类型的物理主机。Specifically, when the first set of physical hosts includes multiple types of physical hosts, an appropriate type of physical host may be determined for the tenant from the multiple types of physical hosts according to the indication information.

接下来具体说明如何根据该标识信息确定专属物理主机或专属资源池,首先介绍第一映射关系信息。Next, how to determine the dedicated physical host or the dedicated resource pool according to the identification information will be described in detail. Firstly, the first mapping relationship information will be introduced.

可选地,该标识信息包括租户#A与专属物理主机之间的第一映射关系信息。Optionally, the identification information includes first mapping relationship information between the tenant #A and the dedicated physical host.

具体地,为租户分配好专属物理主机后,后台会在数据库中保存租户与专属物理主机之间的映射关系,主要字段为租户、物理主机、主机类型。并且如前所述,将专属物理主机加入到专属资源池中,并将资源池标记为主机类型名称。如图5所示,图5示出了专属物理主机的架构图。Specifically, after assigning a dedicated physical host to a tenant, the background will save the mapping relationship between the tenant and the dedicated physical host in the database. The main fields are tenant, physical host, and host type. And as mentioned above, add the dedicated physical host to the dedicated resource pool, and mark the resource pool with the host type name. As shown in FIG. 5, FIG. 5 shows an architecture diagram of a dedicated physical host.

如图5所示,租户#A申请的物理主机有物理主机01、物理主机02、物理主机03和物理主机04,其中物理主机01和物理主机02的主机类型是类型(Flavor)1,物理主机03和物理主机04的主机类型是Flavor2;租户#B申请的物理主机有物理主机05和物理主机06,其中物理主机05和物理主机06的主机类型也是Flavor1。如前所述,不同的租户有各自的专属资源池,即使资源池类型相同,不同租户的专属资源池也是单独划分的。因此,租户#A对应两个专属资源池,分别是租户#A Flavor1资源池、租户#A Flavor2资源池;租户#B对应一个专属资源池,租户#B Flavor1资源池。换句话说,在一定的时间段内,租户#A Flavor1资源池、租户#A Flavor2资源池仅用于处理租户#A的业务;租户#B Flavor1资源池仅用于处理租户#B的业务。As shown in Figure 5, the physical hosts applied by tenant #A include physical host 01, physical host 02, physical host 03, and physical host 04, where the host types of physical host 01 and physical host 02 are type (Flavor) 1, physical host The host types of 03 and physical host 04 are Flavor2; the physical hosts applied by tenant #B include physical host 05 and physical host 06, and the host types of physical host 05 and physical host 06 are also Flavor1. As mentioned above, different tenants have their own dedicated resource pools. Even if the resource pools are of the same type, the dedicated resource pools of different tenants are divided separately. Therefore, tenant #A corresponds to two dedicated resource pools, namely tenant #A Flavor1 resource pool and tenant #A Flavor2 resource pool; tenant #B corresponds to a dedicated resource pool, tenant #B Flavor1 resource pool. In other words, within a certain period of time, the resource pool of tenant #A Flavor1 and resource pool of tenant #A Flavor2 are only used to process the business of tenant #A; the resource pool of flavor1 of tenant #B is only used to process the business of tenant #B.

通过为租户分配专属资源池,能够根据租户的业务需求,为租户独立配置资源的超配比,提高租户的用户体验。By allocating dedicated resource pools to tenants, the overprovision of resources can be independently configured for tenants according to their business needs, improving the user experience of tenants.

可选地,接收所述第一租户发送的第一业务请求信息,所述第一业务请求信息包括第一业务所需的主机类型信息;根据所述主机类型信息确定T个物理主机,根据所述主机类型信息确定T个物理主机,所述T个物理主机中包括所述第一物理主机集合中的至少一个物理主机,其中,所述T为正整数;根据所述第一映射关系信息,确定所述第一物理主机集合中为所述第一租户处理所述第一业务的物理主机。Optionally, receiving the first service request information sent by the first tenant, the first service request information including host type information required by the first service; determining T physical hosts according to the host type information, and determining T physical hosts according to the The host type information determines T physical hosts, and the T physical hosts include at least one physical host in the first physical host set, where the T is a positive integer; according to the first mapping relationship information, Determine a physical host in the first set of physical hosts that processes the first service for the first tenant.

具体地,根据主机类型信息确定T个物理主机,该T个物理主机可能包括租户#A所对应的专属资源池中的专属物理主机、公共资源池中的物理主机、其他租户所对应的物理主机等。因此,根据租户#A与专属物理主机的映射关系,从该T个物理主机中选择属于租户#A所对应的专属资源池中的专属物理主机。其中,该专属物理主机不仅是租户#A的专属物理主机,也是业务处理所需的物理主机。Specifically, T physical hosts are determined according to the host type information, and the T physical hosts may include dedicated physical hosts in the dedicated resource pool corresponding to tenant #A, physical hosts in the public resource pool, and physical hosts corresponding to other tenants Wait. Therefore, according to the mapping relationship between the tenant #A and the dedicated physical host, the dedicated physical host belonging to the dedicated resource pool corresponding to the tenant #A is selected from the T physical hosts. Wherein, the dedicated physical host is not only a dedicated physical host of tenant #A, but also a physical host required for business processing.

或者,根据主机类型信息、第一映射关系信息或第二映射关系信息可以直接确定专属物理主机。Alternatively, the dedicated physical host may be directly determined according to the host type information, the first mapping relationship information, or the second mapping relationship information.

在本申请实施例中,可以通过专属物理主机与租户之间的映射关系,控制用于处理租户业务的物理主机。图6以租户#A请求创建虚拟机为例,示出了专属物理主机的发放过程。In the embodiment of the present application, the physical host used to process tenant services can be controlled through the mapping relationship between the dedicated physical host and the tenant. FIG. 6 shows the provisioning process of a dedicated physical host by taking tenant #A's request to create a virtual machine as an example.

610,租户#A向ECS/BMS应用程序编程接口(ECS/BMS Application ProgrammingInterface,ECS/BMS API)发送创建虚拟机请求信息,且租户#A发送该请求信息时,会选择要发放的虚拟机的类型。610. Tenant #A sends request information for creating a virtual machine to the ECS/BMS Application Programming Interface (ECS/BMS Application Programming Interface, ECS/BMS API), and when tenant #A sends the request information, it will select the virtual machine to be issued type.

620,ECS/BMS API负责响应租户的各种操作请求。620. The ECS/BMS API is responsible for responding to various operation requests of the tenant.

630,ECS/BMS调度程序(ECS/BMS Scheduler)负责选择合适的物理主机来发放云服务器或创建虚拟机。ECS/BMS API接收请求后,向ECS/BMS Scheduler发消息,进行过滤物理主机。其中,Instance Flavor过滤器(Filter)过滤出与云服务器与虚拟机类型匹配的资源池,过滤出与虚拟机flavor一致的物理主机(即,T个物理主机的一例),该物理主机中可能包括租户#A、租户#B以及公共资源池中的物理主机。再通过新增加的专属物理主机(Dedicate Compute Node)Filter根据租户#A与专属物理主机的映射关系过滤出租户#A专属的物理主机,这样从之前过滤出的相同flavor主机中过滤出当前租户#A的专属物理主机来;可选地,再通过计算资源(Compute Resource)Filter过滤出资源充足的专属物理主机。最后向选出来的专属物理主机发创建云服务器或虚拟机的消息。630. An ECS/BMS scheduler (ECS/BMS Scheduler) is responsible for selecting a suitable physical host to provision a cloud server or create a virtual machine. After receiving the request, the ECS/BMS API sends a message to the ECS/BMS Scheduler to filter the physical hosts. Among them, the Instance Flavor filter (Filter) filters out the resource pool that matches the type of the cloud server and the virtual machine, and filters out the physical host that is consistent with the flavor of the virtual machine (that is, an example of T physical hosts), which may include Tenant #A, tenant #B, and physical hosts in the common resource pool. Then use the newly added dedicated physical host (Dedicate Compute Node) Filter to filter the physical host dedicated to tenant #A according to the mapping relationship between tenant #A and dedicated physical host, so that the current tenant can be filtered from the same flavor hosts filtered out before# A’s dedicated physical host; optionally, use the Compute Resource (Compute Resource) Filter to filter out dedicated physical hosts with sufficient resources. Finally, send a message to the selected dedicated physical host to create a cloud server or virtual machine.

640,专属物理主机负责运行云服务器。专属物理主机接收到创建云服务器或虚拟机消息后,创建并启动云服务器或虚拟机。可选地,专属物理主机在创建云服务器前,需要先创建云服务器要使用的云硬盘,专属物理主机向专属存储服务(Dedicated StorageService,DSS)DSS发送创建云硬盘请求。640, the dedicated physical host is responsible for running the cloud server. After receiving the message of creating a cloud server or virtual machine, the dedicated physical host creates and starts the cloud server or virtual machine. Optionally, before creating the cloud server, the dedicated physical host needs to create a cloud hard disk to be used by the cloud server, and the dedicated physical host sends a request to create a cloud hard disk to a Dedicated Storage Service (DSS) DSS.

650,DSS服务接收到创建专属云硬盘,DSS Scheduler通过专属存储过滤器过滤选择专属存储,最后在专属存储上创建云硬盘过程。专属云中通过DSS服务管理专属存储。关于专属存储的管理模式,与专属物理主机的架构原来基本一致,也是通过租户与存储资源的映射关系进行管理的,此处不再对专属存储专属架构原理进行赘述。创建专属云硬盘的过程与虚拟机的发放过程基本相同,此处不再赘述。650, the DSS service receives the process of creating a dedicated cloud hard disk, and the DSS Scheduler filters and selects the dedicated storage through the dedicated storage filter, and finally creates a cloud hard disk on the dedicated storage. Dedicated storage is managed through the DSS service in the dedicated cloud. Regarding the management mode of dedicated storage, it is basically the same as the original architecture of dedicated physical hosts, and it is also managed through the mapping relationship between tenants and storage resources. The principle of dedicated storage dedicated architecture will not be described here. The process of creating a dedicated cloud hard disk is basically the same as the provisioning process of a virtual machine, and will not be repeated here.

660,专属物理主机等待专属云硬盘创建成功后,将专属云硬盘挂载到云服务器上,并启动云服务器。660. After the dedicated physical host waits for the dedicated cloud hard disk to be successfully created, mount the dedicated cloud hard disk to the cloud server, and start the cloud server.

基于ECS的HA触发机制,专属资源池内的云服务器故障后,也会在相同的条件下触发HA,然后重新按照以上调度流程,选择合适的专属物理主机启动故障云服务器。Based on the HA trigger mechanism of ECS, after a cloud server in the dedicated resource pool fails, HA will also be triggered under the same conditions, and then follow the above scheduling process again to select a suitable dedicated physical host to start the failed cloud server.

接下来描述第二映射关系信息。Next, the second mapping relation information is described.

可选地,该标识信息包括租户#A与专属资源池之间的第二映射关系信息。Optionally, the identification information includes second mapping relationship information between the tenant #A and the dedicated resource pool.

具体地,如前所述,租户#A申请专属物理主机时选择专属主机类型,申请成功后,后台判断与主机类型匹配的专属资源池是否存在,如果不存在,先创建专属资源池,将该资源池标记为主机类型名称,并保存租户与该专属资源池之间的映射关系,以及资源池与专属主机的映射关系保存到数据库中,再将专属物理主机加入到该资源池中,如果已存在匹配的专属资源池,则直接将专属物理主机加入到已存在的专属资源池中。Specifically, as mentioned above, tenant #A selects the dedicated host type when applying for a dedicated physical host. After the application is successful, the background judges whether a dedicated resource pool matching the host type exists. The resource pool is marked as the name of the host type, and the mapping relationship between the tenant and the dedicated resource pool, and the mapping relationship between the resource pool and the dedicated host are saved in the database, and then the dedicated physical host is added to the resource pool. If it already exists If there is a matching dedicated resource pool, the dedicated physical host will be directly added to the existing dedicated resource pool.

通过资源池与租户进行专属映射,使得整个资源池中的物理主机交付给映射的专属租户使用。如图7所示,图7示出了专属资源池的架构图。Through exclusive mapping between resource pools and tenants, the physical hosts in the entire resource pool are delivered to the mapped exclusive tenants. As shown in FIG. 7, FIG. 7 shows an architecture diagram of a dedicated resource pool.

从图7中可以看出,租户#A对应两个类型的资源池,分别是租户#A Flavor1资源池和租户#A Flavor2资源池;租户#B对应资源池类型为Flavor1的租户#B Flavor1资源池。租户#A Flavor1资源池中包括物理主机01和物理主机02,租户#A Flavor2资源池中包括物理主机03和物理主机04,这四个物理主机都是专属于租户#A的;租户#B Flavor1资源池中包括物理主机05和物理主机06,这两个物理主机都是专属于租户#B的。As can be seen from Figure 7, tenant #A corresponds to two types of resource pools, which are tenant #A Flavor1 resource pool and tenant #A Flavor2 resource pool; tenant #B corresponds to tenant #B Flavor1 resources whose resource pool type is Flavor1 pool. Tenant #A Flavor1 resource pool includes physical host 01 and physical host 02, tenant #A Flavor2 resource pool includes physical host 03 and physical host 04, these four physical hosts are exclusive to tenant #A; tenant #B Flavor1 The resource pool includes physical host 05 and physical host 06, both of which are dedicated to tenant #B.

从图7可以看出,数据库中会记录专属云租户与专属资源池的映射关系,主要字段为租户、资源池、资源池类型,另外还会保存资源池与专属计算主机的映射关系,主要字段为资源池、计算主机。As can be seen from Figure 7, the database will record the mapping relationship between dedicated cloud tenants and dedicated resource pools. The main fields are tenants, resource pools, and resource pool types. In addition, the mapping relationship between resource pools and dedicated computing hosts will be saved. The main fields These are resource pools and computing hosts.

需要说明的是,租户申请的不同类型的专属物理主机也可以放在同一个专属资源池内。It should be noted that different types of dedicated physical hosts applied by tenants can also be placed in the same dedicated resource pool.

可选地,接收所述第一租户发送的第二业务请求信息,所述第二业务请求信息包括第二业务所需的主机类型信息;根据所述主机类型信息确定M个物理主机集合,所述M个物理主机集合中包括所述第一物理主机集合,其中,所述M为正整数;根据所述第二映射关系信息,确定为所述第一租户处理所述第二业务的所述第一物理主机集合;确定所述第一物理主机集合中为所述第一租户处理所述第二业务的物理主机。Optionally, receiving the second service request information sent by the first tenant, the second service request information including host type information required by the second service; determining M physical host sets according to the host type information, the The M physical host sets include the first physical host set, wherein the M is a positive integer; according to the second mapping relationship information, it is determined that the first tenant processes the second business. A first set of physical hosts: determining a physical host in the first set of physical hosts that processes the second service for the first tenant.

具体地,根据主机类型信息确定的M个专属资源池,可能包括其他租户的专属资源池、公共资源池。故,根据映射关系从该M个专属资源池中确定租户#A对应的专属资源池,然后再从该专属资源池中确定出专属物理主机。Specifically, the M dedicated resource pools determined according to the host type information may include other tenants' dedicated resource pools and public resource pools. Therefore, the dedicated resource pool corresponding to tenant #A is determined from the M dedicated resource pools according to the mapping relationship, and then the dedicated physical host is determined from the dedicated resource pool.

可选地,所述确定所述第一物理主机集合中为所述第一租户处理第二业务的物理主机,包括:根据第三映射关系信息,确定所述第一物理主机集合中为所述第一租户处理第二业务的物理主机,其中,所述第三映射关系信息是预先记录的所述第一物理主机集合与所述第一物理主机集合中各物理主机之间的映射关系信息。Optionally, the determining the physical hosts in the first set of physical hosts that process the second service for the first tenant includes: according to the third mapping relationship information, determining the physical hosts in the first set of physical hosts that are the A physical host of the first tenant processing the second service, wherein the third mapping relationship information is pre-recorded mapping relationship information between the first set of physical hosts and each physical host in the first set of physical hosts.

具体地,专属资源池中包括多个专属物理主机,该多个专属物理主机包括第一专属物理主机,该第一专属物理主机是用于处理第二业务的物理主机。如前所述,租户#A在申请专属物理主机时,会记录专属资源池与专属物理主机之间的映射关系信息,根据该映射关系信息就可以进一步确定出第一专属物理主机。例如,当专属资源池中是同种类型的专属物理主机时,根据映射关系信息确定出专属资源池中的专属物理主机,那么这些专属物理主机都是所述的第一专属物理主机。又例如,当专属资源池中不是同种类型的专属物理主机时,可以预先记录专属资源池与多种类型的专属物理主机的映射关系,该映射关系的主要字段可以为资源池、物理主机、主机类型,进一步,根据该映射关系确定第一专属物理主机。Specifically, the dedicated resource pool includes multiple dedicated physical hosts, and the multiple dedicated physical hosts include a first dedicated physical host, where the first dedicated physical host is a physical host for processing the second service. As mentioned above, when tenant #A applies for a dedicated physical host, it will record the mapping relationship information between the dedicated resource pool and the dedicated physical host, and the first dedicated physical host can be further determined according to the mapping relationship information. For example, when there are dedicated physical hosts of the same type in the dedicated resource pool, and the dedicated physical hosts in the dedicated resource pool are determined according to the mapping relationship information, then these dedicated physical hosts are all the first dedicated physical hosts. For another example, when there are no dedicated physical hosts of the same type in the dedicated resource pool, the mapping relationship between the dedicated resource pool and multiple types of dedicated physical hosts can be recorded in advance. The main fields of the mapping relationship can be resource pool, physical host, The host type, further, determine the first dedicated physical host according to the mapping relationship.

在本申请实施例中,可以通过专属资源池与租户之间的映射关系,确定出专属资源池,进一步,再根据专属资源池与专属物理主机之间的映射关系控制用于业务处理的物理主机。图8以租户#A请求创建虚拟机为例,示出了专属资源池资源发放流程。In the embodiment of this application, the dedicated resource pool can be determined through the mapping relationship between the dedicated resource pool and the tenant, and further, the physical host used for business processing can be controlled according to the mapping relationship between the dedicated resource pool and the dedicated physical host . FIG. 8 shows a resource provisioning process of a dedicated resource pool by taking tenant #A's request to create a virtual machine as an example.

810,租户#A向ECS/BMS API发送创建虚拟机请求信息,且租户#A发送该请求信息时,会选择要发放的虚拟机的类型。810. Tenant #A sends request information for creating a virtual machine to the ECS/BMS API, and when tenant #A sends the request information, it selects the type of virtual machine to be issued.

820,ECS/BMS API负责响应租户的各种操作请求。820. The ECS/BMS API is responsible for responding to various operation requests of the tenant.

830,ECS/BMS Scheduler负责选择合适的物理主机来发放云服务器或创建虚拟机。ECS/BMS API接收请求后,向ECS/BMS Scheduler发消息,进行过滤物理主机。其中,Instance Flavor Filter过滤出与云服务器与虚拟机类型匹配的资源池,过滤出与虚拟机flavor一致的物理主机(即,T个物理主机的一例),该资源池中可能包括租户#A对应的资源池、租户#B对应的资源池,以及公共资源池。再通过新增加的专属资源池(DeC Pool)Filter根据租户#A与专属资源池的映射关系过滤出租户#A专属的资源池(即,第一资源池的一例),这样就可以从之前过滤出的多个资源池中过滤出当前租户#A的专属资源池;然后,再将该专属资源池中的专属物理主机查询出来,例如,可以通过资源池与物理主机之间的映射关系查询;可选地,再通过Compute Resource Filter过滤出资源充足的专属物理主机。最后向选出来的专属物理主机发创建云服务器或虚拟机的消息。830. The ECS/BMS Scheduler is responsible for selecting a suitable physical host to provision a cloud server or create a virtual machine. After receiving the request, the ECS/BMS API sends a message to the ECS/BMS Scheduler to filter the physical hosts. Among them, the Instance Flavor Filter filters out the resource pool that matches the type of the cloud server and the virtual machine, and filters out the physical hosts that match the flavor of the virtual machine (that is, an example of T physical hosts). This resource pool may include tenant #A corresponding The resource pool corresponding to tenant #B, and the public resource pool. Then use the newly added dedicated resource pool (DeC Pool) Filter to filter the resource pool dedicated to tenant #A (that is, an example of the first resource pool) according to the mapping relationship between tenant #A and the dedicated resource pool, so that you can filter from the previous Filter out the dedicated resource pool of the current tenant #A from multiple resource pools; then, query the dedicated physical host in the dedicated resource pool, for example, you can query through the mapping relationship between the resource pool and the physical host; Optionally, use the Compute Resource Filter to filter out dedicated physical hosts with sufficient resources. Finally, send a message to the selected dedicated physical host to create a cloud server or virtual machine.

840,专属物理主机负责运行云服务器。专属物理主机接收到创建云服务器或虚拟机消息后,创建并启动云服务器或虚拟机。可选地,专属物理主机在创建云服务器前,需要先创建云服务器要使用的云硬盘,专属物理主机向DSS API发送创建云硬盘请求。840, the dedicated physical host is responsible for running the cloud server. After receiving the message of creating a cloud server or virtual machine, the dedicated physical host creates and starts the cloud server or virtual machine. Optionally, before creating a cloud server, the dedicated physical host needs to create a cloud hard disk to be used by the cloud server, and the dedicated physical host sends a request to create a cloud hard disk to the DSS API.

850,DSS服务接收到创建专属云硬盘,过滤选择专属存储,最后在专属存储上创建云硬盘过程。此步同650类似,此处不再赘述。850. The DSS service receives a process of creating a dedicated cloud hard disk, filtering and selecting dedicated storage, and finally creating a cloud hard disk on the dedicated storage. This step is similar to 650 and will not be repeated here.

860,专属物理主机等待专属云硬盘创建成功后,将专属云硬盘挂载到云服务器上,并启动云服务器。860. After the dedicated physical host waits for the dedicated cloud hard disk to be successfully created, mount the dedicated cloud hard disk to the cloud server and start the cloud server.

应理解,在本申请实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, rather than the implementation process of the embodiment of the present application. constitute any limitation.

应理解,本申请实施例也可以结合第一映射关系信息和第二映射关系信息共同确定为租户进行业务处理的物理主机。It should be understood that in this embodiment of the present application, the first mapping relationship information and the second mapping relationship information may also be used to jointly determine a physical host that performs service processing as a tenant.

应理解,本申请实施例提供了两种资源专属策略:基于租户绑定计算节点/存储的专属策略;基于租户绑定计算资源池/存储的专属策略。It should be understood that the embodiment of the present application provides two resource-specific policies: a dedicated policy based on tenant-based binding of computing nodes/storage; and a dedicated policy based on tenant-based binding of computing resource pools/storage.

本申请实施例提供了两种计算资源的调度模式:专属计算主机模式:通过租户与专属计算主机关系调度资源的调度模式;专属计算资源池模式:通过租户与专属资源池关系调度资源的调度模式。The embodiment of this application provides two scheduling modes of computing resources: dedicated computing host mode: a scheduling mode for scheduling resources through the relationship between tenants and dedicated computing hosts; dedicated computing resource pool mode: a scheduling mode for scheduling resources through the relationship between tenants and dedicated resource pools .

本申请实施例,通过使得资源池在一定的时间段内专属于一个租户,包含计算资源池和存储资源池的专属,可以使得云服务器间和云硬盘间物理隔离,并且资源池内虚拟机支持HA与反亲和策略功能。进一步,专属云租户在专属资源池内既可以使用公有云通用能力,又可以进行资源隔离,提升安全的能力。In the embodiment of this application, by making the resource pool exclusive to a tenant within a certain period of time, including the exclusive use of computing resource pools and storage resource pools, it is possible to physically isolate cloud servers and cloud hard disks, and the virtual machines in the resource pool support HA with the anti-affinity policy function. Furthermore, dedicated cloud tenants can not only use public cloud general capabilities in the dedicated resource pool, but also isolate resources to improve security capabilities.

上文中结合图4至图8详细描述了本申请实施例的管理物理主机的方法,下面将结合图9至图10,详细描述根据本申请实施例的管理物理主机的装置。由于装置实施例可以执行上述方法,因此未详细描述的部分可以参见前面的方法实施例。The method for managing a physical host according to the embodiment of the present application is described in detail above with reference to FIG. 4 to FIG. 8 . The apparatus for managing a physical host according to the embodiment of the present application will be described in detail below with reference to FIG. 9 to FIG. 10 . Since the device embodiment can execute the above method, the parts not described in detail can refer to the previous method embodiment.

图9是本申请实施例的管理物理主机的装置的一示意性结构图。图9的装置900包括:FIG. 9 is a schematic structural diagram of an apparatus for managing a physical host according to an embodiment of the present application. The device 900 of FIG. 9 includes:

处理模块910,用于从公共资源池中,为第一租户分配第一物理主机集合,其中,所述公共资源池中包括至少两个物理主机,所述至少两个物理主机用于处理多个租户的业务,所述第一物理主机集合包括所述公共资源池中的至少一个物理主机;The processing module 910 is configured to allocate a first set of physical hosts to the first tenant from a public resource pool, wherein the public resource pool includes at least two physical hosts, and the at least two physical hosts are used to process multiple For tenant services, the first set of physical hosts includes at least one physical host in the public resource pool;

处理模块910,还用于为所述第一物理主机集合中的各物理主机配置第一标识信息,所述第一标识信息用于指示所述第一物理主机集合中的物理主机在第一时段内仅用于处理所述第一租户的业务The processing module 910 is further configured to configure first identification information for each physical host in the first physical host set, where the first identification information is used to indicate that the physical hosts in the first physical host set used only to handle the business of the first tenant

控制模块920,用于根据所述第一标识信息,控制所述第一物理主机集合中的物理主机进行业务处理。The control module 920 is configured to control the physical hosts in the first set of physical hosts to perform service processing according to the first identification information.

可选地,所述第一标识信息包括第一映射关系信息和/或第二映射关系信息,其中,所述第一映射关系信息包括所述第一租户与所述第一物理主机集合中的各物理主机之间的映射关系信息,所述第二映射关系信息包括所述第一租户与所述第一物理主机集合之间的映射关系信息。Optionally, the first identification information includes first mapping relationship information and/or second mapping relationship information, where the first mapping relationship information includes the first tenant and the first physical host set Mapping relationship information between physical hosts, the second mapping relationship information includes mapping relationship information between the first tenant and the first set of physical hosts.

可选地,装置900还包括接收模块930,用于接收所述第一租户发送的主机类型信息,所述主机类型信息用于指示所述第一租户所需要的物理主机的类型;以及,控制模块920用于:根据所述第一标识信息和所述主机类型信息,确定目标物理主机,其中,所述目标物理主语属于所述第一物理主机集合,且所述目标物理主机的类型属于所述第一租户所需要的物理主机的类型。Optionally, the apparatus 900 further includes a receiving module 930, configured to receive host type information sent by the first tenant, where the host type information is used to indicate the type of physical host required by the first tenant; and, control Module 920 is configured to: determine a target physical host according to the first identification information and the host type information, wherein the target physical host belongs to the first set of physical hosts, and the type of the target physical host belongs to all The type of physical host required by the first tenant.

可选地,控制模块920还用于:根据所述主机类型信息确定T个物理主机,所述T个物理主机中的每个物理主机的类型均属于所述第一租户所需要的物理主机的类型,其中,所述T为正整数;根据所述第一标识信息,从所述T个物理主机中确定所述目标物理主机。Optionally, the control module 920 is further configured to: determine T physical hosts according to the host type information, and the type of each physical host in the T physical hosts belongs to the physical host required by the first tenant. type, wherein, the T is a positive integer; according to the first identification information, the target physical host is determined from the T physical hosts.

可选地,控制模块920还用于:根据所述主机类型信息,从所述第一物理主机集合中确定所述目标物理主机。Optionally, the control module 920 is further configured to: determine the target physical host from the first set of physical hosts according to the host type information.

可选地,接收模块930还用于接收所述第一租户发送的主机类型信息,所述主机类型信息用于指示所述第一租户所需要的物理主机的类型;以及,处理模块910用于:根据所述主机类型信息,从公共资源池中,为第一租户分配第一物理主机集合,其中,所述第一物理主机集合中的每个物理主机的类型均属于所述第一租户所需要的物理主机的类型。Optionally, the receiving module 930 is further configured to receive host type information sent by the first tenant, where the host type information is used to indicate the type of physical host required by the first tenant; and, the processing module 910 is used to : According to the host type information, allocate a first physical host set to the first tenant from the public resource pool, wherein the type of each physical host in the first physical host set belongs to the type of the first tenant The type of physical host required.

可选地,接收模块930还用于:获取第一指示信息,所述第一指示信息用于指示所述第一物理主机集合所对应的主机类型。Optionally, the receiving module 930 is further configured to: acquire first indication information, where the first indication information is used to indicate a host type corresponding to the first set of physical hosts.

可选地,所述第一物理主机集合中的各物理主机的主机类型相同。Optionally, the host types of the physical hosts in the first set of physical hosts are the same.

可选地,所述业务为云存储业务。Optionally, the service is a cloud storage service.

图10是本申请实施例的管理物理主机的装置的一示意性结构图。FIG. 10 is a schematic structural diagram of an apparatus for managing a physical host according to an embodiment of the present application.

该装置1000包括:处理器和收发器,处理器和收发器相连,可选地,该装置1000还包括存储器,存储器与处理器相连,进一步可选地,该装置1000包括总线系统。其中,处理器、存储器和收发器可以通过总线系统相连,该存储器可以用于存储指令,该处理器用于执行该存储器存储的指令,以控制收发器接收信息或信号,使得装置1000执行上述图1系统和图4至图8方法中各动作或处理过程。该装置1000中各模块或单元分别用于执行上述图1系统和图4至图8方法中各动作或处理过程,这里,为了避免赘述,省略其详细说明。The device 1000 includes: a processor and a transceiver, the processor is connected to the transceiver, optionally, the device 1000 further includes a memory, and the memory is connected to the processor, further optionally, the device 1000 includes a bus system. Wherein, the processor, the memory, and the transceiver can be connected through a bus system, the memory can be used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive information or signals, so that the device 1000 executes the above-mentioned Figure 1 Each action or process in the system and the methods in Fig. 4 to Fig. 8 . Each module or unit in the apparatus 1000 is respectively used to execute each action or process in the above-mentioned system in FIG. 1 and the method in FIGS.

应注意,本申请实施例可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(ApplicationSpecific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable GateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be noted that the embodiments of the present application may be applied to or implemented by a processor. A processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above-mentioned method embodiments may be completed by an integrated logic circuit of hardware in a processor or instructions in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable GateArray, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.

可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory in the embodiments of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) And direct memory bus random access memory (DirectRambus RAM, DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.

应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" in this article is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B may mean: A exists alone, and A and B exist at the same time , there are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.

应理解,在本申请实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that in the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, rather than the implementation process of the embodiment of the present application. constitute any limitation.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (10)

CN201810167116.2A2018-02-282018-02-28The method and apparatus for managing physical hostPendingCN108399106A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810167116.2ACN108399106A (en)2018-02-282018-02-28The method and apparatus for managing physical host

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810167116.2ACN108399106A (en)2018-02-282018-02-28The method and apparatus for managing physical host

Publications (1)

Publication NumberPublication Date
CN108399106Atrue CN108399106A (en)2018-08-14

Family

ID=63095698

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810167116.2APendingCN108399106A (en)2018-02-282018-02-28The method and apparatus for managing physical host

Country Status (1)

CountryLink
CN (1)CN108399106A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110265029A (en)*2019-06-212019-09-20百度在线网络技术(北京)有限公司Speech chip and electronic equipment
CN110858161A (en)*2018-08-242020-03-03阿里巴巴集团控股有限公司Resource allocation method, device, system, equipment and medium
CN111881476A (en)*2020-07-282020-11-03平安科技(深圳)有限公司Object storage control method and device, computer equipment and storage medium
CN112019366A (en)*2019-05-312020-12-01北京金山云网络技术有限公司 Leasing method, device, cloud platform and readable storage medium of physical host
WO2025082284A1 (en)*2023-10-202025-04-24华为云计算技术有限公司Public cloud technology-based dedicated host configuration method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104348881A (en)*2013-08-082015-02-11中国电信股份有限公司Method and device for user resource partitioning in cloud management platform
CN106354544A (en)*2016-08-242017-01-25华为技术有限公司Virtual machine creating method and system and host
US20170351716A1 (en)*2016-06-072017-12-07Oracle International CorporationResource allocation for database provisioning

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104348881A (en)*2013-08-082015-02-11中国电信股份有限公司Method and device for user resource partitioning in cloud management platform
US20170351716A1 (en)*2016-06-072017-12-07Oracle International CorporationResource allocation for database provisioning
CN106354544A (en)*2016-08-242017-01-25华为技术有限公司Virtual machine creating method and system and host

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马佳琳: "《电子商务云计算》", 31 May 2017, 北京理工大学出版社*

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110858161A (en)*2018-08-242020-03-03阿里巴巴集团控股有限公司Resource allocation method, device, system, equipment and medium
CN110858161B (en)*2018-08-242023-05-12阿里巴巴集团控股有限公司Resource allocation method, device, system, equipment and medium
CN112019366A (en)*2019-05-312020-12-01北京金山云网络技术有限公司 Leasing method, device, cloud platform and readable storage medium of physical host
CN112019366B (en)*2019-05-312022-02-01北京金山云网络技术有限公司Leasing method and device of physical host, cloud platform and readable storage medium
CN110265029A (en)*2019-06-212019-09-20百度在线网络技术(北京)有限公司Speech chip and electronic equipment
CN111881476A (en)*2020-07-282020-11-03平安科技(深圳)有限公司Object storage control method and device, computer equipment and storage medium
CN111881476B (en)*2020-07-282023-07-28平安科技(深圳)有限公司Object storage control method, device, computer equipment and storage medium
WO2025082284A1 (en)*2023-10-202025-04-24华为云计算技术有限公司Public cloud technology-based dedicated host configuration method and apparatus

Similar Documents

PublicationPublication DateTitle
US11575748B2 (en)Data storage method and apparatus for combining different data distribution policies
JP6542810B2 (en) System and method for providing a work manager in a multi-tenant application server environment
CN108399106A (en)The method and apparatus for managing physical host
US8898402B1 (en)Assigning storage resources in a virtualization environment
EP3618352B1 (en)Virtual machine management
CN106354544A (en)Virtual machine creating method and system and host
US10776322B2 (en)Transformation processing for objects between storage systems
US10001926B2 (en)Management of extents for space efficient storage volumes by reusing previously allocated extents
US9858110B2 (en)Virtual credential adapter for use with virtual machines
US11573946B2 (en)Management of memory usage using usage analytics
CN104506635A (en)Fast and efficient cloud mainframe creating and matching method and system
CN104579740A (en)Method and system for managing virtual network ports
CN109995814A (en)Moving method and device, communication equipment, the storage medium of cloud host resource
CN107491354A (en)A kind of inter-virtual machine communication method and device based on shared drive
US11307900B2 (en)Adjustment of the number of central processing units to meet performance requirements of an I/O resource
US20190212924A1 (en)Sidefiles for management of data written via a bus interface to a storage controller during consistent copying of data
US9160705B2 (en)Identifier management
CN108270858A (en)A kind of private cloud framework and its data processing method based on API gateway
JP5492731B2 (en) Virtual machine volume allocation method and computer system using the method
US11675916B2 (en)Method and system for limiting data accessibility in composed systems
WO2017041650A1 (en)Method and device for extending distributed consistency service
CN109634524A (en)A kind of data partitioned allocation method, device and the equipment of data processing finger daemon
US10397130B2 (en)Multi-cloud resource reservations
CN104954452A (en)Dynamic cipher card resource control method in virtualization environment
CN108108227A (en)A kind of cloud computing management system and its method for managing virtual machine

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
AD01Patent right deemed abandoned
AD01Patent right deemed abandoned

Effective date of abandoning:20211112


[8]ページ先頭

©2009-2025 Movatter.jp