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.
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.