技术领域technical field
本公开涉及云计算领域,特别地,涉及一种云管理平台中的用户资源划分方法与装置。The present disclosure relates to the field of cloud computing, and in particular, to a method and device for dividing user resources in a cloud management platform.
背景技术Background technique
IaaS(Infrastructure as a Service,基础设施即服务)云管理平台统一底层计算、存储、网络等硬件设备作为硬件资源池,通过虚拟化的方式把硬件资源池中的硬件设备虚拟成不同的虚拟设备,从而为用户提供弹性的计算、存储、网络等服务。IaaS云管理平台充分利用了硬件资源,能够提高硬件设备的使用率。The IaaS (Infrastructure as a Service, infrastructure as a service) cloud management platform unifies the underlying computing, storage, network and other hardware devices as a hardware resource pool, and virtualizes the hardware devices in the hardware resource pool into different virtual devices through virtualization. In order to provide users with elastic computing, storage, network and other services. The IaaS cloud management platform makes full use of hardware resources and can improve the utilization rate of hardware devices.
IaaS云管理平台使用的虚拟化技术把硬件虚拟成多个虚拟硬件,虚拟化平台是加载在底层硬件与上层应用系统之间的一个软件系统,虚拟化平台在进行底层硬件虚拟化的过程中会造成一定的资源损耗,因此虚拟硬件在性能上与实际硬件有一定差距,在超配(即超出硬件设备处理能力)的情况下,由于上层应用系统对于底层资源的抢夺现象更严重,因此,虚拟的硬件与实际硬件的差距更为严重。The virtualization technology used by the IaaS cloud management platform virtualizes the hardware into multiple virtual hardware. The virtualization platform is a software system loaded between the underlying hardware and the upper application system. Causes certain resource loss, so there is a certain gap between virtual hardware and actual hardware in performance. The gap between the actual hardware and the actual hardware is even more serious.
而且,在当前市场中存在较多IaaS云服务提供商在超配情况下继续对硬件进行虚拟并提供给用户使用的现象,导致IaaS云服务使用群体中产生这样的特殊需求:使用固定的计算资源池用于创建虚拟机,只需为固定的计算资源池付费,从而避免使用云服务提供商在超配情况下提供的虚拟机。但是,目前的IaaS云管理平台领域暂无解决这样特殊需求的方法。Moreover, in the current market, there are many IaaS cloud service providers who continue to virtualize hardware and provide it to users in the case of over-provisioning, resulting in such a special demand among IaaS cloud service users: use fixed computing resources Pools are used to create virtual machines, and you only need to pay for a fixed pool of computing resources, thereby avoiding the use of virtual machines provided by cloud service providers under overprovisioning. However, the current IaaS cloud management platform field does not have a solution to such special needs.
发明内容Contents of the invention
本公开鉴于以上问题中的至少一个提出了新的技术方案。The present disclosure proposes a new technical solution in view of at least one of the above problems.
本公开在其一个方面提供了一种云管理平台中的用户资源划分方法,其可以为用户提供满足需求的私有资源池。In one aspect, the present disclosure provides a method for dividing user resources in a cloud management platform, which can provide users with private resource pools that meet requirements.
本公开在其另一方面提供了一种云管理平台中的用户资源划分装置,其可以为用户提供满足需求的私有资源池。Another aspect of the present disclosure provides a device for dividing user resources in a cloud management platform, which can provide users with private resource pools that meet requirements.
根据本公开,提供一种云管理平台中的用户资源划分方法,包括:According to the present disclosure, a method for dividing user resources in a cloud management platform is provided, including:
接收用户提出的申请使用私有资源池的请求;Receive a request from a user to apply for using a private resource pool;
判断公有资源池中是否具有足够为用户分配的资源;Determine whether there are enough resources allocated to users in the public resource pool;
如具有,则在公有资源池中选取符合用户需求的物理服务器;If yes, select a physical server that meets the user's needs from the public resource pool;
将选取出的物理服务器上的虚拟机迁移到公有资源池中的其他物理服务器上;Migrate the virtual machines on the selected physical server to other physical servers in the public resource pool;
在资源归属者ID表中,将选取出的物理服务器的资源归属者ID从全局ID修改为用户的ID,并告知用户已为其成功分配了私有资源池。In the resource owner ID table, change the resource owner ID of the selected physical server from the global ID to the user ID, and inform the user that the private resource pool has been successfully allocated to the user.
在本公开的一些实施例中,该方法还包括:In some embodiments of the present disclosure, the method also includes:
预先将资源归属者ID表中的所有物理服务器的资源归属者ID初始化为全局ID。Initialize resource owner IDs of all physical servers in the resource owner ID table as global IDs in advance.
在本公开的一些实施例中,该方法还包括:In some embodiments of the present disclosure, the method also includes:
接收用户发起的创建虚拟机的请求;Receive a request from a user to create a virtual machine;
根据请求查询用户所使用的资源池类型;Query the resource pool type used by the user according to the request;
根据用户所使用的资源池类型和用户ID在资源归属者ID表中查询对应的私有资源池;Query the corresponding private resource pool in the resource owner ID table according to the resource pool type and user ID used by the user;
在查询出的私有资源池中选取物理服务器,并在选取出的物理服务器上创建用户请求的虚拟机。Select a physical server from the queried private resource pool, and create a virtual machine requested by the user on the selected physical server.
在本公开的一些实施例中,用户提出的申请使用私有资源池的请求中包括所需物理服务器的参数。In some embodiments of the present disclosure, the user's request for using the private resource pool includes parameters of the required physical server.
在本公开的一些实施例中,所需物理服务器的参数包括对CPU、存储、网络以及内存的配置要求。In some embodiments of the present disclosure, the required physical server parameters include configuration requirements for CPU, storage, network, and memory.
在本公开的一些实施例中,用户发起的创建虚拟机的请求中包括用户的ID和所使用的资源池类型。In some embodiments of the present disclosure, the request initiated by the user to create a virtual machine includes the ID of the user and the resource pool type used.
根据本公开,还提供了一种云管理平台中的用户资源划分装置,包括:According to the present disclosure, there is also provided a device for dividing user resources in a cloud management platform, including:
请求接收单元,用于接收用户提出的申请使用私有资源池的请求;A request receiving unit, configured to receive a request from a user to apply for using a private resource pool;
资源判断单元,用于判断公有资源池中是否具有足够为用户分配的资源;A resource judging unit, configured to judge whether there are enough resources allocated to users in the public resource pool;
私有资源确定单元,用于如具有,则在公有资源池中选取符合用户需求的物理服务器;The private resource determination unit is used to select a physical server that meets the user's needs in the public resource pool if there is one;
虚拟机迁移单元,用于将选取出的物理服务器上的虚拟机迁移到公有资源池中的其他物理服务器上;The virtual machine migration unit is used to migrate the virtual machine on the selected physical server to other physical servers in the public resource pool;
资源归属ID更新单元,用于在资源归属者ID表中,将选取出的物理服务器的资源归属者ID从全局ID修改为用户的ID,并告知用户已为其成功分配了私有资源池。The resource attribution ID updating unit is used to modify the resource attribution ID of the selected physical server from the global ID to the user's ID in the resource attribution ID table, and inform the user that the private resource pool has been successfully allocated to the user.
在本公开的一些实施例中,该装置还包括:In some embodiments of the present disclosure, the device also includes:
初始化单元,用于预先将资源归属者ID表中的所有物理服务器的资源归属者ID初始化为全局ID。The initialization unit is configured to pre-initialize resource owner IDs of all physical servers in the resource owner ID table as global IDs.
在本公开的一些实施例中,请求接收单元还用于接收用户发起的创建虚拟机的请求,该装置还包括:In some embodiments of the present disclosure, the request receiving unit is further configured to receive a request initiated by a user to create a virtual machine, and the device further includes:
用户资源类型查询单元,用于根据请求查询用户所使用的资源池类型;The user resource type query unit is used to query the resource pool type used by the user according to the request;
用户资源范围查询单元,用于根据用户所使用的资源池类型和用户ID在资源归属者ID表中查询对应的私有资源池;The user resource range query unit is used to query the corresponding private resource pool in the resource owner ID table according to the type of resource pool used by the user and the user ID;
虚拟机创建单元,用于在查询出的私有资源池中选取物理服务器,并在选取出的物理服务器上创建用户请求的虚拟机。The virtual machine creation unit is configured to select a physical server from the queried private resource pool, and create a virtual machine requested by the user on the selected physical server.
在本公开的一些实施例中,用户提出的申请使用私有资源池的请求中包括所需物理服务器的参数。In some embodiments of the present disclosure, the user's request for using the private resource pool includes parameters of the required physical server.
在本公开的一些实施例中,所需物理服务器的参数包括对CPU、存储、网络以及内存的配置要求。In some embodiments of the present disclosure, the required physical server parameters include configuration requirements for CPU, storage, network, and memory.
在本公开的一些实施例中,用户发起的创建虚拟机的请求中包括用户的ID和所使用的资源池类型。In some embodiments of the present disclosure, the request initiated by the user to create a virtual machine includes the ID of the user and the resource pool type used.
在本公开的技术方案中,在公有资源池中资源足够充裕的情况下,可以根据用户需求将部分公有资源通过改变资源归属者ID的方式划分给那些需要使用私有资源池的用户,在满足用户特殊需求的同时不会对IaaS云管理平台的其他用户、虚拟机、存储数据、网络结构等造成影响。In the technical solution of the present disclosure, when the resources in the public resource pool are sufficient, part of the public resources can be allocated to those users who need to use the private resource pool by changing the ID of the resource owner according to user needs. Special requirements will not affect other users, virtual machines, storage data, network structure, etc. of the IaaS cloud management platform.
附图说明Description of drawings
此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分。在附图中:The accompanying drawings described herein are included to provide a further understanding of the disclosure, and constitute a part of this application. In the attached picture:
图1是本公开中用户私有资源池的划分方法示意图。FIG. 1 is a schematic diagram of a division method of a user's private resource pool in the present disclosure.
图2是本公开一个实施例的云管理平台中的用户资源划分方法的流程示意图。Fig. 2 is a schematic flowchart of a method for dividing user resources in a cloud management platform according to an embodiment of the present disclosure.
图3是本公开中调度模块的工作流程示意图。Fig. 3 is a schematic diagram of the workflow of the scheduling module in the present disclosure.
图4是本公开一个实施例的云管理平台中的用户资源划分装置的结构示意图。Fig. 4 is a schematic structural diagram of an apparatus for dividing user resources in a cloud management platform according to an embodiment of the present disclosure.
图5是本公开另一实施例的云管理平台中的用户资源划分装置的结构示意图。Fig. 5 is a schematic structural diagram of an apparatus for dividing user resources in a cloud management platform according to another embodiment of the present disclosure.
图6是本公开又一实施例的云管理平台中的用户资源划分装置的结构示意图。Fig. 6 is a schematic structural diagram of an apparatus for dividing user resources in a cloud management platform according to another embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图描述本公开。要注意的是,以下的描述在本质上仅是解释性和示例性的,决不作为对本公开及其应用或使用的任何限制。除非另外特别说明,否则,在实施例中阐述的部件和步骤的相对布置以及数字表达式和数值并不限制本公开的范围。另外,本领域技术人员已知的技术、方法和装置可能不被详细讨论,但在适当的情况下意在成为说明书的一部分。The present disclosure will be described below with reference to the accompanying drawings. It is to be noted that the following description is merely explanatory and exemplary in nature, and in no way serves as any limitation of the present disclosure, its application or uses. Relative arrangements of components and steps and numerical expressions and numerical values set forth in the embodiments do not limit the scope of the present disclosure unless otherwise specifically stated. Additionally, techniques, methods and devices known to those skilled in the art may not be discussed in detail but are intended to be part of the description where appropriate.
鉴于现有技术中存在的问题,本公开下述实施例针对用户期望使用固定计算资源池进行虚拟机创建的需求,提出了增加物理服务器属性、改进调度模块配合等方法,实现了IaaS云管理平台对底层固定计算资源池的划分,并提交给用户使用。In view of the problems existing in the prior art, the following embodiments of the present disclosure address the user's desire to use a fixed computing resource pool to create a virtual machine, and propose methods such as adding physical server attributes and improving the coordination of scheduling modules, and realizing the IaaS cloud management platform Divide the underlying fixed computing resource pool and submit it to users.
为了便于对技术方案进行理解,首先对“资源归属者ID”进行解释:In order to facilitate the understanding of the technical solution, first explain the "resource owner ID":
“资源归属者ID”是新增的物理服务器的属性,是物理资源归属者的标识,用于标识物理机。在资源归属者ID为全局ID的情况下,说明具有该ID的物理服务器归属于公有资源池;在资源归属者ID为某个用户的ID的情况下,则说明具有该用户ID的物理服务器归属于具体的用户。The "resource owner ID" is a newly added attribute of the physical server, which is an identifier of the owner of the physical resource, and is used to identify the physical machine. If the resource owner ID is a global ID, it means that the physical server with this ID belongs to the public resource pool; if the resource owner ID is a user ID, it means that the physical server with the user ID belongs to for specific users.
为了便于IaaS云管理平台对其控制的各个物理服务器进行管理,可以在IaaS云管理平台中增加“资源归属者ID表”,用来保存每台物理服务器的资源归属者ID,当某台物理服务器从公有资源被划分为私有资源、或从私有资源恢复为公有资源时,即,物理服务器的归属属性发生变更时需修改这个“资源归属者ID表”中相应物理服务器的“资源归属者ID”属性,以使IaaS云管理平台能够获知当前最新的各个物理服务器的状态信息,并根据该状态信息为用户提供资源私有化服务。In order to facilitate the management of each physical server controlled by the IaaS cloud management platform, a "resource owner ID table" can be added to the IaaS cloud management platform to save the resource owner ID of each physical server. When a physical server When a public resource is divided into a private resource or restored from a private resource to a public resource, that is, when the attribution attribute of the physical server changes, the "resource owner ID" of the corresponding physical server in the "resource owner ID table" needs to be modified attributes, so that the IaaS cloud management platform can learn the latest status information of each physical server, and provide users with resource privatization services based on the status information.
本公开下述实施例中的资源划分方法借助了“资源归属者ID”这个物理服务器的属性,当IaaS云管理平台找到符合用户需求的固定资源池(该资源池可以由一个或多个物理服务器组成)后,把存放在这些物理服务器上的虚拟机均迁移到公有资源池中的其他物理服务器上,然后可以将这些物理服务器的属性“资源归属者ID”修改成具体的用户ID,如图1所示。例如,可以根据配置,物理服务器的CPU、内存、存储、网络等配置大不相同,对于某些用户,他们的应用主要是CPU消耗型的,例如,web应用,那么就会在公有资源池中搜索CPU频率较高、核数较多的物理服务器,如果符合条件,则将该物理服务器的公有ID修改用户ID,并归位于用户自身使用。The resource division method in the following embodiments of the present disclosure makes use of the attribute of the physical server "resource owner ID". After composition), the virtual machines stored on these physical servers are migrated to other physical servers in the public resource pool, and then the attribute "resource owner ID" of these physical servers can be modified to a specific user ID, as shown in the figure 1. For example, according to the configuration, the CPU, memory, storage, network and other configurations of the physical server are quite different. For some users, their applications are mainly CPU-consuming, such as web applications, then they will be in the public resource pool Search for physical servers with higher CPU frequency and more cores. If the conditions are met, the public ID of the physical server will be modified to the user ID, and assigned to the user himself.
图2是本公开一个实施例的云管理平台中的用户资源划分方法的流程示意图。Fig. 2 is a schematic flowchart of a method for dividing user resources in a cloud management platform according to an embodiment of the present disclosure.
如图2所示,该实施例可以包括以下步骤:As shown in Figure 2, this embodiment may include the following steps:
S202,接收用户提出的申请使用私有资源池的请求;S202. Receive a request from a user to apply for using a private resource pool;
例如,对于某些重要用户或用户考虑到某些业务的重要性,这些用户可能会向IaaS云管理平台提出使用固定计算资源池的请求,即,请求将部分公有资源池私有化为其专用,仅为其提供服务,以避免与其他用户发生争抢资源的情况。For example, for some important users or users considering the importance of certain businesses, these users may request the IaaS cloud management platform to use a fixed computing resource pool, that is, request to privatize part of the public resource pool for their own use, Only serve it to avoid contention with other users for resources.
为了使得IaaS云管理平台知道用户想要申请那些资源作为私有资源,用户在发送请求时可以包括但不限于所需物理服务器的参数,例如,还可以包括物理服务器的数目,以使IaaS云管理平台能够根据携带的参数为用户选取满足用户需求的物理服务器。In order to let the IaaS cloud management platform know which resources the user wants to apply for as private resources, the user can include but not limited to the parameters of the required physical server when sending the request, for example, the number of physical servers can also be included, so that the IaaS cloud management platform According to the carried parameters, the physical server that meets the user's needs can be selected for the user.
具体地,所需物理服务器的参数可以包括但不限于对CPU、存储、网络以及内存的配置要求。Specifically, the parameters of the required physical server may include but not limited to configuration requirements for CPU, storage, network, and memory.
S204,判断公有资源池中是否具有足够为用户分配的资源;S204, judging whether there are enough resources allocated to the user in the public resource pool;
具体地,IaaS云管理平台上有监控系统,其可以监控到整个系统的资源使用状况,例如,资源是否完全超配,或其利用率是否达到门限值等,如果资源没有完全超配或者资源的利用率未达到设定的门限值,则仍然可以继续将应用系统放置在这些资源上。Specifically, there is a monitoring system on the IaaS cloud management platform, which can monitor the resource usage status of the entire system, for example, whether the resource is completely over-provisioned, or whether its utilization reaches the threshold, etc. If the resource is not completely over-provisioned or the resource If the utilization rate of resources does not reach the set threshold, the application system can still be placed on these resources.
S206,如具有,则在公有资源池中选取符合用户需求的物理服务器;S206, if yes, select a physical server that meets the user's needs in the public resource pool;
由于每个物理服务器的资源配置可能不同,有些物理服务器的主频高些,有些物理服务器的存储空间大些,有些物理服务器的内存大些等,因此可以根据请求中携带的对CPU、存储、网络以及内存等的配置需求选取在这些参数上满足用户需求的物理服务器作为该用户的私有资源。如用户对CPU的要求较高,则需为该用户选取具有较高主频的物理服务器,如该用户对存储空间的要求较高,则需为该用户选取具有较大存储空间的物理服务器。Since the resource configuration of each physical server may be different, some physical servers have a higher main frequency, some physical servers have a larger storage space, and some physical servers have a larger memory, etc. Therefore, the CPU, storage, and For network and memory configuration requirements, select a physical server that meets the user's needs in terms of these parameters as the user's private resource. If the user has a higher requirement on CPU, a physical server with higher main frequency should be selected for the user; if the user has higher requirement on storage space, a physical server with larger storage space should be selected for the user.
S208,将选取出的物理服务器上的虚拟机迁移到公有资源池中的其他物理服务器上;S208, migrating the virtual machine on the selected physical server to other physical servers in the public resource pool;
为了使得选取出的物理服务器能够称为某个用户的私有资源,首先需将运行在所选取出的物理服务器上的虚拟机逐个迁移到公有资源池中的其他未私有化的物理服务器上,以使所选取出的物理服务器能够完全为某个用户所专用。In order to make the selected physical server a user’s private resource, the virtual machines running on the selected physical server need to be migrated one by one to other non-privatized physical servers in the public resource pool, so that Allows the selected physical server to be fully dedicated to a user.
S210,在资源归属者ID表中,将选取出的物理服务器的资源归属者ID从全局ID修改为用户的ID,并告知用户已为其成功分配了私有资源池。S210. In the resource owner ID table, modify the selected resource owner ID of the physical server from the global ID to the user ID, and inform the user that the private resource pool has been successfully allocated to the user.
在将运行在所选取出的物理服务器上的所有虚拟机全部迁移出之后,可以这些选取出的物理服务器的资源归属者ID变更为用户的ID,以标识这些物理服务器为某个用户所专用。After all the virtual machines running on the selected physical servers are migrated out, the resource owner IDs of these selected physical servers can be changed to user IDs to identify that these physical servers are dedicated to a certain user.
在该实施例中,在公有资源池中资源足够充裕的情况下,可以根据用户需求将部分公有资源通过改变资源归属者ID的方式划分给那些需要使用私有资源池的用户,在满足用户特殊需求的同时不会对IaaS云管理平台的其他用户、虚拟机、存储数据、网络结构等造成影响。In this embodiment, when the resources in the public resource pool are sufficient, part of the public resources can be allocated to those users who need to use the private resource pool by changing the ID of the resource owner according to user needs, in order to meet the special needs of users At the same time, it will not affect other users, virtual machines, storage data, network structure, etc. of the IaaS cloud management platform.
进一步,在步骤S202之前,即,在整个云管理平台开始公开之前,预先将资源归属者ID表中的所有物理服务器的资源归属者ID初始化为全局ID。Further, before step S202, that is, before the entire cloud management platform starts to disclose, the resource owner IDs of all physical servers in the resource owner ID table are initialized as global IDs in advance.
在为用户成功分配了私有资源池后,IaaS云管理平台中的调度模块新增了两个流程:第一个流程是“确定资源池的类型”,调度模块根据上层下发的用户请求的参数确定该请求使用的资源池,即,确定创建虚拟机的请求使用公有资源池还是用户的私有资源池;第二个流程是“确定资源池范围”,通过查找“资源归属者ID表”可以确定归属资源池的范围,计算出的资源池范围结果将应用到现有调度模块的处理流程中。After the private resource pool is successfully allocated to the user, the scheduling module in the IaaS cloud management platform adds two new processes: the first process is "determining the type of the resource pool", and the scheduling module is based on the parameters requested by the user issued by the upper layer Determine the resource pool used by the request, that is, determine whether the request to create a virtual machine uses a public resource pool or a user's private resource pool; the second process is "determining the scope of the resource pool", which can be determined by looking up the "resource owner ID table" It belongs to the range of the resource pool, and the calculated result of the resource pool range will be applied to the processing flow of the existing scheduling module.
具体地,在步骤S210之后还可以执行以下调度流程:Specifically, after step S210, the following scheduling process may also be executed:
(1)接收用户发起的创建虚拟机的请求;(1) Receive the request initiated by the user to create a virtual machine;
由于IaaS云管理平台已经成功地为用户分配了私有资源池,此时,用户可以向IaaS云管理平台发起在该私有资源池上创建虚拟机的请求。Since the IaaS cloud management platform has successfully allocated a private resource pool to the user, at this point, the user can initiate a request to the IaaS cloud management platform to create a virtual machine on the private resource pool.
其中,用户发起的创建虚拟机的请求中包括用户的ID和所使用的资源池类型。Wherein, the request initiated by the user to create a virtual machine includes the ID of the user and the resource pool type used.
(2)根据请求查询用户所使用的资源池类型。(2) Query the resource pool type used by the user according to the request.
(3)根据用户所使用的资源池类型和用户ID在资源归属者ID表中查询对应的私有资源池;(3) Query the corresponding private resource pool in the resource owner ID table according to the resource pool type and user ID used by the user;
例如,IaaS云管理平台可以首先利用用户所使用的资源池类型在资源归属者ID表中查到各类私有资源池,然后,再在这些私有资源池中利用用户的ID查询出该用户可以使用的资源池。For example, the IaaS cloud management platform can first use the resource pool type used by the user to find various private resource pools in the resource owner ID table, and then use the user ID in these private resource pools to find out that the user can use resource pool.
(4)在查询出的私有资源池中选取物理服务器,并在选取出的物理服务器上创建用户请求的虚拟机。(4) Select a physical server from the queried private resource pool, and create a virtual machine requested by the user on the selected physical server.
在用户可使用的私有资源池中包含多个物理服务器的情况下,其可以通过多种方法选取创建虚拟机所使用的物理服务器。例如,可以轮询的方式选取、随机选取或选取性能最优的物理机。In the case that the private resource pool available to the user contains multiple physical servers, the user may select the physical server used to create the virtual machine through various methods. For example, the physical machine with the best performance may be selected in a round-robin manner, randomly selected, or selected.
接下来,通过一个具体实例对前述实施例作进一步说明。Next, a specific example is used to further illustrate the aforementioned embodiment.
首先,IaaS云管理平台将“资源归属者ID表”中所有的物理服务器的“资源归属者ID”属性值初始化为全局ID。First, the IaaS cloud management platform initializes the "resource owner ID" attribute values of all physical servers in the "resource owner ID table" as global IDs.
其次,用户A向IaaS云管理平台申请三台物理服务器作为用户私有的固定资源池的请求。IaaS云管理平台接受请求后,发现公有资源池有足够的资源,并根据用户发送的物理服务器的参数选择可用的物理服务器,假设选出的物理服务器为X、Y和Z,则把归属于公有资源池的三台服务器X、Y、Z上虚拟机迁移到公有资源池中的其他物理服务器上,并修改“资源归属者ID表”中这三台物理服务器的“资源归属者ID”属性值为用户A的ID,同时告知用户A固定资源池已经成功划分。Secondly, user A applies to the IaaS cloud management platform for three physical servers as the user's private fixed resource pool. After the IaaS cloud management platform accepts the request, it finds that the public resource pool has enough resources, and selects an available physical server according to the parameters of the physical server sent by the user. Assuming that the selected physical servers are X, Y, and Z, then the resources belong to the public Migrate the virtual machines on the three servers X, Y, and Z in the resource pool to other physical servers in the public resource pool, and modify the "Resource Owner ID" attribute value of these three physical servers in the "Resource Owner ID Table" It is the ID of user A, and at the same time informs user A that the fixed resource pool has been successfully divided.
第三,用户A在IaaS云管理平台服务界面中利用私有的资源池创建虚拟机B,虚拟机规格为系统预制模版。IaaS云管理平台接受该用户的请求,并把请求转发给调度模块,调度模块按照流程进行操作如图3所示的流程进行调度,发现用户A创建虚拟机请求使用的是私有资源池,因此调度模块进而查找“资源归属者ID表”,确定了用户A的私有资源池范围是物理服务器X、Y和Z;然后调度模块根据得出的资源池范围结果在这三台物理服务器X、Y和Z中执行原有的调度模块算法(例如,轮询、随机、最优化选择等方法),得出的结果是物理服务器Y;最后,调度模块把请求下发至物理服务器Y,由物理服务器Y进行用户A的虚拟机B的创建操作。Third, user A uses a private resource pool to create virtual machine B in the service interface of the IaaS cloud management platform, and the virtual machine specification is a prefabricated template of the system. The IaaS cloud management platform accepts the user's request and forwards the request to the scheduling module. The scheduling module operates according to the flow shown in Figure 3. It finds that user A creates a virtual machine request using a private resource pool, so the scheduling module The module further searches the "resource owner ID table", and determines that the scope of user A's private resource pool is physical server X, Y, and Z; Execute the original scheduling module algorithm (for example, polling, random, optimal selection, etc.) in Z, and the result is the physical server Y; finally, the scheduling module sends the request to the physical server Y, and the physical server Y Create virtual machine B for user A.
本领域普通技术人员可以理解,实现上述方法实施例的全部和部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算设备可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤,而前述的存储介质可以包括ROM、RAM、磁碟和光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all and part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computing device readable storage medium. When the program is executed, Execution includes the steps of the above method embodiments, and the aforementioned storage medium may include various media capable of storing program codes such as ROM, RAM, magnetic disk, and optical disk.
图4是本公开一个实施例的云管理平台中的用户资源划分装置的结构示意图。Fig. 4 is a schematic structural diagram of an apparatus for dividing user resources in a cloud management platform according to an embodiment of the present disclosure.
如图4所示,该实施例中的装置40可以包括请求接收单元402、资源判断单元404、私有资源确定单元406、虚拟机迁移单元408和资源归属ID更新单元410。其中,As shown in FIG. 4 , the apparatus 40 in this embodiment may include a request receiving unit 402 , a resource judging unit 404 , a private resource determining unit 406 , a virtual machine migrating unit 408 and a resource attribution ID updating unit 410 . in,
请求接收单元402,用于接收用户提出的申请使用私有资源池的请求;其中,用户提出的申请使用私有资源池的请求中包括所需物理服务器的参数,所需物理服务器的参数包括对CPU、存储、网络以及内存的配置要求;The request receiving unit 402 is configured to receive a request from a user to apply for using a private resource pool; wherein, the request from the user to apply for using a private resource pool includes parameters of the required physical server, and the parameters of the required physical server include parameters for the CPU, Storage, network and memory configuration requirements;
资源判断单元404,用于判断公有资源池中是否具有足够为用户分配的资源;A resource judging unit 404, configured to judge whether there are enough resources allocated to users in the public resource pool;
私有资源确定单元406,用于如具有,则在公有资源池中选取符合用户需求的物理服务器;A private resource determination unit 406, configured to select a physical server that meets the user's needs in the public resource pool if there is one;
虚拟机迁移单元408,用于将选取出的物理服务器上的虚拟机迁移到公有资源池中的其他物理服务器上;A virtual machine migration unit 408, configured to migrate the virtual machine on the selected physical server to other physical servers in the public resource pool;
资源归属ID更新单元410,用于在资源归属者ID表中,将选取出的物理服务器的资源归属者ID从全局ID修改为用户的ID,并告知用户已为其成功分配了私有资源池。The resource attribution ID updating unit 410 is configured to modify the resource attribution ID of the selected physical server from the global ID to the user's ID in the resource attribution ID table, and inform the user that the private resource pool has been successfully allocated to the user.
在该实施例中,在公有资源池中资源足够充裕的情况下,可以根据用户需求将部分公有资源通过改变资源归属者ID的方式划分给那些需要使用私有资源池的用户,在满足用户特殊需求的同时不会对IaaS云管理平台的其他用户、虚拟机、存储数据、网络结构等造成影响。In this embodiment, when the resources in the public resource pool are sufficient, part of the public resources can be allocated to those users who need to use the private resource pool by changing the ID of the resource owner according to user needs, in order to meet the special needs of users At the same time, it will not affect other users, virtual machines, storage data, network structure, etc. of the IaaS cloud management platform.
图5是本公开另一实施例的云管理平台中的用户资源划分装置的结构示意图。Fig. 5 is a schematic structural diagram of an apparatus for dividing user resources in a cloud management platform according to another embodiment of the present disclosure.
如图5所示,与图4中的实施例相比,该实施例中的装置50还可以包括:As shown in Figure 5, compared with the embodiment in Figure 4, the device 50 in this embodiment may also include:
初始化单元502,用于将资源归属者ID表中的所有物理服务器的资源归属者ID初始化为全局ID。The initialization unit 502 is configured to initialize resource owner IDs of all physical servers in the resource owner ID table as global IDs.
图6是本公开又一实施例的云管理平台中的用户资源划分装置的结构示意图。Fig. 6 is a schematic structural diagram of an apparatus for dividing user resources in a cloud management platform according to another embodiment of the present disclosure.
如图6所示,与图4中的实施例相比,该实施例中的装置60还可以包括用户资源类型查询单元602、用户资源范围查询单元604和虚拟机创建单元606。其中,请求接收单元还用于接收用户发起的创建虚拟机的请求,用户发起的创建虚拟机的请求中包括用户的ID和所使用的资源池类型;As shown in FIG. 6 , compared with the embodiment in FIG. 4 , the apparatus 60 in this embodiment may further include a user resource type query unit 602 , a user resource range query unit 604 and a virtual machine creation unit 606 . Wherein, the request receiving unit is also used to receive a request initiated by a user to create a virtual machine, and the request initiated by the user to create a virtual machine includes the ID of the user and the resource pool type used;
用户资源类型查询单元602,用于根据请求查询用户所使用的资源池类型;A user resource type query unit 602, configured to query the resource pool type used by the user according to the request;
用户资源范围查询单元604,用于根据用户所使用的资源池类型和用户ID在资源归属者ID表中查询对应的私有资源池;User resource range query unit 604, configured to query the corresponding private resource pool in the resource owner ID table according to the resource pool type and user ID used by the user;
虚拟机创建单元606,用于在查询出的私有资源池中选取物理服务器,并在选取出的物理服务器上创建用户请求的虚拟机。The virtual machine creation unit 606 is configured to select a physical server from the queried private resource pool, and create a virtual machine requested by the user on the selected physical server.
本说明书中各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同和相似的部分可以相互参见。对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处可以参见方法实施例部分的说明。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the differences from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related details, please refer to the description of the method embodiment.
虽然已参照示例性实施例描述了本公开,但应理解,本公开不限于上述的示例性实施例。对于本领域技术人员显然的是,可以在不背离本公开的范围和精神的条件下修改上述的示例性实施例。所附的权利要求的范围应被赋予最宽的解释,以包含所有这样的修改以及等同的结构和功能。While the present disclosure has been described with reference to exemplary embodiments, it is to be understood that the present disclosure is not limited to the above-described exemplary embodiments. It will be apparent to those skilled in the art that the above-described exemplary embodiments can be modified without departing from the scope and spirit of the present disclosure. The scope of the appended claims should be given the broadest interpretation to encompass all such modifications and equivalent structures and functions.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310342638.9ACN104348881B (en) | 2013-08-08 | 2013-08-08 | User resources division methods and device in cloud management platform |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310342638.9ACN104348881B (en) | 2013-08-08 | 2013-08-08 | User resources division methods and device in cloud management platform |
| Publication Number | Publication Date |
|---|---|
| CN104348881Atrue CN104348881A (en) | 2015-02-11 |
| CN104348881B CN104348881B (en) | 2018-11-30 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310342638.9AActiveCN104348881B (en) | 2013-08-08 | 2013-08-08 | User resources division methods and device in cloud management platform |
| Country | Link |
|---|---|
| CN (1) | CN104348881B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105426250A (en)* | 2015-11-30 | 2016-03-23 | 杭州数梦工场科技有限公司 | Resource management method and apparatus |
| CN105631316A (en)* | 2015-12-25 | 2016-06-01 | 曙光信息产业(北京)有限公司 | Management method and device of virtual resources |
| CN106354544A (en)* | 2016-08-24 | 2017-01-25 | 华为技术有限公司 | Virtual machine creating method and system and host |
| CN106385329A (en)* | 2016-08-31 | 2017-02-08 | 华为数字技术(成都)有限公司 | Processing method and device of resource pool and equipment |
| CN106776003A (en)* | 2016-11-18 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of method for distributing system resource and device |
| CN107133096A (en)* | 2017-04-13 | 2017-09-05 | 新华三技术有限公司 | A kind of resource allocation methods and device |
| CN107239329A (en)* | 2016-03-29 | 2017-10-10 | 西门子公司 | Unified resource dispatching method and system under cloud environment |
| CN107766001A (en)* | 2017-10-18 | 2018-03-06 | 成都索贝数码科技股份有限公司 | A kind of storage quota method based on groups of users |
| CN108399106A (en)* | 2018-02-28 | 2018-08-14 | 华为技术有限公司 | The method and apparatus for managing physical host |
| CN108694065A (en)* | 2017-04-10 | 2018-10-23 | 鸿富锦精密电子(天津)有限公司 | virtual desktop system and virtual desktop control method |
| CN109739614A (en)* | 2018-11-22 | 2019-05-10 | 杭州数梦工场科技有限公司 | Virtual machine rebuilding method, device and equipment |
| CN106656535B (en)* | 2015-10-29 | 2021-01-15 | 阿里巴巴集团控股有限公司 | Method and apparatus for resource scheduling |
| CN114500221A (en)* | 2021-12-28 | 2022-05-13 | 阿里巴巴(中国)有限公司 | Cloud system, public cloud control method, equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1716873A (en)* | 2004-06-28 | 2006-01-04 | 华为技术有限公司 | Method and system for managing intelligent peripherals in an intelligent network |
| US20120005724A1 (en)* | 2009-02-09 | 2012-01-05 | Imera Systems, Inc. | Method and system for protecting private enterprise resources in a cloud computing environment |
| CN102387507A (en)* | 2010-09-01 | 2012-03-21 | 中兴通讯股份有限公司 | Method and device for managing multimode co-transmission transmission resource |
| CN102761469A (en)* | 2011-04-27 | 2012-10-31 | 阿里巴巴集团控股有限公司 | Allocation method and device for resource pool |
| CN102799464A (en)* | 2012-06-25 | 2012-11-28 | 北京奇虎科技有限公司 | Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system |
| CN103154926A (en)* | 2010-09-30 | 2013-06-12 | 亚马逊技术股份有限公司 | Virtual resource cost tracking with dedicated implementation resources |
| CN103164283A (en)* | 2012-05-10 | 2013-06-19 | 上海兆民云计算科技有限公司 | Method and system for dynamic scheduling management of virtualized resources in virtualized desktop system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1716873A (en)* | 2004-06-28 | 2006-01-04 | 华为技术有限公司 | Method and system for managing intelligent peripherals in an intelligent network |
| US20120005724A1 (en)* | 2009-02-09 | 2012-01-05 | Imera Systems, Inc. | Method and system for protecting private enterprise resources in a cloud computing environment |
| CN102387507A (en)* | 2010-09-01 | 2012-03-21 | 中兴通讯股份有限公司 | Method and device for managing multimode co-transmission transmission resource |
| CN103154926A (en)* | 2010-09-30 | 2013-06-12 | 亚马逊技术股份有限公司 | Virtual resource cost tracking with dedicated implementation resources |
| CN102761469A (en)* | 2011-04-27 | 2012-10-31 | 阿里巴巴集团控股有限公司 | Allocation method and device for resource pool |
| CN103164283A (en)* | 2012-05-10 | 2013-06-19 | 上海兆民云计算科技有限公司 | Method and system for dynamic scheduling management of virtualized resources in virtualized desktop system |
| CN102799464A (en)* | 2012-06-25 | 2012-11-28 | 北京奇虎科技有限公司 | Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106656535B (en)* | 2015-10-29 | 2021-01-15 | 阿里巴巴集团控股有限公司 | Method and apparatus for resource scheduling |
| CN105426250A (en)* | 2015-11-30 | 2016-03-23 | 杭州数梦工场科技有限公司 | Resource management method and apparatus |
| CN105631316A (en)* | 2015-12-25 | 2016-06-01 | 曙光信息产业(北京)有限公司 | Management method and device of virtual resources |
| CN107239329A (en)* | 2016-03-29 | 2017-10-10 | 西门子公司 | Unified resource dispatching method and system under cloud environment |
| CN106354544A (en)* | 2016-08-24 | 2017-01-25 | 华为技术有限公司 | Virtual machine creating method and system and host |
| CN106385329B (en)* | 2016-08-31 | 2019-11-26 | 华为数字技术(成都)有限公司 | Processing method, device and the equipment of resource pool |
| US11301303B2 (en) | 2016-08-31 | 2022-04-12 | Huawei Technologies Co., Ltd. | Resource pool processing to determine to create new virtual resource pools and storage devices based on currebt pools and devices not meeting SLA requirements |
| WO2018040525A1 (en)* | 2016-08-31 | 2018-03-08 | 华为技术有限公司 | Method, device, and equipment for processing resource pool |
| CN106385329A (en)* | 2016-08-31 | 2017-02-08 | 华为数字技术(成都)有限公司 | Processing method and device of resource pool and equipment |
| CN106776003A (en)* | 2016-11-18 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of method for distributing system resource and device |
| CN108694065B (en)* | 2017-04-10 | 2021-08-27 | 鸿富锦精密电子(天津)有限公司 | Virtual desktop system and virtual desktop control method |
| CN108694065A (en)* | 2017-04-10 | 2018-10-23 | 鸿富锦精密电子(天津)有限公司 | virtual desktop system and virtual desktop control method |
| CN107133096A (en)* | 2017-04-13 | 2017-09-05 | 新华三技术有限公司 | A kind of resource allocation methods and device |
| CN107766001B (en)* | 2017-10-18 | 2021-05-25 | 成都索贝数码科技股份有限公司 | A storage quota method based on user groups |
| CN107766001A (en)* | 2017-10-18 | 2018-03-06 | 成都索贝数码科技股份有限公司 | A kind of storage quota method based on groups of users |
| CN108399106A (en)* | 2018-02-28 | 2018-08-14 | 华为技术有限公司 | The method and apparatus for managing physical host |
| CN109739614A (en)* | 2018-11-22 | 2019-05-10 | 杭州数梦工场科技有限公司 | Virtual machine rebuilding method, device and equipment |
| CN114500221A (en)* | 2021-12-28 | 2022-05-13 | 阿里巴巴(中国)有限公司 | Cloud system, public cloud control method, equipment and storage medium |
| CN114500221B (en)* | 2021-12-28 | 2024-04-26 | 阿里巴巴(中国)有限公司 | Cloud system, public cloud management and control method, public cloud management and control equipment and storage medium |
| Publication number | Publication date |
|---|---|
| CN104348881B (en) | 2018-11-30 |
| Publication | Publication Date | Title |
|---|---|---|
| CN104348881B (en) | User resources division methods and device in cloud management platform | |
| US10771371B2 (en) | Dynamic network monitoring | |
| US9348650B2 (en) | Determining an optimal computing environment for running an image based on performance of similar images | |
| CN103814358B (en) | Virtual Machine Placement within a Server Farm | |
| CN106201661B (en) | Method and device for elastic scaling virtual machine cluster | |
| US9569275B2 (en) | Allocation and reservation of virtualization-based resources | |
| CN104660669B (en) | The method and system of a host is selected from multiple main frames for application model component | |
| WO2018006676A1 (en) | Acceleration resource processing method and apparatus and network function virtualization system | |
| CN103414752B (en) | A kind of cloud data center virtual machine distribution method of network aware | |
| US9098378B2 (en) | Computing reusable image components to minimize network bandwidth usage | |
| CN103795804A (en) | Storage resource scheduling method and storage calculation system | |
| CN102904824B (en) | Service providing entity selection method and device | |
| US20130227232A1 (en) | Partition aware quality of service feature | |
| CN105677441B (en) | Virtual machine migration method, virtual facility manager and coordinator | |
| US9237079B2 (en) | Increasing performance of a streaming application by running experimental permutations | |
| CN105630607B (en) | A kind of resource pool management method, container creation method and electronic equipment | |
| CN106664259B (en) | Method and device for expanding virtual network function | |
| CN106663012A (en) | A hardware acceleration method and related equipment | |
| US20120284314A1 (en) | Journaling and integrity in mobile clouded collaborative spaces | |
| WO2013082742A1 (en) | Resource scheduling method, device and system | |
| CN108075917A (en) | The management method and system of a kind of data center | |
| CN114489985A (en) | Data processing method, device and storage medium | |
| US20150271261A1 (en) | System and method for providing distributed virtual cloud using mobile grid | |
| KR101563808B1 (en) | System and method for providing distributed virtual cloud using mobile grid | |
| CN110795068B (en) | Method and system for automatically generating executable scheme from user requirement in industry cloud environment |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| EE01 | Entry into force of recordation of patent licensing contract | Application publication date:20150211 Assignee:Tianyiyun Technology Co.,Ltd. Assignor:CHINA TELECOM Corp.,Ltd. Contract record no.:X2024990000687 Denomination of invention:User resource partitioning method and device in cloud management platform Granted publication date:20181130 License type:Common License Record date:20241220 | |
| EE01 | Entry into force of recordation of patent licensing contract |