CN106095564A - A kind of resource allocation methods and system - Google Patents
A kind of resource allocation methods and system Download PDFInfo
- Publication number
- CN106095564A CN106095564A CN201610361652.7A CN201610361652A CN106095564A CN 106095564 A CN106095564 A CN 106095564A CN 201610361652 A CN201610361652 A CN 201610361652A CN 106095564 A CN106095564 A CN 106095564A
- Authority
- CN
- China
- Prior art keywords
- user
- virtual resource
- server
- application
- resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
- G06F9/5077—Logical partitioning of resources; Management or configuration of virtualized resources
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种资源分配方法及系统。该资源分配方法应用于组织服务器,组织服务器分别与系统服务器和用户服务器连接,该方法包括:接收至少一个用户通过用户服务器发送的虚拟资源申请;根据接收到的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请;将物理资源申请发送给系统服务器,以使系统服务器根据物理资源申请,分配相应的物理资源,并返回分配结果;根据接收到的系统服务器返回的分配结果,为每个用户分配相应的虚拟资源。应用本发明实施例所提供的技术方案,可以实现多用户管理和资源的按需分配,提高资源利用率。
The invention discloses a resource allocation method and system. The resource allocation method is applied to an organization server, and the organization server is respectively connected to a system server and a user server, and the method includes: receiving a virtual resource application sent by at least one user through the user server; generating a virtual resource application for the application according to the received virtual resource application The physical resource application of the physical resource mapped by the resource; the physical resource application is sent to the system server, so that the system server allocates the corresponding physical resource according to the physical resource application, and returns the allocation result; according to the received allocation result returned by the system server, Assign corresponding virtual resources to each user. Applying the technical solutions provided by the embodiments of the present invention can realize multi-user management and on-demand allocation of resources, and improve resource utilization.
Description
技术领域technical field
本发明涉及计算机应用技术领域,特别是涉及一种资源分配方法及系统。The present invention relates to the field of computer application technology, in particular to a resource allocation method and system.
背景技术Background technique
随着计算机技术的快速发展,云计算逐渐成为热点话题。云计算,是基于互联网的相关服务的增加、使用和交付模式,通常涉及通过互联网来提供动态易扩展且经常是虚拟化的资源。With the rapid development of computer technology, cloud computing has gradually become a hot topic. Cloud computing is the growth, usage, and delivery model of Internet-based related services, usually involving the provision of dynamically scalable and often virtualized resources over the Internet.
基于云计算技术的云数据中心可以为用户提供很多的资源。现有的一种资源分配方法是将每种类型的资源平均分配给每个用户,即每个用户获得的资源的类型和大小相等。A cloud data center based on cloud computing technology can provide users with a lot of resources. An existing resource allocation method is to equally allocate each type of resource to each user, that is, each user obtains the same type and size of resources.
在实际应用中,不同用户所需要的资源的类型或大小可能是不同的,应用这种方法进行资源分配,降低了资源利用率。In practical applications, the types or sizes of resources required by different users may be different. Applying this method for resource allocation reduces resource utilization.
发明内容Contents of the invention
本发明的目的是提供一种资源分配方法及系统,以实现资源的按需分配,提高资源利用率。The object of the present invention is to provide a resource allocation method and system to realize resource allocation on demand and improve resource utilization.
一种资源分配方法,应用于组织服务器,所述组织服务器分别与系统服务器和用户服务器连接,所述方法包括:A method for allocating resources, applied to an organization server, the organization server being connected to a system server and a user server respectively, the method comprising:
接收至少一个用户通过所述用户服务器发送的虚拟资源申请;receiving a virtual resource application sent by at least one user through the user server;
根据接收到的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请;Generate a physical resource application for the physical resource mapped to the applied virtual resource according to the received virtual resource application;
将所述物理资源申请发送给所述系统服务器,以使所述系统服务器根据所述物理资源申请,分配相应的物理资源,并返回分配结果;sending the physical resource application to the system server, so that the system server allocates corresponding physical resources according to the physical resource application, and returns an allocation result;
根据接收到的所述系统服务器返回的分配结果,为每个用户分配相应的虚拟资源。According to the received allocation result returned by the system server, corresponding virtual resources are allocated to each user.
在本发明的一种具体实施方式中,所述虚拟资源申请包括申请的虚拟资源的类型和申请的每种类型的虚拟资源的大小,所述根据接收到的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请,包括:In a specific embodiment of the present invention, the virtual resource application includes the type of virtual resource applied for and the size of each type of virtual resource applied for, and the virtual resource application for the application is generated according to the received virtual resource application. The physical resource application for the physical resource of the resource mapping, including:
根据接收到的虚拟资源申请中虚拟资源的类型,将接收到的虚拟资源申请进行整合,获得申请的每种类型的虚拟资源的总大小;According to the type of virtual resource in the received virtual resource application, the received virtual resource application is integrated to obtain the total size of each type of virtual resource applied for;
根据申请的虚拟资源的类型和申请的每种类型的虚拟资源的总大小,生成针对申请的虚拟资源映射的物理资源的物理资源申请。According to the type of the applied virtual resource and the total size of each type of virtual resource applied for, a physical resource application for the physical resource mapped to the applied virtual resource is generated.
在本发明的一种具体实施方式中,所述方法还包括:In a specific embodiment of the present invention, the method also includes:
接收至少一个用户通过所述用户服务器发送的释放的虚拟资源信息;receiving released virtual resource information sent by at least one user via the user server;
将接收到的释放的虚拟资源信息发送给所述系统服务器,以使所述系统服务器将释放的虚拟资源映射的物理资源加入相应资源池中。Sending the received released virtual resource information to the system server, so that the system server adds the physical resource mapped by the released virtual resource into the corresponding resource pool.
在本发明的一种具体实施方式中,在所述接收至少一个用户通过所述用户服务器发送的虚拟资源申请之后,所述根据接收到的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请之前,所述方法还包括:In a specific implementation manner of the present invention, after receiving the virtual resource application sent by at least one user through the user server, according to the received virtual resource application, generating a physical resource mapped to the applied virtual resource Before applying for physical resources, the method also includes:
针对每个用户,确定该用户的虚拟资源申请是否在该用户的用户权限范围内,如果是,则接受该用户的虚拟资源申请;For each user, determine whether the user's virtual resource application is within the user's user authority, and if so, accept the user's virtual resource application;
相应的,所述根据接收到的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请,包括:Correspondingly, according to the received virtual resource application, generating a physical resource application for the physical resource mapped to the applied virtual resource includes:
根据接受的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请。According to the accepted virtual resource application, a physical resource application for the physical resource mapped to the applied virtual resource is generated.
在本发明的一种具体实施方式中,在确定该用户的虚拟资源申请未在该用户的用户权限范围内时,所述方法还包括:In a specific implementation manner of the present invention, when it is determined that the user's virtual resource application is not within the scope of user authority of the user, the method further includes:
向该用户返回审批未通过信息。Return approval failure information to the user.
一种资源分配系统,包括组织服务器、系统服务器和用户服务器,所述组织服务器分别与所述系统服务器和所述用户服务器连接,其中,A resource allocation system, comprising an organization server, a system server, and a user server, the organization server being connected to the system server and the user server respectively, wherein,
所述用户服务器,用于将至少一个用户的虚拟资源申请发送给所述组织服务器;The user server is configured to send at least one user's virtual resource application to the organization server;
所述组织服务器,用于接收所述用户服务器发送的虚拟资源申请;根据接收到的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请;将所述物理资源申请发送给所述系统服务器,以使所述系统服务器根据所述物理资源申请,分配相应的物理资源,并返回分配结果;根据接收到的所述系统服务器返回的分配结果,为每个用户分配相应的虚拟资源;The organization server is configured to receive the virtual resource application sent by the user server; generate a physical resource application for the physical resource mapped to the applied virtual resource according to the received virtual resource application; send the physical resource application to the The system server, so that the system server allocates corresponding physical resources according to the physical resource application, and returns the allocation result; according to the received allocation result returned by the system server, allocates corresponding virtual resources for each user ;
所述系统服务器,用于接收所述组织服务器发送的物理资源申请,分配相应的物理资源,返回分配结果。The system server is configured to receive the physical resource application sent by the organization server, allocate corresponding physical resources, and return an allocation result.
在本发明的一种具体实施方式中,所述虚拟资源申请包括申请的虚拟资源的类型和申请的每种类型的虚拟资源的大小,所述组织服务器,具体用于:In a specific embodiment of the present invention, the virtual resource application includes the type of virtual resource applied for and the size of each type of virtual resource applied for, and the organization server is specifically used for:
根据接收到的虚拟资源申请中虚拟资源的类型,将接收到的虚拟资源申请进行整合,获得申请的每种类型的虚拟资源的总大小;According to the type of virtual resource in the received virtual resource application, the received virtual resource application is integrated to obtain the total size of each type of virtual resource applied for;
根据申请的虚拟资源的类型和申请的每种类型的虚拟资源的总大小,生成针对申请的虚拟资源映射的物理资源的物理资源申请。According to the type of the applied virtual resource and the total size of each type of virtual resource applied for, a physical resource application for the physical resource mapped to the applied virtual resource is generated.
在本发明的一种具体实施方式中,所述组织服务器,还用于:In a specific implementation manner of the present invention, the organization server is also used for:
接收至少一个用户通过所述用户服务器发送的释放的虚拟资源信息;receiving released virtual resource information sent by at least one user via the user server;
将接收到的释放的虚拟资源信息发送给所述系统服务器,以使所述系统服务器将释放的虚拟资源映射的物理资源加入相应资源池中。Sending the received released virtual resource information to the system server, so that the system server adds the physical resource mapped by the released virtual resource into the corresponding resource pool.
在本发明的一种具体实施方式中,所述组织服务器,还用于:In a specific implementation manner of the present invention, the organization server is also used for:
在所述接收至少一个用户通过所述用户服务器发送的虚拟资源申请之后,所述根据接收到的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请之前,针对每个用户,确定该用户的虚拟资源申请是否在该用户的用户权限范围内,如果是,则接受该用户的虚拟资源申请;After receiving the virtual resource application sent by at least one user through the user server, before generating the physical resource application for the physical resource mapped to the applied virtual resource according to the received virtual resource application, for each user, Determine whether the user's virtual resource application is within the user's user authority, and if so, accept the user's virtual resource application;
相应的,所述组织服务器,具体用于:Correspondingly, the organization server is specifically used for:
根据接受的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请。According to the accepted virtual resource application, a physical resource application for the physical resource mapped to the applied virtual resource is generated.
在本发明的一种具体实施方式中,所述组织服务器,还用于:In a specific implementation manner of the present invention, the organization server is also used for:
在确定该用户的虚拟资源申请未在该用户的用户权限范围内时,向该用户返回审批未通过信息。When it is determined that the user's virtual resource application is not within the scope of the user's user rights, the approval failure information is returned to the user.
应用本发明实施例所提供的技术方案,组织服务器接收到用户通过用户服务器提出的虚拟资源申请后,可以根据该虚拟资源申请,生成相应的物理资源申请,并发送给系统服务器,系统服务器根据物理资源申请,分配相应的物理资源,并返回分配结果,组织服务器接收到分配结果后,为用户分配相应的虚拟资源。这样,可以实现数量巨大的多用户管理和资源的按需分配,提高资源利用率。Applying the technical solution provided by the embodiment of the present invention, after receiving the virtual resource application from the user through the user server, the organization server can generate a corresponding physical resource application according to the virtual resource application and send it to the system server. Apply for resources, allocate corresponding physical resources, and return the allocation results. After receiving the allocation results, the organization server allocates corresponding virtual resources to users. In this way, a huge number of multi-user management and on-demand allocation of resources can be realized, and resource utilization can be improved.
附图说明Description of drawings
为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例中一种资源分配方法的实施流程图;FIG. 1 is an implementation flowchart of a resource allocation method in an embodiment of the present invention;
图2为本发明实施例中一种资源分配系统的结构示意图。FIG. 2 is a schematic structural diagram of a resource allocation system in an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例所提供的一种资源分配方法可以应用于组织服务器,组织服务器分别与系统服务器和用户服务器连接。在本发明实施例中,组织服务器接收用户通过用户服务器提出的虚拟资源申请,并向系统服务器提出虚拟资源映射的物理资源的申请,系统服务器接收组织服务器提出的申请,分配相应的物理资源,向组织服务器返回分配结果,组织服务器接收到分配结果后,为用户分配相应的虚拟资源。A resource allocation method provided by an embodiment of the present invention can be applied to an organization server, and the organization server is respectively connected to a system server and a user server. In the embodiment of the present invention, the organization server receives the virtual resource application submitted by the user through the user server, and submits an application to the system server for the physical resource mapped by the virtual resource, and the system server receives the application submitted by the organization server, allocates the corresponding physical resource, and sends The organization server returns the allocation result, and after receiving the allocation result, the organization server allocates corresponding virtual resources to the user.
其中,组织服务器可以管理虚拟数据中心、虚拟网络、虚拟存储层面上的虚拟资源,系统服务器可以作为控制管理中心,对整个云数据中心进行管理监控,对基础设施层面的物理资源进行管理。Among them, the organization server can manage virtual resources at the virtual data center, virtual network, and virtual storage levels, and the system server can serve as a control management center to manage and monitor the entire cloud data center and manage physical resources at the infrastructure level.
参见图1所示,为本发明实施例所提供的一种资源分配方法的实施流程图,该方法可以包括以下步骤:Referring to FIG. 1 , it is an implementation flowchart of a resource allocation method provided by an embodiment of the present invention. The method may include the following steps:
S110:接收至少一个用户通过用户服务器发送的虚拟资源申请。S110: Receive a virtual resource application sent by at least one user through the user server.
当用户有虚拟资源的需求时,可以根据实际需求通过用户服务器向组织服务器发送虚拟资源申请。虚拟资源的类型可以包括计算虚拟资源、存储虚拟资源和网络虚拟资源。该虚拟资源申请可以包括申请的虚拟资源的类型和申请的每种类型的虚拟资源的大小。When the user has a demand for virtual resources, the virtual resource application can be sent to the organization server through the user server according to actual needs. Types of virtual resources may include computing virtual resources, storage virtual resources, and network virtual resources. The virtual resource application may include the types of virtual resources applied for and the size of each type of virtual resource applied for.
在实际应用中,一个组织服务器可以与多个用户服务器连接,每个用户分别通过一个用户服务器发送虚拟资源申请,或者一个组织服务器与一个用户服务器连接,一个或多个用户可以通过同一个用户服务器发送虚拟资源申请。In practical applications, an organization server can be connected to multiple user servers, and each user can send a virtual resource application through a user server, or an organization server can be connected to a user server, and one or more users can pass through the same user server. Send a virtual resource request.
组织服务器接收到至少一个用户通过用户服务器发送的虚拟资源申请后,可以继续执行步骤S120的操作。After the organization server receives the virtual resource application sent by at least one user through the user server, the operation of step S120 may be continued.
S120:根据接收到的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请。S120: According to the received virtual resource application, generate a physical resource application for the physical resource mapped to the applied virtual resource.
如果组织服务器仅接收到一个用户的虚拟资源申请,则组织服务器可以直接生成该用户的虚拟资源映射的物理资源的物理资源申请。If the organization server receives only one user's virtual resource application, the organization server may directly generate a physical resource application for the physical resource mapped to the user's virtual resource.
如果组织服务器接收到多个用户的虚拟资源申请,则组织服务器可以针对每个用户,生成该用户的虚拟资源映射的物理资源的物理资源申请,或者,可以将多个用户的虚拟资源申请进行整合,针对整合后的虚拟资源申请,生成相应的物理资源申请。If the organization server receives virtual resource applications from multiple users, the organization server can generate a physical resource application for the physical resource mapped to the user's virtual resource for each user, or can integrate the virtual resource applications of multiple users to generate a corresponding physical resource application for the integrated virtual resource application.
在本发明的一种具体实施方式中,步骤S120可以包括以下步骤:In a specific implementation manner of the present invention, step S120 may include the following steps:
步骤一:根据接收到的虚拟资源申请中虚拟资源的类型,将接收到的虚拟资源申请进行整合,获得申请的每种类型的虚拟资源的总大小;Step 1: According to the type of virtual resource in the received virtual resource application, integrate the received virtual resource application to obtain the total size of each type of virtual resource applied for;
步骤二:根据申请的虚拟资源的类型和申请的每种类型的虚拟资源的总大小,生成针对申请的虚拟资源映射的物理资源的物理资源申请。Step 2: According to the type of the applied virtual resource and the total size of each type of virtual resource applied for, a physical resource application for the physical resource mapped to the applied virtual resource is generated.
为便于描述,将上述两个步骤结合起来进行说明。For ease of description, the above two steps are combined for description.
如前所示,虚拟资源的类型可以包括计算虚拟资源、存储虚拟资源和网络虚拟资源。组织服务器接收到的用户发送的虚拟资源申请,可以包括申请的虚拟资源的类型和申请的每种类型的虚拟资源的大小。As shown above, the types of virtual resources may include computing virtual resources, storage virtual resources, and network virtual resources. The virtual resource application received by the organization server from the user may include the type of the applied virtual resource and the size of each type of virtual resource applied for.
根据接收到的虚拟资源申请中虚拟资源的类型,可以对接收到的虚拟资源申请进行整合,确定出申请的每种类型的虚拟资源的总大小。如用户A申请存储虚拟资源100MB,用户B申请存储虚拟资源150MB,经过整合后,可以确定申请的存储虚拟资源的总大小为250MB。According to the types of virtual resources in the received virtual resource applications, the received virtual resource applications can be integrated to determine the total size of each type of virtual resources applied for. For example, user A applies for storing virtual resources of 100MB, and user B applies for storing virtual resources of 150MB. After integration, it can be determined that the total size of the requested storage virtual resources is 250MB.
将接收到的用户的虚拟资源申请进行整合后,可以根据申请的虚拟资源的类型和申请的每种类型的虚拟资源的总大小,生成针对申请的虚拟资源映射的物理资源的物理资源申请。After the received virtual resource applications from users are integrated, a physical resource application for the physical resource mapped to the applied virtual resource can be generated according to the type of the applied virtual resource and the total size of each type of virtual resource applied for.
S130:将物理资源申请发送给系统服务器,以使系统服务器根据物理资源申请,分配相应的物理资源,并返回分配结果。S130: Send the physical resource application to the system server, so that the system server allocates corresponding physical resources according to the physical resource application, and returns an allocation result.
组织服务器生成物理资源申请后,可以将物理资源申请发送给系统服务器。物理资源的类型与虚拟资源的类型相对应,可以包括:计算物理资源、存储物理资源和网络物理资源。物理资源申请中可以包括申请的物理资源的类型和申请的每种类型的物理资源的大小。After the organization server generates the physical resource application, it can send the physical resource application to the system server. The types of physical resources correspond to the types of virtual resources, and may include: computing physical resources, storage physical resources, and network physical resources. The physical resource application may include the type of physical resource applied for and the size of each type of physical resource applied for.
系统服务器接收到物理资源申请后,可以根据该物理资源申请,查看相应的资源池,从资源池中分配相应的物理资源,并将分配结果返回给组织服务器。After receiving the physical resource application, the system server can view the corresponding resource pool according to the physical resource application, allocate corresponding physical resources from the resource pool, and return the allocation result to the organization server.
S140:根据接收到的系统服务器返回的分配结果,为每个用户分配相应的虚拟资源。S140: Allocate corresponding virtual resources to each user according to the received allocation result returned by the system server.
组织服务器接收到系统服务器返回的分配结果,可以根据该分配结果,为提出虚拟资源申请的用户分配相应的虚拟资源。The organization server receives the allocation result returned by the system server, and can allocate the corresponding virtual resource to the user who applied for the virtual resource according to the allocation result.
应用本发明实施例所提供的方法,组织服务器接收到用户通过用户服务器提出的虚拟资源申请后,可以根据该虚拟资源申请,生成相应的物理资源申请,并发送给系统服务器,系统服务器根据物理资源申请,分配相应的物理资源,并返回分配结果,组织服务器接收到分配结果后,为用户分配相应的虚拟资源。这样,可以实现数量巨大的多用户管理和资源的按需分配,提高资源利用率。Applying the method provided by the embodiment of the present invention, after receiving the virtual resource application from the user through the user server, the organization server can generate a corresponding physical resource application according to the virtual resource application and send it to the system server. Apply, allocate corresponding physical resources, and return the allocation result. After receiving the allocation result, the organization server allocates the corresponding virtual resources for the user. In this way, a huge number of multi-user management and on-demand allocation of resources can be realized, and resource utilization can be improved.
在本发明的一个实施例中,该方法还包括以下步骤:In one embodiment of the invention, the method also includes the following steps:
第一个步骤:接收至少一个用户通过用户服务器发送的释放的虚拟资源信息;The first step: receiving the released virtual resource information sent by at least one user through the user server;
第二个步骤:将接收到的释放的虚拟资源信息发送给系统服务器,以使系统服务器将释放的虚拟资源映射的物理资源加入相应资源池中。The second step: sending the received released virtual resource information to the system server, so that the system server adds the physical resource mapped by the released virtual resource into the corresponding resource pool.
为便于描述,将上述两个步骤结合起来进行说明。For ease of description, the above two steps are combined for description.
在实际应用中,当用户存在不使用的虚拟资源时,可以释放该虚拟资源。用户可以通过用户服务器向组织服务器发送释放的虚拟资源的信息,如虚拟资源的类型或大小等信息。In practical applications, when the user has unused virtual resources, the virtual resources can be released. The user can send information about the released virtual resource, such as the type or size of the virtual resource, to the organization server through the user server.
组织服务器可以将接收到的释放的虚拟资源信息发送给系统服务器,这样系统服务器可以将释放的虚拟资源映射的物理资源加入到相应的资源池中,以便再有物理资源申请时,进行分配。这样,可以进一步提高资源利用率。The organization server can send the received released virtual resource information to the system server, so that the system server can add the physical resource mapped by the released virtual resource to the corresponding resource pool, so that when there is an application for the physical resource, it can be allocated. In this way, resource utilization can be further improved.
在本发明的另一个实施例中,在步骤S110之后、步骤S130之前,该方法还可以包括以下步骤:In another embodiment of the present invention, after step S110 and before step S130, the method may further include the following steps:
针对每个用户,确定该用户的虚拟资源申请是否在该用户的用户权限范围内,如果是,则接受该用户的虚拟资源申请。For each user, determine whether the user's virtual resource application is within the user's user authority range, and if so, accept the user's virtual resource application.
在本发明实施例中,可以预先为每个用户进行赋权操作,为每个用户配置相应的用户权限。组织服务器接收到用户的虚拟资源申请时,针对每个用户,可以先确定该用户的虚拟资源申请是否在该用户的用户权限范围内,如果是,则接受该用户的虚拟资源申请,否则,可以对该用户的虚拟资源申请不做处理,或者,向该用户返回审批未通过信息,如提示该用户审批未通过原因等。In the embodiment of the present invention, an authorization operation may be performed for each user in advance, and corresponding user rights are configured for each user. When the organization server receives the user's virtual resource application, for each user, it can first determine whether the user's virtual resource application is within the user's user authority range, if so, then accept the user's virtual resource application, otherwise, it can Do not process the user's virtual resource application, or return information about the failed approval to the user, such as prompting the user for the reason for the failed approval.
相应的,步骤S120可以包括以下步骤:Correspondingly, step S120 may include the following steps:
根据接受的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请。According to the accepted virtual resource application, a physical resource application for the physical resource mapped to the applied virtual resource is generated.
在本发明实施例中,可以根据系统服务器、组织服务器、用户服务器的不同角色进行赋权操作。系统服务器可以进行基础架构管理,可以操作机构数据中心,赋权最大,权限最高。In the embodiment of the present invention, the authorization operation may be performed according to different roles of the system server, the organization server, and the user server. The system server can manage the infrastructure and operate the organization's data center, with the most empowerment and the highest authority.
本发明实施例所提供的资源分配方法,系统服务器可以对大规模物理资源进行有效监控、灵活调度,可以实现物理资源或虚拟资源的动态流转与伸缩,资源可以随业务负载变化实现资源池动态伸缩和负载均衡,提高了整个数据中心的资源利用率,实现了数据中心的绿色低碳运营。In the resource allocation method provided by the embodiment of the present invention, the system server can effectively monitor and flexibly schedule large-scale physical resources, and can realize dynamic transfer and scaling of physical resources or virtual resources, and resources can realize dynamic scaling of resource pools as business load changes And load balancing, improve the resource utilization of the entire data center, and realize the green and low-carbon operation of the data center.
相应于上面的方法实施例,本发明实施例还提供了一种资源分配系统。下面对本发明实施例提供的资源分配系统进行介绍,下文描述的资源分配系统与上文描述的资源分配方法可相互对应参照。Corresponding to the above method embodiment, the embodiment of the present invention also provides a resource allocation system. The resource allocation system provided by the embodiment of the present invention is introduced below, and the resource allocation system described below and the resource allocation method described above may be referred to in correspondence.
参见图2所示,为本发明实施例所提供的一种资源分配系统的结构示意图,该系统可以包括组织服务器210、系统服务器220和用户服务器230,组织服务器210分别与系统服务器220和用户服务器230连接,其中,Referring to FIG. 2 , it is a schematic structural diagram of a resource allocation system provided by an embodiment of the present invention. The system may include an organization server 210, a system server 220, and a user server 230. The organization server 210 is connected to the system server 220 and the user server respectively. 230 connections, where,
用户服务器230,用于将至少一个用户的虚拟资源申请发送给组织服务器210;The user server 230 is configured to send the virtual resource application of at least one user to the organization server 210;
组织服务器210,用于接收用户服务器230发送的虚拟资源申请;根据接收到的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请;将物理资源申请发送给系统服务器220,以使系统服务器220根据物理资源申请,分配相应的物理资源,并返回分配结果;根据接收到的系统服务器220返回的分配结果,为每个用户分配相应的虚拟资源;The organization server 210 is used to receive the virtual resource application sent by the user server 230; according to the received virtual resource application, generate a physical resource application for the physical resource mapped to the applied virtual resource; send the physical resource application to the system server 220 to Make the system server 220 allocate corresponding physical resources according to the physical resource application, and return the allocation result; according to the received allocation result returned by the system server 220, allocate corresponding virtual resources for each user;
系统服务器220,用于接收组织服务器210发送的物理资源申请,分配相应的物理资源,返回分配结果。The system server 220 is configured to receive the physical resource application sent by the organization server 210, allocate corresponding physical resources, and return the allocation result.
应用本发明实施例所提供的系统,组织服务器210接收到用户通过用户服务器230提出的虚拟资源申请后,可以根据该虚拟资源申请,生成相应的物理资源申请,并发送给系统服务器220,系统服务器220根据物理资源申请,分配相应的物理资源,并返回分配结果,组织服务器210接收到分配结果后,为用户分配相应的虚拟资源。这样,可以实现数量巨大的多用户管理和资源的按需分配,提高资源利用率。Applying the system provided by the embodiment of the present invention, after the organization server 210 receives the virtual resource application submitted by the user through the user server 230, it can generate a corresponding physical resource application according to the virtual resource application and send it to the system server 220. The system server 220 allocates corresponding physical resources according to the physical resource application, and returns the allocation result. After receiving the allocation result, the organization server 210 allocates corresponding virtual resources to the user. In this way, a huge number of multi-user management and on-demand allocation of resources can be realized, and resource utilization can be improved.
在本发明的一种具体实施方式中,虚拟资源申请包括申请的虚拟资源的类型和申请的每种类型的虚拟资源的大小,组织服务器210,可以具体用于:In a specific embodiment of the present invention, the virtual resource application includes the type of virtual resource applied for and the size of each type of virtual resource applied for, and the organization server 210 can be specifically used for:
根据接收到的虚拟资源申请中虚拟资源的类型,将接收到的虚拟资源申请进行整合,获得申请的每种类型的虚拟资源的总大小;According to the type of virtual resource in the received virtual resource application, the received virtual resource application is integrated to obtain the total size of each type of virtual resource applied for;
根据申请的虚拟资源的类型和申请的每种类型的虚拟资源的总大小,生成针对申请的虚拟资源映射的物理资源的物理资源申请。According to the type of the applied virtual resource and the total size of each type of virtual resource applied for, a physical resource application for the physical resource mapped to the applied virtual resource is generated.
在本发明的一个实施例中,组织服务器210,还可以用于:In one embodiment of the present invention, the organization server 210 can also be used for:
接收至少一个用户通过用户服务器230发送的释放的虚拟资源信息;receiving the released virtual resource information sent by at least one user through the user server 230;
将接收到的释放的虚拟资源信息发送给系统服务器220,以使系统服务器220将释放的虚拟资源映射的物理资源加入相应资源池中。Send the received released virtual resource information to the system server 220, so that the system server 220 adds the physical resource mapped by the released virtual resource into the corresponding resource pool.
在本发明的一个实施例中,组织服务器210,还可以用于:In one embodiment of the present invention, the organization server 210 can also be used for:
在接收至少一个用户通过用户服务器230发送的虚拟资源申请之后,根据接收到的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请之前,针对每个用户,确定该用户的虚拟资源申请是否在该用户的用户权限范围内,如果是,则接受该用户的虚拟资源申请;After receiving at least one user's virtual resource application sent by the user server 230, according to the received virtual resource application, before generating a physical resource application for the physical resource mapped to the applied virtual resource, for each user, determine the virtual resource of the user. Whether the resource application is within the scope of the user's user authority, and if so, accept the user's virtual resource application;
相应的,组织服务器210,可以具体用于:Correspondingly, the organization server 210 can be specifically used for:
根据接受的虚拟资源申请,生成针对申请的虚拟资源映射的物理资源的物理资源申请。According to the accepted virtual resource application, a physical resource application for the physical resource mapped to the applied virtual resource is generated.
在本发明的一个实施例中,组织服务器210,还可以用于:In one embodiment of the present invention, the organization server 210 can also be used for:
在确定该用户的虚拟资源申请未在该用户的用户权限范围内时,向该用户返回审批未通过信息。When it is determined that the user's virtual resource application is not within the scope of the user's user rights, the approval failure information is returned to the user.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related part, please refer to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans 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 invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
以上对本发明所提供的一种资源分配方法及系统进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The resource allocation method and system provided by the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610361652.7A CN106095564A (en) | 2016-05-26 | 2016-05-26 | A kind of resource allocation methods and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610361652.7A CN106095564A (en) | 2016-05-26 | 2016-05-26 | A kind of resource allocation methods and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106095564A true CN106095564A (en) | 2016-11-09 |
Family
ID=57229320
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610361652.7A Pending CN106095564A (en) | 2016-05-26 | 2016-05-26 | A kind of resource allocation methods and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106095564A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102427473A (en) * | 2011-11-28 | 2012-04-25 | 中国联合网络通信集团有限公司 | Method and system for constructing cross-platform resource |
| CN102857370A (en) * | 2012-08-14 | 2013-01-02 | 华为技术有限公司 | A method and device for allocating resources |
| CN103051710A (en) * | 2012-12-20 | 2013-04-17 | 中国科学院深圳先进技术研究院 | Virtual cloud platform management system and method |
| CN103797463A (en) * | 2011-07-27 | 2014-05-14 | 阿尔卡特朗讯公司 | Method and apparatus for assignment of virtual resources within a cloud environment |
| CN104754013A (en) * | 2013-12-31 | 2015-07-01 | 中国移动通信集团公司 | Cloud computing platform network resource control method, device and system |
| US20160139949A1 (en) * | 2013-07-19 | 2016-05-19 | Hewlett-Packard Development Company, L.P. | Virtual machine resource management system and method thereof |
-
2016
- 2016-05-26 CN CN201610361652.7A patent/CN106095564A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103797463A (en) * | 2011-07-27 | 2014-05-14 | 阿尔卡特朗讯公司 | Method and apparatus for assignment of virtual resources within a cloud environment |
| CN102427473A (en) * | 2011-11-28 | 2012-04-25 | 中国联合网络通信集团有限公司 | Method and system for constructing cross-platform resource |
| CN102857370A (en) * | 2012-08-14 | 2013-01-02 | 华为技术有限公司 | A method and device for allocating resources |
| CN103051710A (en) * | 2012-12-20 | 2013-04-17 | 中国科学院深圳先进技术研究院 | Virtual cloud platform management system and method |
| US20160139949A1 (en) * | 2013-07-19 | 2016-05-19 | Hewlett-Packard Development Company, L.P. | Virtual machine resource management system and method thereof |
| CN104754013A (en) * | 2013-12-31 | 2015-07-01 | 中国移动通信集团公司 | Cloud computing platform network resource control method, device and system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI848945B (en) | Computing system, non-transitory computer-readable storage medium and computer-implemented method of validating blockchain transaction | |
| US9569275B2 (en) | Allocation and reservation of virtualization-based resources | |
| CN103618752B (en) | A kind of virtual machine remote desktop safety accesses system and method | |
| US8893004B2 (en) | User interface proxy method and system | |
| CN113361913A (en) | Communication service arranging method, device, computer equipment and storage medium | |
| CN108241797A (en) | Mirror warehouse user rights management method, device, system and readable storage medium | |
| WO2014183417A1 (en) | Method, device, and system for memory management | |
| CN106844050A (en) | A kind of memory allocation method and device | |
| CA2534807A1 (en) | On demand node and server instance allocation and de-allocation | |
| CN103856547A (en) | Mapping method and system of virtual machines and client side devices | |
| CN109032799A (en) | Storage resource management method, apparatus, equipment and readable storage medium storing program for executing | |
| CN106059888A (en) | IP (Internet Protocol) address assignment method and device based on open network operating system | |
| CN108737591A (en) | A kind of method and device of service configuration | |
| CN106293945A (en) | A kind of resource perception method and system across virtual machine | |
| BR112016011664B1 (en) | COMMUNICATION SYSTEM AND METHOD FOR PERFORMING COMMUNICATION EVENTS, AND COMPUTER READABLE STORAGE MEDIA | |
| CN105978744B (en) | A kind of resource allocation methods, apparatus and system | |
| CN102664894B (en) | System and method for software provision based on cloud computing | |
| CN105376347A (en) | IP address allocation method and system | |
| CN103888492A (en) | Memory management system and method | |
| CN108270858A (en) | A kind of private cloud framework and its data processing method based on API gateway | |
| CN112241307A (en) | A kind of virtual machine creation method, apparatus and related equipment | |
| CN103905473B (en) | Cloud computing system, SiteServer LBS, load-balancing method and device | |
| Alsaffar et al. | An architecture of thin client-edge computing collaboration for data distribution and resource allocation in cloud. | |
| CN108551477B (en) | Data transmission channel establishment system, network storage device, server and method | |
| CN105681266B (en) | A kind of communication cluster method and device of mediaphone MMTel |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161109 |
|
| RJ01 | Rejection of invention patent application after publication |