CN106713375A - Method and device for allocating cloud resources - Google Patents
Method and device for allocating cloud resources Download PDFInfo
- Publication number
- CN106713375A CN106713375A CN201510430509.4A CN201510430509A CN106713375A CN 106713375 A CN106713375 A CN 106713375A CN 201510430509 A CN201510430509 A CN 201510430509A CN 106713375 A CN106713375 A CN 106713375A
- Authority
- CN
- China
- Prior art keywords
- cloud
- cloud domain
- domain
- resource
- resources
- 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
- 238000000034 method Methods 0.000 title claims abstract description 50
- 101150096185 PAAS gene Proteins 0.000 claims description 70
- 101001072091 Homo sapiens ProSAAS Proteins 0.000 claims description 21
- 102100036366 ProSAAS Human genes 0.000 claims description 21
- 238000013468 resource allocation Methods 0.000 claims description 16
- 238000009499 grossing Methods 0.000 claims 2
- 238000007726 management method Methods 0.000 description 32
- 238000012545 processing Methods 0.000 description 19
- 230000000875 corresponding effect Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000005012 migration Effects 0.000 description 7
- 238000013508 migration Methods 0.000 description 7
- 238000003860 storage Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 101001049835 Homo sapiens Potassium channel subfamily K member 3 Proteins 0.000 description 4
- 102100023207 Potassium channel subfamily K member 3 Human genes 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 101001049829 Homo sapiens Potassium channel subfamily K member 5 Proteins 0.000 description 3
- 102100023202 Potassium channel subfamily K member 5 Human genes 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000002955 isolation Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 238000011084 recovery Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000013439 planning Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012384 transportation and delivery Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种云资源的调配方法及装置,所述方法应用于包括第一云域和第二云域的云平台中,所述方法包括:获取第一云域的账户的资源需求;基于所述资源需求,判断所述第一云域是否提供足够的资源;若所述第一云域不能提供足够的资源,则基于所述资源需求将所述第二云域的闲置资源的至少部分重新分配给所述第一云域;其中,所述第一云域为私有云域,所述第二云域为公有云域;或,所述第一云域为公有云域,所述第二云域为私有云域。
The invention discloses a method and device for allocating cloud resources. The method is applied to a cloud platform including a first cloud domain and a second cloud domain. The method includes: acquiring resource requirements of an account in the first cloud domain; Based on the resource requirements, it is judged whether the first cloud domain provides enough resources; if the first cloud domain cannot provide enough resources, based on the resource requirements, at least Partially reallocated to the first cloud domain; wherein, the first cloud domain is a private cloud domain, and the second cloud domain is a public cloud domain; or, the first cloud domain is a public cloud domain, and the The second cloud domain is a private cloud domain.
Description
技术领域technical field
本发明涉及云计算技术领域,尤其涉及一种云资源的调配方法及装置。The present invention relates to the technical field of cloud computing, in particular to a method and device for allocating cloud resources.
背景技术Background technique
随着云计算的发展,云平台及云计算的使用越来越频繁。云资源一般可分为公有云资源和私有云资源。With the development of cloud computing, cloud platforms and cloud computing are used more and more frequently. Cloud resources can generally be divided into public cloud resources and private cloud resources.
公有云指由第三方提供商面向公众账户提供的标准云计算服务,用户可通过互联网直接接入公有云平台获取所需的基础设施即服务(Infrastructure as a Service,IAAS)、平台即服务(Platform-as-a-Service,PAAS)及软件即服务(Software as a Service,SAAS)。公有云可以为账户提供快速交付、按需消费的能力。Public cloud refers to standard cloud computing services provided by third-party providers for public accounts. Users can directly access the public cloud platform through the Internet to obtain the required infrastructure as a service (Infrastructure as a Service, IAAS), platform as a service (Platform as a service) -as-a-Service, PAAS) and Software as a Service (Software as a Service, SAAS). The public cloud can provide accounts with fast delivery and on-demand consumption capabilities.
私有云一般部署在防火墙内部,在企业内部单独构建,为单位内部各种信息技术系统提供所需的IAAS、PAAS及SAAS等资源服务。私有云对整合各种信息技术资源,提高利用率有很多优势。The private cloud is generally deployed inside the firewall and built separately within the enterprise to provide the required IAAS, PAAS, SAAS and other resource services for various information technology systems within the unit. Private cloud has many advantages for integrating various information technology resources and improving utilization.
公有云和私有云是比较成熟的云计算服务提供方式,但是单独建设私有云和公有云成本偏高,无法有效降本增效。为了在提高云平台整体利用率的基础上实现盈利,更多的公司选用混合云的架构,混合云系统是在私有云建设基础上,通过网络隔离将私有云对应的云资源提供给外部用户使用。然而混合云如何更有合理给私有云域和公有云域分配云资源以及如何进行云资源调配。Public cloud and private cloud are relatively mature ways of providing cloud computing services, but the cost of building private cloud and public cloud separately is too high to effectively reduce costs and increase efficiency. In order to achieve profitability on the basis of improving the overall utilization rate of the cloud platform, more companies choose the architecture of hybrid cloud. The hybrid cloud system is based on the construction of private cloud, and provides the cloud resources corresponding to the private cloud to external users through network isolation. . However, how to allocate cloud resources to private cloud domains and public cloud domains more reasonably and how to deploy cloud resources in hybrid cloud.
发明内容Contents of the invention
有鉴于此,本发明实施例期望提供一种云资源调配方法及装置,能够至少部分解决混合云中公有云域和私有云域之间的云资源调配的问题。In view of this, the embodiments of the present invention expect to provide a cloud resource allocation method and device, which can at least partially solve the problem of cloud resource allocation between public cloud domains and private cloud domains in a hybrid cloud.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:
本发明实施例第一方面提供一种云资源的调配方法,所述方法应用于包括第一云域和第二云域的云平台中,所述方法包括:The first aspect of the embodiments of the present invention provides a method for allocating cloud resources. The method is applied to a cloud platform including a first cloud domain and a second cloud domain. The method includes:
获取第一云域的账户的资源需求;Obtain resource requirements of accounts in the first cloud domain;
基于所述资源需求,判断所述第一云域是否提供足够的资源;Based on the resource requirements, determine whether the first cloud domain provides sufficient resources;
若所述第一云域不能提供足够的资源,则基于所述资源需求将所述第二云域的闲置资源的至少部分重新分配给所述第一云域;If the first cloud domain cannot provide sufficient resources, reallocate at least part of the idle resources of the second cloud domain to the first cloud domain based on the resource requirements;
其中,所述第一云域为私有云域,所述第二云域为公有云域;或,所述第一云域为公有云域,所述第二云域为私有云域。Wherein, the first cloud domain is a private cloud domain, and the second cloud domain is a public cloud domain; or, the first cloud domain is a public cloud domain, and the second cloud domain is a private cloud domain.
基于上述方案,所述方法还包括:Based on the above scheme, the method also includes:
确定所述资源需求的优先级参数;determining priority parameters for said resource requirements;
基于所述优先级参数,将所述第一云域的资源调配给对应的账户,以满足所述资源需求。Based on the priority parameter, allocate resources in the first cloud domain to corresponding accounts, so as to meet the resource requirements.
基于上述方案,所述确定所述资源需求的优先级参数,包括:Based on the above solution, the determination of the priority parameters of the resource requirements includes:
计算所述资源需求的申请权值;calculating an application weight for the resource requirement;
基于所述资源需求的申请时间、所述申请权值及预设函数关系,计算所述优先级参数。The priority parameter is calculated based on the application time of the resource requirement, the application weight, and a preset functional relationship.
基于上述方案,所述计算所述资源需求的申请权值,包括:Based on the above solution, the calculation of the application weight of the resource requirement includes:
基于所述资源需求对应的账户级别、所述资源需求所需的资源类型参数及所述资源需求所需的资源数量参数至少其中之一,计算所述申请权值。The application weight is calculated based on at least one of the account level corresponding to the resource requirement, the resource type parameter required by the resource requirement, and the resource quantity parameter required by the resource requirement.
基于上述方案,所述获取第一云域的账户的资源需求,包括:Based on the above solution, the acquisition of resource requirements of accounts in the first cloud domain includes:
在第一指定时间内获取账户的资源需求;Obtain the resource requirements of the account within the first specified time;
所述基于所述资源需求,判断所述第一云域是否提供足够的资源,包括:The determining whether the first cloud domain provides sufficient resources based on the resource requirements includes:
在第二指定时间内,基于各个所述账户的所述资源需求,判断所述第一云域是否提供足够的资源;Within a second specified time, based on the resource requirements of each of the accounts, determine whether the first cloud domain provides sufficient resources;
所述第二指定时间晚于所述第二指定时间。The second specified time is later than the second specified time.
基于上述方案,所述若所述第一云域不能提供足够的资源,则基于所述资源需求将所述第二云域的闲置资源的至少部分重新分配给所述第一云域,包括:Based on the above solution, if the first cloud domain cannot provide sufficient resources, reallocating at least part of the idle resources of the second cloud domain to the first cloud domain based on the resource requirements includes:
统计所述第二云域闲置的PAAS资源和/或SAAS资源;Counting idle PAAS resources and/or SAAS resources in the second cloud domain;
基于所述资源需求,将所述闲置的PAAS资源和SAAS资源划分给所述第一云域。Based on the resource requirements, allocate the idle PAAS resources and SAAS resources to the first cloud domain.
本发明实施例第二方面提供一种云资源的调配装置,所述装置应用于包括第一云域和第二云域的云平台中,所述装置包括:The second aspect of the embodiment of the present invention provides a cloud resource allocation device, the device is applied to a cloud platform including a first cloud domain and a second cloud domain, and the device includes:
获取单元,用于获取第一云域的账户的资源需求;An acquisition unit, configured to acquire resource requirements of accounts in the first cloud domain;
判断单元,用于基于所述资源需求,判断所述第一云域是否提供足够的资源;a judging unit, configured to judge whether the first cloud domain provides sufficient resources based on the resource requirements;
调配单元,用于若所述第一云域不能提供足够的资源,则基于所述资源需求将所述第二云域的闲置资源的至少部分重新分配给所述第一云域;An allocation unit, configured to reallocate at least part of the idle resources of the second cloud domain to the first cloud domain based on the resource requirements if the first cloud domain cannot provide sufficient resources;
其中,所述第一云域为私有云域,所述第二云域为公有云域;或,所述第一云域为公有云域,所述第二云域为私有云域。Wherein, the first cloud domain is a private cloud domain, and the second cloud domain is a public cloud domain; or, the first cloud domain is a public cloud domain, and the second cloud domain is a private cloud domain.
基于上述方案,所述装置还包括:Based on the above scheme, the device also includes:
确定单元,用于确定所述资源需求的优先级参数;a determining unit, configured to determine a priority parameter of the resource requirement;
所述调配单元,还用于基于所述优先级参数,将所述第一云域的资源调配给对应的账户,以满足所述资源需求。The allocating unit is further configured to allocate resources of the first cloud domain to corresponding accounts based on the priority parameter, so as to meet the resource requirement.
基于上述方案,所述确定单元,用于计算所述资源需求的申请权值;基于所述资源需求的申请时间、所述申请权值及预设函数关系,计算所述优先级参数。Based on the above solution, the determination unit is configured to calculate the application weight of the resource requirement; and calculate the priority parameter based on the application time of the resource requirement, the application weight and a preset functional relationship.
基于上述方案,所述确定单元,具体用基于所述资源需求对应的账户级别、所述资源需求所需的资源类型参数及所述资源需求所需的资源数量参数至少其中之一,计算所述申请权值。Based on the above solution, the determining unit specifically uses at least one of the account level corresponding to the resource requirement, the resource type parameter required by the resource requirement, and the resource quantity parameter required by the resource requirement to calculate the Application weight.
基于上述方案,所述获取单元,具体用于在第一指定时间内获取账户的资源需求;Based on the above solution, the acquiring unit is specifically configured to acquire the resource requirements of the account within the first specified time;
所述判断单元,具体用于在第二指定时间内,基于各个所述账户的所述资源需求,判断所述第一云域是否提供足够的资源;所述第二指定时间晚于所述第二指定时间。The judging unit is specifically configured to judge whether the first cloud domain provides sufficient resources based on the resource requirements of each of the accounts within a second specified time; the second specified time is later than the first specified time 2. Designated time.
基于上述方案,所述调配单元,具体用于统计所述第二云域闲置的PAAS资源和/或SAAS资源;Based on the above solution, the allocation unit is specifically configured to count idle PAAS resources and/or SAAS resources in the second cloud domain;
基于所述资源需求,将所述闲置的PAAS资源和SAAS资源划分给所述第一云域。Based on the resource requirements, allocate the idle PAAS resources and SAAS resources to the first cloud domain.
本发明实施例所述云资源调配方法及装置,会根据第一云域的资源需求,判断第一云域是否能够提供的足够的资源,若不能则将从第二云域中将闲置资源划分到第一云域中,以满足资源需求,这样的话,首先是一种动态的资源调配方法,显然满足了资源需求,更有效率的利用资源;能够对混合云中第一云域和第二云域的云资源进行统一调配。The cloud resource allocation method and device described in the embodiments of the present invention will judge whether the first cloud domain can provide enough resources according to the resource requirements of the first cloud domain, and if not, divide the idle resources from the second cloud domain In this case, first of all, it is a dynamic resource allocation method, which obviously meets the resource requirements and utilizes resources more efficiently; Cloud resources in the cloud domain are provisioned in a unified manner.
附图说明Description of drawings
图1为本发明实施例所述的云资源的调度方法的流程示意图之一;FIG. 1 is one of the schematic flow diagrams of the method for scheduling cloud resources according to an embodiment of the present invention;
图2为本发明实施例所述的云资源的调度方法的流程示意图之二;FIG. 2 is the second schematic flow diagram of the cloud resource scheduling method according to the embodiment of the present invention;
图3为本发明实施例所述的云资源的调度装置的结构示意图;3 is a schematic structural diagram of a cloud resource scheduling device according to an embodiment of the present invention;
图4为本发明实施例提供的一种混合云的结构示意图;FIG. 4 is a schematic structural diagram of a hybrid cloud provided by an embodiment of the present invention;
图5为本发明实施例所述的云资源的调度方法的流程示意图之三;FIG. 5 is the third schematic flow diagram of the cloud resource scheduling method according to the embodiment of the present invention;
图6为本发明实施例所述的云资源的调度方法的流程示意图之四;FIG. 6 is the fourth schematic flow diagram of the cloud resource scheduling method according to the embodiment of the present invention;
图7为本发明实施例所述的云资源的调度方法的流程示意图之五;FIG. 7 is the fifth schematic flow diagram of the cloud resource scheduling method according to the embodiment of the present invention;
图8为本发明实施例提供的一种数据库资源的结构示意图;FIG. 8 is a schematic structural diagram of a database resource provided by an embodiment of the present invention;
图9为本发明实施例提供的数据库迁移的流程示意图。FIG. 9 is a schematic flowchart of database migration provided by an embodiment of the present invention.
具体实施方式detailed description
以下结合说明书附图及具体实施例对本发明的技术方案做进一步的详细阐述。The technical solutions of the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
方法实施例:Method example:
如图1所示,本实施例提供一种云资源的调配方法,所述方法应用于包括第一云域和第二云域的云平台中,所述方法包括:As shown in FIG. 1, this embodiment provides a method for allocating cloud resources. The method is applied to a cloud platform including a first cloud domain and a second cloud domain. The method includes:
步骤S110:获取第一云域的账户的资源需求;Step S110: Obtain resource requirements of accounts in the first cloud domain;
步骤S120:基于所述资源需求,判断所述第一云域是否提供足够的资源;Step S120: Based on the resource requirements, determine whether the first cloud domain provides sufficient resources;
步骤S130:若所述第一云域不能提供足够的资源,则基于所述资源需求将所述第二云域的闲置资源的至少部分重新分配给所述第一云域;Step S130: If the first cloud domain cannot provide enough resources, reallocate at least part of the idle resources of the second cloud domain to the first cloud domain based on the resource requirement;
其中,所述第一云域为私有云域,所述第二云域为公有云域;或,所述第一云域为公有云域,所述第二云域为私有云域。Wherein, the first cloud domain is a private cloud domain, and the second cloud domain is a public cloud domain; or, the first cloud domain is a public cloud domain, and the second cloud domain is a private cloud domain.
本实施例所述的云平台可为私有云域和公有云域的混合云平台中。所述云平台可提供各种运资源。The cloud platform described in this embodiment may be a hybrid cloud platform of a private cloud domain and a public cloud domain. The cloud platform can provide various operational resources.
本实施例中所述步骤S110获取通过接收各个账户的扩容申请来获取;也可以通过监控各个账户的云业务状态来获取。The step S110 in this embodiment is obtained by receiving the expansion application of each account; it can also be obtained by monitoring the cloud service status of each account.
本实施例中所述公有云域的账户为外部账户。所述私有云域的账户为混合云平台的内容账户,如一个设置有混合云的企业内部各个部分的账户。各个部分根据目前的工作任务,可能所需的运资源会发生变化。在本实施例中为了更好的实现混合云中云资源的统一管理,同时合理调配私有云域和公有云域包括的运资源,在本实施例中当一个第一云域的资源需求不能由本云域的云资源来满足时,会通过动态调配的方式将另一个云域中的闲置资源的至少部分重新调配和重新划分,从而满足有资源需求的云域。显然这样的话,不仅能够实现混合云中的私有云域和公有云域两个域中云资源的动态调配和管理,而且能够提高云资源的有效利用率。The account of the public cloud domain described in this embodiment is an external account. The account of the private cloud domain is a content account of the hybrid cloud platform, such as an account of each part of an enterprise provided with a hybrid cloud. According to the current work tasks of each part, the transportation resources required may change. In this embodiment, in order to better realize the unified management of cloud resources in the hybrid cloud, and at the same time rationally allocate the operation resources included in the private cloud domain and the public cloud domain, in this embodiment, when the resource requirements of a first cloud domain cannot be determined by this When the cloud resources of the cloud domain are satisfied, at least part of the idle resources in another cloud domain will be re-allocated and re-divided through dynamic allocation, so as to meet the cloud domain with resource requirements. Obviously, in this case, not only can the dynamic allocation and management of cloud resources in the private cloud domain and public cloud domain in the hybrid cloud be realized, but also the effective utilization of cloud resources can be improved.
在步骤S130中将第二云域的资源重新调配到第一云域中具体可包括:In step S130, redeploying resources of the second cloud domain to the first cloud domain may specifically include:
根据资源需求及第一云域可供分配的云资源,计算待重新调配的资源;Calculate resources to be re-allocated according to resource requirements and cloud resources available for allocation in the first cloud domain;
确定第二云域可提供的闲置资源;Determining idle resources available from the second cloud domain;
基于所述待重新调配的资源和所述闲置资源,确定调配资源。Determining to allocate resources based on the resources to be reallocated and the idle resources.
在计算所述重新调配的资源可包括计算重新调配的资源类型及资源数量等。当然确定闲置资源也包括确定第二云域可提供的闲置资源的类型及资源数量等。Calculating the re-allocated resources may include calculating the re-allocated resource type and resource quantity, and the like. Of course, determining idle resources also includes determining the type and quantity of idle resources that can be provided by the second cloud domain.
如图2所示,作为本实施例的进一步改进,所述方法还包括:As shown in Figure 2, as a further improvement of this embodiment, the method further includes:
步骤S140:确定所述资源需求的优先级参数;Step S140: determining the priority parameters of the resource requirements;
步骤S150:基于所述优先级参数,将所述第一云域的资源调配给对应的账户,以满足所述资源需求。Step S150: Allocate resources of the first cloud domain to corresponding accounts based on the priority parameters, so as to meet the resource requirements.
不同的资源需求有不同紧急度和服务要求,在本实施例中用优先级参数来体现。如在公有云域中不同的账户对应的账户级别不同。通常级别越高的账户,其要求的服务等级越高,对应的优先级参数也就越高。Different resource requirements have different urgency and service requirements, which are represented by priority parameters in this embodiment. For example, different accounts in the public cloud domain correspond to different account levels. Generally, the higher the level of the account, the higher the service level it requires, and the higher the corresponding priority parameter.
本实施例中所述的步骤S140和步骤S150可以在所述步骤S130之后开始完成的,也可以是在所述步骤S130之前开始执行,也可以在所述步骤S130开始执行。例如所述第一云域同时接收到多个扩容申请。第一云域未被使用的剩余云资源,可以满足部分扩容申请中的资源需求,为了提高响应速度,则此时在执行步骤S130之前就可以先行对第一云域中现在拥有的剩余云资源进行调配,以尽快的实现云资源调配响应。在本申请中步骤S140中还确定了优先级参数,通常优先级参数越高,则表示满足该资源需求的紧急度越高,因此在执行所述步骤S150时,将优先为优先级参数高的资源需求调配云资源。Step S140 and step S150 in this embodiment may be completed after step S130, may be executed before step S130, or may be executed after step S130. For example, the first cloud domain receives multiple capacity expansion applications at the same time. The remaining unused cloud resources in the first cloud domain can meet the resource requirements in part of the expansion application. In order to improve the response speed, the remaining cloud resources currently owned in the first cloud domain can be processed before step S130 is performed. Perform deployment to achieve cloud resource provisioning response as soon as possible. In the present application, the priority parameter is also determined in step S140. Generally, the higher the priority parameter, the higher the urgency to meet the resource demand is. Therefore, when performing the step S150, priority will be given to those with higher priority parameters. Resource requirements provision cloud resources.
具体的,如所述步骤S140包括:Specifically, as described step S140 includes:
计算所述资源需求的申请权值;calculating an application weight for the resource requirement;
基于所述资源需求的申请时间、所述申请权值及预设函数关系,计算所述优先级参数。The priority parameter is calculated based on the application time of the resource requirement, the application weight, and a preset functional relationship.
所述申请权值能够从非时间的维度表征需要满足所述资源需求的紧急性。所述申请时间为提出所述包括所述资源需求的扩容申请的时间,也可以资源管理装置根据状况检测到资源需求后自形成的扩容申请的申请时间。通常申请时间越早,则应该更加优先的满足,通常情况下所述申请时间与所述优先级参数成正相关性。The application weight can represent the urgency of meeting the resource requirement from a non-time dimension. The application time is the time when the capacity expansion application including the resource requirement is submitted, or it may be the application time of the capacity expansion application formed after the resource management device detects the resource requirement according to the situation. Generally, the earlier the application time is, the higher priority should be met. Usually, the application time is positively correlated with the priority parameter.
所述预设函数关系,以所述申请权值和所述申请时间为因变量能够计算出资源需求对应的优先级参数。这样的话,优先级从时间维度和非时间维度表征满足所述资源需求的紧急性。In the preset functional relationship, priority parameters corresponding to resource requirements can be calculated by taking the application weight and the application time as dependent variables. In this case, the priority represents the urgency of satisfying the resource requirement from the time dimension and the non-time dimension.
在具体的实现过程中,若某一个扩容申请虽然时间较晚,虽然申请权值较小,但是就时分紧急是特殊的需要进行优先级调整的紧急资源需求,在本实施例中,针对这种紧急资源需求本实施例中还引入了调节因子,通过增大调节因子增大紧急资源需求的优先级参数。当然也存在一种情况,本身扩容申请尽是预先申请,并不急于使用,这个时候也可以通过所述调节因子来降低所述优先级参数。In the specific implementation process, if a certain expansion application is late, although the application weight is small, it is a special emergency resource demand that needs to be adjusted in priority. In this embodiment, for this Emergency resource requirements In this embodiment, an adjustment factor is also introduced, and the priority parameter of the emergency resource requirements is increased by increasing the adjustment factor. Of course, there is also a situation where the capacity expansion application itself is pre-applied and is not in a hurry to use. At this time, the priority parameter can also be reduced through the adjustment factor.
所述函数关系有很多种,以下提供一种具体示例:There are many kinds of functional relationships, and a specific example is provided below:
Priorityn=XSLAn*timen*weightn Priority n = X SLAn *time n *weight n
其中,所述Priorityn为第n个资源需求的优先级参数;所述weightn为第n个资源需求的所述申请权值;所述timen为第n个资源需求的所述申请时间;所述XSLAn为第n个资源需求的调节因子。所述调节因子可为正数。Wherein, the Priority n is the priority parameter of the nth resource requirement; the weight n is the application weight of the nth resource requirement; the time n is the application time of the nth resource requirement; The XSLAn is an adjustment factor for the nth resource requirement. The adjustment factor can be a positive number.
在本实施例中所述计算所述资源需求的申请权值,包括:In this embodiment, the calculation of the application weight of the resource requirement includes:
基于所述资源需求对应的账户级别、所述资源需求所需的资源类型参数及所述资源需求所需的资源数量参数至少其中之一,计算所述申请权值。The application weight is calculated based on at least one of the account level corresponding to the resource requirement, the resource type parameter required by the resource requirement, and the resource quantity parameter required by the resource requirement.
通常所述账户级别越高,则混合云需要满足其资源需求的紧急性也越高。在前述函数中所述第n个资源需求的产生账户为SLAn。Generally, the higher the account level, the higher the urgency with which the hybrid cloud needs to meet its resource requirements. In the aforementioned function, the generation account of the nth resource requirement is SLA n .
所述资源需求所需的云资源类型可分为数据库资源、中间件资源及外部应用资源。The types of cloud resources required by the resource requirements can be classified into database resources, middleware resources and external application resources.
例如资源类型为所述数据库资源时,于计算所述申请权值的资源类型参数可包括:所述资源需求要求的复原时间目标参数RTO、所述资源需求要求的复原点目标参数RPO及备份参数等。资源类型为所述数据库资源时,用于计算所述申请权值的资源数量参数可包括:存储容量及内存容量等。For example, when the resource type is the database resource, the resource type parameters for calculating the application weight may include: the recovery time objective parameter RTO required by the resource requirement, the recovery point objective parameter RPO and the backup parameter required by the resource requirement Wait. When the resource type is the database resource, the resource quantity parameters used to calculate the application weight may include: storage capacity and memory capacity.
例如资源类型为所述中间件时,于计算所述申请权值的资源类型参数可包括:所述资源需求要求线程池参数。资源类型为所述中间件时,用于计算所述申请权值的资源数量参数可包括:线程并发数等参数。For example, when the resource type is the middleware, the resource type parameter for calculating the application weight may include: the resource requirement requires a thread pool parameter. When the resource type is the middleware, the resource quantity parameters used to calculate the application weight may include: the number of concurrent threads and other parameters.
为了避免云资源归属的云域并反反复变动,不方便进行统一管理,且同时为了提升资源调配策略。在本实施例中所述步骤S110可包括:在第一指定时间内获取账户的资源需求。所述步骤S120包括:在第二指定时间内,基于各个所述账户的所述资源需求,判断所述第一云域是否提供足够的资源;所述第二指定时间晚于所述第二指定时间。In order to avoid repeated changes in the cloud domain to which cloud resources belong, which is inconvenient for unified management, and at the same time to improve resource allocation strategies. In this embodiment, the step S110 may include: obtaining resource requirements of the account within a first specified time. The step S120 includes: within a second specified time, based on the resource requirements of each of the accounts, judging whether the first cloud domain provides sufficient resources; the second specified time is later than the second specified time time.
这样的话,在第一指定时间内仅获取资源需求,如仅接收扩容申请,暂时不响应扩容申请。在第二指定时间开始统一处理在第一时间内获得资源需求。具体如,所述第一指定时间长度为24小时,当达到24小时后,开始进行运资源调配满足所述资源需求。当满足完了所述资源需求,则有开始一个获取所述资源需求的周期。In this case, only resource requirements are obtained within the first specified time, such as only capacity expansion applications are received, and capacity expansion applications are not responded to temporarily. Start unified processing at the second designated time to obtain resource requirements in the first time. Specifically, for example, the first specified time length is 24 hours, and when the 24 hours are reached, deployment of operation resources is started to meet the resource requirements. When the resource requirement is satisfied, a cycle of obtaining the resource requirement begins.
在本实施例中为了简单动态的实现所述云资源在私有云域和公有云域之间的调配,在本实施例中是基于PAAS资源和SAAS资源的调配。PAAS资源及SAAS资源进行了归属云域的划分后,可以直接使用,而不用重新安装程序等操作,就能够实现简便的云资源调配。In this embodiment, in order to implement the deployment of the cloud resources between the private cloud domain and the public cloud domain simply and dynamically, it is based on the allocation of PAAS resources and SAAS resources in this embodiment. After PAAS resources and SAAS resources are divided into cloud domains, they can be used directly without reinstalling programs and other operations, and can realize simple cloud resource allocation.
具体的,所述步骤S130可包括:Specifically, the step S130 may include:
统计所述第二云域闲置的PAAS资源和/或SAAS资源;Counting idle PAAS resources and/or SAAS resources in the second cloud domain;
基于所述资源需求,将所述闲置的PAAS资源和PAAS资源划分给所述第一云域。Based on the resource requirements, allocate the idle PAAS resources and PAAS resources to the first cloud domain.
在本实施例中进行所述PAAS资源和所述SAAS调配时,若私有云域和公有云域归属不同的虚拟局域网,则可通过修改资源的网络协议IP地址所归属的虚拟局域网来实现。若私有云域和公有云域是通过访问控制列表(AccessControl List,ACL)控制实现所述私有云域和公有云域,则可以通过修改所述访问控制列表来实现。When deploying the PAAS resources and the SAAS in this embodiment, if the private cloud domain and the public cloud domain belong to different virtual local area networks, it can be realized by modifying the virtual local area network to which the network protocol IP address of the resource belongs. If the private cloud domain and the public cloud domain are implemented through access control list (Access Control List, ACL) control, it can be implemented by modifying the access control list.
本实施例所述云资源的调配方法,首先能够在混合云域中进行云资源统一管理和动态调配,这样的打破了现有技术中静态调配的局限性,满足了私有云域和公有云域动态的资源需求,同时提高了运资源的有效利用率,提升了混合云平台的整体处理效益。The deployment method of cloud resources described in this embodiment can firstly perform unified management and dynamic deployment of cloud resources in hybrid cloud domains, which breaks the limitations of static deployment in the prior art and satisfies the requirements of private cloud domains and public cloud domains. Dynamic resource requirements, while improving the effective utilization of transportation resources, and improving the overall processing efficiency of the hybrid cloud platform.
以下结合上述方法实施例,提供能够实现上述方法实施例的装置实施例。Embodiments of devices capable of implementing the above method embodiments are provided below in conjunction with the above method embodiments.
装置实施例:Device example:
如图3所示,本实施例提供一种云资源的调配装置,所述装置应用于包括第一云域和第二云域的云平台中,所述装置包括:As shown in FIG. 3 , this embodiment provides a device for allocating cloud resources. The device is applied to a cloud platform including a first cloud domain and a second cloud domain. The device includes:
获取单元110,用于获取第一云域的账户的资源需求;An acquisition unit 110, configured to acquire resource requirements of accounts in the first cloud domain;
判断单元120,用于基于所述资源需求,判断所述第一云域是否提供足够的资源;A judging unit 120, configured to judge whether the first cloud domain provides sufficient resources based on the resource requirement;
调配单元130,用于若所述第一云域不能提供足够的资源,则基于所述资源需求将所述第二云域的闲置资源的至少部分重新分配给所述第一云域;An allocation unit 130, configured to reallocate at least part of the idle resources of the second cloud domain to the first cloud domain based on the resource requirement if the first cloud domain cannot provide sufficient resources;
其中,所述第一云域为私有云域,所述第二云域为公有云域;或,所述第一云域为公有云域,所述第二云域为私有云域。Wherein, the first cloud domain is a private cloud domain, and the second cloud domain is a public cloud domain; or, the first cloud domain is a public cloud domain, and the second cloud domain is a private cloud domain.
本实施例所述云资源的调配装置,可为一台或多台云管理设备或云管理服务器等。所述获取单元110的具体结构可包括通信接口,接收各个账户发送的包括所述资源需求的扩容申请或监控设备发送的监控数据。所述获取单元110还可包括处理器或处理电路,可用于通过分析所述监控数据的方式获取所述资源需求。The device for allocating cloud resources described in this embodiment may be one or more cloud management devices or cloud management servers. The specific structure of the acquisition unit 110 may include a communication interface for receiving the expansion application including the resource requirement sent by each account or the monitoring data sent by the monitoring device. The obtaining unit 110 may further include a processor or a processing circuit, configured to obtain the resource requirement by analyzing the monitoring data.
所述判断单元120和所述调配单元130的具体结构可包括处理器或处理电路。所述处理器或处理电路可通过代码执行,实现上述判断单元120和调配单元130的功能及所述获取单元110的分析资源需求的功能。The specific structures of the judgment unit 120 and the deployment unit 130 may include a processor or a processing circuit. The processor or processing circuit may be executed by codes to realize the above-mentioned functions of the judgment unit 120 and the allocation unit 130 and the function of the acquisition unit 110 for analyzing resource requirements.
所述处理器可包括中央处理器CPU、微处理器MCU、数字信号处理器或可编程阵列PLC等。所述处理电路可包括专用集成电路ASIC等。The processor may include a central processing unit CPU, a microprocessor MCU, a digital signal processor or a programmable array PLC and the like. The processing circuit may include an application specific integrated circuit ASIC or the like.
本实施例所述的装置总之能够对私有云域和公有云域的云资源进行统一管理和调配,能够根据两种云域的资源需求进行云资源的动态调配,提升了云资源的利用效率。In short, the device described in this embodiment can uniformly manage and allocate cloud resources in private cloud domains and public cloud domains, and dynamically allocate cloud resources according to the resource requirements of the two cloud domains, thereby improving the utilization efficiency of cloud resources.
所述装置还包括:The device also includes:
确定单元,用于确定所述资源需求的优先级参数;a determining unit, configured to determine a priority parameter of the resource requirement;
所述调配单元130,还用于基于所述优先级参数,将所述第一云域的资源调配给对应的账户,以满足所述资源需求。The allocating unit 130 is further configured to allocate resources of the first cloud domain to corresponding accounts based on the priority parameters, so as to meet the resource requirements.
本实施例所述的确定单元具体结构也可包括上述处理器或处理电路或具有计算功能的计算器等。通过变量的输入,依据预设函数关系计算出所述优先级参数。在本实施例的所述调配单元130可根据优先级参数确定出满足多个资源需求的先后顺序,依次满足各个资源需求;从而实现了满足紧急度高的资源需求优先满足,从而提升的用户使用满意度。The specific structure of the determining unit described in this embodiment may also include the above-mentioned processor or processing circuit, or a calculator with a calculation function. Through the input of variables, the priority parameter is calculated according to the preset function relationship. In this embodiment, the allocation unit 130 can determine the order of meeting multiple resource requirements according to the priority parameters, and satisfy each resource requirement in turn; thereby realizing priority satisfaction of resource requirements with high urgency, thereby improving user usage satisfaction.
所述确定单元,用于计算所述资源需求的申请权值;基于所述资源需求的申请时间、所述申请权值及预设函数关系,计算所述优先级参数。The determination unit is configured to calculate the application weight of the resource requirement; and calculate the priority parameter based on the application time of the resource requirement, the application weight and a preset functional relationship.
本实施例所述确定单元包括计算所述申请权值的计算器,通过读取当所述资源需求的申请时间等参数,并基于预设函数关系进行计算。本实施例中所述的预设函数关系可以参见前述方法实施例。The determining unit in this embodiment includes a calculator for calculating the application weight, which reads parameters such as application time when the resource is required, and calculates based on a preset functional relationship. For the preset functional relationship described in this embodiment, reference may be made to the foregoing method embodiments.
所述确定单元,具体用基于所述资源需求对应的账户级别、所述资源需求所需的资源类型参数及所述资源需求所需的资源数量参数至少其中之一,计算所述申请权值。此处,还进一步公开了所述确定单元计算所述申请权值的变量,这些变量都能够精确表明资源需求的紧急性,从而提升用户满意度。The determining unit specifically uses at least one of the account level corresponding to the resource requirement, the resource type parameter required by the resource requirement, and the resource quantity parameter required by the resource requirement to calculate the application weight. Here, it is further disclosed that the determining unit calculates the variables of the application weight, and these variables can accurately indicate the urgency of resource requirements, thereby improving user satisfaction.
此外,所述获取单元110,具体用于在第一指定时间内获取账户的资源需求;所述判断单元120,具体用于在第二指定时间内,基于各个所述账户的所述资源需求,判断所述第一云域是否提供足够的资源;所述第二指定时间晚于所述第二指定时间。In addition, the acquiring unit 110 is specifically configured to acquire resource requirements of accounts within a first specified time; the judging unit 120 is specifically configured to, within a second specified time, based on the resource requirements of each account, Judging whether the first cloud domain provides sufficient resources; the second specified time is later than the second specified time.
在本实施例中所述第一指定时间不进行资源需求的响应,即不进行云资源的调配,仅获取所述资源需求,在第二指定时间进行统一响应和集中处理,这样的话,能够提升处理效率。In this embodiment, the first designated time does not respond to resource requirements, that is, cloud resource allocation is not performed, and only the resource requirements are obtained, and unified response and centralized processing are performed at the second designated time. In this case, it is possible to improve Processing efficiency.
所述调配单元130,具体用于统计所述第二云域闲置的PAAS资源和/或SAAS资源;基于所述资源需求,将所述闲置的PAAS资源和SAAS资源划分给所述第一云域。本实施例中所述调配单元130包括计数器或具有计算功能的处理器或处理电路,通过计数确定出所述第二云域中闲置的可供调配的PAAS资源和/或SAAS资源。The allocation unit 130 is specifically configured to count idle PAAS resources and/or SAAS resources in the second cloud domain; and divide the idle PAAS resources and SAAS resources into the first cloud domain based on the resource requirements . In this embodiment, the allocation unit 130 includes a counter or a processor or a processing circuit with a calculation function, and determines the idle PAAS resources and/or SAAS resources available for allocation in the second cloud domain by counting.
在本实施例中所述调配单元130为直接进行PAAS资源和SAAS资源调配的结果,在进行PAAS资源和SAAS资源可通过重新划分PAAS资源和SAAS资源归属的虚拟局域网或更新ACL来实现;具有实现简单的特点。In this embodiment, the allocation unit 130 is the result of directly allocating PAAS resources and SAAS resources, which can be realized by re-dividing the virtual local area network to which the PAAS resources and SAAS resources belong or updating the ACL when performing PAAS resources and SAAS resources; simple features.
以下结合上述任意实施例,提供几个具体示例。Several specific examples are provided below in conjunction with any of the foregoing embodiments.
示例一:Example one:
如图4所示为本发明实施例所述的方法能够应用的一个混合云。在图4所示的混合云中包括资源管控装置、公有云域存储资源、私有云域存储资源、PAAS集群11、PAAS集群12、虚拟机控制中心vCenter、PAAS集群11、PAAS集群12及各级网关设备。这里的各级网关设备包括路由器等。As shown in FIG. 4 , a hybrid cloud to which the method described in the embodiment of the present invention can be applied is shown. The hybrid cloud shown in Figure 4 includes resource management and control devices, public cloud domain storage resources, private cloud domain storage resources, PAAS cluster 11, PAAS cluster 12, virtual machine control center vCenter, PAAS cluster 11, PAAS cluster 12 and all levels gateway device. The gateway devices at all levels here include routers and the like.
在图4所示的混合云中的资源管理装置,将混合云换分为了私有云域和公有云域。所述私有云域目前包括PAAS集群11、PAAS集群12及vCenter;所述公有云域目前包括PAAS集群1及PAAS集群2。公有云域归属于虚拟基于网VLAN2,私有云域归属于虚拟局域网VLAN1。VLAN1和VLAN2之间设置有防火墙。私有云域和公有云域都能够通过网关设备实现业务汇聚并连接到核心网、内联隔离区DMZ、外联DMZ、核心生产区、客服系统、网络协议IP专网、入侵检测IDS设备、数据通信网DCN、中国互联网CMNET。当然混合云最终与外部网络,如CMNET连接时,将通过防火墙和外部网关相连。In the resource management device in the hybrid cloud shown in FIG. 4 , the hybrid cloud is divided into a private cloud domain and a public cloud domain. The private cloud domain currently includes PAAS cluster 11, PAAS cluster 12 and vCenter; the public cloud domain currently includes PAAS cluster 1 and PAAS cluster 2. The public cloud domain belongs to the virtual network-based VLAN2, and the private cloud domain belongs to the virtual local area network VLAN1. A firewall is set between VLAN1 and VLAN2. Both the private cloud domain and the public cloud domain can realize business convergence and connect to the core network, inline isolation zone DMZ, outlink DMZ, core production area, customer service system, network protocol IP private network, intrusion detection IDS equipment, data Communication Network DCN, China Internet CMNET. Of course, when the hybrid cloud is finally connected to an external network, such as CMNET, it will be connected through a firewall and an external gateway.
本示例的所述混合云的具体连接结构可以参见图示,再次就不再一一详细叙述了。The specific connection structure of the hybrid cloud in this example can be referred to the figure, and will not be described in detail again.
图4所述的混合云可以应用前述方法实施例实现私有云域和公有云域的云资源动态调配和管理。图4中的资源管控装置即可作为设备实施例中所述的云资源的调配装置。The hybrid cloud described in FIG. 4 can implement the dynamic allocation and management of cloud resources in the private cloud domain and the public cloud domain by applying the aforementioned method embodiments. The resource management and control device in FIG. 4 can be used as the cloud resource allocation device described in the device embodiment.
从图4可知,在本示例中采用分域的模式建设混合云,私有云域、公有云域、资源管控装置之间通过严格的VLAN和ACL访问控制划分边界安全。为满足混合云计算资源的动态调配,私有云域、公有云域主机资源接入汇聚到统一的业务汇聚交换机网络。PAAS智能管控与公有云域之间部署防火墙,进行端口隔离与双向访问控制。As can be seen from Figure 4, in this example, a hybrid cloud is built in a domain-divided mode, and the border security is divided between private cloud domains, public cloud domains, and resource management and control devices through strict VLAN and ACL access control. In order to meet the dynamic allocation of hybrid cloud computing resources, private cloud domains and public cloud domain host resources are connected and converged to a unified business aggregation switch network. Firewalls are deployed between PAAS intelligent management and public cloud domains for port isolation and two-way access control.
在图4所示的混合云中,公有云域和私有云域都拥有逻辑独立的PAAS资源池,当用户新申请或扩容PAAS资源时,优先从公有云域中获取,如果当前剩余云资源不足以满足需求时,触发由资源智能管控装置向私有云域申请云资源。私有云域的资源分析模块计算出可提供的最小PAAS资源单元,由智能管控模块将该单元加入公有云域中,公有云域通过PAAS资源适配模块对各种平台资源进行动态重组,实现两个资源域的资源分配。这里的最小PAAS资源单元为进行一次云资源调度的最少资源量。此处,这种调配方法也可适用于私有云域从公有云域调配资源;当然也适用于公有云域和私有云域之间的SAAS资源调配。In the hybrid cloud shown in Figure 4, both the public cloud domain and the private cloud domain have logically independent PAAS resource pools. When users apply for new or expand PAAS resources, they will be obtained from the public cloud domain first. If the current remaining cloud resources are insufficient When the demand is met, the intelligent resource management and control device is triggered to apply for cloud resources from the private cloud domain. The resource analysis module of the private cloud domain calculates the minimum PAAS resource unit that can be provided, and the intelligent management and control module adds this unit to the public cloud domain. The public cloud domain dynamically reorganizes various platform resources through the PAAS resource adaptation module to achieve two Resource allocation for resource domains. The minimum PAAS resource unit here is the minimum resource amount for a cloud resource scheduling. Here, this provisioning method is also applicable to private cloud domains deploying resources from public cloud domains; of course, it is also applicable to SAAS resource provisioning between public cloud domains and private cloud domains.
示例二:Example two:
如图5所示,本示例可为基于图4所示的混合的PAAS资源的动态调配方法,具体包括:As shown in Figure 5, this example can be a dynamic allocation method based on the mixed PAAS resources shown in Figure 4, specifically including:
各级账户在用户指示下,申请PAAS资源;将PAAS资源的申请发送给PAAS资源管控装置。PAAS资源管控装置,接收到申请后,首先进行公有云域的PAAS资源分配。发现公有云域的PAAS资源无法满足申请的资源需求,向私有云域申请PAAS资源。若私有云域能够提供未被占用的PAAS资源,则将原私有云域的PAAS资源调配到公有云域中。最后基于调配,将私有云域的PAAS资源迁移到公有云域中。Accounts at all levels apply for PAAS resources under the instruction of the user; and send the application for PAAS resources to the PAAS resource management and control device. After receiving the application, the PAAS resource management and control device first allocates PAAS resources in the public cloud domain. It is found that the PAAS resources in the public cloud domain cannot meet the requested resource requirements, and apply for PAAS resources in the private cloud domain. If the private cloud domain can provide unoccupied PAAS resources, deploy the PAAS resources of the original private cloud domain to the public cloud domain. Finally, based on deployment, the PAAS resources of the private cloud domain are migrated to the public cloud domain.
示例三:Example three:
图6所示的为可应用于本发明的云资源的具体调配流程,包括:Shown in Fig. 6 is the specific deployment process applicable to the cloud resources of the present invention, including:
步骤S1:资源管控装置接收到n个资源申请的任务;所述n为不小于1的整数;Step S1: The resource management and control device receives n resource application tasks; the n is an integer not less than 1;
步骤S2:计算每个任务的优先级参数。Step S2: Calculate the priority parameter of each task.
步骤S3:根据优先级参数对n个任务参数对n个任务进行排序;Step S3: sort the n tasks according to the priority parameters for the n task parameters;
步骤S4:基于排序逐个处理任务;优先级参数高的优先处理。Step S4: Process the tasks one by one based on the ranking; those with higher priority parameters are processed first.
步骤S5:返回处理结果。Step S5: Return the processing result.
基于步骤S1至步骤S5,以下详细进行介绍。Based on step S1 to step S5, the following will introduce in detail.
公有云域里的用户发起新申请或者PAAS资源申请时,由资源管控装置负责资源分配。资源管控装置采用一种基于SLA(服务等级协议)的加权时序分配策略。该分配策略描述如下:When a user in the public cloud domain initiates a new application or PAAS resource application, the resource management and control device is responsible for resource allocation. The resource management and control device adopts a weighted timing allocation strategy based on SLA (Service Level Agreement). The allocation strategy is described as follows:
①为提高调配效率,提升系统资源利用质量,资源管控装置定时处理资源申请的请求,即每隔T时间进行一次PAAS资源调配,在间隔之间内只接受PAAS资源申请请求,不处理。根据生产实践经验,可将T设置为24h。该T可为前述实施例中第一指定时间。① In order to improve the allocation efficiency and improve the quality of system resource utilization, the resource management and control device regularly processes resource application requests, that is, PAAS resource allocation is performed every T time, and only PAAS resource application requests are accepted and not processed within the interval. According to production practice experience, T can be set to 24h. The T may be the first designated time in the foregoing embodiments.
②用户在发起PAAS资源申请时混合云系统首先根据账户级别等因素设置SLA(SLA为大于等于1的自然数),SLA越大,代表其服务等级越高;② When the user initiates a PAAS resource application, the hybrid cloud system first sets the SLA according to the account level and other factors (SLA is a natural number greater than or equal to 1). The larger the SLA, the higher the service level;
③每个用户发起PAAS资源申请时,资源管控装置相当于接收到一个任务task,该任务包含此次PAAS资源申请的SLA,申请时间time,申请权值weight。例如:对数据库资源的申请可根据其对存储空间、内存、RPO、RTO、备份等因素算出其权值;对中间件资源的申请可根据其对并发数、线程池等因数算出其权值。weight越大,代表该用户的PAAS资源申请要求高;③When each user initiates a PAAS resource application, the resource management and control device is equivalent to receiving a task task, which includes the SLA of the PAAS resource application, the application time time, and the application weight. For example: the application for database resources can calculate its weight based on factors such as storage space, memory, RPO, RTO, and backup; the application for middleware resources can calculate its weight based on factors such as the number of concurrency and thread pool. The larger the weight, the higher the requirements for the user's PAAS resource application;
④假设资源管控装置在规定间隔时间T内接收到1.....n个任务,命名为task1,task2.....taskn,针对每个task,将根据其服务等级协议SLA、申请时间time、资源申请权值weight等因素计算其优先级priority。其计算方法如下:④Assume that the resource management and control device receives 1.....n tasks within the specified interval time T, and name them task1, task2...taskn. For each task, according to its service level agreement SLA, application time Time, resource application weight and other factors are used to calculate the priority. Its calculation method is as follows:
针对n个task的申请时间time1,time2....timen从后往前进行排序,The application time time1, time2...timen for n tasks are sorted from the back to the front,
将time1,time2....timen分别对应于一个自然数N(1=<N<=n)作为其时序值,申请时间越早的task,其time对应的N值越大;Time1, time2....timen respectively correspond to a natural number N (1=<N<=n) as its timing value, the earlier the task application time, the greater the N value corresponding to its time;
Priorityn=XSLAn*timen*weightn Priority n = X SLAn *time n *weight n
X为大于等于1的自然数,是优先级参数计算Priority的调节因子,在同一批任务优先级计算时,X须取值一致。当前系统中X一般取值可为2)。X is a natural number greater than or equal to 1, which is the adjustment factor for priority parameter calculation Priority. When calculating the priority of the same batch of tasks, X must take the same value. In the current system, X generally takes a value of 2).
⑤根据Priority的计算结果,对task1,task2.....taskn按照Priority从大到小的顺序进行重新排序TASK1,TASK2…TASKm(1=<m<=n);⑤According to the calculation results of Priority, reorder task1, task2...taskn according to the order of Priority from large to small TASK1, TASK2...TASKm (1=<m<=n);
⑥资源管控装置对TASK1,TASK2…TASKm进行顺序处理,其处理方法如下:⑥The resource management and control device performs sequential processing on TASK1, TASK2...TASKm, and the processing method is as follows:
图7所示可为为所述步骤S4中进行逐个任务的处理流程之一。What is shown in FIG. 7 may be one of the processing procedures for performing tasks one by one in the step S4.
基于TASK从公有云域中申请PAAS资源。TASK表示的按照优先级参数从高到低排序之后的任务。例如针对TASK1的资源申请,资源管控装置首先查询其公有云域中是否有足够资源可供分配,若公有云域资源满足需求则直接从公有云中分配PAAS资源;若公有云域资源不满足TASK1的需求则转而处理TASK2,以此类推直至将任务处理完毕或者所有任务将公有云域资源轮询完毕;Apply for PAAS resources from the public cloud domain based on TASK. Tasks represented by TASK are sorted according to the priority parameters from high to low. For example, for the resource application of TASK1, the resource management and control device first checks whether there are enough resources in the public cloud domain for allocation, and if the public cloud domain resources meet the requirements, it will directly allocate PAAS resources from the public cloud; if the public cloud domain resources do not meet the requirements of TASK1 The demand is turned to TASK2, and so on until the task is processed or all tasks have polled the public cloud domain resources;
判断是否申请成功,若申请成功直接返回处理结果,若没有申请成功,判断所有任务是否向公有云域申请过PAAS资源;判断结果为是进入后续操作,若判断结果为否,则按照优先级参数获取下一个任务。Determine whether the application is successful. If the application is successful, return the processing result directly. If the application is not successful, determine whether all tasks have applied for PAAS resources from the public cloud domain; the judgment result is yes to enter the follow-up operation, and if the judgment result is no, follow the priority parameter Get the next task.
从为申请到的PAAS资源的剩余任务顺序去除任务向私有云域申请PAAS资源,并记录申请结果。Remove tasks from the remaining tasks for the applied PAAS resources to apply for PAAS resources to the private cloud domain, and record the application results.
判断所有任务是否已向私有云与申请过PAAS资源,若判断结果为否,返回上一步操作所,若判断结果为是返回处理结果。Judging whether all tasks have applied for PAAS resources from the private cloud, if the judgment result is no, return to the previous step of operation, if the judgment result is yes, return the processing result.
在上述处理过程中,任务已经处理完毕,资源管控装置则直接返回全部成功处理标志;若任务还未处理完,说明公有云域资源不能满足所有任务的资源需求。资源管控装置对于剩余的任务按照优先级参数的排序由大到小逐个向私有云域提出PAAS资源申请。私有云域接到资源管控装置的资源申请请求后,首先通过其资源分析模块计算出可提供的最小PAAS单元,再由资源管控装置将该单元加入公有云域PAAS域中。当私有云域接收到共有域PAAS申请后,资源分析模块根据私有云域资源情况计算出最小的PAAS单元(如数据库、中间件平台的虚拟机或物理机),资源管控装置通过修改该资源的IP将其划分到公有云域的VLAN,或者修改ACL控制网络访问,实现公有云域网络可达该PAAS资源。所述资源管控装置中的PAAS资源适配模块能将新加入的资源动态适配到公有云域PAAS资源中,支持各种模式的数据库、中间件、缓存、集成环境等服务。In the above processing process, if the tasks have been processed, the resource management and control device directly returns all successful processing signs; if the tasks have not been processed, it means that the public cloud domain resources cannot meet the resource requirements of all tasks. The resource management and control device applies for PAAS resources to the private cloud domain one by one according to the order of the priority parameters for the remaining tasks. After the private cloud domain receives the resource application request from the resource management and control device, it first calculates the minimum PAAS unit that can be provided through its resource analysis module, and then the resource management and control device adds this unit to the public cloud domain PAAS domain. When the private cloud domain receives the public domain PAAS application, the resource analysis module calculates the smallest PAAS unit (such as a database, a virtual machine or a physical machine of a middleware platform) according to the resources of the private cloud domain, and the resource management and control device modifies the IP divides it into the VLAN of the public cloud domain, or modifies the ACL to control network access, so that the public cloud domain network can reach the PAAS resource. The PAAS resource adaptation module in the resource management and control device can dynamically adapt newly added resources to PAAS resources in the public cloud domain, and supports services such as databases, middleware, caches, and integrated environments in various modes.
示例四:Example four:
(一)、当PAAS公有云域接收到私有云域划拨的数据库(Date Base,DB)资源后,智能管控模块将判断需求端的DB类型,根据不同类型启动相应的适配算法,对有扩容需求的DB实施动态扩容。(1) When the PAAS public cloud domain receives the database (Date Base, DB) resources assigned by the private cloud domain, the intelligent control module will judge the type of DB on the demand side, and start the corresponding adaptation algorithm according to the different types. The DB implements dynamic expansion.
(二)、如图8所示,公有云域的宿主机P1下部署有三套数据库(DB1、DB2、DB3),DB3要求扩容CPU、数据缓存、备份空间并修改参数,但是P1宿主机无额外硬件资源,修改参数将影响DB1和DB2,此时可利用对私有云域的资源划通过宿主机P2宿主机来实施DB3的扩容。(2) As shown in Figure 8, there are three sets of databases (DB1, DB2, DB3) deployed under the host machine P1 of the public cloud domain. DB3 requires expansion of the CPU, data cache, backup space and modification of parameters, but the P1 host machine has no additional For hardware resources, modifying parameters will affect DB1 and DB2. At this time, the resource planning of the private cloud domain can be used to implement the expansion of DB3 through the host P2 host.
(三)、采用P2对P1下的DB3实施扩容和参数变更时,智能适配算法将根据三套数据库的运行因子计算搬迁DB3的影响度Y1,以及搬迁DB1、DB2的影响度Y2。(3) When using P2 to expand the capacity and change parameters of DB3 under P1, the intelligent adaptation algorithm will calculate the influence degree Y1 of relocating DB3 and the influence degree Y2 of relocating DB1 and DB2 according to the operating factors of the three sets of databases.
在计算上述影响度时,将会利用到表1至表2中的参数。The parameters in Table 1 to Table 2 will be used when calculating the above influence degree.
表1Table 1
表2Table 2
表3table 3
DB迁移影响度Y1=F1+F2+F3+F4…,搬迁DB1、DB2的影响度Y2=F1’+F2’+F3’+F4’…,当Y1<=Y2,说明搬迁DB3影响小,采用搬迁DB3,反之亦然.The influence degree of DB migration Y1=F1+F2+F3+F4..., the influence degree of DB1 and DB2 relocation Y2=F1'+F2'+F3'+F4'..., when Y1<=Y2, it means that the influence of relocating DB3 is small, adopt Migrating to DB3 and vice versa.
(四)、在搬迁DB3之前,在P2宿主DB主机机已经预留DB3扩容所需的数据缓存、CPU资源,并完成参数修改,由资源管控装置通过1级和0级数据备份恢复、数据实时同步等实现DB3的数据迁移,应用程序重新连接即可完成DB3的扩容.(4) Before relocating DB3, the P2 host DB host machine has reserved the data cache and CPU resources required for DB3 expansion, and completed parameter modification. The resource management and control device restores the data through level 1 and level 0 data backup, and the data is real-time Synchronization, etc. to achieve DB3 data migration, and the application can be reconnected to complete the expansion of DB3.
(五)、当Y1>Y2,实施DB1、DB2迁移到宿主机P2,迁移方案同步骤(四),迁移后剩余的资源将补足DB3,并实施参数修改,应用程序重新连接即可完成DB3的扩容。(5) When Y1>Y2, implement the migration of DB1 and DB2 to the host machine P2, the migration plan is the same as step (4), the remaining resources after migration will make up for DB3, and implement parameter modification, and the application program can be reconnected to complete the DB3 expansion.
所述DB3的扩容具体可如图9所示,包括:The expansion of the DB3 can be specifically shown in Figure 9, including:
判断P2是由有可用资源,若进入下一步,若否申请私有云域的资源;这里的资源可为PAAS资源中的数据库资源等。Judging that P2 has available resources, if it goes to the next step, if not, apply for resources in the private cloud domain; the resources here can be database resources in PAAS resources, etc.
计算影响度Y1和影响度Y2。Calculate influence degree Y1 and influence degree Y2.
判断Y1是否小于或等于Y2。Determine whether Y1 is less than or equal to Y2.
Y1小于或等于Y2,实施DB3的迁移到P2。Y1 is less than or equal to Y2, implement the migration from DB3 to P2.
Y1大于Y2,实施DB1迁移到P2。Y1 is greater than Y2, and DB1 is migrated to P2.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention can be integrated into one processing module, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the Including the steps of the foregoing method embodiments; and the foregoing storage medium includes: a removable storage device, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, etc. A medium on which program code can be stored.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。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 determined by the protection scope of the claims.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510430509.4A CN106713375A (en) | 2015-07-21 | 2015-07-21 | Method and device for allocating cloud resources |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510430509.4A CN106713375A (en) | 2015-07-21 | 2015-07-21 | Method and device for allocating cloud resources |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106713375A true CN106713375A (en) | 2017-05-24 |
Family
ID=58899929
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510430509.4A Pending CN106713375A (en) | 2015-07-21 | 2015-07-21 | Method and device for allocating cloud resources |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106713375A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107526818A (en) * | 2017-08-28 | 2017-12-29 | 中山市博美科研技术服务有限公司 | A big data processing system and method based on enterprise private cloud |
CN108306981A (en) * | 2018-03-08 | 2018-07-20 | 江苏省广播电视总台 | The dual isomery PaaS redundancy approach of media cloud platform service layer safety can be enhanced |
CN108551399A (en) * | 2018-03-29 | 2018-09-18 | 深信服科技股份有限公司 | Dispositions method, system and the relevant apparatus serviced under a kind of cloud environment |
CN109032788A (en) * | 2018-06-29 | 2018-12-18 | 北京百度网讯科技有限公司 | Reserved resource pool dynamic dispatching method, device, computer equipment and storage medium |
CN109120702A (en) * | 2018-08-24 | 2019-01-01 | 高振宇 | The method and system of cloud are isolated |
CN109936592A (en) * | 2017-12-15 | 2019-06-25 | 中国移动通信集团浙江有限公司 | Method, apparatus, electronic device and storage medium for service processing |
CN112565317A (en) * | 2019-09-25 | 2021-03-26 | 阿里巴巴集团控股有限公司 | Hybrid cloud system, data processing method and device thereof, and storage medium |
CN114155969A (en) * | 2021-11-16 | 2022-03-08 | 医渡云(北京)技术有限公司 | Medical data acquisition method and device, electronic equipment and storage medium |
US20230112031A1 (en) * | 2021-10-09 | 2023-04-13 | Dell Products L.P. | System and method for workload management in a distributed system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102195956A (en) * | 2010-03-19 | 2011-09-21 | 富士通株式会社 | Cloud service system and user right management method thereof |
CN102292698A (en) * | 2009-02-04 | 2011-12-21 | 思杰系统有限公司 | Methods and systems for automated management of virtual resources in a cloud computing environment |
CN102427473A (en) * | 2011-11-28 | 2012-04-25 | 中国联合网络通信集团有限公司 | Method and system for constructing cross-platform resource |
CN102594869A (en) * | 2011-12-30 | 2012-07-18 | 深圳市同洲视讯传媒有限公司 | Method and device for dynamically distributing resources under cloud computing environment |
CN103430150A (en) * | 2010-11-22 | 2013-12-04 | 瑞典爱立信有限公司 | Technique for resource creation in a cloud computing system |
CN103793656A (en) * | 2012-10-30 | 2014-05-14 | 三星Sds株式会社 | Security implemented through metadata orchestrators |
-
2015
- 2015-07-21 CN CN201510430509.4A patent/CN106713375A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102292698A (en) * | 2009-02-04 | 2011-12-21 | 思杰系统有限公司 | Methods and systems for automated management of virtual resources in a cloud computing environment |
CN102195956A (en) * | 2010-03-19 | 2011-09-21 | 富士通株式会社 | Cloud service system and user right management method thereof |
CN103430150A (en) * | 2010-11-22 | 2013-12-04 | 瑞典爱立信有限公司 | Technique for resource creation in a cloud computing system |
CN102427473A (en) * | 2011-11-28 | 2012-04-25 | 中国联合网络通信集团有限公司 | Method and system for constructing cross-platform resource |
CN102594869A (en) * | 2011-12-30 | 2012-07-18 | 深圳市同洲视讯传媒有限公司 | Method and device for dynamically distributing resources under cloud computing environment |
CN103793656A (en) * | 2012-10-30 | 2014-05-14 | 三星Sds株式会社 | Security implemented through metadata orchestrators |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107526818A (en) * | 2017-08-28 | 2017-12-29 | 中山市博美科研技术服务有限公司 | A big data processing system and method based on enterprise private cloud |
CN109936592A (en) * | 2017-12-15 | 2019-06-25 | 中国移动通信集团浙江有限公司 | Method, apparatus, electronic device and storage medium for service processing |
CN108306981A (en) * | 2018-03-08 | 2018-07-20 | 江苏省广播电视总台 | The dual isomery PaaS redundancy approach of media cloud platform service layer safety can be enhanced |
CN108551399A (en) * | 2018-03-29 | 2018-09-18 | 深信服科技股份有限公司 | Dispositions method, system and the relevant apparatus serviced under a kind of cloud environment |
CN109032788A (en) * | 2018-06-29 | 2018-12-18 | 北京百度网讯科技有限公司 | Reserved resource pool dynamic dispatching method, device, computer equipment and storage medium |
CN109120702A (en) * | 2018-08-24 | 2019-01-01 | 高振宇 | The method and system of cloud are isolated |
CN109120702B (en) * | 2018-08-24 | 2021-07-27 | 高振宇 | Method and system for isolating cloud |
CN112565317A (en) * | 2019-09-25 | 2021-03-26 | 阿里巴巴集团控股有限公司 | Hybrid cloud system, data processing method and device thereof, and storage medium |
CN112565317B (en) * | 2019-09-25 | 2022-04-08 | 阿里巴巴集团控股有限公司 | Hybrid cloud system, data processing method and device thereof, and storage medium |
US20230112031A1 (en) * | 2021-10-09 | 2023-04-13 | Dell Products L.P. | System and method for workload management in a distributed system |
US12204950B2 (en) * | 2021-10-09 | 2025-01-21 | Dell Products L.P. | System and method for workload management in a distributed system |
CN114155969A (en) * | 2021-11-16 | 2022-03-08 | 医渡云(北京)技术有限公司 | Medical data acquisition method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106713375A (en) | Method and device for allocating cloud resources | |
US10701139B2 (en) | Life cycle management method and apparatus | |
CN107066319B (en) | Multi-dimensional scheduling system for heterogeneous resources | |
EP3507692B1 (en) | Resource oversubscription based on utilization patterns in computing systems | |
US20190230004A1 (en) | Network slice management method and management unit | |
CN104461740B (en) | A kind of cross-domain PC cluster resource polymerization and the method for distribution | |
CN108337109B (en) | Resource allocation method and device and resource allocation system | |
CN103593242B (en) | Resource sharing control system based on Yarn frameworks | |
CN102567072B (en) | Resource allocation method, resource allocation device and resource allocation system | |
CN103593229B (en) | Integrated and United Dispatching framework and the dispatching method of isomery cloud operating system | |
CN104021040B (en) | Based on the cloud computing associated task dispatching method and device under time constraint condition | |
CN108370328B (en) | Management method and device of NFV MANO policy descriptor | |
KR101113943B1 (en) | Method And Apparatus For Managing Workload And Distributed Computing System Using The Same | |
CN112445615B (en) | A thread scheduling system, computer device and storage medium | |
CN111796908A (en) | System and method for automatic elastic expansion and contraction of resources and cloud platform | |
RU2690198C1 (en) | Method of processing network functions virtualization resources and virtualised network function manager | |
CN105159736B (en) | A kind of construction method for the SaaS software deployment schemes for supporting performance evaluation | |
CN102081554A (en) | Cloud computing operating system as well as kernel control system and method thereof | |
CN104601664A (en) | Cloud computing platform resource management and virtual machine dispatching control system | |
CN102981890A (en) | Computing task and virtual machine deploying method within a virtual data center | |
CN104270421A (en) | A multi-tenant cloud platform task scheduling method supporting bandwidth guarantee | |
CN104348881A (en) | Method and device for user resource partitioning in cloud management platform | |
KR20110083084A (en) | Server operating device and method using virtualization | |
JP2018531549A6 (en) | Network function virtualization resource processing method and virtualized network function manager | |
WO2023184917A1 (en) | Computing power information processing method and system and computing power gateway |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170524 |
|
RJ01 | Rejection of invention patent application after publication |