Summary of the invention
For the problems referred to above in correlation technique, the present invention proposes management method and the device that a kind of resource dynamic is distributed, can realize in the different time periods, adopt different flexible strategies to carry out the dynamic assignment of resource, thereby effectively raise the service efficiency of resource pool, the resource pool making has more elasticity.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, the management method that provides a kind of resource dynamic to distribute.
The management method that this resource dynamic is distributed comprises:
The business operation that will carry out is analyzed, determined that this business operation is in the required stock number of different time sections;
According to the business operation of determining, in the required stock number of different time sections, generate resource telescopic arrangement information;
According to resource telescopic arrangement information, for different time sections, carry out business operation and distribute corresponding resource.
Wherein, the business operation of determining in basis is in the required stock number of different time sections, while generating resource telescopic arrangement information, can be by the business operation of determining in the required stock number of different time sections, as carry out the default resource sendout of business operation in the corresponding time period; And according to the difference relation between the default resource sendout of different time sections, generate resource telescopic arrangement information.
In addition the management method that, this resource dynamic is distributed also comprises: in advance for the different time sections of business operation configures a plurality of resource backup sendouts, wherein, resource backup sendout is greater than default resource sendout.
In addition, the management method that this resource dynamic is distributed also comprises: when carrying out business operation, detect in real time business operation at the required real resource of different time sections.
In addition the management method that, this resource dynamic is distributed also comprises: according to business operation, at required real resource of each time period, judge whether the default resource sendout of this time period meets real resource; In the situation that the determination result is NO, using the resource backup sendout that meets real resource in this time period as current resource sendout, and be the business operation Resources allocation in this time period according to this resource sendout.
According to a further aspect in the invention, the management devices that provides a kind of resource dynamic to distribute.
The management devices that this resource dynamic is distributed comprises:
Analysis module, for the business operation that will carry out is analyzed, determines that this business operation is in the required stock number of different time sections;
Generation module, the business operation of determining for basis, in the required stock number of different time sections, generates resource telescopic arrangement information;
Execution module, for according to resource telescopic arrangement information, carries out business operation for different time sections and distributes corresponding resource.
Wherein, generation module comprises: the first configuration module, for by the business operation of determining in the required stock number of different time sections, as carry out the default resource sendout of business operation in the corresponding time period; Information generating module, for according to the difference relation between the default resource sendout of different time sections, generates resource telescopic arrangement information.
In addition the management devices that, this resource dynamic is distributed also comprises: the second configuration module, in advance, for the different time sections of business operation configures a plurality of resource backup sendouts, wherein, resource backup sendout is greater than default resource sendout.
In addition, the management devices that this resource dynamic is distributed also comprises: real-time detection module, for when carrying out business operation, detects business operation in real time at the required real resource of different time sections.
In addition the management devices that, this resource dynamic is distributed also comprises: judge module, for according to required real resource of each time period, judges whether the default resource sendout of this time period meets real resource; The 3rd configuration module, in the situation that the determination result is NO, using the resource backup sendout that meets real resource in this time period as current resource sendout, and is the business operation Resources allocation in this time period according to this resource sendout.
The present invention is by analyzing the business operation that will carry out in advance, determine that this business operation is in the required stock number of different time sections, then, according to this stock number, generate resource telescopic arrangement information, and according to this resource telescopic arrangement information, for different time, carry out business operation and distribute corresponding resource, thereby realized in the different time periods, adopt different flexible strategies to carry out the dynamic assignment of resource, and then effectively raise the service efficiency of resource pool, make resource pool have more elasticity.
In addition, the present invention is also by configuring a plurality of resource backup sendouts for different time sections, and detect in real time business operation at the required real resource of different time sections simultaneously, when default resource sendout does not meet required real resource, using the resource backup sendout that meets required real resource in a plurality of resource backup sendouts as current resource sendout, and distribute corresponding resource according to this resource sendout for the business operation in this time period, thereby realized the resource actual required according to business operation, dynamic adjustresources sendout, to meet actual demand, and then avoided the excessive or too small problem of resource sendout of setting to occur.
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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, the every other embodiment that those of ordinary skills obtain, belongs to the scope of protection of the invention.
According to embodiments of the invention, the management method that provides a kind of resource dynamic to distribute.
The management method of distributing according to the resource dynamic of the embodiment of the present invention as shown in Figure 1, comprises:
Step S101, analyzes the business operation that will carry out, determines that this business operation is in the required stock number of different time sections;
Step S103, in the required stock number of different time sections, generates resource telescopic arrangement information according to the business operation of determining;
Step S105, according to resource telescopic arrangement information, carries out business operation for different time sections and distributes corresponding resource.
Wherein, the business operation of determining in basis is in the required stock number of different time sections, while generating resource telescopic arrangement information, can be by the business operation of determining in the required stock number of different time sections, as carry out the default resource sendout of business operation in the corresponding time period; And according to the difference relation between the default resource sendout of different time sections, generate resource telescopic arrangement information.
In addition the management method that, this resource dynamic is distributed also comprises: in advance for the different time sections of business operation configures a plurality of resource backup sendouts, wherein, resource backup sendout is greater than default resource sendout.
In addition, the management method that this resource dynamic is distributed also comprises: when carrying out business operation, detect in real time business operation at the required real resource of different time sections.
In addition the management method that, this resource dynamic is distributed also comprises: according to business operation, at required real resource of each time period, judge whether the default resource sendout of this time period meets real resource; In the situation that the determination result is NO, using the resource backup sendout that meets real resource in this time period as current resource sendout, and be the business operation Resources allocation in this time period according to this resource sendout.
According to embodiments of the invention, the management devices that also provides a kind of resource dynamic to distribute.
As shown in Figure 2, the management devices distributing according to the resource dynamic of the embodiment of the present invention comprises:
Analysis module 21, for the business operation that will carry out is analyzed, determines that this business operation is in the required stock number of different time sections;
Generation module 22, the business operation of determining for basis, in the required stock number of different time sections, generates resource telescopic arrangement information;
Execution module 23, for according to resource telescopic arrangement information, carries out business operation for different time sections and distributes corresponding resource.
Wherein, generation module 22 comprises: the first configuration module (not shown), for by the business operation of determining in the required stock number of different time sections, as carry out the default resource sendout of business operation in the corresponding time period; Information generating module (not shown), for according to the difference relation between the default resource sendout of different time sections, generates resource telescopic arrangement information.
In addition the management devices that, this resource dynamic is distributed also comprises: the second configuration module (not shown), in advance, for the different time sections of business operation configures a plurality of resource backup sendouts, wherein, resource backup sendout is greater than default resource sendout.
In addition, the management devices that this resource dynamic is distributed also comprises: real-time detection module (not shown), for when carrying out business operation, detects business operation in real time at the required real resource of different time sections.
In addition the management devices that, this resource dynamic is distributed also comprises: judge module (not shown), for according to required real resource of each time period, judges whether the default resource sendout of this time period meets real resource; The 3rd configuration module (not shown), for in the situation that the determination result is NO, using the resource backup sendout that meets real resource in this time period as current resource sendout, and be the business operation Resources allocation in this time period according to this resource sendout.
For convenient, understand technique scheme of the present invention, below from the angle of know-why, technique scheme of the present invention is described.
When practical application, practice shows, for a resource pool, the use of resource pool can not be generally a linear process, but beginning the comparison of the growth is fast, after certain use amount, increase and start to slow down, state is used in one of last basic maintenance more stably.Therefore, to the flexible strategy of resource pool, can set a reference curve, the X-axis of setting curve is duration, 12 months, general location, Y-axis is defined as the flexible ratio of resource pool, and resource pool will be used different flexible strategies in the different periods like this, this will improve the service efficiency of resource pool greatly, and the resource pool making is more flexible.And when predicted data is changed, flexible service can be used new parameter to stretch.
When practical application, technique scheme of the present invention can realize by following steps, specific as follows:
1) tables of data of definition, the predicted data of preserving resource pool expansion and contraction, for example:
Table(Id,PolicyId,MonthKey,Value),
Wherein, the data of table comprise tactful ID, month, expansion and contraction value.
2) class of definition, is used for reading resource pool expansion and contraction data, for example,
3) a resource pool class of definition, is used for preserving resource pool resource example.
4) monitoring class of definition, is used for monitoring resource pool state, and reads the expansion and contraction of current resource pool.When the change of resource pool instance number, can monitor the flexible ratio that class reads current generation setting by this, according to predefined flexible curve, read corresponding flexible value, the operation of stretching.
As can be seen here, by means of technique scheme of the present invention, by in advance the business operation that will carry out being analyzed, determine that this business operation is in the required stock number of different time sections, then, according to this stock number, generate resource telescopic arrangement information, and according to this resource telescopic arrangement information, for different time, carry out business operation and distribute corresponding resource, thereby can realize in the different time periods, adopt different flexible strategies to carry out the dynamic assignment of resource, and then effectively raise the service efficiency of resource pool, make resource pool have more elasticity.
In addition, by means of technique scheme of the present invention, by configure a plurality of resource backup sendouts for different time sections, and detect in real time business operation at the required real resource of different time sections simultaneously, when default resource sendout does not meet required real resource, using the resource backup sendout that meets required real resource in a plurality of resource backup sendouts as current resource sendout, and distribute corresponding resource according to this resource sendout for the business operation in this time period, thereby can realize the resource actual required according to business operation, dynamic adjustresources sendout, to meet actual demand, and then avoided the excessive or too small problem of resource sendout of setting to occur.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.