[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107656807A - The automatic elastic telescopic method and device of a kind of virtual resource - Google Patents

The automatic elastic telescopic method and device of a kind of virtual resource Download PDF

Info

Publication number
CN107656807A
CN107656807A CN201610594541.0A CN201610594541A CN107656807A CN 107656807 A CN107656807 A CN 107656807A CN 201610594541 A CN201610594541 A CN 201610594541A CN 107656807 A CN107656807 A CN 107656807A
Authority
CN
China
Prior art keywords
target
flexible group
flexible
group
monitoring data
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.)
Granted
Application number
CN201610594541.0A
Other languages
Chinese (zh)
Other versions
CN107656807B (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610594541.0A priority Critical patent/CN107656807B/en
Publication of CN107656807A publication Critical patent/CN107656807A/en
Application granted granted Critical
Publication of CN107656807B publication Critical patent/CN107656807B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiments of the invention provide the automatic elastic telescopic method and device of a kind of virtual resource, wherein method includes:Receive the monitoring alarm of at least one working index for the flexible group of target;According to monitoring alarm, it is determined that the flexible strategy for the flexible group of target;When flexible strategy is increase example, the example specification of the flexible group of target is obtained, example specification determines what is obtained for the statistical information of the monitoring data previously according at least one working index for the flexible group of target;The increase example request for carrying example specification is sent to example resource management platform, so that example resource management platform is according to the example specification, it is the flexible group increase example of target.Increase the example specification of example i.e. in the embodiment of the present invention newly, be the loading condition that is reflected according to the working index of flexible group to be updated, the resource allocation precision and resource utilization of flexible group of example can be lifted.

Description

The automatic elastic telescopic method and device of a kind of virtual resource
Technical field
The present invention relates to the automatic elastic telescopic method and device of electronic technology field, more particularly to a kind of virtual resource.
Background technology
A key property of the elasticity of resource as cloud computation data center, it is mainly based upon automatic elastic and stretched (Auto Scaling) technology is realized.Automatic elastic stretches technology, is stretched strategy using the automatic elastic of a certain fixation, at certain It is corresponding to virtualizing the progress of example quantity in flexible group of the application when the flexible group of load change increase or reduction of individual application Ground increases or reduced.In practical application, because cloud computation data center can not usually predict the actual loading demand of application, because This, when exceeding in present load demand or will be more than the load that the resource of cloud computation data center can bear, cloud computing Data center needs to add more virtualization examples to tackle the load beyond current can bear, on the contrary, working as cloud computing When the afforded load of the resource of data center is far beyond present load demand, cloud computation data center needs to reduce not The virtualization example being used, thus, cloud computation data center can use virtualization of the flexible technology of automatic elastic to application real Number of cases amount is controlled.
In the prior art, virtualizing example is configured according to different specifications.For example, virtualization example can be by It is 1G according to CPU frequency, inside saves as 2G specification to configure, can also be 2G according to CPU frequency, inside saves as 4G specification to match somebody with somebody Put, this configuration mode lacks precision, if the example specification of initial configuration is too high to easily cause the wasting of resources, if initially matched somebody with somebody The example specification put is too low to easily cause the inadequate resource for distributing to example.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is, there is provided a kind of automatic elastic telescopic method of virtual resource And device, for according to the example specification that renewal is timed with real resource demand, for flexible group increase example, improving and stretching The resource allocation precision and resource utilization of contracting group example.
First embodiment of the invention provides a kind of automatic elastic telescopic method of virtual resource.The appliance for releasing single of virtual resource Property retractor device receive monitoring alarm at least one working index of the flexible group of target according to monitoring alarm after, just really Surely for the flexible strategy of the flexible group of target, when flexible strategy is defined as increasing the situation of example, obtain previously according to target The statistical information of the monitoring data of at least one working index of flexible group determines obtained example specification, most backward example resource Management platform sends the increase example request for carrying example specification, and increase example request is used to indicate that example resource management platform is pressed According to the example specification, for the flexible group increase example of target.
In the technical scheme, the automatic elastic retractor device of virtual resource increases the example specification of example newly, is according to mesh The loading condition that the working index of the flexible group of mark is reflected can thus avoid fixing example specification when institute come what is be updated Caused by example specification initial configuration difficulty the problem of, the resource allocation precision and resource utilization of flexible group example can be lifted, Simultaneously it is also ensured that flexible group is stablized relatively.
In the first possible implementation of first aspect, described in the automatic elastic retractor device acquisition of virtual resource Before the example specification of the flexible group of target, the monitoring number of at least one working index for the flexible group of the target is first obtained According to according to the monitoring data got, it is determined that the monitoring data at least one working index of the flexible group of the target Statistical information, further according to the statistical information of the monitoring data of at least one working index of the flexible group of the target, it is determined that described The example specification of the flexible group of target.
In the technical scheme, the automatic elastic retractor device of virtual resource is by the monitoring of the working index of the flexible group of target Data obtain the statistical information that can reflect the loading demand of the flexible group of target, so as to according to mesh after statistical analysis The example specification of the flexible group of more fresh target of the loading demand timing of the flexible group of mark, lift the resource allocation precision of flexible group example And resource utilization.
With reference to the first possible implementation of first aspect, in second of possible implementation, virtual resource Automatic elastic retractor device determine the example specification of the flexible group of the target after, by the flexible group of the target for determining to obtain Example specification covers original example specification of the flexible group of the target.
In the technical scheme, the automatic elastic retractor device of virtual resource is by the example specification after the flexible group renewal of target Original example specification is replaced, memory space can be saved.
With reference to the first possible implementation of first aspect, in the third possible implementation, virtual resource Automatic elastic retractor device determine the example specification of the flexible group of the target after, obtain the target for determining to obtain and stretch group Example specification creation time, store the example specification of the flexible group of the creation time and the target is corresponding to default In the example specification set of the flexible group of the target, the example specification set of the flexible group of the target includes multiple creation times pair The example specification for the flexible group of the target answered.
In the technical scheme, target is stretched what group timing each time updated by the automatic elastic retractor device of virtual resource Example specification and corresponding creation time are stored in example specification set, can keep the complete of example specification more new record Whole property, while can also be in the flexible group example of delete target, there is provided more optional delet methods.
With reference to the first possible implementation of first aspect, in the 4th kind of possible implementation, monitoring data It is included in multiple monitoring datas of multiple sampling time point collections, the automatic elastic retractor device of virtual resource is according to the multiple The time tandem of sampling time point, determine the weight of multiple monitoring datas corresponding to the multiple sampling time point difference Value, then multiple monitoring datas according to corresponding to the multiple sampling time point difference, corresponding with reference to the multiple monitoring data Weighted value, calculate the statistical information of the monitoring data of at least one working index for the flexible group of the target.
In the technical scheme, the automatic elastic retractor device of virtual resource can be according to corresponding to multiple sampling time points The significance level of multiple monitoring datas, the weighted value of multiple monitoring datas corresponding to multiple sampling time points difference is set, so as to Get more accurate statistical information.
It is at least one in the 5th kind of possible implementation with reference to the first possible implementation of first aspect The statistical information of the monitoring data of working index is respectively present corresponding example specification hierarchical policy, the automatic elastic of virtual resource Retractor device obtains example rule corresponding to the statistical information of the monitoring data of at least one working index of the flexible group of the target Lattice hierarchical policy, the statistical information for the monitoring data of at least one working index of group of then being stretched according to the target, with reference to Example specification hierarchical policy corresponding to the statistical information of the monitoring data of at least one working index, determines that the target is stretched The example specification of contracting group.
In the technical scheme, the automatic elastic retractor device of virtual resource is obtained by setting example specification hierarchical policy To the example specification that disclosure satisfy that different degrees of statistical information.
In the 6th kind of possible implementation of first aspect, the example specification of the flexible group of target exist it is multiple, virtually The example rule of creation time the latest in multiple example specifications of the flexible group of the automatic elastic retractor device acquisition target of resource Lattice, the increase example request for carrying the example specification of the creation time the latest is sent to the example resource management platform, increased Add example request to be used to indicate the example specification of the example resource management platform according to the creation time the latest, be the mesh The flexible group increase example of mark.
In the 7th kind of possible implementation of first aspect, when the flexible strategy is reduces example, virtual money The automatic elastic retractor device in source obtains the example specification of the flexible group of the target, sends and takes to the example resource management platform Reduction example request with the example specification, reduce example request and be used to indicate the example resource management platform according to Example specification, delete at least one example in multiple examples of the flexible group of the target.
With reference to the 7th kind of possible implementation of first aspect, in the 8th kind of possible implementation, target is stretched Multiple, multiple examples rule of the flexible group of the automatic elastic retractor device acquisition target of virtual resource be present in the example specification of group The earliest example specification of creation time in lattice, sent to the example resource management platform and carry the earliest reality of the creation time The reduction example request of convention lattice, reduce example request and be used to indicate the example resource management platform in the flexible group of the target Multiple examples in delete the earliest example of creation time of at least one example specification.
Second aspect of the present invention provides a kind of automatic elastic retractor device of virtual resource.The device include processor, Memory and communication interface.Processor is connected to memory and communication interface, such as processor can be connected to by bus Memory and communication interface.Communication interface is used to be communicated with equipment such as monitoring device, example resource management platforms.Memory Example specification for storing the flexible group of target etc..Processor is used for the part or all of flow for performing first aspect.
The third aspect provides the automatic elastic retractor device of another virtual resource, and the device includes:
Receiving module, for receiving the monitoring alarm of at least one working index for the flexible group of target;
Processing module, for according to the monitoring alarm, it is determined that the flexible strategy for the flexible group of the target;
The processing module is additionally operable to:
When the flexible strategy is increases example, the example specification of the flexible group of the target, the example specification are obtained Statistical information for the monitoring data previously according at least one working index for the flexible group of the target determines what is obtained;
Sending module, the increase example request of the example specification, institute are carried for being sent to example resource management platform Increase example request is stated to be used to indicate that the example resource management platform according to the example specification, increases for the flexible group of the target Add example.
In the first possible implementation of the third aspect, the processing module is additionally operable to:
Obtain the monitoring data of at least one working index for the flexible group of the target;
According to the monitoring data of at least one working index for the flexible group of the target, it is determined that being stretched for the target The statistical information of the monitoring data of at least one working index of contracting group;
According to the statistical information of the monitoring data of at least one working index of the flexible group of the target, the target is determined The example specification of flexible group.
With reference to the first possible implementation of the third aspect, in second of possible implementation, the processing Module is additionally operable to:
The example specification of the flexible group of the target for determining to obtain is covered to original example specification of the flexible group of the target.
With reference to the first possible implementation of the third aspect, in the third possible implementation, the processing Module is additionally operable to:
Obtain the creation time of the example specification of the flexible group of the target for determining to obtain;
The creation time is stretched with corresponding store to the default target of example specification of the flexible group of the target In the example specification set of group, the example specification set of the flexible group of the target includes the target corresponding to multiple creation times The example specification of flexible group.
With reference to the first possible implementation of the third aspect, in the 4th kind of possible implementation, the monitoring Data are included in multiple monitoring datas of multiple sampling time point collections;
The processing module is additionally operable to:
According to the time tandem of the multiple sampling time point, determine corresponding to the multiple sampling time point difference The weighted value of multiple monitoring datas;
It is corresponding with reference to the multiple monitoring data according to multiple monitoring datas corresponding to the multiple sampling time point difference Weighted value, calculate the statistical information of the monitoring data of at least one working index for the flexible group of the target.
With reference to the first possible implementation of the third aspect, in the 5th kind of possible implementation, it is described at least The statistical information of the monitoring data of one working index is respectively present corresponding example specification hierarchical policy;
The processing module is additionally operable to:
Obtain example rule corresponding to the statistical information of the monitoring data of at least one working index of the flexible group of the target Lattice hierarchical policy;
According to the statistical information of the monitoring data of at least one working index of the flexible group of the target, with reference to it is described at least Example specification hierarchical policy corresponding to the statistical information of the monitoring data of one working index, determine the reality of the flexible group of the target Convention lattice.
In the 6th kind of possible implementation of the third aspect, the flexible example specification organized of the target exists multiple;
The processing module is additionally operable to:Obtain the reality of creation time the latest in multiple example specifications of the flexible group of the target Convention lattice;
The sending module is additionally operable to:Sent to the example resource management platform and carry the reality of the creation time the latest The increase example request of convention lattice, the increase example request are used to indicate the example resource management platform according to the establishment The example specification of time the latest, for the flexible group increase example of the target.
In the 7th kind of possible implementation of the third aspect, the processing module is additionally operable to:When the flexible strategy During to reduce example, the example specification of the flexible group of the target is obtained;
The sending module is additionally operable to:The reduction reality for carrying the example specification is sent to the example resource management platform Example request, the reduction example request is used to indicate the example resource management platform according to the example specification, described in deletion At least one example in multiple examples of the flexible group of target.
With reference to the 7th kind of possible implementation of the third aspect, in the 8th kind of possible implementation, the target The example specification of flexible group exists multiple;
The processing module is additionally operable to:Obtain the reality that creation time is earliest in multiple example specifications of the flexible group of the target Convention lattice;
The sending module is additionally operable to:Sent to the example resource management platform and carry the earliest reality of the creation time The reduction example request of convention lattice, the reduction example request are used to indicate that the example resource management platform is stretched in the target The earliest example of the creation time of at least one example specification is deleted in multiple examples of contracting group.
The fourth aspect of the application, there is provided a kind of storage medium, store program code in the storage medium, the program When code is run by computing device, the virtual money of one kind of any one implementation offer of first aspect or first aspect is performed The automatic elastic telescopic method in source.The storage medium includes but is not limited to flash memory (English:Flash memory), hard disk (English:Hard disk drive, abbreviation:HDD) or solid state hard disc is (English:Solid state drive, abbreviation:SSD).
The 5th aspect of the application, there is provided a kind of computer program product, the computer product are run by computing device When, the automatic elastic for performing a kind of virtual resource of any one implementation offer of first aspect or first aspect is flexible square Method.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 a are a kind of flexible management configuration diagrams of automatic elastic retractor device provided in an embodiment of the present invention;
Fig. 1 b are a kind of system architecture diagrams of automatic elastic telescopic system provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of the automatic elastic telescopic method of virtual resource provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of the update method of flexible group of example specification provided in an embodiment of the present invention;
Fig. 4 is that a kind of composition structure simplification of the automatic elastic retractor device of virtual resource provided in an embodiment of the present invention is shown It is intended to;
Fig. 5 is a kind of composition structural representation of the automatic elastic retractor device of virtual resource provided in an embodiment of the present invention Figure;
Fig. 6 is the composition structural representation of the automatic elastic retractor device of another virtual resource provided in an embodiment of the present invention Figure.
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 describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Part herein, the basic concepts that each embodiment all refers in the present invention are illustrated first.
Flexible group in the embodiment of the present invention refers to perform identical application, has the virtualization example of identical function Set.
Wherein, virtualization example refers to physical resource (computing resource, storage resource, Internet resources etc.) by virtualization skill The independent executable calculating of art formation, storage, the virtual individual of network communicating function, can mainly show as virtual machine and appearance Device.The virtualization example involved by automatic elastic telescopic method in the embodiment of the present invention, can be virtual machine or appearance Device, and it is not specific to certain form.Virtualization example is referred to as " example " below.
Example specification can be understood as virtualizing the configuration of example, and dominant frequency size, the internal memory that can specifically include CPU are big Small, network bandwidth, disk size etc..
Shown in Fig. 1 a is a kind of flexible management configuration diagram of automatic elastic retractor device, wherein, one flexible group Including at least one virtualization example (illustrated in Fig. 1 a virtualization example 103a, 103b and 103c), and virtual resource Elastic telescopic device 101 can be carried out at least one flexible group (illustrating flexible group 102a, 102b and 102c in Fig. 1 a) Extension and contraction control management, that is to say, that in some flexible group that the elastic telescopic device 101 of virtual resource can be managed it Virtualization example the example quantity for increasing or decreasing and correspondingly increasing or decreasing and example specification etc. carry out decision-making.Example Such as, group of stretching 102b includes virtualization example 103a, 103b and 103c, and the elastic telescopic device 101 of virtual resource can be with decision-making Any specification need to be configured for flexible group 102b increases virtualization example, including the several virtualization examples of increase, increased example; Virtualization example 103a, 103b or 103c in flexible group of 102b can be deleted with decision-making.
Method in the present embodiment suitable for the various automatic elastic telescopic systems based on flexible group of virtualization example, For example shown in Fig. 1 b it is a kind of system architecture diagram of automatic elastic telescopic system.Wherein, example resource management platform 104 is The device of at least one virtualization example is managed, and the virtualization example of its management is operated on server or server cluster (server 105a, 105b and 105c that operation virtualization example is illustrated in Fig. 1 b).In the system architecture diagram shown in Fig. 1 b In, after the elastic telescopic device 101 of virtual resource determines the flexible strategy for the flexible group of target, can by flexible strategy and Corresponding example specification is sent to example resource management platform 104, and example resource management platform 104 is according to flexible strategy and example Specification is that the flexible group of target increases or decreases virtualization example.Further, example resource management platform 104 can be not only as Centralized management platform shown in Fig. 1 b, it can also be a kind of distribution being distributed on each server of operation virtualization example The management platform of formula.Execution method described in the embodiment of the present invention is exactly that one kind in system environments as shown in Figure 1 b is empty Intend the automatic elastic telescopic method of resource, so that according to the extension and contraction control management of the elastic telescopic device 101 of virtual resource to stretching The virtualization example of contracting group is adjusted.
Referring to Fig. 2, Fig. 2 is a kind of flow of the automatic elastic telescopic method of virtual resource provided in an embodiment of the present invention Schematic diagram, this method go for the extension and contraction control of any flexible group of virtualization example, and for each flexible group The extension and contraction control flow of virtualization example be all it is basically identical, therefore, in the embodiment of the present invention only with flexible group from The automatic elastic telescopic method of the flexible group of dynamic elasticity telescopic method, i.e. target is described.It should be noted that the present invention is implemented Method involved by example can be performed by the automatic elastic retractor device of virtual resource, and the automatic elastic of the virtual resource stretches Device can be the electronic equipments such as server, PC or the software program operated on above electronic equipment.
Methods described includes:
Step S201, receive the monitoring alarm of at least one working index for the flexible group of target.
Working index is the work feelings of some example of the overall work situation or flexible group that can reflect flexible group A series of achievement datas of condition, for example, working index can be the average CPU of all examples in flexible group (central processing unit, Central Processing Unit) usage amount, internal memory usage amount, disk occupancy, disk read-write amount and network throughput Etc.;Can also be CPU usage amounts, internal memory usage amount, disk occupancy, the disk read-write amount of some example in flexible group And network throughput etc..That is, the working index of monitoring is the overall work index for flexible all examples of group Or it is possible for the individual working index of each example of flexible group, is not especially limited here.
In the present embodiment, monitoring alarm can be sent in itself by the automatic elastic retractor device of virtual resource, Can be that the automatic elastic of virtual resource is stretched after the automatic elastic retractor device transmission from other monitoring devices to virtual resource What compression apparatus received.In specific implementation, the automatic elastic retractor device of virtual resource or other monitoring devices can be real-time At least one working index of group flexible to target be monitored, and can respectively set and refer to for each work in advance Target alarm conditions, alarm bar corresponding to the working index is met in the monitoring data for monitoring wherein some working index During part, corresponding monitoring alarm is just triggered.For example, the internal memory usage amount of example in group of stretching can be supervised in real time Control, if the internal memory usage amount for monitoring a certain example of flexible group accounts for the 60% of total memory size of the example, send For the monitoring alarm of internal memory usage amount.Wherein, the particular type of monitoring alarm can comprise more than predetermined threshold value alarm and Less than the alarm of predetermined threshold value, such as can be alarm or internal memory usage amount that internal memory usage amount exceedes certain threshold value Less than the alarm of certain threshold value.
Step S202, according to the monitoring alarm, it is determined that the flexible strategy for the flexible group of the target.
Flexible strategy refers to adjustment plan of the automatic elastic retractor device to the virtualization example in group of stretching of virtual resource Slightly, the example in the flexible group of increase can be included and reduce the example in flexible group.
After monitoring alarm is received, it is possible to determine specific flexible strategy according to monitoring alarm.Received for example, working as Internal memory usage amount exceed the monitoring alarm of preset first threshold value, then the flexible strategy of the flexible group of target is assured that to increase Add the example in the flexible group of target;Or when the monitoring alarm for receiving disk occupancy and being less than default Second Threshold, then mesh The flexible strategy of the flexible group of mark is assured that to reduce the example in the flexible group of target;Or surpass when receiving CPU usage amounts Cross the 3rd threshold value and internal memory usage amount more than the 4th threshold value monitoring alarm, then the flexible tactful can of the flexible group of target is true The example being set in the flexible group of increase target.
Step S203, when the flexible strategy is increases example, the example specification of the flexible group of the target is obtained, it is described Example specification is true for the statistical information of the monitoring data previously according at least one working index for the flexible group of the target Surely obtain.
Step S204, the increase example request for carrying the example specification, the increasing are sent to example resource management platform Example request is added to be used to indicate the example resource management platform according to the example specification, it is real for the flexible group increase of the target Example.
Each example of flexible group is equipped with corresponding example specification, when flexible strategy is in the flexible group of increase target Example when, can first obtain the example specification of the flexible group of target, be that the flexible group of target is newly-increased according to the example specification got Example.It should be noted that in embodiments of the present invention, the example specification of the flexible group of target got is according to timing acquisition The monitoring data statistical information that is calculated analytically to obtain of at least one working index of the flexible group of target determine.Its In, statistical information can include the average of the monitoring data of at least one working index of the flexible group of the target, higher limit, under It is at least one in the statistical parameters such as limit value, burst value and probability-distribution function.
That is, the automatic elastic retractor device of virtual resource can be according to the working index for the flexible group of target Monitoring data, the example specification of the group flexible to target of timing are updated, when target stretch group need to increase example when, just with Newest example specification configures newly-increased example after renewal.
In some implement scenes, the example rule of the flexible group of target of the automatic elastic retractor device memory storage of virtual resource Lattice one and only one, be exactly the flexible group of target latest instance specification, i.e., the example specification of the flexible group of target is carried out every time After more newly-generated newest example specification, newest example specification is just replaced into original example specification, then stretched in acquisition target During the example specification of contracting group, directly example specification corresponding to the flexible group of lookup target can get the newest reality of the flexible group of target Convention lattice, and the increase example request for carrying the example specification is sent to example resource management platform, so that example resource management Platform is according to the example specification, for the flexible group increase example of target.
For example, setting target stretches newest example specification of the group after renewal as CPU frequency 2G, memory size 4GB, magnetic Disk space 10M, network bandwidth 500Mb/s, then after example resource management platform gets the example specification, it is possible to be target Flexible group increases the example of at least one example specification newly.
In other implement scenes, the example of the flexible group of target of the automatic elastic retractor device memory storage of virtual resource Specification exist it is multiple, i.e., every time generation one new example specification after, just the example of generation is stored, is directed to so as to be formed The example specification set of multiple example specifications of the flexible group of target, then, then can be with when obtaining the example specification of the flexible group of target The example specification of creation time the latest in the example specification set of the flexible group of target is first searched, here the example of creation time the latest Specification refers to most newly-established example specification in multiple example specifications, namely nearest apart from current time for obtaining example specification Once update generated example specification.Sent after most to example resource management platform and carry the example rule of the creation time the latest The increase example request of lattice, so that example specification of the example resource management platform according to the creation time the latest, stretches for target Group increase example.
Further, the mode of the example specification of creation time the latest in the example specification set of the flexible group of target is searched, Can be according to creation time corresponding with example specification or version number or other can show the priority of example specification generation The mark of order determines, is not especially limited here.
For example, setting the flexible group of target has an example specification set, including three example specifications (with CPU frequency, Exemplified by memory size and network bandwidth configuration), creation time corresponding to each example specification presence is exemplary, such as the institute of table 1 Show, it is 12 that the automatic elastic retractor device of virtual resource, which finds the time of creation time the latest,:15, corresponding example specification is 3rd group of example specification, then can be using the example specification as the flexible group increase example of target, i.e., current increased each example is The specification that CPU frequency is 2G, memory size 4G, network bandwidth are 800Mb/s.
Sequence number Example specification Creation time
1 CPU frequency 1G, memory size 2G, network bandwidth 500Mb/s 10:15
2 CPU frequency 3G, memory size 6G, network bandwidth 1Gb/s 11:15
3 CPU frequency 2G, memory size 4G, network bandwidth 800Mb/s 12:15
Table 1:Example specification and creation time corresponding relation signal table (example)
Optionally, the embodiment of the present invention can further include:
Step S205, when the flexible strategy is reduces example, obtain the example specification of the flexible group of the target.
Step S206, the reduction example request for carrying the example specification, institute are sent to the example resource management platform State and reduce example request for indicating that the example resource management platform according to the example specification, deletes the flexible group of the target Multiple examples at least one example.
It is corresponding with step S203 and S204, in some implement scenes, in the automatic elastic retractor device of virtual resource The example specification of the flexible group of the target of storage one and only one, be exactly the flexible group of target latest instance specification, then stretching When contracting strategy is reduces example, the newest of the flexible group of target can be got by directly searching target example specification corresponding to group of stretching Example specification, and the reduction example request for carrying the example specification is sent to example resource management platform, so that example resource pipe Platform is according to the example specification, at least one example in multiple examples that flexible group of delete target.Specifically, example provides Source capsule platform can retain the example that latest instance specification is configured in the flexible group of target, be selected in other remaining examples It is at least one to be deleted;Can also be after other remaining examples be all deleted there is still a need for continuing to delete a number of example When, then target stretched and the example of latest instance specification is configured in group carries out part deletion.
For example, it is CPU frequency 2G (with CPU frequency specification to set target newest example specification of the group after renewal of stretching Exemplified by), the flexible group of target includes 4 examples, is example and 2 example specifications that 2 example specifications are CPU frequency 2G respectively For CPU frequency 1G example.It is current according to the flexible group of target after example resource management platform receives the newest example specification Example specification, if desired reduce 2 examples when, then can preferentially by 2 example specifications be CPU frequency 1G example delete; , then can be after the example that 2 example specifications are CPU frequency 1G be deleted when if desired reducing by 3 examples, a then optional reality The example that convention lattice are CPU frequency 2G is deleted.
In other implement scenes, the example of the flexible group of target of the automatic elastic retractor device memory storage of virtual resource Specification exist it is multiple, and each example specification exist corresponding to creation time or creation time sequencing can be showed Identify, then when flexible strategy is reduces example, the multiple example specifications that can first obtain in the flexible group of target correspond to respectively Creation time or the mark of creation time sequencing can be showed, and then obtain multiple example specifications of the flexible group of target The earliest example specification of middle creation time, the earliest example specification of creation time refers to here establishes at first in multiple example specifications Example specification, namely apart from the current time for obtaining example specification it is farthest once update generated example specification.Finally The reduction example request for carrying the earliest example specification of creation time is sent to example resource management platform, so that example resource pipe Platform deletes the earliest example of creation time of at least one example specification in multiple examples of the flexible group of target.
For example, the example specification set existed in the automatic elastic retractor device of virtual resource for the flexible group of target is set, Including three example specifications (by taking CPU frequency, memory size and network bandwidth configuration as an example), each example specification is present Corresponding version identifier, the version identifier can represent digital bigger, the explanation of the tandem of creation time, i.e. version identifier Creation time is more late, version identifier it is digital smaller, illustrate that creation time is more early.If target is stretched, group includes 4 examples, point It is not that 2 example specifications are CPU frequency 2G, memory size 4G, network bandwidth 800Mb/s example and 2 example specifications are CPU Dominant frequency 3G, memory size 6G, network bandwidth 1Gb/s example.Exemplary, as shown in table 2, the automatic elastic of virtual resource is stretched Compression apparatus finds example specification CPU frequency 2G, memory size 4G, network bandwidth in 4 examples in the flexible group of target Version identifier corresponding to 800Mb/s is 3, example specification CPU frequency 3G, memory size 6G, version corresponding to network bandwidth 1Gb/s 2 are identified as, i.e., what version identifier was minimum in 4 examples in the flexible group of target is 2, then the automatic elastic of virtual resource stretches Example specification corresponding to version identifier 2 (CPU frequency 3G, memory size 6G, network bandwidth 1Gb/s) can be sent to reality by device Example resource management platform, after example resource management platform receives the newest example specification, when if desired reducing by 1 example, It is CPU frequency 3G that an example specification, which can then be deleted, memory size 6G, network bandwidth 1Gb/s example.
Sequence number Example specification Version identifier
1 CPU frequency 1G, memory size 2G, network bandwidth 500Mb/s 1
2 CPU frequency 3G, memory size 6G, network bandwidth 1Gb/s 2
3 CPU frequency 2G, memory size 4G, network bandwidth 800Mb/s 3
Table 2:Example specification and version identifier corresponding relation signal table (example)
In the embodiment shown in Figure 2, the automatic elastic retractor device of virtual resource is received for the flexible group of target After the monitoring alarm of at least one working index is according to monitoring alarm, the flexible strategy for the flexible group of target is determined that, is being stretched When contracting strategy is defined as increasing the situation of example, the monitoring number of at least one working index previously according to the flexible group of target is obtained According to statistical information determine obtained example specification, stretched finally by example resource management platform using the example specification as target The newly-increased example of group is configured.That is, the automatic elastic retractor device of virtual resource increases the example specification of example newly, it is The loading condition reflected according to flexible group of working index is updated, when thus can avoid fixing example specification The problem of caused example specification initial configuration difficulty, resource allocation precision and the utilization of resources of flexible group example can be lifted Rate, while it is also ensured that flexible group is stablized relatively.
Before the embodiment shown in Fig. 2, the prison of at least one working index for the flexible group of target is obtained in advance Data are controlled, and corresponding statistical information is obtained after carrying out statistical analysis to above-mentioned monitoring data, finally determine newest example rule Lattice.Therefore, the automatic elastic retractor device of virtual resource is further described to example specification by the embodiment shown in Fig. 3 Renewal process.It should be noted that the update method of the embodiment of the present invention can carry out circulation execution, due to the calculation updated every time Method is consistent with process, therefore only the process once updated is described here.
Referring to Fig. 3, the flow that Fig. 3 is a kind of update method of flexible group of example specification provided in an embodiment of the present invention is shown It is intended to, methods described includes:
Step S301, obtain the monitoring data of at least one working index for the flexible group of the target.
As above described in an embodiment, working index is the overall work situation that can reflect flexible group or flexible group A series of achievement datas of the working condition of some example, put down for example, working index can be all examples in flexible group Equal CPU usage amounts, internal memory usage amount, disk occupancy, disk read-write amount and network throughput etc.;Can also be flexible CPU usage amounts, internal memory usage amount, disk occupancy, disk read-write amount and network throughput of some example in group etc. Deng.It is considered that the automatic elastic retractor device of virtual resource in the working index of the flexible group of monitoring objective, is pair of timing Monitoring data corresponding to each working index is acquired, and each sampling time point corresponds to a monitoring data.And to target When the monitoring data of at least one working index of flexible group carries out statistical analysis, a measurement period can be preset, then obtain The monitoring data in a measurement period is taken, exactly obtains each sampling time point institute in time span corresponding to measurement period The monitoring data of collection.
If for example, setting measurement period as 1 hour, the monitoring data every 1 minute working index to the flexible group of target is entered Row once samples, then the monitoring data of 59 groups of samplings in a measurement period be present, then the automatic elastic of virtual resource is stretched Compression apparatus can obtain the monitoring data of 59 groups of samplings of collection in the measurement period.
Step S302, according to the monitoring data of at least one working index for the flexible group of the target, it is determined that being directed to The statistical information of the monitoring data of at least one working index of the flexible group of the target.
Statistical information is the statistics that the multiple monitoring datas that will be got are calculated according to mathematical statistics method, tool Body can include but is not limited to the average value of multiple monitoring datas of at least one working index of the flexible group of target, higher limit, Lower limit, burst value, probability-distribution function or joint probability distribution function.
For example, the automatic elastic retractor device of virtual resource has been got in 60 of timing acquiring in a cycle The monitoring data of usage amount is deposited, then the monitoring number of this 60 internal memory usage amounts can be calculated according to the data calculation formula of average value According to average value;Internal memory maximum in monitoring data can also be used to numerical quantity as higher limit, minimum internal memory usage amount Numerical value is as lower limit;It can also will be higher than a number of monitoring data of average value in monitoring data as burst value;May be used also The probability-distribution function of this 60 internal memory usage amounts is calculated with the formula of mathematical by probability-distribution function.
Wherein, when calculating weighted average, the automatic elastic retractor device of virtual resource can be to each monitoring data Identical weight is all distributed, the time tandem distribution of multiple sampling time points when can also be according to timing acquiring monitoring data The weighted value of multiple monitoring datas.For example, the time of sampling time point is more late, i.e., got over from the time of currently carrying out statistical analysis Closely, then the weighted value distributed is higher, and the weighted value conversely then distributed is lower.
Further, there can also be the distribution of a variety of weight proportions, for example, the first weight distribution ratio can be first The weight of individual sampled point is 0.1, and the weight of second sampled point is 0.2, and the weight of the 3rd sampled point is 0.3, by that analogy; Second of weight distribution ratio can be that the weight of first sampled point is 0.1, and the weight of second sampled point is the 0.5, the 3rd The weight of individual sampled point is 1, by that analogy.As can be seen that the first weight distribution ratio desirably gets a kind of compare Average average statistical information, and second of weight distribution ratio then it is expected to get it is a kind of later closer to sampling time point, Average statistical information i.e. nearer from current time.
Further, the automatic elastic retractor device of virtual resource not only can only count the prison for a working index The statistical information of data is controlled, joint statistics can also be carried out to the monitoring data of multiple working indexs, for example, CPU can be calculated The joint probability distribution function of usage amount and internal memory usage amount.
In the present embodiment, the statistical information corresponding to the monitoring data of each working index can be the same, can also It is different, is not especially limited here.For example, for according to experiment experience, if the average value of CPU usage amounts is more accurate Really, then the average value of CPU usage amounts can be calculated, if configuration of the burst value of network throughput to example specification more has reference Value, then can be with the burst value of calculating network handling capacity.
Step S303, the statistical information for the monitoring data of at least one working index of group of being stretched according to the target, really The example specification of the fixed flexible group of the target.
The flexible group of the target in a measurement period has been calculated extremely in the automatic elastic retractor device of virtual resource After the statistical information of the monitoring data of a few working index, the prison that disclosure satisfy that these working indexs may further determine that out Control the example specification of the statistical information of data.
For example, if the average for the network throughput being calculated is 500Mb/s, then can determine that one disclosure satisfy that this In measurement period network bandwidth is directed in example specification of the network bandwidth data of network throughput average as the flexible group of target Specification, for example, the network bandwidth in example specification can be set as into 1Gb/s.
In another example if the higher limit for the internal memory usage amount being calculated is 3G, then can determine that one disclosure satisfy that this The memory size data of internal memory usage amount higher limit are as big for internal memory in the example specification of the flexible group of target in measurement period Small specification, for example, the memory size in example specification can be set as into 3G.
It is further alternative, there can be many according to example specification determined by statistical information obtained above, For example, meet that the memory size that internal memory usage amount higher limit is 3G can be set as 3G or 4G etc..Therefore, one , can be according to the statistics in different demands a variety of statistical informations corresponding to each working index in a little implement scenes Different example specification hierarchical policys is set, what the example specification obtained corresponding to different hierarchical policys can be in various degree expires Sufficient statistical information.
For example, if the average of the CPU usage amounts in statistical information is 2G, advised for the example of CPU usage amount averages Lattice hierarchical policy has three kinds, and the first is the CPU usage amount averages that example specification disclosure satisfy that 50%, and second is example specification 100% CPU usage amount averages are disclosure satisfy that, the third is the CPU usage amount averages that example specification disclosure satisfy that 200%.It is empty A kind of hierarchical policy can be selected according to current demand by intending the automatic elastic retractor device of resource, if such as selecting the first point Level strategy, then CPU frequency in example specification can be set as to 1G, i.e. the CPU usage amounts that the statistics of satisfaction 50% obtains are equal Value;If select the third rank, then CPU frequency in example specification can be set as to 4G, that is, meet that 200% statistics obtains CPU usage amount averages.
In another example if the joint probability distribution of the CPU usage amounts and internal memory usage amount in statistical information reflects:CPU makes Dosage is less than 1G and probability of the internal memory usage amount less than 2G is less than 2G for 40%, CPU usage amounts and internal memory usage amount is less than 4G's Probability is that 60%, CPU usage amounts are less than 3G and probability of the internal memory usage amount less than 6G is 80%.So for CPU usage amounts and The example specification hierarchical policy of internal memory usage amount joint probability distribution can also have three kinds, respectively disclosure satisfy that 40% CPU Usage amount and internal memory usage amount, the CPU usage amounts that disclosure satisfy that 60% and internal memory usage amount and it disclosure satisfy that 80% CPU makes The example specification hierarchical policy of dosage and internal memory usage amount.If select the first example specification hierarchical policy, then can incite somebody to action CPU frequency is set as 1G, and memory size is arranged to 2G, that is, meets 40% CPU usage amounts and internal memory usage amount;If selection the Two kinds of example specification hierarchical policys, then CPU frequency can be set as to 2G, memory size is arranged to 4G, that is, meets 60% CPU usage amounts and internal memory usage amount.
Further, it is necessary to newest reality to generation after the flexible group example specification of current newest target is determined Convention lattice are stored, and specific storage mode can be described in step S304 or step S305 and S306 Described in.The automatic elastic of virtual resource stretches in embodiment shown in the then corresponding respectively Fig. 2 of both storage modes Device obtains the two ways of the flexible group example specification of target when increasing or decreasing example.
Step S304, the example specification of the flexible group of the target for determining to obtain is covered into the original of the flexible group of the target Example specification.
Original example specification can assemble the initial case specification put or virtual resource for target is flexible The reality that automatic elastic retractor device updates in previous measurement period according to the statistical information of the monitoring data of the flexible group of target Convention lattice.In some implement scenes, after example specification newest corresponding to current measurement period is determined, it is possible to will Original example specification that the newest example specification for the flexible group of target for currently determining to obtain replaces the flexible group of target is stored. That is, the latest instance specification of the flexible group of a target is only stored in the automatic elastic retractor device of virtual resource.
Step S305, obtain the creation time of the example specification of the flexible group of the target for determining to obtain.
Step S306, the creation time is stretched with the target, and the example specification organized is corresponding to be stored to default described In the example specification set of the flexible group of target, the example specification set of the flexible group of the target is included corresponding to multiple creation times The example specification of the flexible group of the target.
In some implement scenes, after the example specification of the flexible group of target is determined, it is possible to record the example specification In configuration, that is, generate an example specification version or document, can now record the example specification creation time or Person records the mark that can show creation time sequencing.When storage, it is possible to which example specification is corresponding Creation time shows the example specification that the flexible group of default target is stored in corresponding to the mark of creation time sequencing Set, target can be included in the example specification set and is stretched the example specification that is updated in each measurement period before of group and right The creation time answered.That is, by the example specification set of the flexible group of target come preserve the flexible group of target each time more New example specification and corresponding creation time.
In the embodiment shown in fig. 3, the automatic elastic retractor device of virtual resource stretches group extremely according to for target The monitoring data of a few working index, determines statistical information, further according to statistical information, is determined to meet the statistical information The example specification of the flexible group of target.That is, the automatic elastic retractor device of virtual resource refers to the work of the flexible group of target Target monitoring data obtains the statistical information that can reflect the loading demand of the flexible group of target after statistical analysis, so as to The example specification for the group that can be stretched according to the more fresh target of the loading demand timing of the flexible group of target, when avoiding fixing example specification The problem of caused example specification initial configuration difficulty.
Referring to Fig. 4, Fig. 4 is a kind of composition of the automatic elastic retractor device of virtual resource provided in an embodiment of the present invention Structural representation.As shown in figure 4, the device includes:Receiving module 41, processing module 42 and sending module 43, wherein, such as scheme Shown in 5, processing module 42 can include:Tactful determining module 421, example specification acquisition module 422, the monitoring data of stretching obtain Module 423, statistical information determining module 424, example specification determining module 425, the first memory module 426, creation time obtain The memory module 428 of module 427 and second, specifically:
Receiving module 41, for receiving the monitoring alarm of at least one working index for the flexible group of target;
Processing module 42 includes:
Stretch tactful determining module 421, for according to the monitoring alarm, it is determined that for the flexible of the flexible group of the target Strategy;
Example specification acquisition module 422, for when the flexible strategy is increases example, obtaining the flexible group of the target Example specification, the example specification is the monitoring number previously according at least one working index for the flexible group of the target According to statistical information determine what is obtained;
Sending module 43, the increase example request of the example specification is carried for being sent to example resource management platform, The increase example request is used to indicate the example resource management platform according to the example specification, for the flexible group of the target Increase example.
Optionally, the example specification of the flexible group of the target is present multiple;
The example specification acquisition module 422 is specifically used for:Obtain and created in multiple example specifications of the flexible group of the target Build the example specification of time the latest;
Sending module 43 is specifically used for:Sent to the example resource management platform and carry the reality of the creation time the latest The increase example request of convention lattice, the increase example request are used to indicate the example resource management platform according to the establishment The example specification of time the latest, for the flexible group increase example of the target.
Optionally, the processing module 42 also includes:
Monitoring data acquisition module 423, for obtaining the prison of at least one working index for the flexible group of the target Control data;
Statistical information determining module 424, for the prison according at least one working index for the flexible group of the target Data are controlled, it is determined that the statistical information of the monitoring data at least one working index of the flexible group of the target;
Example specification determining module 425, the monitoring number at least one working index according to the flexible group of the target According to statistical information, determine the example specification of the flexible group of the target.
Optionally, the monitoring data includes multiple monitoring datas in the collection of multiple sampling time points;
The statistical information determining module 424 is specifically used for:
According to the time tandem of the multiple sampling time point, determine corresponding to the multiple sampling time point difference The weighted value of multiple monitoring datas;
It is corresponding with reference to the multiple monitoring data according to multiple monitoring datas corresponding to the multiple sampling time point difference Weighted value, calculate the statistical information of the monitoring data of at least one working index for the flexible group of the target.
Optionally, the statistical information of the monitoring data of at least one working index is respectively present corresponding example specification Hierarchical policy;
The example specification determining module 425 is specifically used for:
Obtain example rule corresponding to the statistical information of the monitoring data of at least one working index of the flexible group of the target Lattice hierarchical policy;
According to the statistical information of the monitoring data of at least one working index of the flexible group of the target, with reference to it is described at least Example specification hierarchical policy corresponding to the statistical information of the monitoring data of one working index, determine the reality of the flexible group of the target Convention lattice.
Optionally, the processing module 42 also includes:
First memory module 426, for the example specification of the flexible group of the target for determining to obtain to be covered into the target Original example specification of flexible group.
Optionally, the processing module 42 also includes:
Creation time acquisition module 427, obtain the creation time of the example specification of the flexible group of the target for determining to obtain;
Second memory module 428, for storing the example specification of the flexible group of the creation time and the target is corresponding Into the example specification set of the flexible group of the default target, the example specification set of the flexible group of the target includes multiple wounds Build the example specification of the flexible group of the target corresponding to the time.
Optionally, the example specification acquisition module 422 is additionally operable to:
When the flexible strategy is reduces example, the example specification of the flexible group of the target is obtained;
The sending module 43 is additionally operable to:The reduction for carrying the example specification is sent to the example resource management platform Example request, the reduction example request are used to indicate that the example resource management platform according to the example specification, deletes institute State at least one example in multiple examples of the flexible group of target.
Optionally, the example specification of the flexible group of the target is present multiple;
The example specification acquisition module 422 is specifically used for:Obtain and created in multiple example specifications of the flexible group of the target Build time earliest example specification;
The sending module 43 is specifically used for:It is earliest that the carrying creation time is sent to the example resource management platform Example specification reduction example request, it is described reduction example request be used for indicate the example resource management platform in the mesh The earliest example of the creation time of at least one example specification is deleted in multiple examples of the flexible group of mark.
In embodiments of the present invention, the automatic elastic retractor device of virtual resource is received for the flexible group of target at least After the monitoring alarm of one working index is according to monitoring alarm, the flexible strategy for the flexible group of target is determined that, in flexible plan When being slightly defined as increasing the situation of example, the monitoring data of at least one working index previously according to the flexible group of target is obtained Statistical information determines obtained example specification, new as the flexible group of target using the example specification finally by example resource management platform The example of increasing is configured.That is, the automatic elastic retractor device of virtual resource increases the example specification of example newly, it is basis The loading condition that the working index of flexible group is reflected can thus avoid being made when fixing example specification come what is be updated Into example specification initial configuration difficulty the problem of, the resource allocation precision and resource utilization of flexible group example can be lifted, together When it is also ensured that flexible group it is relatively stable.
Fig. 6 is the composition structural representation of the automatic elastic retractor device of another virtual resource provided in an embodiment of the present invention Figure.As shown in fig. 6, the device includes processor 61, memory 62 and communication interface 63.Processor 61 is connected to memory 62 Memory 62 and communication interface 63 can be connected to by bus with communication interface 63, such as processor 61.The device is in reality It can be the server for realizing elastic telescopic function in scene.
Processor 61 is configured as supporting the automatic elastic retractor device of the virtual resource to perform in the above method accordingly Function.The processor 61 can be central processing unit (English:Central processing unit, CPU), network processes Device (English:Network processor, NP), hardware chip or its any combination.Above-mentioned hardware chip can be special collection Into circuit (English:Application-specific integrated circuit, ASIC), PLD (English Text:Programmable logic device, PLD) or its combination.Above-mentioned PLD can be CPLD (English Text:Complex programmable logic device, CPLD), field programmable gate array (English:field- Programmable gate array, FPGA), GAL (English:Generic array logic, GAL) or its Any combination.
The memory of memory 62 is used to store example specification and program code of the flexible group of target etc..Memory 62 can be with Including volatile memory (English:Volatile memory), such as random access memory (English:random access Memory, abbreviation:RAM);Memory 62 can also include nonvolatile memory (English:Non-volatile memory), Such as read-only storage (English:Read-only memory, abbreviation:ROM), flash memory (English:Flash memory), Hard disk (English:Hard disk drive, abbreviation:HDD) or solid state hard disc is (English:Solid-state drive, abbreviation: SSD);Memory 62 can also include the combination of the memory of mentioned kind.
Communication interface 63 is used for and other equipment wireless connection, such as monitoring device, example resource management platform.
Processor 61 can call described program code to perform following operation:
The monitoring alarm of at least one working index for the flexible group of target is received by communication interface 63;According to described Monitoring alarm, it is determined that the flexible strategy for the flexible group of the target;When the flexible strategy is increases example, described in acquisition The example specification of the flexible group of target, the example specification are to refer to previously according at least one work for the flexible group of the target The statistical information of target monitoring data determines what is obtained;Sent by communication interface 63 to example resource management platform described in carrying The increase example request of example specification, the increase example request are used to indicate the example resource management platform according to the reality Convention lattice, for the flexible group increase example of the target.
Optionally, before processor 61 obtains the example specification of the flexible group of the target, first obtain and stretched for the target The monitoring data of at least one working index of contracting group;According to the prison of at least one working index for the flexible group of the target Data are controlled, it is determined that the statistical information of the monitoring data at least one working index of the flexible group of the target;According to described The statistical information of the monitoring data of at least one working index of the flexible group of target, determine the example rule of the flexible group of the target Lattice.
Optionally, after processor 61 determines the example specification of the flexible group of the target, the obtained target will be determined The example specification of flexible group covers original example specification of the flexible group of the target.
Optionally, after processor 61 determines the example specification of the flexible group of the target, the mesh for determining to obtain is obtained The creation time of the example specification of the flexible group of mark;By creation time storage corresponding with the example specification of the flexible group of the target Into the example specification set of the flexible group of the default target, the example specification set of the flexible group of the target includes multiple wounds Build the example specification of the flexible group of the target corresponding to the time.
Optionally, the monitoring data includes multiple monitoring datas in the collection of multiple sampling time points;When basis is directed to The monitoring data of at least one working index of the flexible group of the target, it is determined that at least one work for the flexible group of the target When making the statistical information of the monitoring data of index, processor 61 is according to the time tandem of the multiple sampling time point, really The weighted value of multiple monitoring datas corresponding to fixed the multiple sampling time point difference;Distinguished according to the multiple sampling time point Corresponding multiple monitoring datas, the weighted value with reference to corresponding to the multiple monitoring data, calculate for the flexible group of the target The statistical information of the monitoring data of at least one working index.
Optionally, the statistical information of the monitoring data of at least one working index is respectively present corresponding example specification Hierarchical policy;When the statistical information of the monitoring data of at least one working index according to the flexible group of the target, it is determined that described During the example specification of the flexible group of target, processor 61 obtains the monitoring data of at least one working index of the flexible group of the target Statistical information corresponding to example specification hierarchical policy;According to the monitoring number of at least one working index of the flexible group of the target According to statistical information, with reference to corresponding to the statistical information of the monitoring data of at least one working index example specification be classified plan Slightly, the example specification of the flexible group of the target is determined.
Optionally, the example specification of the flexible group of the target is present multiple;When the example rule for obtaining the flexible group of the target During lattice, processor 61 obtains the example specification of creation time the latest in the flexible multiple example specifications organized of the target;By logical Believe that the increase example of the example specification of interface 63 to the example resource management platform transmission carrying creation time the latest please Ask, the increase example request is used to indicate that the example resource management platform is advised according to the example of the creation time the latest Lattice, for the flexible group increase example of the target.
Optionally, when the flexible strategy is reduces example, processor 61 also obtains the example of the flexible group of the target Specification;The reduction example request for carrying the example specification is sent to the example resource management platform by communication interface 63, The reduction example request is used to indicate that the example resource management platform according to the example specification, is deleted the target and stretched At least one example in multiple examples of group.
Optionally, the example specification of the flexible group of the target is present multiple;When the example rule for obtaining the flexible group of the target During lattice, processor 61 obtains the example specification that creation time is earliest in the flexible multiple example specifications organized of the target;By logical Believe that interface 63 please to the reduction example of the earliest example specification of the example resource management platform transmission carrying creation time Ask, the example request that reduces is used to indicate that the example resource management platform is deleted in multiple examples of the flexible group of the target Except the earliest example of the creation time of at least one example specification.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (19)

1. the automatic elastic telescopic method of a kind of virtual resource, it is characterised in that methods described includes:
Receive the monitoring alarm of at least one working index for the flexible group of target;
According to the monitoring alarm, it is determined that the flexible strategy for the flexible group of the target;
When the flexible strategy is increases example, the example specification of the flexible group of the target is obtained, the example specification is pre- First determine what is obtained according to the statistical information of the monitoring data of at least one working index for the flexible group of the target;
The increase example request for carrying the example specification is sent to example resource management platform, the increase example request is used for The example resource management platform is indicated according to the example specification, for the flexible group increase example of the target.
2. the method as described in claim 1, it is characterised in that before the example specification for obtaining the flexible group of the target, Also include:
Obtain the monitoring data of at least one working index for the flexible group of the target;
According to the monitoring data of at least one working index for the flexible group of the target, it is determined that for the flexible group of the target At least one working index monitoring data statistical information;
According to the statistical information of the monitoring data of at least one working index of the flexible group of the target, determine that the target is stretched The example specification of group.
3. method as claimed in claim 2, it is characterised in that after the example specification for determining the flexible group of the target, Also include:
The example specification of the flexible group of the target for determining to obtain is covered to original example specification of the flexible group of the target.
4. method as claimed in claim 2, it is characterised in that after the example specification for determining the flexible group of the target, Also include:
Obtain the creation time of the example specification of the flexible group of the target for determining to obtain;
The example specification organized that the creation time is stretched with the target is corresponding to be stored to the flexible group of the default target In example specification set, the example specification set of the flexible group of the target is stretched including the target corresponding to multiple creation times The example specification of group.
5. method as claimed in claim 2, it is characterised in that the monitoring data is included in the collection of multiple sampling time points Multiple monitoring datas;
The basis is directed to the monitoring data of at least one working index of the flexible group of the target, it is determined that being stretched for the target The statistical information of the monitoring data of at least one working index of contracting group includes:
According to the time tandem of the multiple sampling time point, determine multiple corresponding to the multiple sampling time point difference The weighted value of monitoring data;
According to multiple monitoring datas corresponding to the multiple sampling time point difference, the power with reference to corresponding to the multiple monitoring data Weight values, calculate the statistical information of the monitoring data at least one working index for being directed to the flexible group of the target.
6. method as claimed in claim 2, it is characterised in that the statistics letter of the monitoring data of at least one working index Breath is respectively present corresponding example specification hierarchical policy;
The statistical information of the monitoring data of at least one working index according to the flexible group of the target, determines the target The example specification of flexible group includes:
Obtain example specification point corresponding to the statistical information of the monitoring data of at least one working index of the flexible group of the target Level strategy;
According to the statistical information of the monitoring data of at least one working index of the flexible group of the target, with reference to described at least one Example specification hierarchical policy corresponding to the statistical information of the monitoring data of working index, determine the example rule of the flexible group of the target Lattice.
7. the method as described in claim 1, it is characterised in that the example specification of the flexible group of the target exists multiple;
The example specification for obtaining the flexible group of the target includes:
Obtain the example specification of creation time the latest in multiple example specifications of the flexible group of the target;
The increase example request that the carrying example specification is sent to example resource management platform includes:
The increase example request for carrying the example specification of the creation time the latest, institute are sent to the example resource management platform State increase example request to be used to indicate the example specification of the example resource management platform according to the creation time the latest, for institute State the flexible group increase example of target.
8. the method as described in claim 1, it is characterised in that methods described also includes:
When the flexible strategy is reduces example, the example specification of the flexible group of the target is obtained;
The reduction example request for carrying the example specification, the reduction example request are sent to the example resource management platform For indicating the example resource management platform according to the example specification, in the multiple examples for deleting the flexible group of the target At least one example.
9. method as claimed in claim 8, it is characterised in that the example specification of the flexible group of the target exists multiple;
The example specification for obtaining the flexible group of the target includes:
Obtain the example specification that creation time is earliest in multiple example specifications of the flexible group of the target;
The reduction example request that the carrying example specification is sent to the example resource management platform includes:
The reduction example request for carrying the earliest example specification of the creation time, institute are sent to the example resource management platform State reduce example request be used to indicating the example resource management platform deleted in multiple examples of the flexible group of the target to The earliest example of the creation time of an example specification less.
10. the automatic elastic retractor device of a kind of virtual resource, it is characterised in that described device includes:
Receiving module, for receiving the monitoring alarm of at least one working index for the flexible group of target;
Processing module, for according to the monitoring alarm, it is determined that the flexible strategy for the flexible group of the target;
The processing module is additionally operable to:
When the flexible strategy is increases example, the example specification of the flexible group of the target is obtained, the example specification is pre- First determine what is obtained according to the statistical information of the monitoring data of at least one working index for the flexible group of the target;
Sending module, the increase example request of the example specification, the increasing are carried for being sent to example resource management platform Example request is added to be used to indicate the example resource management platform according to the example specification, it is real for the flexible group increase of the target Example.
11. device as claimed in claim 10, it is characterised in that the processing module is additionally operable to:
Obtain the monitoring data of at least one working index for the flexible group of the target;
According to the monitoring data of at least one working index for the flexible group of the target, it is determined that for the flexible group of the target At least one working index monitoring data statistical information;
According to the statistical information of the monitoring data of at least one working index of the flexible group of the target, determine that the target is stretched The example specification of group.
12. device as claimed in claim 11, it is characterised in that the processing module is additionally operable to:
The example specification of the flexible group of the target for determining to obtain is covered to original example specification of the flexible group of the target.
13. device as claimed in claim 11, it is characterised in that the processing module is additionally operable to:
Obtain the creation time of the example specification of the flexible group of the target for determining to obtain;
The example specification organized that the creation time is stretched with the target is corresponding to be stored to the flexible group of the default target In example specification set, the example specification set of the flexible group of the target is stretched including the target corresponding to multiple creation times The example specification of group.
14. device as claimed in claim 11, it is characterised in that the monitoring data includes gathering in multiple sampling time points Multiple monitoring datas;
The processing module is additionally operable to:
According to the time tandem of the multiple sampling time point, determine multiple corresponding to the multiple sampling time point difference The weighted value of monitoring data;
According to multiple monitoring datas corresponding to the multiple sampling time point difference, the power with reference to corresponding to the multiple monitoring data Weight values, calculate the statistical information of the monitoring data at least one working index for being directed to the flexible group of the target.
15. device as claimed in claim 11, it is characterised in that the statistics of the monitoring data of at least one working index Information is respectively present corresponding example specification hierarchical policy;
The processing module is additionally operable to:
Obtain example specification point corresponding to the statistical information of the monitoring data of at least one working index of the flexible group of the target Level strategy;
According to the statistical information of the monitoring data of at least one working index of the flexible group of the target, with reference to described at least one Example specification hierarchical policy corresponding to the statistical information of the monitoring data of working index, determine the example rule of the flexible group of the target Lattice.
16. device as claimed in claim 10, it is characterised in that the example specification of the flexible group of the target exists multiple;
The processing module is additionally operable to:Obtain the example rule of creation time the latest in multiple example specifications of the flexible group of the target Lattice;
The sending module is additionally operable to:Sent to the example resource management platform and carry the example rule of the creation time the latest The increase example request of lattice, the increase example request are used to indicate the example resource management platform according to the creation time Example specification the latest, for the flexible group increase example of the target.
17. device as claimed in claim 10, it is characterised in that
The processing module is additionally operable to:When the flexible strategy is reduces example, the example rule of the flexible group of the target are obtained Lattice;
The sending module is additionally operable to:The reduction example that the carrying example specification is sent to the example resource management platform please Ask, the reduction example request is used to indicate that the example resource management platform according to the example specification, deletes the target At least one example in multiple examples of flexible group.
18. device as claimed in claim 17, it is characterised in that the example specification of the flexible group of the target exists multiple;
The processing module is additionally operable to:Obtain the earliest example rule of creation time in multiple example specifications of the flexible group of the target Lattice;
The sending module is additionally operable to:Sent to the example resource management platform and carry the earliest example rule of the creation time The reduction example request of lattice, the reduction example request are used to indicate the example resource management platform in the flexible group of the target Multiple examples in delete the earliest example of creation time of at least one example specification.
A kind of 19. automatic elastic retractor device of virtual resource, it is characterised in that described device include processor, memory with And communication interface, the memory are used for store program codes, the processor calls the program generation stored in the memory Code perform claim requires 1 to any described method of claim 9.
CN201610594541.0A 2016-07-26 2016-07-26 Automatic elastic expansion method and device for virtual resources Active CN107656807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610594541.0A CN107656807B (en) 2016-07-26 2016-07-26 Automatic elastic expansion method and device for virtual resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610594541.0A CN107656807B (en) 2016-07-26 2016-07-26 Automatic elastic expansion method and device for virtual resources

Publications (2)

Publication Number Publication Date
CN107656807A true CN107656807A (en) 2018-02-02
CN107656807B CN107656807B (en) 2021-06-29

Family

ID=61127441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610594541.0A Active CN107656807B (en) 2016-07-26 2016-07-26 Automatic elastic expansion method and device for virtual resources

Country Status (1)

Country Link
CN (1) CN107656807B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932156A (en) * 2018-08-22 2018-12-04 郑州云海信息技术有限公司 A kind of information acquisition method and device
CN109412841A (en) * 2018-09-30 2019-03-01 北京金山云网络技术有限公司 Method of adjustment, device and the cloud platform of resources of virtual machine
CN109445911A (en) * 2018-11-06 2019-03-08 北京金山云网络技术有限公司 Method of adjustment, device, cloud platform and the server of CVM example
CN110175068A (en) * 2019-04-16 2019-08-27 平安科技(深圳)有限公司 Host number elastic telescopic method, apparatus and computer equipment in distributed system
CN110502340A (en) * 2019-08-09 2019-11-26 广东浪潮大数据研究有限公司 A kind of resource dynamic regulation method, device, equipment and storage medium
CN111190719A (en) * 2018-11-14 2020-05-22 北京京东尚科信息技术有限公司 Method, device, medium and electronic equipment for optimizing cluster resource allocation
CN111857977A (en) * 2020-09-21 2020-10-30 腾讯科技(深圳)有限公司 Elastic expansion method, device, server and storage medium
CN113900766A (en) * 2020-07-06 2022-01-07 华为技术有限公司 Method, device and equipment for changing specification of computing instance
WO2022007466A1 (en) * 2020-07-07 2022-01-13 华为技术有限公司 Capacity adjustment method and apparatus, system and computing device
CN115766336A (en) * 2022-09-27 2023-03-07 中国联合网络通信集团有限公司 Resource allocation method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257683A (en) * 2013-05-07 2013-08-21 华为技术有限公司 Method and device of cloud calculation service expansion and contraction
US20130275975A1 (en) * 2010-10-27 2013-10-17 Hitachi, Ltd. Resource management server, resource management method and storage medium in which resource management program is stored
TW201407476A (en) * 2012-08-06 2014-02-16 Hon Hai Prec Ind Co Ltd System and method for allocating resource of virtual machine
CN103810020A (en) * 2014-02-14 2014-05-21 华为技术有限公司 Virtual machine elastic scaling method and device
US9154549B2 (en) * 2011-10-27 2015-10-06 Cisco Technology, Inc. Dynamic server farms
CN105159775A (en) * 2015-08-05 2015-12-16 浪潮(北京)电子信息产业有限公司 Load balancer based management system and management method for cloud computing data center

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275975A1 (en) * 2010-10-27 2013-10-17 Hitachi, Ltd. Resource management server, resource management method and storage medium in which resource management program is stored
US9154549B2 (en) * 2011-10-27 2015-10-06 Cisco Technology, Inc. Dynamic server farms
TW201407476A (en) * 2012-08-06 2014-02-16 Hon Hai Prec Ind Co Ltd System and method for allocating resource of virtual machine
CN103257683A (en) * 2013-05-07 2013-08-21 华为技术有限公司 Method and device of cloud calculation service expansion and contraction
CN103810020A (en) * 2014-02-14 2014-05-21 华为技术有限公司 Virtual machine elastic scaling method and device
CN105159775A (en) * 2015-08-05 2015-12-16 浪潮(北京)电子信息产业有限公司 Load balancer based management system and management method for cloud computing data center

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张玮 等: "多目标优化的云计算虚拟集群动态调整方法", 《济南大学学报》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932156A (en) * 2018-08-22 2018-12-04 郑州云海信息技术有限公司 A kind of information acquisition method and device
CN109412841A (en) * 2018-09-30 2019-03-01 北京金山云网络技术有限公司 Method of adjustment, device and the cloud platform of resources of virtual machine
CN109445911A (en) * 2018-11-06 2019-03-08 北京金山云网络技术有限公司 Method of adjustment, device, cloud platform and the server of CVM example
CN111190719A (en) * 2018-11-14 2020-05-22 北京京东尚科信息技术有限公司 Method, device, medium and electronic equipment for optimizing cluster resource allocation
CN110175068A (en) * 2019-04-16 2019-08-27 平安科技(深圳)有限公司 Host number elastic telescopic method, apparatus and computer equipment in distributed system
WO2020211253A1 (en) * 2019-04-16 2020-10-22 平安科技(深圳)有限公司 Elastic scaling method and apparatus for number of hosts in distributed system, and computer device
CN110502340A (en) * 2019-08-09 2019-11-26 广东浪潮大数据研究有限公司 A kind of resource dynamic regulation method, device, equipment and storage medium
CN113900766A (en) * 2020-07-06 2022-01-07 华为技术有限公司 Method, device and equipment for changing specification of computing instance
WO2022007466A1 (en) * 2020-07-07 2022-01-13 华为技术有限公司 Capacity adjustment method and apparatus, system and computing device
CN111857977A (en) * 2020-09-21 2020-10-30 腾讯科技(深圳)有限公司 Elastic expansion method, device, server and storage medium
CN115766336A (en) * 2022-09-27 2023-03-07 中国联合网络通信集团有限公司 Resource allocation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN107656807B (en) 2021-06-29

Similar Documents

Publication Publication Date Title
CN107656807A (en) The automatic elastic telescopic method and device of a kind of virtual resource
EP3367251B1 (en) Storage system and solid state hard disk
CN108683720B (en) Container cluster service configuration method and device
CN108205541B (en) Method and device for scheduling distributed web crawler tasks
CN111666159B (en) Load balancing control method and device, storage medium and electronic equipment
WO2020253111A1 (en) Automatic expansion method and apparatus for blockchain node, and operation and maintenance terminal and storage medium
CN111522636A (en) Application container adjusting method, application container adjusting system, computer readable medium and terminal device
CN103562881A (en) Defragmentation of data storage pools
CN111600952A (en) Scene pushing method, scene pushing execution device, terminal, server and scene pushing system
CN109981702B (en) File storage method and system
CN111857592A (en) Data storage method and device based on object storage system and electronic equipment
CN108874324A (en) A kind of access request processing method, device, equipment and readable storage medium storing program for executing
CN114385463A (en) Data acquisition method and device and electronic equipment
CN105242955B (en) A kind of magnetic disk of virtual machine input/output scheduling method and system
CN112015326B (en) Cluster data processing method, device, equipment and storage medium
CN107704507A (en) Data base processing method and equipment
CN109977074B (en) HDFS-based LOB data processing method and device
CN106557277B (en) The reading method and device of disk array
CN116938953A (en) Block chain-based data processing method and device, electronic equipment and storage medium
CN113448747B (en) Data transmission method, device, computer equipment and storage medium
CN116483546A (en) Distributed training task scheduling method, device, equipment and storage medium
CN108804351A (en) A kind of caching replacement method and device
CN113434492A (en) Data detection method and device, storage medium and electronic device
CN112711384A (en) Data storage method and device based on multiple storage devices
CN112783440B (en) Data storage method and device for user node of block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220215

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right