CN103713955B - Method and device for managing resource dynamic allocation - Google Patents

Method and device for managing resource dynamic allocation Download PDF

Info

Publication number
CN103713955B
CN103713955B CN201310752071.2A CN201310752071A CN103713955B CN 103713955 B CN103713955 B CN 103713955B CN 201310752071 A CN201310752071 A CN 201310752071A CN 103713955 B CN103713955 B CN 103713955B
Authority
CN
China
Prior art keywords
resource
business operation
different time
sendout
needed
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.)
Active
Application number
CN201310752071.2A
Other languages
Chinese (zh)
Other versions
CN103713955A (en
Inventor
马玉国
李亦民
张平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baotou City Cloud Computing Technology Co ltd
Original Assignee
SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd filed Critical SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd
Priority to CN201310752071.2A priority Critical patent/CN103713955B/en
Publication of CN103713955A publication Critical patent/CN103713955A/en
Application granted granted Critical
Publication of CN103713955B publication Critical patent/CN103713955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and device for managing resource dynamic allocation. The method for managing the resource dynamic allocation comprises the steps of analyzing a service operation to be executed, determining the resource quantity needed by the service operation in different time frames, generating resource telescopic allocation information according to the determined resource quantity needed by the service operation in the different time frames, and allocating corresponding resources to the service operation executed in the different time frames according to the resource telescopic allocation information. According to the method, the service operation to be executed is analyzed in advance, the resource quantity needed by the service operation in the different time frames is determined, then the resource telescopic allocation information is generated according to the determined resource quantity, the corresponding resources are allocated to the service operation executed in the different time frames according to the resource telescopic allocation information, therefore, the aim of adopting different telescopic strategies to conduct resource dynamic allocation in the different time frames is achieved, the use efficiency of a resource pool is effectively improved, and the resource pool has more elasticity.

Description

The management method of Resource dynamic allocation and device
Technical field
The present invention relates to computer realm, it particularly relates to a kind of management method of Resource dynamic allocation and device.
Background technology
At present, existing Paas(Platform-as-a-Service, platform services)Resource pool all supported substantially by platform Automatic telescopic(The i.e. automatic application of resource and release)Strategy.Existing automatic telescopic strategy has two kinds, and one kind is to adopt definite value Realizing the automatic telescopic of resource, another kind is the automatic telescopic to realize resource using the expansion and contraction setting to flexible value.
However, in practical application, no matter being the first automatic telescopic strategy, or second automatic telescopic strategy, all There is weak point, for example, expanding-contracting action underaction.Using not convenient, and when user is not familiar with to system, if There is excessive or too small situation in fixed value, and then have impact on the service efficiency of resource pool.
For the problems referred to above in correlation technique, effective solution is not yet proposed at present.
Content of the invention
For the problems referred to above in correlation technique, the present invention proposes a kind of management method of Resource dynamic allocation and device, It is capable of carrying out the dynamically distributes of resource using different flexible strategies in the different time periods, thus effectively raising The service efficiency of resource pool, the resource pool making is more flexible.
The technical scheme is that and be achieved in that:
According to an aspect of the invention, it is provided a kind of management method of Resource dynamic allocation.
The management method of this Resource dynamic allocation includes:
The business operation that will execute is analyzed, determines stock number needed in different time sections for this business operation;
Stock number according to needed for the business operation determined is in different time sections, generates resource telescopic arrangement information;
According to resource telescopic arrangement information, it is that different time sections execution business operation distributes corresponding resource.
Wherein, the stock number needed for the business operation that basis is determined is in different time sections, generates resource telescopic arrangement During information, can by the business operation determined in different time sections needed for stock number, as in corresponding time period execution business The default resource sendout of operation;And according to the difference relation between the default resource sendout of different time sections, generate resource Telescopic arrangement information.
Additionally, the management method of this Resource dynamic allocation also includes:Many for the different time sections configuration of business operation in advance Individual resource backup sendout, wherein, resource backup sendout is more than default resource sendout.
In addition, the management method of this Resource dynamic allocation also includes:When executing business operation, real-time detection business operation Real resource needed in different time sections.
Additionally, the management method of this Resource dynamic allocation also includes:Reality according to needed for business operation is in each time period Border resource, judges whether the default resource sendout of this time period meets real resource;In judged result in the case of no, will The resource backup sendout of this time period fullness in the epigastrium and abdomen foot real resource as current resource allocation, and according to this resource allocation For the business operation Resources allocation in this time period.
According to a further aspect in the invention, there is provided a kind of managing device of Resource dynamic allocation.
The managing device of this Resource dynamic allocation includes:
Analysis module, for being analyzed to the business operation that will execute, determines this business operation in different time sections Required stock number;
Generation module, for according to the business operation determined in different time sections needed for stock number, generate resource and stretch Contracting configuration information;
Performing module, corresponding for according to resource telescopic arrangement information, being different time sections execution business operation distribution Resource.
Wherein, generation module includes:First configuration module, for by the business operation determined needed for different time sections Stock number, as the default resource sendout executing business operation in the corresponding time period;Information generating module, for according to not With the difference relation between the default resource sendout of time period, generate resource telescopic arrangement information.
Additionally, the managing device of this Resource dynamic allocation also includes:Second configuration module, for being business operation in advance Different time sections configure multiple resource backup sendouts, and wherein, resource backup sendout is more than default resource sendout.
In addition, the managing device of this Resource dynamic allocation also includes:Real-time detection module, in execution business operation When, real resource needed in different time sections for the real-time detection business operation.
Additionally, the managing device of this Resource dynamic allocation also includes:Judge module, for according to needed for each time period Real resource, judges whether the default resource sendout of this time period meets real resource;3rd configuration module, for judging In the case that result is no, using the resource backup sendout of this time period fullness in the epigastrium and abdomen foot real resource as current resource allocation Amount, and be the business operation Resources allocation in this time period according to this resource allocation.
The present invention passes through in advance the business operation that will execute to be analyzed, and determines this business operation in different time sections Required stock number, then, according to this stock number, generates resource telescopic arrangement information, and according to this resource telescopic arrangement information, Distribute corresponding resource for different time execution business operation, it is achieved thereby that in the different time periods, stretching using different Strategy carries out the dynamically distributes of resource, and then effectively raises the service efficiency of resource pool so that resource pool is more flexible.
Additionally, the present invention configures multiple resource backup sendouts also by for different time sections, and real-time detection industry simultaneously Real resource needed in different time sections for the business operation, when default resource sendout is unsatisfactory for required real resource, will be many In individual resource backup sendout meet needed for real resource resource backup sendout as current resource allocation, and according to This resource allocation is that the business operation in this time period distributes corresponding resource, it is achieved thereby that according to the actual institute of business operation Need resource, dynamic adjustresources sendout, with meet reality demand, and then avoid the resource allocation of setting excessive or Too small problem occurs.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment Need use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only the present invention some enforcement Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also obtain according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the schematic flow sheet of the management method of Resource dynamic allocation according to embodiments of the present invention;
Fig. 2 is the structural representation of the managing device of Resource dynamic allocation according to embodiments of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained, broadly fall into present invention protection Scope.
According to embodiments of the invention, there is provided a kind of management method of Resource dynamic allocation.
As shown in figure 1, the management method of Resource dynamic allocation according to embodiments of the present invention includes:
Step S101, is analyzed to the business operation that will execute, and determines this business operation needed for different time sections Stock number;
Step S103, the stock number according to needed for the business operation determined is in different time sections, generate resource and stretch and join Confidence ceases;
Step S105, according to resource telescopic arrangement information, is that different time sections execution business operation distributes corresponding resource.
Wherein, the stock number needed for the business operation that basis is determined is in different time sections, generates resource telescopic arrangement During information, can by the business operation determined in different time sections needed for stock number, as in corresponding time period execution business The default resource sendout of operation;And according to the difference relation between the default resource sendout of different time sections, generate resource Telescopic arrangement information.
Additionally, the management method of this Resource dynamic allocation also includes:Many for the different time sections configuration of business operation in advance Individual resource backup sendout, wherein, resource backup sendout is more than default resource sendout.
In addition, the management method of this Resource dynamic allocation also includes:When executing business operation, real-time detection business operation Real resource needed in different time sections.
Additionally, the management method of this Resource dynamic allocation also includes:Reality according to needed for business operation is in each time period Border resource, judges whether the default resource sendout of this time period meets real resource;In judged result in the case of no, will The resource backup sendout of this time period fullness in the epigastrium and abdomen foot real resource as current resource allocation, and according to this resource allocation For the business operation Resources allocation in this time period.
According to embodiments of the invention, additionally provide a kind of managing device of Resource dynamic allocation.
As shown in Fig. 2 the managing device of Resource dynamic allocation according to embodiments of the present invention includes:
Analysis module 21, for being analyzed to the business operation that will execute, determines this business operation in different time The stock number of Duan Suoxu;
Generation module 22, for according to the business operation determined in different time sections needed for stock number, generate resource Telescopic arrangement information;
Performing module 23, for according to resource telescopic arrangement information, being that different time sections execution business operation distribution corresponds to Resource.
Wherein, generation module 22 includes:First configuration module(Not shown), for by the business operation determined in difference Stock number needed for time period, as the default resource sendout executing business operation in the corresponding time period;Information generating module (Not shown), for the difference relation between the default resource sendout according to different time sections, generate resource telescopic arrangement letter Breath.
Additionally, the managing device of this Resource dynamic allocation also includes:Second configuration module(Not shown), for being industry in advance The different time sections of business operation configure multiple resource backup sendouts, and wherein, resource backup sendout is more than default resource and distributes Amount.
In addition, the managing device of this Resource dynamic allocation also includes:Real-time detection module(Not shown), in execution industry During business operation, real resource needed in different time sections for the real-time detection business operation.
Additionally, the managing device of this Resource dynamic allocation also includes:Judge module(Not shown), for according to each time The real resource of Duan Suoxu, judges whether the default resource sendout of this time period meets real resource;3rd configuration module(Not Illustrate), in judged result in the case of no, using the resource backup sendout of this time period fullness in the epigastrium and abdomen foot real resource as Current resource allocation, and be the business operation Resources allocation in this time period according to this resource allocation.
Understand the technique scheme of the present invention for convenience, below the above-mentioned skill to the present invention from the angle of know-why Art scheme illustrates.
In practical application, practice have shown that, for a resource pool, the use of resource pool will not be typically a line Property process, but it is fast to start the comparison of the growth, to after certain usage amount, increases and starts to slow down, finally substantially keeps one and compare Smoothly use state.Therefore, strategy resource pool being stretched, can set a reference curve, when the X-axis of setting curve is Long, general positioning 12 months, Y-axis is defined as the ratio that resource pool stretches, and such resource pool will be using different in the different periods Flexible strategy,, by the great service efficiency improving resource pool, the resource pool making is more flexible for this.And in prediction data change When, flexible service can be stretched using new parameter.
In practical application, the technique scheme of the present invention can be realized by following steps, specific as follows:
1)Define a tables of data, preserve the prediction data of resource pool expansion and contraction, for example:
Table (Id, PolicyId, MonthKey, Value),
Wherein, the data of table includes tactful ID, month, expansion and contraction value.
2)Define a class, for reading resource pool expansion and contraction data, for example,
3)Define a resource pool class, for preserving resource pool resource instances.
4)Define a monitoring class, for monitoring resource pool state, and read the expansion and contraction in Current resource pond.Work as resource pool The flexible ratio of current generation setting when instance number changes, can be read by this monitoring class, according to set in advance flexible Curve, reads corresponding flexible value, carries out scaling operation.
As can be seen here, by means of the technique scheme of the present invention, by carrying out to the business operation that will execute in advance Analysis, determines stock number needed in different time sections for this business operation, then, according to this stock number, generates resource and stretches and join Confidence ceases, and according to this resource telescopic arrangement information, is that different time execution business operation distributes corresponding resource, such that it is able to Realize in the different time periods, carry out the dynamically distributes of resource using different flexible strategies, and then effectively raise resource The service efficiency in pond is so that resource pool is more flexible.
Additionally, by means of the technique scheme of the present invention, by distributing for the multiple resource backup of different time sections configuration Amount, and real resource needed in different time sections for the real-time detection business operation simultaneously, when default resource sendout is unsatisfactory for institute During the real resource needing, needed for meeting in multiple resource backup sendouts, the resource backup sendout of real resource is as current Resource allocation, and be that business operation in this time period distributes corresponding resource according to this resource allocation, such that it is able to Realize, according to the actually required resource of business operation, dynamic adjustresources sendout, to meet the demand of reality, and then avoiding The problem that the resource allocation of setting is excessive or too small occurs.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention Within god and principle, any modification, equivalent substitution and improvement made etc., should be included within the scope of the present invention.

Claims (8)

1. a kind of management method of Resource dynamic allocation is it is characterised in that include:
The business operation that will execute is analyzed, determines stock number needed in different time sections for this business operation;
Stock number according to needed for the described business operation determined is in different time sections, generates resource telescopic arrangement information;
According to described resource telescopic arrangement information, it is that the described business operation of different time sections execution distributes corresponding resource;
Wherein, the stock number according to needed for the described business operation determined is in different time sections, generates resource telescopic arrangement letter Breath includes:
By the described business operation determined in different time sections needed for stock number, execute described industry as this corresponding time period The default resource sendout of business operation;
And, according to the difference relation between the described default resource sendout of different time sections, generate resource telescopic arrangement letter Breath.
2. management method according to claim 1 is it is characterised in that further include:
It is the different time sections multiple resource backup sendouts of configuration of business operation, wherein, described resource backup sendout in advance More than described default resource sendout.
3. management method according to claim 2 is it is characterised in that further include:
When executing described business operation, real resource needed in different time sections for the business operation described in real-time detection.
4. management method according to claim 3 is it is characterised in that further include:
Real resource according to needed for described business operation is in each time period, judges the described default resource distribution of this time period Whether amount meets described real resource;
In judged result in the case of no, using the resource backup sendout meeting described real resource in this time period as working as Front resource allocation, and be the described business operation Resources allocation in this time period according to this resource allocation.
5. a kind of managing device of Resource dynamic allocation is it is characterised in that include:
Analysis module, for being analyzed to the business operation that will execute, determines this business operation needed for different time sections Stock number;
Generation module, for according to the described business operation determined in different time sections needed for stock number, generate resource and stretch Contracting configuration information;
Performing module is right for according to described resource telescopic arrangement information, being different time sections execution described business operation distribution The resource answered;
Wherein, the first configuration module, for by the described business operation determined in different time sections needed for stock number, as Execute the default resource sendout of described business operation in the corresponding time period;
Information generating module, for the difference relation between the described default resource sendout according to different time sections, generates money Source telescopic arrangement information.
6. managing device according to claim 5 is it is characterised in that further include:
Second configuration module, the different time sections for being business operation in advance configure multiple resource backup sendouts, wherein, institute State resource backup sendout and be more than described default resource sendout.
7. managing device according to claim 6 is it is characterised in that further include:
Real-time detection module, for when executing described business operation, business operation described in real-time detection is in different time sections institute The real resource needing.
8. managing device according to claim 7 is it is characterised in that further include:
Judge module, for according to described business operation in each time period needed for real resource, judge the institute of this time period State whether default resource sendout meets described real resource;
3rd configuration module, in judged result in the case of no, the standby of described real resource will be met in this time period Part resource allocation is as current resource allocation, and is the described business operation in this time period according to this resource allocation Resources allocation.
CN201310752071.2A 2013-12-31 2013-12-31 Method and device for managing resource dynamic allocation Active CN103713955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310752071.2A CN103713955B (en) 2013-12-31 2013-12-31 Method and device for managing resource dynamic allocation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310752071.2A CN103713955B (en) 2013-12-31 2013-12-31 Method and device for managing resource dynamic allocation

Publications (2)

Publication Number Publication Date
CN103713955A CN103713955A (en) 2014-04-09
CN103713955B true CN103713955B (en) 2017-02-15

Family

ID=50406957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310752071.2A Active CN103713955B (en) 2013-12-31 2013-12-31 Method and device for managing resource dynamic allocation

Country Status (1)

Country Link
CN (1) CN103713955B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301257B (en) * 2014-09-17 2018-01-02 华为技术有限公司 A kind of resource allocation methods, device and equipment
CN104244436B (en) * 2014-09-29 2018-09-18 中国联合网络通信集团有限公司 A kind of method of adjustment and device of the network equipment
CN105653370A (en) * 2015-12-29 2016-06-08 中国银联股份有限公司 System and method for obtaining virtual machine resources on PaaS platform
CN108307438B (en) * 2017-01-13 2020-12-01 华为技术有限公司 Data sending method, data receiving method, terminal equipment and network equipment
CN109254843A (en) * 2017-07-14 2019-01-22 华为技术有限公司 The method and apparatus for distributing resource
CN109361750B (en) * 2018-10-24 2021-04-30 上海精数信息科技有限公司 Resource allocation method, device, electronic equipment and storage medium
CN111767140A (en) * 2020-06-19 2020-10-13 四川九洲电器集团有限责任公司 Resource allocation method, system, medium and equipment of cloud computing system
CN113923229A (en) * 2021-10-14 2022-01-11 京东科技信息技术有限公司 Elastic scheduling method and device for cloud computing resources and related equipment
WO2023151268A1 (en) * 2022-02-14 2023-08-17 华为云计算技术有限公司 Service distribution method, apparatus and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122872A (en) * 2006-08-07 2008-02-13 国际商业机器公司 Method for managing application programme workload and data processing system
CN101276301A (en) * 2007-03-27 2008-10-01 赛门铁克公司 Method and apparatus for allocating resources among backup tasks in a data backup system
CN102301370A (en) * 2009-01-30 2011-12-28 惠普开发有限公司 System And Method For Integrating Capacity Planning And Workload Management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122872A (en) * 2006-08-07 2008-02-13 国际商业机器公司 Method for managing application programme workload and data processing system
CN101276301A (en) * 2007-03-27 2008-10-01 赛门铁克公司 Method and apparatus for allocating resources among backup tasks in a data backup system
CN102301370A (en) * 2009-01-30 2011-12-28 惠普开发有限公司 System And Method For Integrating Capacity Planning And Workload Management

Also Published As

Publication number Publication date
CN103713955A (en) 2014-04-09

Similar Documents

Publication Publication Date Title
CN103713955B (en) Method and device for managing resource dynamic allocation
CN105912403B (en) The method for managing resource and device of Docker container
US20120159507A1 (en) Compiling apparatus and method of a multicore device
EP2204948A3 (en) Apparatus and method for managing subscription requests for configuring a network interface component
US20140164612A1 (en) System and Method for Determining and Visualizing Efficiencies and Risks in Computing Environments
CN104572301A (en) Resource distribution method and system
CN105808341B (en) A kind of methods, devices and systems of scheduling of resource
CN105743677A (en) Resource configuration method and apparatus
CN105975049B (en) A kind of accidental task low energy consumption dispatching method of tasks synchronization
CN106161625A (en) A kind of method of the cloud computing resources utilization rate for improving virtual machine
CN107395731A (en) A kind of adjusting method and device of the container cluster based on service orchestration
US9063668B1 (en) Distributed memory allocation in multi-threaded programs
CN104144210A (en) Method and system for automatically building data service
CN109086194A (en) A kind of thread pool capacity adjustment method, device, equipment and readable storage medium storing program for executing
CN105488134A (en) Big data processing method and big data processing device
CN104426953A (en) Method and apparatus for distributing calculation resources
CN103488538B (en) Application extension device and application extension method in cloud computing system
WO2013082742A1 (en) Resource scheduling method, device and system
CN114048006A (en) Virtual machine dynamic migration method and device and storage medium
CN103049326B (en) Method and system for managing job program of job management and scheduling system
CN103914223B (en) The generation method and device at terminal applies interface
CN104519082B (en) A kind of expansion method and device of cloud computing
CN102521043B (en) A kind of task processing method and application system
CN102427468A (en) Cloud computing operating system and scheduling method thereof
CN102497410A (en) Method for dynamically partitioning computing resources of cloud computing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100193 Beijing, Haidian District, northeast Wang West Road, building 8, building 36, floor 5

Patentee after: Shuguang Cloud Computing Group Co.,Ltd.

Address before: 100193 Beijing, Haidian District, northeast Wang West Road, building 8, building 36, floor 5

Patentee before: DAWNING CLOUD COMPUTING TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221107

Address after: 014000 No. 8, Qingshan Road, Xinjian District, Qingshan District, Baotou, Inner Mongolia Autonomous Region

Patentee after: Baotou City Cloud Computing Technology Co.,Ltd.

Address before: 100193 5 floor, 36 building, No. 8 Northeast Road, Haidian District, Beijing.

Patentee before: Shuguang Cloud Computing Group Co.,Ltd.