CN106126339A - resource adjusting method and device - Google Patents
resource adjusting method and device Download PDFInfo
- Publication number
- CN106126339A CN106126339A CN201610454298.2A CN201610454298A CN106126339A CN 106126339 A CN106126339 A CN 106126339A CN 201610454298 A CN201610454298 A CN 201610454298A CN 106126339 A CN106126339 A CN 106126339A
- Authority
- CN
- China
- Prior art keywords
- resource
- portfolio
- business
- business demand
- resource units
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The present invention provides a kind of resource adjusting method and device, it is applied to server, the resource of server is divided into multiple Resource Unit, and the method includes: obtains the current operating business the first portfolio at each time point, determines traffic peak in each first portfolio;According to traffic peak and the specified portfolio of Resource Unit, determine the number of resource units of business demand;According to the number of resource units of business demand, the allocated resource of business is adjusted.The present invention is by detection business portfolio under each time point, resource adjustment is carried out in time according to portfolio, make resource adjust process use business along with user and the change of portfolio that causes and change, therefore, it is possible to find that business uses slack problem timely, and solve this problem in time, simultaneously because carry out manual operation without operation maintenance personnel, and then reduce cost of labor.
Description
Technical field
The present invention relates to resource regulating method, particularly relate to a kind of resource adjusting method and device.
Background technology
Along with server storage and the growth of the ability processing data, the application of server is increasingly wider, uses clothes
The task that business device performs gets more and more, and a server usually meets the demand simultaneously performing multinomial business.This industry
Business can be such as demand (telecommunication) service, downloading service etc..
For ensureing fluency when the every business operating on same server performs, need to be according to the business of every business
Amount, for the resource that every traffic assignments is certain, this resource includes that (Central Processing Unit is called for short central processing unit
CPU), internal memory etc..In actual use, in order to ensure the fluency of service operation, the method that resource redundancy configures can be used, but
The wasting of resources can be caused.Therefore, generally changed according to portfolio by operation maintenance personnel, periodically or in the low feelings of service operation fluency
Under condition, the resource of server is allocated into Row sum-equal matrix.
But, when being only capable of periodically due to operation maintenance personnel or reduce at the fluency of service operation, the most passive carrying out services
Device resource adjusts;But operation maintenance personnel is when carrying out resource and adjusting, need to take considerable time and carry out case study and formulate solution
, therefore there is labor intensive, ageing poor problem in scheme, it is impossible to solve a problem promptly.
Summary of the invention
The present invention provides a kind of resource adjusting method and device, is used for solving existing resource method of adjustment and there is consuming people
Power, ageing poor problem.
First aspect, the present invention provides a kind of resource adjusting method, is applied to server, and the resource of described server is drawn
It is divided into multiple Resource Unit, including:
Obtain the current operating business the first portfolio at each time point, determine in each described first portfolio
High traffic;
According to described traffic peak and the specified portfolio of Resource Unit, determine the Resource Unit number of described business demand
Amount;
According to the number of resource units of described business demand, the allocated resource of described business is adjusted.
Resource adjusting method as above, described according to described traffic peak with the specified portfolio of Resource Unit,
Determine the number of resource units of described business demand, including:
The specified portfolio of described traffic peak and described Resource Unit is carried out division process, obtains multiple value;
According to described multiple value, determine the number of resource units of described business demand.
Resource adjusting method as above, described according to described traffic peak with the specified portfolio of Resource Unit,
Determine the number of resource units of described business demand, including:
According to described traffic peak, business demand synopsis determines the number of resource units of described business demand;
Wherein, described business demand synopsis stores the number of resource units having different first portfolio corresponding.
Resource adjusting method as above, described according to described traffic peak with the specified portfolio of Resource Unit,
Before determining the number of resource units of described business demand, also include:
Repeatedly obtain the second business when the utilization rate of first resource unit reaches to preset utilization rate of the business in test
Amount, described first resource unit is the arbitrary Resource Unit distributing to the business in described test;
According to each described second portfolio, determine the specified portfolio of described arbitrary Resource Unit.
Resource adjusting method as above, described according to each described second portfolio, determine described arbitrary Resource Unit
Specified portfolio, including:
Each described second portfolio is carried out average value processing, obtains portfolio average;
In each described second portfolio, determine the 3rd business less than preset value of the difference with described portfolio average
Amount;
Each described 3rd portfolio is carried out average value processing, determines the specified portfolio of described arbitrary Resource Unit.
Resource adjusting method as above, the described number of resource units according to described business demand, to described business
Allocated resource be adjusted, including:
Judge that whether the number of resource units of described business demand is equal to allocated number of resource units;
If it is not, then allocated number of resource units is adjusted so that distribute to the Resource Unit number of described business
Amount reaches the number of resource units of described business demand.
On the other hand, the present invention provides a kind of resource adjusting apparatus, is applied to server, and the resource of described server is drawn
It is divided into multiple Resource Unit, including:
Traffic peak acquisition module, for obtaining the current operating business the first portfolio at each time point,
Each described first portfolio determines traffic peak;
Resource requirement acquisition module, for according to described traffic peak and the specified portfolio of Resource Unit, determines institute
State the number of resource units of business demand;
Resource adjusting module, for according to the number of resource units of described business demand, allocated to described business
Resource is adjusted.
Resource adjusting apparatus as above, described resource requirement acquisition module specifically for:
The specified portfolio of described traffic peak and described Resource Unit is carried out division process, obtains multiple value;
According to described multiple value, determine the number of resource units of described business demand.
Resource adjusting apparatus as above, described resource requirement acquisition module specifically for:
According to described traffic peak, business demand synopsis determines the number of resource units of described business demand;
Wherein, described business demand synopsis stores the number of resource units having different first portfolio corresponding.
Resource adjusting apparatus as above, also includes the specified portfolio acquisition module of Resource Unit, is used for:
Repeatedly obtain the second business when the utilization rate of first resource unit reaches to preset utilization rate of the business in test
Amount, described first resource unit is the arbitrary Resource Unit distributing to the business in described test;
According to each described second portfolio, determine the specified portfolio of described arbitrary Resource Unit.
Resource adjusting method that the present invention provides and device, first obtain the portfolio of business under multiple time point,
Multiple portfolios determine traffic peak, further according to traffic peak and the specified portfolio of Resource Unit, determines that business needs
The number of resource units wanted, the number of resource units finally according to service needed carries out resource adjustment, and the present invention is by detection industry
Business portfolio under each time point, carries out resource adjustment according to portfolio in time so that resource adjustment process makes along with user
The change of the portfolio caused by business and change, resource adjusts process and follows hard on the adjustment of portfolio, therefore, it is possible in time
Discovery business use slack problem, and solve this problem in time, simultaneously because carry out manual operation without operation maintenance personnel,
And then reduce cost of labor.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is this
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of resource adjusting method that the embodiment of the present invention one provides;
Fig. 2 is the schematic flow sheet of a kind of resource adjusting method that the embodiment of the present invention two provides;
Fig. 3 is the schematic flow sheet of a kind of resource adjusting method that the embodiment of the present invention three provides;
Fig. 4 is the schematic flow sheet of a kind of resource adjusting method that the embodiment of the present invention four provides;
Fig. 5 is the structural representation of a kind of resource adjusting apparatus that the embodiment of the present invention five provides;
Fig. 6 is the structural representation of a kind of resource adjusting apparatus that the embodiment of the present invention six provides;
Fig. 7 is the structural representation of a kind of resource adjusting apparatus that the embodiment of the present invention seven provides.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
Along with the development of Internet technology, increasing incorporated business starts to commence business on network, to pass through net
Network provides the user service.Exemplary, the business that the service provider such as incorporated business provides on network can be under video
The business such as load, video request program, resources sharing, access website.Concrete, when user is by network access server, user is permissible
Carry out the business such as video download, video request program, resources sharing, access website.Owing to user runs carrying industry on the server
Business has randomness, and the most different time point numbers of users is different, and then causes the portfolio difference of this business, and this business needs
The resource taking server is the most different.When accessing user and being more, portfolio is relatively big, and server needs to this traffic assignments more
Resource, i.e. CPU and internal memory, to ensure that this business can smooth be run, when accessing user and being less, portfolio is less, service
Device needs, to the less resource of this traffic assignments, in the case of ensureing that this business can smooth be run, to save server resource.
Therefore, server-assignment need to be adjusted in real time to the resource of business.And it is responsible for adjustresources by operation maintenance personnel, on the one hand deposit
In delayed problem, on the other hand cost of labor is the highest.
For solving the problems referred to above, the present invention provides a kind of resource adjusting method, is applied in server, on server just
Resource in the business run carries out automatically, adjusts timely, to ensure the fluency of service operation, and saves cost of labor.
The resource adjusting method using specific embodiment to provide the present invention below is described in detail.
Fig. 1 is the schematic flow sheet of a kind of resource adjusting method that the embodiment of the present invention one provides, the execution master of the method
Body is resource adjusting apparatus, and this device can be realized by software or hardware, this device can integrated in the server, it is possible to for
Server.This is not limited by the present invention.As it is shown in figure 1, the method includes:
Step 101, obtain the current operating business the first portfolio at each time point, in each first portfolio really
Determine traffic peak;
Step 102, specified portfolio according to traffic peak and Resource Unit, determine the Resource Unit number of business demand
Amount;
Step 103, number of resource units according to business demand, be adjusted the allocated resource of business.
Exemplary, when using method as above that operating business carries out resource adjustment, at current time
The resource that this business can be called is allocated resource.Exemplary, allocated resource can be initial resource, it is also possible to
Last time before being current time uses the resource that resource adjusting method as above obtains.Wherein, initial resource is permissible
It is the total quantity of the business of total resources and the carrying being had according to server by server, the resource determined for each business;
Can also is that the default resource that user inputs;Can also is that server uses record according to the history resource of business, divide for business
The resource joined.
After business brings into operation, the first portfolio is used to represent the quantity of the user a time point access service.
Due to the first portfolio it may happen that change, if having been used up allocated resource to perform business, then there may be owing to accessing
The wasting of resources that user reduces and causes, or the situation of the inadequate resource caused owing to accessing user's increase, therefore need basis
Allocated resource is adjusted by the first portfolio.Concrete, for convenience the resource of server is carried out resource management, generally
All by server call resource, are evenly dividing as multiple Resource Units, when needs are increased or decreased resource, corresponding increasing
The number of the Resource Unit that few business that adds deduct can be called.
Concrete, in a step 101, obtain current operating business at the of each time point within a period of time
One portfolio, exemplary, each time point can within this period uniform intervals, it is possible to integrated distribution is within this period
First half section.First portfolio is at a time point, and multiple users access the portfolio that this business produces.When getting each time
After the first portfolio that point is corresponding, by comparing acquisition traffic peak in all first portfolios, i.e. determine this period
In, be up to how many users access this business.Exemplary, at least one time point desirable.
Exemplary, as a example by business is as video request program, before obtaining the first portfolio, first arrange what resource adjusted
Adjust interval time, and within adjustment interval time that resource adjusts, the time point interval time between each time point.So
After, in one section of resource adjusts interval time, according to Preset Time point interval time, periodic monitoring user behavior, obtain program request
The quantity of user, selects the program request number of users that numerical value is maximum in the quantity of all somes broadcasting users, adjusts as this section of resource
The quantity of the some broadcasting user of interval time.Optionally, it is possible in the quantity of multiple somes broadcasting users, acquisition point broadcasting user quantity
Meansigma methods, optionally, it is possible to according to each time point, and the quantity of the some broadcasting user of each time point, it was predicted that go out following arbitrarily time
Between point some broadcasting user quantity, and then use prediction some broadcasting user quantity carry out resource adjustment.
In a step 102, according to the traffic peak obtained in the specified portfolio of Resource Unit and step 101, come
Determining the number of resource units of business demand, wherein the specified portfolio of Resource Unit is, for a Resource Unit, in resource
The utilization rate of unit reaches specified portfolio during saturation, when portfolio is not up to specified portfolio, Resource Unit
Utilization rate is the most saturated, when portfolio exceedes specified portfolio, and the finishing service that Resource Unit cannot be smooth.
Exemplary, can be with specific reference to the magnitude relationship between traffic peak and the specified portfolio of Resource Unit, really
Be set to guarantee smoothness completes traffic peak, the number of resource units required for business.Such as, it is less than when traffic peak
During specified portfolio, illustrate only to need the smooth and easy operation of an i.e. guaranteed service of Resource Unit.When traffic peak is more than specified
During portfolio, then need multiple Resource Unit to ensure the smooth and easy operation of business, specifically can determine required money in conjunction with fold values
Source unit quantity.
Exemplary, also can be according to default traffic peak and the synopsis of required number of resource units, according to not
Same traffic peak determines the quantity of the Resource Unit of needs.
Exemplary, when the specified portfolio of Resource Unit is 2000, as a example by business is as VOD service, at certain
When the traffic peak determined in one time period is 5000, by comparing 5000 and 2000, can learn before ensureing fluency
Putting, each Resource Unit is only capable of sharing 2000 portfolios, at least needs 3 Resource Units to ensure VOD service
Fluency.
Concrete, in step 103, according to the number of resource units of the business demand got in step 102, to business
Allocated resource be adjusted.
Concrete, the allocated number of resource units of business can be determined according to the allocated resource of business, then will
Number of resource units Y needed for the allocated number of resource units X of business and business compares.Such as, when X is less than Y,
Illustrate that allocated number of resource units is less, then should increase Resource Unit, to ensure the smooth and easy operation of business;When X is more than Y
Time, illustrate that allocated number of resource units is more, then should reduce Resource Unit, to avoid wasting resource;When X is equal to Y, then
Without carrying out resource adjustment.
The resource adjusting method that the present invention provides, first obtains the portfolio of business under multiple time point, in multiple industry
Business amount determines traffic peak, further according to traffic peak and the specified portfolio of Resource Unit, determines the money of service needed
Source unit quantity, the number of resource units finally according to service needed carries out resource adjustment, and the present invention is by detecting business respectively
Portfolio under time point, carries out resource adjustment according to portfolio in time so that resource adjustment process uses business along with user
And the change of the portfolio caused and change, resource adjusts process and follows hard on the adjustment of portfolio, therefore, it is possible to find timely
Business uses slack problem, and solves this problem in time, simultaneously because carry out manual operation, and then fall without operation maintenance personnel
Low cost of labor.
Particularly, when portfolio is slowly increased over time, operation maintenance personnel or user cannot find that business uses in time
Fluency go wrong, it is impossible to carry out resource adjustment immediately when problem is more slight, serious fluency can only occur
During problem, the most passive solution problem.But the resource adjusting method that the present invention provides, only by the adjustment adjusted according to resource
Interval time is repeated several times execution, can find the increase of portfolio in time and carry out the adjustment of resource.
Further, on the basis of embodiment illustrated in fig. 1, for the allocated resource to business in step 103
Being adjusted, be described in detail, Fig. 2 is the schematic flow sheet of a kind of resource adjusting method that the embodiment of the present invention two provides,
As in figure 2 it is shown, include:
Step 201, obtain the current operating business the first portfolio at each time point, in each first portfolio really
Determine traffic peak;
Step 202, specified portfolio according to traffic peak and Resource Unit, determine the Resource Unit number of business demand
Amount;
Step 203, judge that the number of resource units of business demand is whether equal to allocated number of resource units;If it is not,
Then perform step 204;The most then terminate not to be adjusted;
Step 204, allocated number of resource units is adjusted so that the number of resource units distributing to business reaches
Number of resource units to business demand.
Concrete, step 201 is identical with the step 101 in embodiment illustrated in fig. 1 and step 102 with step 202, the present invention
Repeat no more.
Concrete, when carrying out resource and adjusting, it is judged that the number of resource units of business demand and the allocated resource of business
Element number is the most equal, if equal, then explanation portfolio changes less, it is not necessary to carry out resource adjustment, if unequal, then
Illustrate that what portfolio occurred changes greatly, resource adjustment need to be carried out.Exemplary, can be by server-assignment to the resource list of business
Unit's quantity is modified so that the amended number of resource units distributing to business and the number of resource units phase of business demand
With.
Optionally, it is possible to when getting the number of resource units of business demand, by the number of resource units of business demand
The allocated number of resource units of the business that deducts, obtains number differences.Adjust according to this number differences and distribute to the money that business is
Source unit quantity.When number differences is just, then it represents that the number of resource units Resource Unit more allocated than business of business demand
Quantity is many, and many numbers are number differences.As being 1 when number differences, the number of resource units representing currently allocated compares industry
Few 1 of the number of resource units of business demand, therefore increase by 1 Resource Unit for business.When number differences is negative, then it represents that business needs
The number of resource units number of resource units more allocated than business asked is few.
Exemplary, in any of the above-described embodiment, the adjustment interval time that can adjust according to resource, repeat resource and adjust
It has suffered journey, the number of resource units of the business of distributing to that current time amendment obtains, be the adjustment interval that next resource adjusts
Allocated number of resource units in time.
The adjustment adjusted when resource is the shortest for interval time, then resource adjusts the most timely, more can guarantee that user uses business
Fluency, optionally, time point can be evenly distributed in adjustment interval time that resource adjusts, it is possible to integrated distribution is adjusted in resource
The whole front portion adjusting interval time.
Optionally, the stock number of each Resource Unit can also be different, when each Resource Unit difference, for business reorganization resource
Time, can first determine that the stock number needing to increase, then determine the number of all kinds of Resource Units needing increase.
Optionally, on the basis of Fig. 1 or embodiment illustrated in fig. 2, before carrying out resource adjustment, Resource Unit need to be determined
Specified portfolio, with facilitate carry out resource adjust time for the appropriate number of Resource Unit of traffic assignments.Use concrete below
The determination of the specified portfolio of Resource Unit is described in detail by embodiment.Fig. 3 is the one that the embodiment of the present invention three provides
The schematic flow sheet of resource adjusting method, as it is shown on figure 3, the method includes:
Step 301, repeatedly obtain business in test when the utilization rate of first resource unit reaches to preset utilization rate
Second portfolio, first resource unit is the arbitrary Resource Unit distributing to business;
Step 302, according to each second portfolio, determine the specified portfolio of arbitrary Resource Unit.
Concrete, before carrying out resource adjustment, the volume of Resource Unit according to above-mentioned steps 301 and step 302, need to be obtained
Determine portfolio.
Exemplary, in step 301, determine a first resource unit in the server, only by this first resource list
Unit performs the business in test, by measuring this first resource unit, to obtain the specified business of arbitrary Resource Unit
Amount.For first resource unit, being gradually increased the portfolio of business, the resource utilization at first resource reaches to preset utilization rate
Time, the second portfolio of record current time.Concrete, resource can be completed by using Resource Unit utilization rate statistic device
The real-time statistics of unit utilization rate.Above-mentioned steps is performed a plurality of times, obtains multiple second portfolio.Exemplary, the second portfolio
For the portfolio that test business operationally business is corresponding, the first portfolio is the portfolio that business during actual motion is corresponding.
Exemplary, default utilization rate can be 100%.
Concrete, in step 302, according to each second portfolio, determine the specified portfolio of first resource unit.Example
Property, each second portfolio can be averaged, as the specified portfolio of first resource unit.
Exemplary, in conjunction with Fig. 3, the method obtaining specified portfolio is described in detail.Fig. 4 is the embodiment of the present invention four
The schematic flow sheet of a kind of resource adjusting method provided;As shown in Figure 4, the method includes:
Step 401, repeatedly obtain business in test when the utilization rate of first resource unit reaches to preset utilization rate
Second portfolio, first resource unit is the arbitrary Resource Unit distributing to business;
Step 402, each second portfolio is carried out average value processing, obtain portfolio average;
Step 403, in each second portfolio, determine difference with portfolio average the 3rd business less than preset value
Amount;
Step 404, each 3rd portfolio is carried out average value processing, determine the specified portfolio of arbitrary Resource Unit.
Concrete, step 401 is identical with the step 301 in embodiment illustrated in fig. 3, and the present invention repeats no more.
Concrete, after getting multiple second portfolio in step 401, can first each second portfolio be carried out at filtration
Reason, to filter the inaccurate measurement data caused because of operational error, measurement error, to improve the measurement essence of specified portfolio
Degree.
Concrete, first each second portfolio can be carried out average value processing, obtain portfolio average, then in all second industry
In business amount, each second portfolio is carried out worst comparison with portfolio average, determine that the difference with portfolio average is less than presetting
3rd portfolio of value.I.e. in each second portfolio, filter out the second portfolio conduct differing less with portfolio average
3rd portfolio, filters differing the second bigger portfolio.
Then, more each 3rd portfolio is carried out average value processing, using the average of the 3rd portfolio that obtains as arbitrary money
The specified portfolio of source unit.
Optionally, also filtration treatment can be performed a plurality of times after obtaining the 3rd portfolio, to improve the standard of specified portfolio
Really property.
Further, on the basis of any of the above-described embodiment, for the resource list of the determination business demand in step 102
Unit's quantity, the present invention provides the most feasible computational methods:
A kind of feasible computational algorithm:
The specified portfolio of traffic peak and Resource Unit is carried out division process, obtains multiple value;According to multiple value,
Determine the number of resource units of business demand.
Concrete, after getting traffic peak A, specified portfolio B of A and Resource Unit is carried out division process,
Obtain multiple value n, i.e. A=nB.Then, according to n determine business demand number of resource units, when n is integer, n is i.e. just
It it is well the number of resource units of business demand.When n is decimal, only relies on integer part the Resource Unit of n, can not realize
The smooth operation of business.Therefore n need to be rounded up, obtain the number of resource units that N, N are then business demand.
Exemplary, when business is VOD service, when A is 5000, it is 2000,5000 to be the 2.5 of 2000 as B
Times.The total specified portfolio of two Resource Units is 4000, still less than 5000, it is impossible to meet current portfolio, three resources
The total specified portfolio of unit is 6000, more than 5000, can meet current portfolio.
Another kind of feasible computational methods:
According to traffic peak, business demand synopsis determines the number of resource units of business demand;Wherein, business
In demand synopsis, storage has the number of resource units that different first portfolio is corresponding.
Concrete, when acquiring traffic peak A, can be according to the business demand synopsis of storage in server, really
Determining the number of resource units N of business demand, wherein, in business demand synopsis, storage has the money that different first portfolio A is corresponding
Source unit quantity N.
Exemplary, a kind of possible business demand synopsis is as shown in the table:
Exemplary, when A is 2500, the number of resource units N of the business demand can directly looked into according to upper table is 2.Work as A
During more than 6000, it is this each Resource Unit of traffic assignments 4, to limit when portfolio is excessive, hence it is evident that time abnormal, this industry will not be given
The resource that business distribution is too much, in order to avoid the operation of other business having influence on server.Exemplary, can transport according in server
The business of row and the total resources of server set the total resources quantity of units that each business can be called.Concrete, the acquisition methods of this table
Refer to a kind of feasible computational methods.By above-mentioned synopsis is stored directly in server, the business of acquisition can be needed
The process of the number of resource units asked is reduced to comparison procedure by division process, greatly reduces calculating process.
Optionally, above-mentioned resource adjusting method applies also for the adjustment to the resource that its each subservice takies of each business.
Such as, VOD service farther includes video and plays online and video download, can be according to the sub-industry of current each subservice
Business amount is online broadcasting and download dynamic allocation of resources.
Another aspect of the present invention provides a kind of resource adjusting apparatus, in order to perform the resource adjustment side that above-described embodiment provides
Method, has identical technical characteristic and technique effect, and the present invention repeats no more.This device can apply to server, it is also possible to
For server, wherein, the resource of server is divided into multiple Resource Unit.
Fig. 5 is the structural representation of a kind of resource adjusting apparatus that the embodiment of the present invention five provides, as it is shown in figure 5, this dress
Put and include:
Traffic peak acquisition module 501, for obtaining the current operating business the first portfolio at each time point,
Traffic peak is determined in each first portfolio;
Resource requirement acquisition module 502, for according to traffic peak and the specified portfolio of Resource Unit, determines business
The number of resource units of demand;
Resource adjusting module 503, for the number of resource units according to business demand, enters the allocated resource of business
Row sum-equal matrix.
Optionally, resource requirement acquisition module 502 specifically for:
The specified portfolio of traffic peak and Resource Unit is carried out division process, obtains multiple value;According to multiple value,
Determine the number of resource units of business demand.
Optionally, resource requirement acquisition module 502 specifically for:
According to traffic peak, business demand synopsis determines the number of resource units of business demand;Wherein, business
In demand synopsis, storage has the number of resource units that different first portfolio is corresponding.
Optionally, on the basis of embodiment illustrated in fig. 5, Fig. 6 is that a kind of resource that the embodiment of the present invention six provides adjusts
The structural representation of device, as shown in Figure 6, this device also includes the specified portfolio acquisition module 504 of Resource Unit, is used for:
Repeatedly obtain the second business when the utilization rate of first resource unit reaches to preset utilization rate of the business in test
Amount, first resource unit is the arbitrary Resource Unit distributing to the business in test;According to each second portfolio, determine arbitrary money
The specified portfolio of source unit.
Optionally, the specified portfolio acquisition module 504 of Resource Unit specifically for:
Repeatedly obtain the second business when the utilization rate of first resource unit reaches to preset utilization rate of the business in test
Amount, first resource unit is the arbitrary Resource Unit distributing to the business in test;
Each second portfolio is carried out average value processing, obtains portfolio average;
In each second portfolio, determine the 3rd portfolio less than preset value of the difference with portfolio average;
Each 3rd portfolio is carried out average value processing, determines the specified portfolio of arbitrary Resource Unit.
Optionally, on the basis of Fig. 5 or embodiment illustrated in fig. 6, Fig. 7 is a kind of resource that the embodiment of the present invention seven provides
The structural representation of adjusting apparatus, as it is shown in fig. 7, resource adjusting module 503 specifically includes:
Judging unit 5031, for judging that whether the number of resource units of business demand is equal to allocated Resource Unit number
Amount;
Adjustment unit 5032, for when unequal, is adjusted allocated number of resource units so that distribute to
The number of resource units of business reaches the number of resource units of business demand.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each method embodiment can be led to
The hardware crossing programmed instruction relevant completes.Aforesaid program can be stored in a computer read/write memory medium.This journey
Sequence upon execution, performs to include the step of above-mentioned each method embodiment;And aforesaid storage medium includes: ROM, RAM, magnetic disc or
The various media that can store program code such as person's CD.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, it is not intended to limit;To the greatest extent
The present invention has been described in detail by pipe with reference to foregoing embodiments, it will be understood by those within the art that: it depends on
So the technical scheme described in foregoing embodiments can be modified, or the most some or all of technical characteristic is entered
Row equivalent;And these amendments or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology
The scope of scheme.
Claims (10)
1. a resource adjusting method, it is characterised in that be applied to server, the resource of described server is divided into multiple money
Source unit, including:
Obtain the current operating business the first portfolio at each time point, in each described first portfolio, determine great cause
Business amount;
According to described traffic peak and the specified portfolio of Resource Unit, determine the number of resource units of described business demand;
According to the number of resource units of described business demand, the allocated resource of described business is adjusted.
Method the most according to claim 1, it is characterised in that described according to described traffic peak with the volume of Resource Unit
Determine portfolio, determine the number of resource units of described business demand, including:
The specified portfolio of described traffic peak and described Resource Unit is carried out division process, obtains multiple value;
According to described multiple value, determine the number of resource units of described business demand.
Method the most according to claim 1, it is characterised in that described according to described traffic peak with the volume of Resource Unit
Determine portfolio, determine the number of resource units of described business demand, including:
According to described traffic peak, business demand synopsis determines the number of resource units of described business demand;Wherein,
In described business demand synopsis, storage has the number of resource units that different first portfolio is corresponding.
4. according to the method described in any one of claims 1 to 3, it is characterised in that described according to described traffic peak and money
The specified portfolio of source unit, before determining the number of resource units of described business demand, also includes:
Repeatedly obtain the second portfolio when the utilization rate of first resource unit reaches to preset utilization rate of the business in test, institute
Stating first resource unit is the arbitrary Resource Unit distributing to the business in described test;
According to each described second portfolio, determine the specified portfolio of described arbitrary Resource Unit.
Method the most according to claim 4, it is characterised in that described according to each described second portfolio, determines described appointing
The specified portfolio of one Resource Unit, including:
Each described second portfolio is carried out average value processing, obtains portfolio average;
In each described second portfolio, determine the 3rd portfolio less than preset value of the difference with described portfolio average;
Each described 3rd portfolio is carried out average value processing, determines the specified portfolio of described arbitrary Resource Unit.
6. according to the method described in any one of claims 1 to 3, it is characterised in that the described resource according to described business demand
Element number, is adjusted the allocated resource of described business, including:
Judge that whether the number of resource units of described business demand is equal to allocated number of resource units;
If it is not, then allocated number of resource units is adjusted so that the number of resource units distributing to described business reaches
Number of resource units to described business demand.
7. a resource adjusting apparatus, it is characterised in that be applied to server, the resource of described server is divided into multiple money
Source unit, including:
Traffic peak acquisition module, for obtaining the current operating business the first portfolio at each time point, in each institute
State in the first portfolio and determine traffic peak;
Resource requirement acquisition module, for according to described traffic peak and the specified portfolio of Resource Unit, determines described industry
The number of resource units of business demand;
Resource adjusting module, for the number of resource units according to described business demand, the allocated resource to described business
It is adjusted.
Device the most according to claim 7, it is characterised in that described resource requirement acquisition module specifically for:
The specified portfolio of described traffic peak and described Resource Unit is carried out division process, obtains multiple value;
According to described multiple value, determine the number of resource units of described business demand.
Device the most according to claim 7, it is characterised in that described resource requirement acquisition module specifically for:
According to described traffic peak, business demand synopsis determines the number of resource units of described business demand;Wherein,
In described business demand synopsis, storage has the number of resource units that different first portfolio is corresponding.
10. according to the device described in any one of claim 7 to 9, it is characterised in that also include the specified portfolio of Resource Unit
Acquisition module, is used for:
Repeatedly obtain the second portfolio when the utilization rate of first resource unit reaches to preset utilization rate of the business in test, institute
Stating first resource unit is the arbitrary Resource Unit distributing to the business in described test;
According to each described second portfolio, determine the specified portfolio of described arbitrary Resource Unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610454298.2A CN106126339B (en) | 2016-06-21 | 2016-06-21 | Resource adjusting method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610454298.2A CN106126339B (en) | 2016-06-21 | 2016-06-21 | Resource adjusting method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106126339A true CN106126339A (en) | 2016-11-16 |
| CN106126339B CN106126339B (en) | 2019-07-30 |
Family
ID=57471348
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610454298.2A Active CN106126339B (en) | 2016-06-21 | 2016-06-21 | Resource adjusting method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106126339B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107844376A (en) * | 2017-11-21 | 2018-03-27 | 北京星河星云信息技术有限公司 | Resource allocation method, computing system, medium and the server of computing system |
| CN111352639A (en) * | 2019-12-16 | 2020-06-30 | 深圳市智微智能软件开发有限公司 | After-sale system upgrading method and system |
| CN111666130A (en) * | 2020-06-03 | 2020-09-15 | 百度在线网络技术(北京)有限公司 | Container balanced deployment method and device, electronic equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070180451A1 (en) * | 2005-12-30 | 2007-08-02 | Ryan Michael J | System and method for meta-scheduling |
| CN103442257A (en) * | 2013-08-15 | 2013-12-11 | 青岛海信传媒网络技术有限公司 | Method, device and system for achieving flow resource management |
| CN103490956A (en) * | 2013-09-22 | 2014-01-01 | 杭州华为数字技术有限公司 | Self-adaptive energy-saving control method, device and system based on traffic predication |
| US20160055035A1 (en) * | 2014-08-14 | 2016-02-25 | Raytheon Company | Multiple simultaneous request resource management |
| CN105592465A (en) * | 2014-10-21 | 2016-05-18 | 杭州华为数字技术有限公司 | Wireless resource allocation method and wireless network controller |
-
2016
- 2016-06-21 CN CN201610454298.2A patent/CN106126339B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070180451A1 (en) * | 2005-12-30 | 2007-08-02 | Ryan Michael J | System and method for meta-scheduling |
| CN103442257A (en) * | 2013-08-15 | 2013-12-11 | 青岛海信传媒网络技术有限公司 | Method, device and system for achieving flow resource management |
| CN103490956A (en) * | 2013-09-22 | 2014-01-01 | 杭州华为数字技术有限公司 | Self-adaptive energy-saving control method, device and system based on traffic predication |
| US20160055035A1 (en) * | 2014-08-14 | 2016-02-25 | Raytheon Company | Multiple simultaneous request resource management |
| CN105592465A (en) * | 2014-10-21 | 2016-05-18 | 杭州华为数字技术有限公司 | Wireless resource allocation method and wireless network controller |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107844376A (en) * | 2017-11-21 | 2018-03-27 | 北京星河星云信息技术有限公司 | Resource allocation method, computing system, medium and the server of computing system |
| CN111352639A (en) * | 2019-12-16 | 2020-06-30 | 深圳市智微智能软件开发有限公司 | After-sale system upgrading method and system |
| CN111666130A (en) * | 2020-06-03 | 2020-09-15 | 百度在线网络技术(北京)有限公司 | Container balanced deployment method and device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106126339B (en) | 2019-07-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Rao et al. | QoS guarantees and service differentiation for dynamic cloud applications | |
| CN108667748B (en) | Method, device, equipment and storage medium for controlling bandwidth | |
| CN107291546B (en) | A resource scheduling method and device | |
| US10671440B2 (en) | Resource usage prediction for cluster provisioning | |
| Taft et al. | P-store: An elastic database system with predictive provisioning | |
| CN110599148B (en) | Cluster data processing method and device, computer cluster and readable storage medium | |
| CN107193652A (en) | The flexible resource dispatching method and system of flow data processing system in container cloud environment | |
| CN107968810A (en) | A kind of resource regulating method of server cluster, device and system | |
| CN107018091A (en) | The dispatching method and device of resource request | |
| CN109003107A (en) | Region partitioning method and device | |
| CN111143143A (en) | Performance test method and device | |
| CN107179945A (en) | A kind of resource allocation methods and device | |
| CN106126339A (en) | resource adjusting method and device | |
| CN109561052A (en) | The detection method and device of website abnormal flow | |
| CN106817424A (en) | Method and system for controlling flowing of access | |
| CN107729137A (en) | Server, the method and storage medium of the decryption of block chain sign test | |
| CN107193649A (en) | A kind of method for scheduling task and device based on NUMA system | |
| CN106210129B (en) | A kind of current-limiting method and system based on Web server configuration | |
| CN108664321A (en) | System resource allocation method of adjustment and device | |
| CN109615022A (en) | The online configuration method of model and device | |
| Meskar et al. | Fair multi-resource allocation in mobile edge computing with multiple access points | |
| CN108228346A (en) | service system and its control method | |
| CN109040218A (en) | A kind of application system liveness determines method, apparatus, equipment and storage medium | |
| CN114726860B (en) | A load balancing system and load balancing method for streaming media transmission | |
| CN107872480A (en) | Big data cluster data balancing method and apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |