CN108400898A - The management method and device of resource in cloud data management platform - Google Patents
The management method and device of resource in cloud data management platform Download PDFInfo
- Publication number
- CN108400898A CN108400898A CN201810538053.7A CN201810538053A CN108400898A CN 108400898 A CN108400898 A CN 108400898A CN 201810538053 A CN201810538053 A CN 201810538053A CN 108400898 A CN108400898 A CN 108400898A
- Authority
- CN
- China
- Prior art keywords
- user
- resource
- data center
- virtual data
- virtual
- 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
- 238000007726 management method Methods 0.000 title claims abstract description 69
- 238000013523 data management Methods 0.000 title claims abstract description 12
- 238000000034 method Methods 0.000 claims abstract description 39
- 230000004044 response Effects 0.000 claims description 2
- 230000008569 process Effects 0.000 description 12
- 230000003993 interaction Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000013439 planning Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/04—Network management architectures or arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明涉及信息处理领域,尤指一种云数据管理平台中资源的管理方法和装置。The invention relates to the field of information processing, in particular to a resource management method and device in a cloud data management platform.
背景技术Background technique
随着云计算的日益成熟和大众对云计算接受度的提高,越来越多的企业开始部署云计算管理平台,用云计算管理平台管理自己的服务器,将公司业务迁移上计算管理平台,用于管理计算、存储、网络等资源。With the increasing maturity of cloud computing and the increasing acceptance of cloud computing by the public, more and more enterprises have begun to deploy cloud computing management platforms, use cloud computing management platforms to manage their own servers, and migrate company business to computing management platforms. It is used to manage computing, storage, network and other resources.
在用户使用云计算管理平台时,如果要创建一个虚拟机,需要先进行一系列操作,包括创建集群、存储、网络等,这些前置条件都有了,才能创建虚拟机,操作步骤较为繁多。除此之外,云管平台一般都有管理员端和租户端,租户端权限较小,租户在创建虚拟机前可能还需要向管理员申请存储、网络等,使用不便,增加了管理员端的管理维护成本。When users use the cloud computing management platform, if they want to create a virtual machine, they need to perform a series of operations, including creating a cluster, storage, network, etc., and these preconditions are met before creating a virtual machine, and the operation steps are quite complicated. In addition, cloud management platforms generally have an administrator terminal and a tenant terminal. The tenant terminal has less authority. Before creating a virtual machine, the tenant may need to apply to the administrator for storage, network, etc., which is inconvenient to use and increases the administrator’s workload Manage maintenance costs.
如何提升云计算管理平台中租户端的管理效率是亟待解决的问题。How to improve the management efficiency of tenants in the cloud computing management platform is an urgent problem to be solved.
发明内容Contents of the invention
为了解决上述技术问题,本发明提供了一种云数据管理平台中资源的管理方法和装置。In order to solve the above technical problems, the present invention provides a resource management method and device in a cloud data management platform.
为了达到本发明目的,本发明提供了一种云数据管理平台中资源的管理方法,包括:In order to achieve the purpose of the present invention, the present invention provides a resource management method in a cloud data management platform, including:
在接收到用户批量创建虚拟机的请求后,获取所述用户所需虚拟机的配置管理参数,其中所述配置管理参数包括创建所述虚拟机所需资源的取值范围;After receiving the user's request to create virtual machines in batches, obtain the configuration management parameters of the virtual machines required by the user, wherein the configuration management parameters include the value range of the resources required to create the virtual machines;
根据所述资源的取值范围,从预先设置的资源池中,为所述用户选择符合所述数量的取值范围的目标资源;According to the value range of the resource, from a preset resource pool, select a target resource that meets the value range of the quantity for the user;
利用所述目标资源,为所述用户创建所述用户对应的虚拟数据中心;Create a virtual data center corresponding to the user for the user by using the target resource;
控制所述虚拟数据中心响应所述用户对虚拟机的管理请求。and controlling the virtual data center to respond to the user's management request for the virtual machine.
其中,所述方法还具有如下特点:所述根据所述资源的取值范围,从预先设置的资源池中,为所述用户选择符合所述数量的取值范围的目标资源,所述方法包括:Wherein, the method also has the following characteristics: according to the value range of the resource, from a preset resource pool, a target resource that meets the value range of the number is selected for the user, and the method includes :
按照创建虚拟机所需资料的资源类型,从预先设置的该类型资源中不同规格的资源中,对计算资源和/或存储资源进行选择,得到符合该取值范围的计算资源和/或存储资源。According to the resource type of the materials required to create a virtual machine, select computing resources and/or storage resources from the resources of different specifications in the preset resources of this type, and obtain computing resources and/or storage resources that meet the value range .
其中,所述方法还具有如下特点:所述利用所述目标资源,为所述用户创建所述用户对应的虚拟数据中心之前,所述方法还包括:Wherein, the method also has the following characteristics: before using the target resource to create the virtual data center corresponding to the user for the user, the method further includes:
向网络管理中心查询网络配置信息,其中所述网络配置信息包括所述用户申请的网卡个数信息;Querying the network management center for network configuration information, wherein the network configuration information includes information on the number of network cards applied by the user;
接收所述网络管理中心反馈的网络配置结果,其中所述网络配置结果包括所述用户对应的网络和IP地址信息,得到创建所述用户所需的网络资源。receiving the network configuration result fed back by the network management center, wherein the network configuration result includes the network and IP address information corresponding to the user, and obtaining the network resources required for creating the user.
其中,所述方法还具有如下特点:所述控制所述虚拟数据中心响应所述用户对虚拟机的管理请求,包括:Wherein, the method also has the following characteristics: the controlling the virtual data center to respond to the user's management request for the virtual machine includes:
获取所述虚拟数据中心的标识信息;Acquiring identification information of the virtual data center;
利用所述虚拟数据中心的标识信息和所述用户的身份信息,建立所述虚拟数据中心与所述用户的绑定关系;Establish a binding relationship between the virtual data center and the user by using the identification information of the virtual data center and the identity information of the user;
利用所述绑定关系,控制所述虚拟数据中心响应所述用户的虚拟机管理请求。Using the binding relationship, control the virtual data center to respond to the user's virtual machine management request.
其中,所述方法还具有如下特点:所述控制所述虚拟数据中心响应所述用户对虚拟机的管理请求,所述方法还包括:Wherein, the method also has the following characteristics: the controlling the virtual data center responds to the user's management request for the virtual machine, and the method further includes:
记录所述用户在所述虚拟数据中心的资源的实际使用情况;Recording the actual usage of resources of the user in the virtual data center;
将所述虚拟数据中心的资源与所述用户实际使用的资源进行比对,得到比对结果;comparing the resources of the virtual data center with the resources actually used by the user to obtain a comparison result;
当比对结果为所述虚拟数据中心的资源与所述用户实际使用资源不匹配时,根据所述用户实际使用资源情况对所述虚拟数据中心的资源进行调整。When the comparison result shows that the resource of the virtual data center does not match the resource actually used by the user, the resource of the virtual data center is adjusted according to the resource actually used by the user.
一种云数据管理平台中资源的管理装置,包括:A resource management device in a cloud data management platform, comprising:
获取模块,用于在接收到用户批量创建虚拟机的请求后,获取所述用户所需虚拟机的配置管理参数,其中所述配置管理参数包括创建所述虚拟机所需资源的取值范围;An acquisition module, configured to acquire configuration management parameters of the virtual machines required by the user after receiving a request from the user to create virtual machines in batches, wherein the configuration management parameters include a value range of resources required to create the virtual machines;
选择模块,用于根据所述资源的取值范围,从预先设置的资源池中,为所述用户选择符合所述数量的取值范围的目标资源;A selection module, configured to, according to the value range of the resource, select a target resource that meets the value range of the quantity for the user from a preset resource pool;
创建模块,用于利用所述目标资源,为所述用户创建所述用户对应的虚拟数据中心;A creating module, configured to use the target resource to create a virtual data center corresponding to the user for the user;
控制模块,用于控制所述虚拟数据中心响应所述用户对虚拟机的管理请求。A control module, configured to control the virtual data center to respond to the user's management request for the virtual machine.
其中,所述装置还具有如下特点:所述选择模块具体用于:Wherein, the device also has the following characteristics: the selection module is specifically used for:
按照创建虚拟机所需资料的资源类型,从预先设置的该类型资源中不同规格的资源中,对计算资源和/或存储资源进行选择,得到符合该取值范围的计算资源和/或存储资源。According to the resource type of the materials required to create a virtual machine, select computing resources and/or storage resources from the resources of different specifications in the preset resources of this type, and obtain computing resources and/or storage resources that meet the value range .
其中,所述装置还具有如下特点:所述装置还包括:Wherein, the device also has the following characteristics: the device also includes:
查询模块,用于在创建虚拟数据中心前,向网络管理中心查询网络配置信息,其中所述网络配置信息包括所述用户申请的网卡个数信息;A query module, configured to query the network management center for network configuration information before creating the virtual data center, wherein the network configuration information includes information on the number of network cards applied by the user;
接收模块,用于接收所述网络管理中心反馈的网络配置结果,其中所述网络配置结果包括所述用户对应的网络和IP地址信息,得到创建所述用户所需的网络资源。The receiving module is configured to receive the network configuration result fed back by the network management center, wherein the network configuration result includes the network and IP address information corresponding to the user, and obtain the network resources required for creating the user.
其中,所述装置还具有如下特点:所述控制模块包括:Wherein, the device also has the following characteristics: the control module includes:
获取单元,用于获取所述虚拟数据中心的标识信息;an obtaining unit, configured to obtain identification information of the virtual data center;
建立单元,用于利用所述虚拟数据中心的标识信息和所述用户的身份信息,建立所述虚拟数据中心与所述用户的绑定关系;An establishing unit, configured to establish a binding relationship between the virtual data center and the user by using the identification information of the virtual data center and the identity information of the user;
控制单元,用于利用所述绑定关系,控制所述虚拟数据中心响应所述用户的虚拟机管理请求。A control unit, configured to use the binding relationship to control the virtual data center to respond to the user's virtual machine management request.
其中,所述装置还具有如下特点:所述装置还包括:Wherein, the device also has the following characteristics: the device also includes:
记录模块,用于记录所述用户在所述虚拟数据中心的资源的实际使用情况;A recording module, configured to record the actual usage of resources of the user in the virtual data center;
比对模块,用于将所述虚拟数据中心的资源与所述用户实际使用的资源进行比对,得到比对结果;A comparison module, configured to compare the resources of the virtual data center with the resources actually used by the user to obtain a comparison result;
调整模块,用于当比对结果为所述虚拟数据中心的资源与所述用户实际使用资源不匹配时,根据所述用户实际使用资源情况对所述虚拟数据中心的资源进行调整。An adjustment module, configured to adjust the resources of the virtual data center according to the actual use of resources by the user when the comparison result shows that the resources of the virtual data center do not match the resources actually used by the user.
本发明提供的实施例,在用户申请批量创建虚拟机时,获取批量创建虚拟机所需资源的大小,为该用户创建虚拟数据中心,控制该虚拟数据中心来响应该用户的管理请求,减少与管理平台的交互,提升用户对所负责的虚拟机的管理效率。In the embodiment provided by the present invention, when a user applies for batch creation of virtual machines, the size of the resources required for batch creation of virtual machines is obtained, a virtual data center is created for the user, and the virtual data center is controlled to respond to the user's management request, reducing the cost of The interaction of the management platform improves the management efficiency of the virtual machine that the user is responsible for.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present invention, and constitute a part of the description, and are used together with the embodiments of the application to explain the technical solution of the present invention, and do not constitute a limitation to the technical solution of the present invention.
图1为本发明提供的云数据管理平台中资源的管理方法的流程图;Fig. 1 is the flowchart of the resource management method in the cloud data management platform provided by the present invention;
图2为本发明提供的云数据管理平台中资源的管理装置的结构图。FIG. 2 is a structural diagram of a resource management device in a cloud data management platform provided by the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
图1为本发明提供的云数据管理平台中资源的管理方法的流程图。图1所示方法包括:FIG. 1 is a flowchart of a resource management method in a cloud data management platform provided by the present invention. The methods shown in Figure 1 include:
步骤101、在接收到用户批量创建虚拟机的请求后,获取所述用户所需虚拟机的配置管理参数,其中所述配置管理参数包括创建所述虚拟机所需资源的取值范围;Step 101, after receiving the user's request to create virtual machines in batches, obtain the configuration management parameters of the virtual machines required by the user, wherein the configuration management parameters include the value range of the resources required to create the virtual machines;
其中,当用户要批量创建虚拟机时,确认该用户日后要管理多个虚拟机,为减少与管理平台的交互流程,可一次性地获取批量创建所述虚拟机的资源的取值区间;Wherein, when the user wants to create virtual machines in batches, it is confirmed that the user will manage multiple virtual machines in the future, and in order to reduce the interaction process with the management platform, the value interval of the resources for batch creating the virtual machines can be obtained at one time;
步骤102、根据所述资源的取值范围,从预先设置的资源池中,为所述用户选择符合所述数量的取值范围的目标资源;Step 102, according to the value range of the resource, select a target resource that meets the value range of the quantity for the user from a preset resource pool;
其中,为该批量创建的虚拟机选择合适的资源以保证能够完成批量建立;Wherein, selecting appropriate resources for the virtual machines created in batches to ensure that the batch creation can be completed;
步骤103、利用所述目标资源,为所述用户创建所述用户对应的虚拟数据中心;Step 103: Using the target resource, create a virtual data center corresponding to the user for the user;
与现有技术中管理平台逐个创建虚拟机不同的是,将该用户所需的资源创建一个逻辑的虚拟数据中心;Different from creating virtual machines one by one by the management platform in the prior art, a logical virtual data center is created for the resources required by the user;
步骤104、控制所述虚拟数据中心响应所述用户对虚拟机的管理请求。Step 104, controlling the virtual data center to respond to the user's management request for the virtual machine.
在对该用户的虚拟机的管理请求时,由该逻辑的虚拟数据中心进行响应,无需于管理平台进行交互,由于该用户对在虚拟数据中心下的虚拟机均具有管理权限,因此,在该虚拟数据中心对虚拟机的管理,可对该虚拟机间的资源实现协调分配,方便用户对资源的维护和管理。When the user's virtual machine management request is made, the logical virtual data center responds without interacting with the management platform. Since the user has management rights to the virtual machines under the virtual data center, therefore, in this The management of virtual machines by the virtual data center can realize coordinated allocation of resources among the virtual machines, which is convenient for users to maintain and manage resources.
本发明提供的方法实施例,在用户申请批量创建虚拟机时,获取批量创建虚拟机所需资源的大小,为该用户创建虚拟数据中心,控制该虚拟数据中心来响应该用户的管理请求,减少与管理平台的交互,提升用户对所负责的虚拟机的管理效率。In the method embodiment provided by the present invention, when a user applies for batch creation of virtual machines, the size of resources required for batch creation of virtual machines is obtained, a virtual data center is created for the user, and the virtual data center is controlled to respond to the user's management request, reducing The interaction with the management platform improves the management efficiency of the virtual machine that the user is responsible for.
下面对本发明提供的方法实施例作进一步说明:The method embodiment provided by the present invention is described further below:
本发明提出了云平台资源的管理方法。实现流程如下:The invention proposes a management method for cloud platform resources. The implementation process is as follows:
管理员端先创建好租户可能需要的集群、存储池、网络池等;租户登录租户端,向管理员申请一个虚拟数据中心。管理员审批通过后,用户直接拥有了一个虚拟数据中心,这个虚拟数据中心里包含了自己创建虚拟机所需的计算、存储、网络等资源,其中该虚拟数据中心还可以包含一个或多个配置模板,每个配置模板对应一个虚拟机配置,配置参数包括vCpu、内存、硬盘、网卡,用户可以利用上述配置模板,直接在该数据中心创建虚拟机。The administrator first creates the clusters, storage pools, network pools, etc. that the tenant may need; the tenant logs in to the tenant and applies to the administrator for a virtual data center. After the administrator approves, the user directly owns a virtual data center, which contains computing, storage, network and other resources needed to create a virtual machine. The virtual data center can also contain one or more configuration Templates, each configuration template corresponds to a virtual machine configuration, and the configuration parameters include vCpu, memory, hard disk, and network card. Users can use the above configuration templates to directly create virtual machines in the data center.
其中,所述根据所述资源的取值范围,从预先设置的资源池中,为所述用户选择符合所述数量的取值范围的目标资源,所述方法包括:Wherein, according to the value range of the resource, from a preset resource pool, select a target resource that meets the value range of the quantity for the user, and the method includes:
按照创建虚拟机所需资料的资源类型,从预先设置的该类型资源中不同规格的资源中,对计算资源和/或存储资源进行选择,得到符合该取值范围的计算资源和/或存储资源。According to the resource type of the materials required to create a virtual machine, select computing resources and/or storage resources from the resources of different specifications in the preset resources of this type, and obtain computing resources and/or storage resources that meet the value range .
具体的,资源的取值范围可以通过如下方式来得到:Specifically, the resource value range can be obtained in the following ways:
在用户填写资源配置信息时,通知用户以配置模板为单位,填写所需资源的参数,其中一个配置模板中包括:vCpu、内存、硬盘、网卡数量四个参数,一个配置模板代表一个虚拟机的配置。一个虚拟数据中心可包含多个配置模板;When the user fills in the resource configuration information, the user is notified to fill in the parameters of the required resources in units of configuration templates. One of the configuration templates includes four parameters: vCpu, memory, hard disk, and number of network cards. A configuration template represents a virtual machine. configuration. A virtual data center can contain multiple configuration templates;
云平台需预先设置不同资源类型对应的资源池,如计算资源对应的集群,硬盘资源对应的存储池等,不同资源池中有大小规格不同的资源块。The cloud platform needs to pre-set resource pools corresponding to different resource types, such as clusters corresponding to computing resources, storage pools corresponding to hard disk resources, etc. Different resource pools have resource blocks of different sizes and specifications.
在得到资源的取值范围后,在该资源对应的资源池中选择符合该取值范围的资源块作为目标资源。After obtaining the value range of the resource, a resource block conforming to the value range is selected in the resource pool corresponding to the resource as the target resource.
由于网络资源是需要网络管理中心进行统一规划的,因此,在利用所述目标资源,为所述用户创建所述用户对应的虚拟数据中心之前,所述方法还包括:Since the network resources need to be planned uniformly by the network management center, before using the target resources to create a virtual data center corresponding to the user for the user, the method further includes:
向网络管理中心查询网络配置信息,其中所述网络配置信息包括所述用户申请的网卡个数信息;Querying the network management center for network configuration information, wherein the network configuration information includes information on the number of network cards applied by the user;
接收所述网络管理中心反馈的网络配置结果,其中所述网络配置结果包括所述用户对应的网络和IP地址信息,得到创建所述用户所需的网络资源。receiving the network configuration result fed back by the network management center, wherein the network configuration result includes the network and IP address information corresponding to the user, and obtaining the network resources required for creating the user.
通过向网络管理平台获取网络资源,可以减少网络资源冲突的发生,提升虚拟机管理请求的响应成功率。By obtaining network resources from the network management platform, the occurrence of network resource conflicts can be reduced, and the success rate of responding to virtual machine management requests can be improved.
在控制所述虚拟数据中心响应所述用户对虚拟机的管理请求时,通过获取所述虚拟数据中心的标识信息,利用所述虚拟数据中心的标识信息和所述用户的身份信息,建立所述虚拟数据中心与所述用户的绑定关系,进而利用所述绑定关系,控制所述虚拟数据中心响应所述用户的虚拟机管理请求。When controlling the virtual data center to respond to the user's management request for the virtual machine, by obtaining the identification information of the virtual data center, using the identification information of the virtual data center and the user's identity information, the establishment of the The binding relationship between the virtual data center and the user, and then using the binding relationship to control the virtual data center to respond to the user's virtual machine management request.
这样的虚拟数据中心就像一个集装箱,它装载了租户创建虚拟机时所需的计算、存储、网络等资源参数,租户将需要的各种资源配置打包成虚拟数据中心向管理员申请,管理员从已经创建好的存储池、网络池中选择资源,分配给该虚拟数据中心;从而达到租户直接使用的目的。Such a virtual data center is like a container, which is loaded with resource parameters such as computing, storage, and network required by the tenant when creating a virtual machine. The tenant packages the required resource configurations into a virtual data center and applies to the administrator. The administrator Select resources from the created storage pool and network pool, and allocate them to the virtual data center; thus achieving the purpose of direct use by tenants.
为了保证为该用户分配的资源能够合理充分的利用,所述控制所述虚拟数据中心响应所述用户对虚拟机的管理请求,所述方法还包括:In order to ensure that the resources allocated to the user can be reasonably and fully utilized, the controlling the virtual data center to respond to the user's management request for the virtual machine, the method further includes:
记录所述用户在所述虚拟数据中心的资源的实际使用情况;Recording the actual usage of resources of the user in the virtual data center;
将所述虚拟数据中心的资源与所述用户实际使用的资源进行比对,得到比对结果;comparing the resources of the virtual data center with the resources actually used by the user to obtain a comparison result;
当比对结果为所述虚拟数据中心的资源与所述用户实际使用资源不匹配时,根据所述用户实际使用资源情况对所述虚拟数据中心的资源进行调整。When the comparison result shows that the resource of the virtual data center does not match the resource actually used by the user, the resource of the virtual data center is adjusted according to the resource actually used by the user.
具体的,当用户申请的虚拟资源在大多数时间处于闲置状态时,为了将闲置资源得到充分利用,可以将闲置资源的全部或部分从该虚拟数据中心进行释放,将释放得到的资源分配给其他用户,在保证正常响应该用户的管理请求的前提下,充分利用资源,实现资源的最大化利用。Specifically, when the virtual resources requested by the user are idle most of the time, in order to make full use of the idle resources, all or part of the idle resources can be released from the virtual data center, and the released resources can be allocated to other The user, on the premise of ensuring normal response to the user's management request, makes full use of resources and realizes the maximum utilization of resources.
下面本发明结合具体应用场景对申请云平台资源的方法进行说明:Below, the present invention describes the method for applying for cloud platform resources in conjunction with specific application scenarios:
云海操作系统OS包括管理员端(ICM)和租户端(ISM),内置了申请审批流程,流程节点可自定义。租户在ISM端发起申请虚拟数据中心的请求后,系统会依据流程,将订单流转到各个节点,节点管理员登录ICM时,可以看到并审批该订单。在使用云平台时,租户想创建虚拟机,不必自己先手动创建各种计算、存储、网络资源,只需向管理员申请一个虚拟数据中心(里面包含了自己需要的资源配置),管理员审批通过后,租户便可以在虚拟数据中心下创建虚拟机。方法的具体实施流程包括:The Yunhai operating system OS includes the administrator terminal (ICM) and the tenant terminal (ISM), and has a built-in application approval process, and the process nodes can be customized. After the tenant initiates a request to apply for a virtual data center on the ISM side, the system will transfer the order to each node according to the process. When the node administrator logs in to the ICM, he can see and approve the order. When using the cloud platform, if tenants want to create virtual machines, they do not need to manually create various computing, storage, and network resources. They only need to apply to the administrator for a virtual data center (which contains the resource configuration they need), and the administrator will approve it. After passing, the tenant can create virtual machines under the virtual data center. The specific implementation process of the method includes:
下面以云海OS为例,阐述本发明的具体实施过程:The following takes Yunhai OS as an example to illustrate the specific implementation process of the present invention:
(1)超级管理员登录ICM,创建租户可能需要的各种资源:集群、存储池、网络、IP池;(1) The super administrator logs in to ICM and creates various resources that tenants may need: clusters, storage pools, networks, and IP pools;
(2)普通租户登录ISM,申请虚拟数据中心,其中需要以配置模板为单位,填写所需资源的参数。一个配置模板中包括:vCpu、内存、硬盘、网卡数量四个参数,一个配置模板代表一个虚拟机的配置。一个虚拟数据中心可包含多个配置模板;(2) Ordinary tenants log in to ISM and apply for a virtual data center, in which they need to fill in the parameters of the required resources in units of configuration templates. A configuration template includes four parameters: vCpu, memory, hard disk, and number of network cards, and a configuration template represents the configuration of a virtual machine. A virtual data center can contain multiple configuration templates;
(3)订单流转到管理员节点,管理员查看订单详情,进行审批,可通过或者打回;(3) The order flows to the administrator node, and the administrator checks the order details and approves it, which can be passed or returned;
(4)网络资源比较特殊和复杂,需统一规划管理,通常在流程中设置一个网络管理员节点,订单流转到该节点时,网络管理员根据租户申请的网卡个数,分配网络和IP;(4) Network resources are special and complex, and require unified planning and management. Usually, a network administrator node is set up in the process. When the order flows to this node, the network administrator allocates the network and IP according to the number of network cards applied by the tenant;
(5)流程最后一个节点的管理员,是虚拟数据中心的实际创建者,该管理员同意该申请,并执行创建虚拟机数据中心:首先在ICM已经创建好的计算资源中选择集群,然后在已有存储池中选择存储并指定大小,再拿到刚才网络管理员配置的网络信息,进行虚拟数据中心的创建。(5) The administrator of the last node in the process is the actual creator of the virtual data center. The administrator agrees to the application and executes the creation of the virtual machine data center: first select the cluster among the computing resources that have been created by ICM, and then Select storage from the existing storage pool and specify the size, and then get the network information configured by the network administrator just now to create a virtual data center.
(6)程序后台会创建一个逻辑的虚拟数据中心,并将选择的计算、存储、网络资源分配给它,再把虚拟数据中心绑定给发起申请的租户。至此,完成了申请审批虚拟数据中心的流程。(6) The background of the program will create a logical virtual data center, allocate the selected computing, storage, and network resources to it, and then bind the virtual data center to the tenant who initiated the application. So far, the process of applying for and approving the virtual data center has been completed.
(7)租户登录ISM,即可看到自己申请的虚拟数据中心,并且可以在里面创建虚拟机。每一个虚拟机的配置,都是申请时填写的配置模板的配置。(7) Tenants log in to ISM, and then they can see the virtual data center they have applied for, and can create virtual machines in it. The configuration of each virtual machine is the configuration of the configuration template filled in when applying.
本发明提出用虚拟数据中心这一逻辑实体打包云平台资源,结合申请审批流程,租户申请虚拟数据中心,获取自己想要的各种配置。这一发明,大大降低了租户使用云平台的难度和复杂度,租户无需了解云平台的资源情况,无需亲自去创建一个网络、存储等,只需要申请一个虚拟数据中心,并填写需要多少vCpu、内存、硬盘、网卡,管理员会为租户合理分配这些资源,以供后者使用。在上述方法中,利用虚拟数据中心这一逻辑实体打包云平台资源,结合申请审批流程,租户申请虚拟数据中心,获取自己想要的各种配置。The present invention proposes to use the virtual data center as a logical entity to package cloud platform resources, combined with the application approval process, tenants apply for the virtual data center, and obtain various configurations they want. This invention greatly reduces the difficulty and complexity for tenants to use the cloud platform. Tenants do not need to know the resources of the cloud platform, and do not need to create a network, storage, etc. in person. They only need to apply for a virtual data center and fill in how many vCpu, Memory, hard disk, and network card, the administrator will reasonably allocate these resources to the tenants for the latter to use. In the above method, the virtual data center is used as a logical entity to package cloud platform resources, combined with the application approval process, tenants apply for a virtual data center to obtain various configurations they want.
图2为本发明提供的云数据管理平台中资源的管理装置的结构图。图2所示方法包括:FIG. 2 is a structural diagram of a resource management device in a cloud data management platform provided by the present invention. The methods shown in Figure 2 include:
获取模块201,用于在接收到用户批量创建虚拟机的请求后,获取所述用户所需虚拟机的配置管理参数,其中所述配置管理参数包括创建所述虚拟机所需资源的取值范围;The obtaining module 201 is configured to obtain the configuration management parameters of the virtual machines required by the user after receiving the user's request to create virtual machines in batches, wherein the configuration management parameters include the value range of the resources required to create the virtual machines ;
选择模块202,用于根据所述资源的取值范围,从预先设置的资源池中,为所述用户选择符合所述数量的取值范围的目标资源;A selection module 202, configured to select, for the user, a target resource that meets the value range of the quantity from a preset resource pool according to the value range of the resource;
创建模块203,用于利用所述目标资源,为所述用户创建所述用户对应的虚拟数据中心;The creating module 203 is configured to use the target resource to create a virtual data center corresponding to the user for the user;
控制模块204,用于控制所述虚拟数据中心响应所述用户对虚拟机的管理请求。The control module 204 is configured to control the virtual data center to respond to the user's management request for the virtual machine.
在本发明提供的一个装置实施例中,所述选择模块202具体用于:In a device embodiment provided by the present invention, the selection module 202 is specifically used for:
按照创建虚拟机所需资料的资源类型,从预先设置的该类型资源中不同规格的资源中,对计算资源和/或存储资源进行选择,得到符合该取值范围的计算资源和/或存储资源。According to the resource type of the materials required to create a virtual machine, select computing resources and/or storage resources from the resources of different specifications in the preset resources of this type, and obtain computing resources and/or storage resources that meet the value range .
在本发明提供的一个装置实施例中,所述装置还包括:In an embodiment of the device provided by the present invention, the device further includes:
查询模块,用于在创建虚拟数据中心前,向网络管理中心查询网络配置信息,其中所述网络配置信息包括所述用户申请的网卡个数信息;A query module, configured to query the network management center for network configuration information before creating the virtual data center, wherein the network configuration information includes information on the number of network cards applied by the user;
接收模块,用于接收所述网络管理中心反馈的网络配置结果,其中所述网络配置结果包括所述用户对应的网络和IP地址信息,得到创建所述用户所需的网络资源。The receiving module is configured to receive the network configuration result fed back by the network management center, wherein the network configuration result includes the network and IP address information corresponding to the user, and obtain the network resources required for creating the user.
在本发明提供的一个装置实施例中,所述控制模块204包括:In a device embodiment provided by the present invention, the control module 204 includes:
获取单元,用于获取所述虚拟数据中心的标识信息;an obtaining unit, configured to obtain identification information of the virtual data center;
建立单元,用于利用所述虚拟数据中心的标识信息和所述用户的身份信息,建立所述虚拟数据中心与所述用户的绑定关系;An establishing unit, configured to establish a binding relationship between the virtual data center and the user by using the identification information of the virtual data center and the identity information of the user;
控制单元,用于利用所述绑定关系,控制所述虚拟数据中心响应所述用户的虚拟机管理请求。A control unit, configured to use the binding relationship to control the virtual data center to respond to the user's virtual machine management request.
在本发明提供的一个装置实施例中,所述装置还包括:In an embodiment of the device provided by the present invention, the device further includes:
记录模块,用于记录所述用户在所述虚拟数据中心的资源的实际使用情况;A recording module, configured to record the actual usage of resources of the user in the virtual data center;
比对模块,用于将所述虚拟数据中心的资源与所述用户实际使用的资源进行比对,得到比对结果;A comparison module, configured to compare the resources of the virtual data center with the resources actually used by the user to obtain a comparison result;
调整模块,用于当比对结果为所述虚拟数据中心的资源与所述用户实际使用资源不匹配时,根据所述用户实际使用资源情况对所述虚拟数据中心的资源进行调整。An adjustment module, configured to adjust the resources of the virtual data center according to the actual use of resources by the user when the comparison result shows that the resources of the virtual data center do not match the resources actually used by the user.
本发明提供的装置实施例,在用户申请批量创建虚拟机时,获取批量创建虚拟机所需资源的大小,为该用户创建虚拟数据中心,控制该虚拟数据中心来响应该用户的管理请求,减少与管理平台的交互,提升用户对所负责的虚拟机的管理效率。In the device embodiment provided by the present invention, when a user applies for batch creation of virtual machines, the size of the resources required for batch creation of virtual machines is obtained, a virtual data center is created for the user, and the virtual data center is controlled to respond to the user's management request, reducing The interaction with the management platform improves the management efficiency of the virtual machine that the user is responsible for.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned embodiments can be implemented using a computer program flow, the computer program can be stored in a computer-readable storage medium, and the computer program can be run on a corresponding hardware platform (such as system, device, device, device, etc.), and when executed, includes one or a combination of the steps of the method embodiment.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Optionally, all or part of the steps in the above embodiments can also be implemented using integrated circuits, and these steps can be fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module accomplish. As such, the present invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/functional modules/functional units in the above embodiments can be realized by general-purpose computing devices, and they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/functional module/functional unit in the above-mentioned embodiments is realized in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope described in the claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810538053.7A CN108400898A (en) | 2018-05-30 | 2018-05-30 | The management method and device of resource in cloud data management platform |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810538053.7A CN108400898A (en) | 2018-05-30 | 2018-05-30 | The management method and device of resource in cloud data management platform |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108400898A true CN108400898A (en) | 2018-08-14 |
Family
ID=63101396
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810538053.7A Pending CN108400898A (en) | 2018-05-30 | 2018-05-30 | The management method and device of resource in cloud data management platform |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108400898A (en) |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108984302A (en) * | 2018-07-05 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of method and apparatus of cloud data center resource quota management |
| CN109040276A (en) * | 2018-08-20 | 2018-12-18 | 郑州云海信息技术有限公司 | A kind of method, apparatus, computer storage medium and terminal constructing cloud platform |
| CN109951548A (en) * | 2019-03-19 | 2019-06-28 | 深信服科技股份有限公司 | The management method and cloud Guan Pingtai of the resource of cloud platform |
| CN111694649A (en) * | 2020-06-12 | 2020-09-22 | 北京字节跳动网络技术有限公司 | Resource scheduling method and device, computer equipment and storage medium |
| CN112241307A (en) * | 2020-10-21 | 2021-01-19 | 海光信息技术股份有限公司 | Virtual machine creation method and device and related equipment |
| CN112688988A (en) * | 2020-11-25 | 2021-04-20 | 紫光云技术有限公司 | Method for migrating network virtual resources across platforms |
| CN113900766A (en) * | 2020-07-06 | 2022-01-07 | 华为技术有限公司 | Method, device and equipment for changing specification of computing instance |
| CN114710489A (en) * | 2022-03-31 | 2022-07-05 | 浪潮云信息技术股份公司 | Distributed cloud resource scheduling method and device and distributed cloud |
| CN114996005A (en) * | 2022-05-31 | 2022-09-02 | 济南浪潮数据技术有限公司 | Resource scheduling method, device, equipment and medium |
| WO2024148981A1 (en) * | 2023-01-12 | 2024-07-18 | 华为云计算技术有限公司 | Resource creation method based on public cloud, and cloud management platform |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104199741A (en) * | 2014-08-29 | 2014-12-10 | 曙光信息产业(北京)有限公司 | Virtual data management method for cloud computing environment |
| CN104468803A (en) * | 2014-12-12 | 2015-03-25 | 华为技术有限公司 | Virtual data center resource mapping method and equipment |
| CN107133083A (en) * | 2017-04-13 | 2017-09-05 | 大连理工大学 | A kind of virtual data center resource provider method based on virtualization technology |
| CN107332899A (en) * | 2017-06-27 | 2017-11-07 | 西安京华科讯软件科技有限公司 | One kind virtualization cloud computing desktop |
-
2018
- 2018-05-30 CN CN201810538053.7A patent/CN108400898A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104199741A (en) * | 2014-08-29 | 2014-12-10 | 曙光信息产业(北京)有限公司 | Virtual data management method for cloud computing environment |
| CN104468803A (en) * | 2014-12-12 | 2015-03-25 | 华为技术有限公司 | Virtual data center resource mapping method and equipment |
| CN107133083A (en) * | 2017-04-13 | 2017-09-05 | 大连理工大学 | A kind of virtual data center resource provider method based on virtualization technology |
| CN107332899A (en) * | 2017-06-27 | 2017-11-07 | 西安京华科讯软件科技有限公司 | One kind virtualization cloud computing desktop |
Non-Patent Citations (1)
| Title |
|---|
| 左成,虞红芳: ""基于软件定义网络的虚拟数据中心管理平台"", 《计算机应用》 * |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108984302A (en) * | 2018-07-05 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of method and apparatus of cloud data center resource quota management |
| CN109040276A (en) * | 2018-08-20 | 2018-12-18 | 郑州云海信息技术有限公司 | A kind of method, apparatus, computer storage medium and terminal constructing cloud platform |
| CN109040276B (en) * | 2018-08-20 | 2022-03-22 | 郑州云海信息技术有限公司 | A method, device, computer storage medium and terminal for building a cloud platform |
| CN109951548B (en) * | 2019-03-19 | 2021-11-19 | 深信服科技股份有限公司 | Resource management method of cloud platform and cloud management platform |
| CN109951548A (en) * | 2019-03-19 | 2019-06-28 | 深信服科技股份有限公司 | The management method and cloud Guan Pingtai of the resource of cloud platform |
| CN111694649A (en) * | 2020-06-12 | 2020-09-22 | 北京字节跳动网络技术有限公司 | Resource scheduling method and device, computer equipment and storage medium |
| CN113900766A (en) * | 2020-07-06 | 2022-01-07 | 华为技术有限公司 | Method, device and equipment for changing specification of computing instance |
| CN112241307A (en) * | 2020-10-21 | 2021-01-19 | 海光信息技术股份有限公司 | Virtual machine creation method and device and related equipment |
| CN112688988A (en) * | 2020-11-25 | 2021-04-20 | 紫光云技术有限公司 | Method for migrating network virtual resources across platforms |
| CN114710489A (en) * | 2022-03-31 | 2022-07-05 | 浪潮云信息技术股份公司 | Distributed cloud resource scheduling method and device and distributed cloud |
| CN114710489B (en) * | 2022-03-31 | 2024-10-25 | 浪潮云信息技术股份公司 | A distributed cloud resource scheduling method and device, and a distributed cloud |
| CN114996005A (en) * | 2022-05-31 | 2022-09-02 | 济南浪潮数据技术有限公司 | Resource scheduling method, device, equipment and medium |
| WO2024148981A1 (en) * | 2023-01-12 | 2024-07-18 | 华为云计算技术有限公司 | Resource creation method based on public cloud, and cloud management platform |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108400898A (en) | The management method and device of resource in cloud data management platform | |
| US10701139B2 (en) | Life cycle management method and apparatus | |
| CN108536519B (en) | Method for automatically building Kubernetes main node and terminal equipment | |
| CN103810023B (en) | The intelligent deployment method of Distributed Application and system in a kind of cloud platform | |
| JP7674487B2 (en) | Management method and apparatus for a container cluster - Patents.com | |
| CN108062248B (en) | Resource management method, system, equipment and storage medium of heterogeneous virtualization platform | |
| US9058198B2 (en) | System resource sharing in a multi-tenant platform-as-a-service environment in a cloud computing system | |
| CN103365713B (en) | A kind of scheduling of resource and management method and device | |
| AU2015419073B2 (en) | Life cycle management method and device for network service | |
| EP3913859B1 (en) | Vnf life cycle management method and apparatus | |
| CN107682285A (en) | A unified resource authorization method for heterogeneous cloud platforms | |
| US11301284B2 (en) | Method for managing VNF instantiation and device | |
| CN108881111A (en) | A kind of method and device for realizing multi-tenant system | |
| CN106533713A (en) | Application deployment method and device | |
| WO2020211652A1 (en) | Tenant resource management method and device in multi-tenant scenario | |
| CN106357791A (en) | Method, device and system for processing services | |
| CN113391925A (en) | Cloud resource management method, system, medium, and computer device | |
| CN107423117A (en) | The creation method and device of virtual machine in cloud storage system | |
| CN114996750A (en) | Data sharing method and device | |
| US20240073111A1 (en) | Cloud Service Deployment Method of Cloud Platform and Related Device | |
| CN113612818A (en) | Industrial app issuing system and method of low-code platform | |
| WO2023274014A1 (en) | Storage resource management method, apparatus, and system for container cluster | |
| CN107967165B (en) | Offline Migration Method of Virtual Machine Based on LVM | |
| CN109660575B (en) | Method and device for realizing NFV service deployment | |
| CN118228978A (en) | Computing power identification management method, device, terminal equipment, storage medium and product |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180814 |