CN104866382A - Virtual resource scheduling method and virtual resource scheduling device - Google Patents

Virtual resource scheduling method and virtual resource scheduling device Download PDF

Info

Publication number
CN104866382A
CN104866382A CN201410058955.2A CN201410058955A CN104866382A CN 104866382 A CN104866382 A CN 104866382A CN 201410058955 A CN201410058955 A CN 201410058955A CN 104866382 A CN104866382 A CN 104866382A
Authority
CN
China
Prior art keywords
centerdot
sigma
interface
network layer
request
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
CN201410058955.2A
Other languages
Chinese (zh)
Other versions
CN104866382B (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201410058955.2A priority Critical patent/CN104866382B/en
Publication of CN104866382A publication Critical patent/CN104866382A/en
Application granted granted Critical
Publication of CN104866382B publication Critical patent/CN104866382B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a virtual resource scheduling method and a virtual resource scheduling device. The method comprises the following steps of: collecting service layer parameters and network layer parameters; calculating service layer indexes according to the service layer parameters and calculating network layer indexes according to the network layer parameters; and comparing the service layer indexes and the network layer indexes with respective thresholds, and regulating the resource allocation according to comparison results. The quality required by service development can be ensured.

Description

Schedule virtual resources method and apparatus
Technical field
The invention belongs to field of cloud calculation, particularly relate to schedule virtual resources method and apparatus.
Background technology
Use resource to be the distinguishing feature of cloud computing as required, the resource of main flow scheme of stretching is the CPU, internal memory etc. of monitoring application place virtual machine, carries out scheduling of resource when reaching default threshold values.But directly might not reflect by the index such as CPU, internal memory of virtual machine the actual conditions that business is produced, the time delay of such as business processing and responsiveness have not all met business when carrying out requirement, may the expense of now CPU and internal memory not high.
Summary of the invention
The present inventor finds to have problems in above-mentioned prior art, and therefore proposes a kind of new technical scheme at least one problem in described problem.
According to an aspect of the present invention, propose schedule virtual resources method, comprising:
Capturing service layer parameter and network layer parameter;
According to operation layer parameter computing service layer index, and according to network layer parameter computational grid layer index;
Operation layer index and network layer index are compared with respective threshold value respectively, and according to the distribution of comparative result adjustment to resource.
Further, operation layer index and operation layer upper limit threshold and operation layer lower threshold are compared, when operation layer index is greater than operation layer upper limit threshold, then reduces the resource that it is distributed, when operation layer index is less than operation layer lower threshold, then increase the resource that it is distributed.
Further, network layer index and network layer upper limit threshold and network layer lower threshold are compared, when network layer index is greater than network layer upper limit threshold, then reduces the resource that it is distributed, when network layer index is less than network layer lower threshold, then increase the resource that it is distributed.
Further, the computing formula of network layer index H is:
H=[§ AA1×H A1+...+θ An×H An)+§ BB1×H B1+...+θ Bm×H Bm)+…§ NN1×H N1+...+
θ Nk×H Nk)]×100
Wherein: § nbe the weight factor of interface protocol type N, span is 0 ~ 1; θ nkbe the weight factor of the interface k of interface protocol type N, span is 0 ~ 1; H nkthe health indicator H of the interface k of interface type N itf;
H itf = R p · R s max ( K d 1 + K b 3 , 1 )
R prepresent interface requests responsiveness, according to the ratio that number of request and number of responses calculate; R srepresent interface requests success ratio, according to the ratio that success response number and failure response number calculate; K drepresent interface requests time delay rate, according to the ratio of average response time delay and normal response time-delay calculation; K brepresent interface busy rate, according to the ratio that concurrent user number and maximum support number of users calculate.
Further, interface requests success ratio Rs:
Wherein: n is request kind; α is the weight factor of certain class request; M is failure cause kind; β is weight factor; CAU is the failure response number of certain reason; SUC is success response number.
Further, interface requests time delay rate K d:
K d = Σ i = 1 N α i · DLY i DLS i
Wherein: n is request kind; α is the weight factor of certain class request; DLY is the average response time delay of certain class request, minimumly equals DLS; DLS is the normal response time delay of certain class request.
Further, interface busy rate K b:
K b = U U max
Wherein: U maxfor the maximum number of user that network element design is supported; U is active user number, flow, carrying number, message or message number.
Further, interface requests responsiveness R p:
R p = Σ i = 1 n ( α i · RSP i ) Σ i = 1 n ( α i · RQT i )
Wherein: n is request kind; α is the weight factor of certain class request; RSP is the number of responses sent; RQT is the number of request received.
Further, operation layer index H ncomputing formula be:
H N=(T s×P s+T d×P d)÷log 2L d
Wherein: T sfor sending success ratio weight; T dfor sending success ratio weight; P sfor sending success ratio; P dfor sending success ratio; L dfor sending time delay rate.
Further, success ratio P is sent s:
P s = [ 1 - Σ i = 1 m ( β i · C Si ) Σ i = 1 n ] × RSPs RQTs
Wherein: m is the reason kind of service error; β is reason weight; Cs sends failure cause number of times for certain; Ss is for sending number of success; RQTs is the number of times of service request; RSPs is the number of times of service response.
Further, success ratio P is sent d:
Pd = [ 1 - Σ j = 1 n ( a i · Cd i ) Σ j = 1 n ( a i · Cd i ) + Sd ] × RQTd RQTs
Wherein: n is the reason kind of business processing; α is reason weight; Cd is certain reason number of times of delivery of notifications failure; Sd is the successful number of times of delivery of notifications; RQTs is the number of times of service request; RQTd is the number of times of service response.
Further, time delay rate L is sent d:
L d = Davg Dstd
Wherein: Davg is average delivered time delay; Dstd is standard delivery time delay.
According to a further aspect of the invention, propose schedule virtual resources device, comprising:
Operation layer acquisition interface, capturing service layer parameter;
Network layer acquisition interface, collection network layer parameter;
Calculation processing unit, according to operation layer parameter computing service layer index, and according to network layer parameter computational grid layer index; Operation layer index and network layer index are compared with respective threshold value respectively, and according to the distribution of comparative result adjustment to resource.
Further, operation layer index and operation layer upper limit threshold and operation layer lower threshold are compared, when operation layer index is greater than operation layer upper limit threshold, then reduces the resource that it is distributed, when operation layer index is less than operation layer lower threshold, then increase the resource that it is distributed.
Further, network layer index and network layer upper limit threshold and network layer lower threshold are compared, when network layer index is greater than network layer upper limit threshold, then reduces the resource that it is distributed, when network layer index is less than network layer lower threshold, then increase the resource that it is distributed.
Further, the computing formula of network layer index H is:
H=[§ AA1×H A1+...+θ An×H An)+§ BB1×H B1+...+θ Bm×H Bm)+…§ NN1×H N1+...+
θ Nk×H Nk)]×100
Wherein: § nbe the weight factor of interface protocol type N, span is 0 ~ 1; θ nkbe the weight factor of the interface k of interface protocol type N, span is 0 ~ 1; H nkthe health indicator H of the interface k of interface type N itf;
H itf = R p · R s max ( K d 1 + Kb 3 , 1 )
R prepresent interface requests responsiveness, according to the ratio that number of request and number of responses calculate; R srepresent interface requests success ratio, according to the ratio that success response number and failure response number calculate; K drepresent interface requests time delay rate, according to the ratio of average response time delay and normal response time-delay calculation; K brepresent interface busy rate, according to the ratio that concurrent user number and maximum support number of users calculate.
Further, interface requests success ratio Rs:
Rs = 1 - Σ i = 1 n [ α i · Σ j = 1 m ( β j · CAU j ) ] Σ i = 1 n [ α i · Σ j = 1 m ( β j · CVU j + SUC ) ]
Wherein: n is request kind; α is the weight factor of certain class request; M is failure cause kind; β is weight factor; CAU is the failure response number of certain reason; SUC is success response number.
Further, interface requests time delay rate K d:
Kd = Σ i = 1 n α i · DLY i DLS i
Wherein: n is request kind; α is the weight factor of certain class request; DLY is the average response time delay of certain class request, minimumly equals DLS; DLS is the normal response time delay of certain class request.
Further, interface busy rate K b:
K b = U U max
Wherein: U maxfor the maximum number of user that network element design is supported; U is active user number, flow, carrying number, message or message number.
Further, interface requests responsiveness R p:
R p = Σ i = 1 n ( α i · RSP i ) Σ i = 1 n ( α i · RQT i )
Wherein: n is request kind; α is the weight factor of certain class request; RSP is the number of responses sent; RQT is the number of request received.
Further, operation layer index H ncomputing formula be:
H N=(T s×P s+T d×P d)÷log 2L d
Wherein: T sfor sending success ratio weight; T dfor sending success ratio weight; P sfor sending success ratio; P dfor sending success ratio; L dfor sending time delay rate.
Further, success ratio P is sent s:
Ps = [ 1 - Σ i = 1 m ( β i · Cs i ) Σ i = 1 m ( β i · Cs i ) + Ss ] × RSPs RQTs
Wherein: m is the reason kind of service error; β is reason weight; Cs sends failure cause number of times for certain; Ss is for sending number of success; RQTs is the number of times of service request; RSPs is the number of times of service response.
Send success ratio P d:
Pd = [ 1 - Σ j = 1 n ( a i · Cd i ) Σ j = 1 n ( a i · Cd i ) + Sd ] × RQTd RQTs
Wherein: n is the reason kind of business processing; α is reason weight; Cd is certain reason number of times of delivery of notifications failure; Sd is the successful number of times of delivery of notifications; RQTs is the number of times of service request; RQTd is the number of times of service response.
Further, time delay rate L is sent d:
L d = Davg Dstd
Wherein: Davg is average delivered time delay; Dstd is standard delivery time delay.
The present invention can ensure that business carries out required quality.
By referring to the detailed description of accompanying drawing to exemplary embodiment of the present invention, further feature of the present invention and advantage thereof will become clear.
Accompanying drawing explanation
What form a part for instructions drawings describes embodiments of the invention, and together with the description for explaining principle of the present invention.
With reference to accompanying drawing, according to detailed description below, clearly the present invention can be understood, wherein:
Figure 1 shows that the schematic flow sheet of the schedule virtual resources method in the embodiment of the present invention.
Figure 2 shows that the structural representation of the schedule virtual resources device in the embodiment of the present invention.
Embodiment
Various exemplary embodiment of the present invention is described in detail now with reference to accompanying drawing.It should be noted that: unless specifically stated otherwise, otherwise positioned opposite, the numerical expression of the parts of setting forth in these embodiments and step and numerical value do not limit the scope of the invention.
Meanwhile, it should be understood that for convenience of description, the size of the various piece shown in accompanying drawing is not draw according to the proportionate relationship of reality.
Illustrative to the description only actually of at least one exemplary embodiment below, never as any restriction to the present invention and application or use.
May not discuss in detail for the known technology of person of ordinary skill in the relevant, method and apparatus, but in the appropriate case, described technology, method and apparatus should be regarded as a part of authorizing instructions.
In all examples with discussing shown here, any occurrence should be construed as merely exemplary, instead of as restriction.Therefore, other example of exemplary embodiment can have different values.
It should be noted that: represent similar terms in similar label and letter accompanying drawing below, therefore, once be defined in an a certain Xiang Yi accompanying drawing, then do not need to be further discussed it in accompanying drawing subsequently.
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.
Figure 1 shows that the schematic flow sheet of the schedule virtual resources method in the embodiment of the present invention.
In step 11, capturing service layer parameter and network layer parameter.Wherein, operation layer parameter relates to the correlation parameter of service-aware, as business pass out success ratio, business sends the parameters such as time delay; Network layer parameter is the network of relation index parameter that business relates to, as interface protocol accounting, parameter such as network turnover flow, interface requests success ratio etc.
In step 12, according to operation layer parameter computing service layer index, and according to network layer parameter computational grid layer index.
In step 13, operation layer index and network layer index are compared with respective threshold value respectively, and according to the distribution of comparative result adjustment to resource.
Wherein, operation layer index and operation layer upper limit threshold and operation layer lower threshold are compared, when operation layer index is greater than operation layer upper limit threshold, then reduces the resource that it is distributed, when operation layer index is less than operation layer lower threshold, then increase the resource that it is distributed.Resource mentioned here mainly refers to service resources.In this embodiment, operation layer upper limit threshold can also be greater than in operation layer index and continue setting-up time, then reducing the resource that it is distributed; Be less than operation layer lower threshold when operation layer index and continue setting-up time, then increasing the resource that it is distributed, such as, expanding software license, expand number of concurrent.In lasting setting-up time trigger request, the benefit of such setting is exactly that " burr " situation when preventing indivedual causes frequent requests and releasing resource, and generally all consider surplus factor when considering that bound is arranged, the requirement of trigger request after a certain time can be met.In addition, when operation layer index is greater than operation layer lower threshold and is less than upper limit threshold, when namely operation layer index is between lower threshold and upper limit threshold, can not adjust, also can adjust as the case may be.The upper limit threshold mentioned in above-described embodiment and lower threshold all can carry out changing and changing.
Network layer index and network layer upper limit threshold and network layer lower threshold are compared, when network layer index is greater than network layer upper limit threshold, then reduces the resource that it is distributed, when network layer index is less than network layer lower threshold, then increase the resource that it is distributed.Resource mentioned here mainly refers to Internet resources.In this embodiment, network layer upper limit threshold can also be greater than in network layer index and continue setting-up time, then reducing the resource that it is distributed; Be less than network layer lower threshold when network layer index and continue setting-up time, then increasing the resource that it is distributed.In lasting setting-up time trigger request, the benefit of such setting is exactly that " burr " situation when preventing indivedual causes frequent requests and releasing resource, and generally all consider surplus factor when considering that bound is arranged, the requirement of trigger request after a certain time can be met.In addition, when network layer index is greater than network layer lower threshold and is less than upper limit threshold, when namely network layer index is between lower threshold and upper limit threshold, can not adjust, also can adjust as the case may be.The upper limit threshold mentioned in above-described embodiment and lower threshold all can carry out changing and changing.
Index such as hardware such as the single employing of existing resource scheduling strategy CPU, internal memory etc., accurate evaluation business cannot carry out required real resource.This embodiment considers business and carries out the indexs such as the processing power of operation layer and the network layer related to, increase the collection to operation layer and network layer handles ability newly, the business of calculating carries out required stock number, and result of calculation is used for judgement and the control of resource elastic telescopic.Such as, the system of a processing messages conversion distribution, possible situation is that CPU, memory usage are all very low, but simultaneity factor response delay is high especially again, and (service request may need to take delay in 6 seconds, but receptible delay is 100 milliseconds in actual requirement), original in the case technology can't think that business is carried out and had problem.And pass through the above embodiment of the present invention, Problems existing is found by operation layer index or network layer index, if the words of network problem can increase Internet resources, if the words of traffic issues can increase the concurrent mandate number of application to promote business processing speed, the business of guarantee carries out required quality.
Below in conjunction with embodiment, be described in detail to according to the process of network layer parameter computational grid layer index.It will be understood by those skilled in the art that embodiment mentioned here is just for illustrating, should not be construed as limitation of the present invention.On the basis of this embodiment, can revise accordingly and modification.
Define grid layer index H, reflects the health degree of network needed for whole network element, the processing power reflected according to each interface of the external network interaction of network element, stability, busy degree and calculating.Have several several, interface link, so network layer index H just needs to calculate how many items.
The computing formula of network layer index H is:
H=[§ AA1×H A1+...+θ An×H An)+§ BB1×H B1+...+θ Bm×H Bm)+…§ NN1×H N1+...+
θ Nk×H Nk)]×100
Wherein:
§ athe weight factor of interface protocol type A, § bthe weight factor of interface protocol type B, § nit is the weight factor of interface protocol type N.The span 0 ~ 1 of weight factor, that is, be more than or equal to 0 and be less than or equal to 1, and weight factor in other embodiments of the present invention can with reference to the value of the weight factor in this embodiment.Such factor mainly comprises the balance of docking port importance, interface capacity.
θ a1the weight factor of the interface 1 of interface protocol type A, θ bmthe weight factor of the interface m of interface protocol type B, θ nkit is the weight factor of the interface k of interface protocol type N.The span 0 ~ 1 of weight factor, that is, be more than or equal to 0 and be less than or equal to 1, and such factor mainly considers number of users, size of message etc.
H a1the health indicator of the interface 1 of interface protocol type A, H bmthe health indicator of the interface m of interface type B, H nkit is the health indicator of the interface k of interface type N.The computing method of this index are shown in interface health index H itf.
H itf = R p · R s max ( K d 1 + K b 3 , 1 )
R prepresent interface requests responsiveness, according to the ratio that number of request and number of responses calculate;
R srepresent interface requests success ratio, according to the ratio that success response number and failure response number calculate;
K drepresent interface requests time delay rate, according to the ratio of average response time delay and normal response time-delay calculation;
K brepresent interface busy rate, according to the ratio that concurrent user number and maximum support number of users calculate.
In this embodiment, R pr srepresent R p× R s, that is, point here represents multiplication sign.In other embodiments of the invention, also multiplication sign can be represented.
Below by respectively to R p, R s, K dand K bcomputation process be illustrated.
1) interface requests success ratio Rs:
Rs = 1 - Σ i = 1 n [ αi · Σ j = 1 m ( β j · CA U j ) ] Σ i = 1 n [ α i · Σ j = 1 m ( β j · CA U j + SUC ) ]
Wherein:
N is request kind;
α is the weight factor of certain class request;
M is failure cause kind;
β is weight factor, the main degree in close relations considering a variety of causes and this network element;
CAU is the failure response number of certain reason;
SUC is success response number.
2) interface requests time delay rate K d:
K d = Σ i = 1 N α i · DLY i DLS i
Wherein:
N is request kind;
α is the weight factor of certain class request, comprises the balance of the priority to request, disturbance degree;
DLY is the average response time delay of certain class request, minimumly equals DLS, and average response time delay can obtain after receiving request and sending the mistiming statistical summaries calculating mean value between response;
DLS is the normal response time delay of certain class request, obtains in can being required by involved Interface design, also can be arranged according to operation needs by managerial personnel.
3) interface busy rate K b:
K b = U U max
Wherein:
U maxfor the maximum number of user that network element design is supported;
U is active user number.According to different network elements, number of users can change flow, carrying number, message or message number etc. into.
4) interface requests responsiveness R p:
R p = Σ i = 1 n ( α i · RSP i ) Σ i = 1 n ( α i · RQT i )
Wherein:
N is the request kind received;
α is the weight factor of certain class request, main consideration message count accounting;
RSP is the number of responses sent;
RQT is the number of request received.
In one embodiment, according to above-mentioned parameters computational grid layer index H, suppose that the upper limit threshold of network layer index H is 85, lower threshold is 60, be then respectively:
As H>85, Internet resources can be reduced to resource management platform request, can also determine in conjunction with each classification indicators the type and the quantity that reduce Internet resources;
As H<60, Internet resources can be increased to resource management platform request, can also determine in conjunction with each classification indicators the type and the quantity that increase resource.The type of Internet resources comprises increases bandwidth (upstream bandwidth and downlink bandwidth), amendment routed path etc.
Below in conjunction with embodiment, be described in detail to according to the process of operation layer parameter computing service layer index.It will be understood by those skilled in the art that embodiment mentioned here is just for illustrating, should not be construed as limitation of the present invention.On the basis of this embodiment, can revise accordingly and modification.
Operation layer index H ncomputing formula be:
H N=(T s×P s+T d×P d)÷log 2L d
Wherein:
T sfor sending success ratio weight;
T dfor sending success ratio weight;
P sfor sending success ratio;
P dfor sending success ratio;
L dfor sending time delay rate.
Below by respectively to P s, P dand L bcomputation process be illustrated.
A) success ratio P is sent s:
P s = [ 1 - &Sigma; i = 1 m ( &beta; i &CenterDot; C Si ) &Sigma; i = 1 n ] &times; RSPs RQTs
Wherein:
M is the reason kind of service error;
β is reason weight;
Cs sends failure cause number of times for certain;
Ss is for sending number of success;
RQTs is the number of times of service request;
RSPs is the number of times of service response.
B) success ratio P is sent d:
Pd = [ 1 - &Sigma; j = 1 n ( a i &CenterDot; Cd i ) &Sigma; j = 1 n ( a i &CenterDot; Cd i ) + Sd ] &times; RQTd RQTs
Wherein:
N is the reason kind of business processing;
α is reason weight;
Cd is certain reason number of times of delivery of notifications failure;
Sd is the successful number of times of delivery of notifications;
RQTs is the number of times of service request;
RQTd is the number of times of service response.
C) time delay rate L is sent d:
L d = Davg Dstd
Wherein:
Davg is average delivered time delay.
Dstd is standard delivery time delay.
In the above-described embodiments, the process for computational grid layer index and operation layer index illustrates.Certainly, be not limited to each above-mentioned embodiment, corresponding variants and modifications can be carried out accordingly.The above embodiment of the present invention, consider business and carry out the indexs such as the processing power of operation layer and the network layer related to, the business of calculating carries out required stock number, and result of calculation is used for judgement and the control of resource elastic telescopic.The present invention can ensure that business carries out required quality.
Figure 2 shows that the structural representation of the schedule virtual resources device in the embodiment of the present invention.
Operation layer acquisition interface, capturing service layer parameter.Wherein, operation layer index relates to the correlation parameter of service-aware, as business pass out success ratio, business sends the parameters such as time delay.
Network layer acquisition interface, collection network layer parameter.Wherein, network layer index is the network of relation index parameter that business relates to, as interface protocol accounting, parameter such as network turnover flow, interface requests success ratio etc.
Calculation processing unit, according to operation layer parameter computing service layer index, and according to network layer parameter computational grid layer index; Operation layer index and network layer index are compared with respective threshold value respectively, and according to the distribution of comparative result adjustment to resource.
Wherein, operation layer index and operation layer upper limit threshold and operation layer lower threshold are compared, when operation layer index is greater than operation layer upper limit threshold, then reduces the resource that it is distributed, when operation layer index is less than operation layer lower threshold, then increase the resource that it is distributed.Resource mentioned here mainly refers to service resources.In this embodiment, operation layer upper limit threshold can also be greater than in operation layer index and continue setting-up time, then reducing the resource that it is distributed; Be less than operation layer lower threshold when operation layer index and continue setting-up time, then increasing the resource that it is distributed, such as, expanding software license, expand number of concurrent.In lasting setting-up time trigger request, the benefit of such setting is exactly that " burr " situation when preventing indivedual causes frequent requests and releasing resource, and generally all consider surplus factor when considering that bound is arranged, the requirement of trigger request after a certain time can be met.In addition, when operation layer index is greater than operation layer lower threshold and is less than upper limit threshold, when namely operation layer index is between lower threshold and upper limit threshold, can not adjust, also can adjust as the case may be.The upper limit threshold mentioned in above-described embodiment and lower threshold all can carry out changing and changing.
Network layer index and network layer upper limit threshold and network layer lower threshold are compared, when network layer index is greater than network layer upper limit threshold, then reduces the resource that it is distributed, when network layer index is less than network layer lower threshold, then increase the resource that it is distributed.Resource mentioned here mainly refers to Internet resources.In this embodiment, network layer upper limit threshold can also be greater than in network layer index and continue setting-up time, then reducing the resource that it is distributed; Be less than network layer lower threshold when network layer index and continue setting-up time, then increasing the resource that it is distributed.In lasting setting-up time trigger request, the benefit of such setting is exactly that " burr " situation when preventing indivedual causes frequent requests and releasing resource, and generally all consider surplus factor when considering that bound is arranged, the requirement of trigger request after a certain time can be met.In addition, when network layer index is greater than network layer lower threshold and is less than upper limit threshold, when namely network layer index is between lower threshold and upper limit threshold, can not adjust, also can adjust as the case may be.The upper limit threshold mentioned in above-described embodiment and lower threshold all can carry out changing and changing.
Index such as hardware such as the single employing of existing resource scheduling strategy CPU, internal memory etc., accurate evaluation business cannot carry out required real resource.This embodiment considers business and carries out the indexs such as the processing power of operation layer and the network layer related to, increase the collection to operation layer and network layer handles ability newly, the business of calculating carries out required stock number, and result of calculation is used for judgement and the control of resource elastic telescopic.Such as, the system of a processing messages conversion distribution, possible situation is that CPU, memory usage are all very low, but simultaneity factor response delay is high especially again, and (service request may need to take delay in 6 seconds, but receptible delay is 100 milliseconds in actual requirement), original in the case technology can't think that business is carried out and had problem.And pass through the above embodiment of the present invention, Problems existing is found by operation layer index or network layer index, if the words of network problem can increase Internet resources, if the words of traffic issues can increase the concurrent mandate number of application to promote business processing speed, the business of guarantee carries out required quality.
Below in conjunction with embodiment, be described in detail to according to the process of network layer parameter computational grid layer index.It will be understood by those skilled in the art that embodiment mentioned here is just for illustrating, should not be construed as limitation of the present invention.On the basis of this embodiment, can revise accordingly and modification.
Define grid layer index H, reflects the health degree of network needed for whole network element, the processing power reflected according to each interface of the external network interaction of network element, stability, busy degree and calculating.Have several several, interface link, so network layer index H just needs to calculate how many items.
The computing formula of network layer index H is:
H=[§ AA1×H A1+...+θ An×H An)+§ BB1×H B1+...+θ Bm×H Bm)+…§ NN1×H N1+...+
θ Nk×H Nk)]×100
Wherein:
§ athe weight factor of interface protocol type A, § bthe weight factor of interface protocol type B, § nit is the weight factor of interface protocol type N.The span 0 ~ 1 of weight factor, such factor mainly comprises the balance of docking port importance, interface capacity.
θ a1the weight factor of the interface 1 of interface protocol type A, θ bmthe weight factor of the interface m of interface protocol type B, θ nkit is the weight factor of the interface k of interface protocol type N.The span 0 ~ 1 of weight factor, such factor mainly considers number of users, size of message etc.
H a1the health indicator of the interface 1 of interface protocol type A, H bmthe health indicator of the interface m of interface type B, H nkit is the health indicator of the interface k of interface type N.The computing method of this index are shown in interface health index H itf.
H itf = R p &CenterDot; R s max ( K d 1 + Kb 3 , 1 )
R prepresent interface requests responsiveness, according to the ratio that number of request and number of responses calculate;
R srepresent interface requests success ratio, according to the ratio that success response number and failure response number calculate;
K drepresent interface requests time delay rate, according to the ratio of average response time delay and normal response time-delay calculation;
K brepresent interface busy rate, according to the ratio that concurrent user number and maximum support number of users calculate.
Below by respectively to R p, R s, K dand K bcomputation process be illustrated.
1) interface requests success ratio Rs:
Rs = 1 - &Sigma; i = 1 n [ &alpha; i &CenterDot; &Sigma; j = 1 m ( &beta; j &CenterDot; CAU j ) ] &Sigma; i = 1 n [ &alpha; i &CenterDot; &Sigma; j = 1 m ( &beta; j &CenterDot; CVU j + SUC ) ]
Wherein:
N is request kind;
α is the weight factor of certain class request;
M is failure cause kind;
β is weight factor, the main degree in close relations considering a variety of causes and this network element;
CAU is the failure response number of certain reason;
SUC is success response number.
2) interface requests time delay rate K d:
Kd = &Sigma; i = 1 n &alpha; i &CenterDot; DLY i DLS i
Wherein:
N is request kind;
α is the weight factor of certain class request, comprises the balance of the priority to request, disturbance degree;
DLY is the average response time delay of certain class request, minimumly equals DLS, and average response time delay can obtain after receiving request and sending the mistiming statistical summaries calculating mean value between response;
DLS is the normal response time delay of certain class request, obtains in can being required by involved Interface design, also can be arranged according to operation needs by managerial personnel.
3) interface busy rate K b:
K b = U U max
Wherein:
U maxfor the maximum number of user that network element design is supported;
U is active user number.According to different network elements, number of users can change flow, carrying number, message or message number etc. into.
4) interface requests responsiveness R p:
R p = &Sigma; i = 1 n ( &alpha; i &CenterDot; RSP i ) &Sigma; i = 1 n ( &alpha; i &CenterDot; RQT i )
Wherein:
N is the request kind received;
α is the weight factor of certain class request, main consideration message count accounting;
RSP is the number of responses sent;
RQT is the number of request received.
In one embodiment, according to above-mentioned parameters computational grid layer index H, suppose that the upper limit threshold of network layer index H is 85, lower threshold is 60, be then respectively:
As H>85, Internet resources can be reduced to resource management platform request, can also determine in conjunction with each classification indicators the type and the quantity that reduce Internet resources;
As H<60, Internet resources can be increased to resource management platform request, can also determine in conjunction with each classification indicators the type and the quantity that increase resource.The type of Internet resources comprises increases bandwidth (upstream bandwidth and downlink bandwidth), amendment routed path etc.
Below in conjunction with embodiment, be described in detail to according to the process of operation layer parameter computing service layer index.It will be understood by those skilled in the art that embodiment mentioned here is just for illustrating, should not be construed as limitation of the present invention.On the basis of this embodiment, can revise accordingly and modification.
Operation layer index H ncomputing formula be:
H N=(T s×P s+T d×P d)÷log 2L d
Wherein:
T sfor sending success ratio weight;
T dfor sending success ratio weight;
P sfor sending success ratio;
P dfor sending success ratio;
L dfor sending time delay rate.
Below by respectively to P s, P dand L bcomputation process be illustrated.
A) success ratio P is sent s:
Ps = [ 1 - &Sigma; i = 1 m ( &beta; i &CenterDot; Cs i ) &Sigma; i = 1 m ( &beta; i &CenterDot; Cs i ) + Ss ] &times; RSPs RQTs
Wherein:
M is the reason kind of service error;
β is reason weight;
Cs sends failure cause number of times for certain;
Ss is for sending number of success;
RQTs is the number of times of service request;
RSPs is the number of times of service response.
B) success ratio P is sent d:
Pd = [ 1 - &Sigma; j = 1 n ( a i &CenterDot; Cd i ) &Sigma; j = 1 n ( a i &CenterDot; Cd i ) + Sd ] &times; RQTd RQTs
Wherein:
N is the reason kind of business processing;
α is reason weight;
Cd is certain reason number of times of delivery of notifications failure;
Sd is the successful number of times of delivery of notifications;
RQTs is the number of times of service request;
RQTd is the number of times of service response.
C) time delay rate L is sent d:
L d = Davg Dstd
Wherein:
Davg is average delivered time delay.
Dstd is standard delivery time delay.
In the above-described embodiments, the process for computational grid layer index and operation layer index illustrates.Certainly, be not limited to each above-mentioned embodiment, corresponding variants and modifications can be carried out accordingly.The above embodiment of the present invention, consider business and carry out the indexs such as the processing power of operation layer and the network layer related to, the business of calculating carries out required stock number, and result of calculation is used for judgement and the control of resource elastic telescopic.The present invention can ensure that business carries out required quality.
So far, the present invention is described in detail.In order to avoid covering design of the present invention, details more known in the field are not described.Those skilled in the art, according to description above, can understand how to implement technical scheme disclosed herein completely.
Method of the present invention and device may be realized in many ways.Such as, any combination by software, hardware, firmware or software, hardware, firmware realizes method of the present invention and device.Said sequence for the step of described method is only to be described, and the step of method of the present invention is not limited to above specifically described order, unless specifically stated otherwise.In addition, in certain embodiments, can be also record program in the recording medium by the invention process, these programs comprise the machine readable instructions for realizing according to method of the present invention.Thus, the present invention also covers the recording medium stored for performing the program according to method of the present invention.
Although be described in detail specific embodiments more of the present invention by example, it should be appreciated by those skilled in the art, above example is only to be described, instead of in order to limit the scope of the invention.It should be appreciated by those skilled in the art, can without departing from the scope and spirit of the present invention, above embodiment be modified.Scope of the present invention is limited by claims.

Claims (24)

1. schedule virtual resources method, is characterized in that:
Capturing service layer parameter and network layer parameter;
According to operation layer parameter computing service layer index, and according to network layer parameter computational grid layer index;
Operation layer index and network layer index are compared with respective threshold value respectively, and according to the distribution of comparative result adjustment to resource.
2. schedule virtual resources method according to claim 1, is characterized in that:
Operation layer index and operation layer upper limit threshold and operation layer lower threshold are compared, when operation layer index is greater than operation layer upper limit threshold, then reduces the resource that it is distributed, when operation layer index is less than operation layer lower threshold, then increase the resource that it is distributed.
3. schedule virtual resources method according to claim 1, is characterized in that:
Network layer index and network layer upper limit threshold and network layer lower threshold are compared, when network layer index is greater than network layer upper limit threshold, then reduces the resource that it is distributed, when network layer index is less than network layer lower threshold, then increase the resource that it is distributed.
4. schedule virtual resources method according to claim 1 or 2 or 3, is characterized in that:
The computing formula of network layer index H is:
H=[§ AA1×H A1+...+θ An×H An)+§ BB1×H B1+...+θ Bm×H Bm)+…§ NN1×H N1+...+
θ Nk×H Nk)]×100
Wherein:
§ nbe the weight factor of interface protocol type N, span is 0 ~ 1;
θ nkbe the weight factor of the interface k of interface protocol type N, span is 0 ~ 1;
H nkthe health indicator H of the interface k of interface type N itf;
H itf = R p &CenterDot; R s max ( K d 1 + K b 3 , 1 )
R prepresent interface requests responsiveness, according to the ratio that number of request and number of responses calculate;
R srepresent interface requests success ratio, according to the ratio that success response number and failure response number calculate;
K drepresent interface requests time delay rate, according to the ratio of average response time delay and normal response time-delay calculation;
K brepresent interface busy rate, according to the ratio that concurrent user number and maximum support number of users calculate.
5. schedule virtual resources method according to claim 4, is characterized in that:
Interface requests success ratio Rs:
Rs = 1 - &Sigma; i = 1 n [ &alpha;i &CenterDot; &Sigma; j = 1 m ( &beta; j &CenterDot; CA U j ) ] &Sigma; i = 1 n [ &alpha; i &CenterDot; &Sigma; j = 1 m ( &beta; j &CenterDot; CA U j + SUC ) ]
Wherein:
N is request kind;
α is the weight factor of certain class request;
M is failure cause kind;
β is weight factor;
CAU is the failure response number of certain reason;
SUC is success response number.
6. schedule virtual resources method according to claim 4, is characterized in that:
Interface requests time delay rate K d:
K d = &Sigma; i = 1 N &alpha; i &CenterDot; DLY i DLS i
Wherein:
N is request kind;
α is the weight factor of certain class request;
DLY is the average response time delay of certain class request, minimumly equals DLS;
DLS is the normal response time delay of certain class request.
7. schedule virtual resources method according to claim 4, is characterized in that:
Interface busy rate K b:
K b = U U max
Wherein:
U maxfor the maximum number of user that network element design is supported;
U is active user number, flow, carrying number, message or message number.
8. schedule virtual resources method according to claim 4, is characterized in that:
Interface requests responsiveness R p:
R p = &Sigma; i = 1 n ( &alpha; i &CenterDot; RSP i ) &Sigma; i = 1 n ( &alpha; i &CenterDot; RQT i )
Wherein:
N is request kind;
α is the weight factor of certain class request;
RSP is the number of responses sent;
RQT is the number of request received.
9. schedule virtual resources method according to claim 1 or 2 or 3, is characterized in that:
Operation layer index H ncomputing formula be:
H N=(T s×P s+T d×P d)÷log 2L d
Wherein:
T sfor sending success ratio weight;
T dfor sending success ratio weight;
P sfor sending success ratio;
P dfor sending success ratio;
L dfor sending time delay rate.
10. schedule virtual resources method according to claim 9, is characterized in that:
Send success ratio P s:
P s = [ 1 - &Sigma; i = 1 m ( &beta; i &CenterDot; C Si ) &Sigma; i = 1 n ] &times; RSPs RQTs
Wherein:
M is the reason kind of service error;
β is reason weight;
Cs sends failure cause number of times for certain;
Ss is for sending number of success;
RQTs is the number of times of service request;
RSPs is the number of times of service response.
11. schedule virtual resources methods according to claim 9, is characterized in that:
Send success ratio P d:
Pd = [ 1 - &Sigma; j = 1 n ( a i &CenterDot; Cd i ) &Sigma; j = 1 n ( a i &CenterDot; Cd i ) + Sd ] &times; RQTd RQTs
Wherein:
N is the reason kind of business processing;
α is reason weight;
Cd is certain reason number of times of delivery of notifications failure;
Sd is the successful number of times of delivery of notifications;
RQTs is the number of times of service request;
RQTd is the number of times of service response.
12. schedule virtual resources methods according to claim 9, is characterized in that:
Send time delay rate L d:
L d = Davg Dstd
Wherein:
Davg is average delivered time delay;
Dstd is standard delivery time delay.
13. schedule virtual resources devices, is characterized in that:
Operation layer acquisition interface, capturing service layer parameter;
Network layer acquisition interface, collection network layer parameter;
Calculation processing unit, according to operation layer parameter computing service layer index, and according to network layer parameter computational grid layer index; Operation layer index and network layer index are compared with respective threshold value respectively, and according to the distribution of comparative result adjustment to resource.
14., according to schedule virtual resources device described in claim 13, is characterized in that:
Operation layer index and operation layer upper limit threshold and operation layer lower threshold are compared, when operation layer index is greater than operation layer upper limit threshold, then reduces the resource that it is distributed, when operation layer index is less than operation layer lower threshold, then increase the resource that it is distributed.
15., according to schedule virtual resources device described in claim 13, is characterized in that:
Network layer index and network layer upper limit threshold and network layer lower threshold are compared, when network layer index is greater than network layer upper limit threshold, then reduces the resource that it is distributed, when network layer index is less than network layer lower threshold, then increase the resource that it is distributed.
16. according to claim 13 or 14 or 15 schedule virtual resources device, it is characterized in that:
The computing formula of network layer index H is:
H=[§ AA1×H A1+...+θ An×H An)+§ BB1×H B1+...+θ Bm×H Bm)+…§ NN1×H N1+...+
θ Nk×H Nk)]×100
Wherein:
§ nbe the weight factor of interface protocol type N, span is 0 ~ 1;
θ nkbe the weight factor of the interface k of interface protocol type N, span is 0 ~ 1;
H nkthe health indicator H of the interface k of interface type N itf;
H itf = R p &CenterDot; R s max ( K d 1 + Kb 3 , 1 )
R prepresent interface requests responsiveness, according to the ratio that number of request and number of responses calculate;
R srepresent interface requests success ratio, according to the ratio that success response number and failure response number calculate;
K drepresent interface requests time delay rate, according to the ratio of average response time delay and normal response time-delay calculation;
K brepresent interface busy rate, according to the ratio that concurrent user number and maximum support number of users calculate.
17., according to schedule virtual resources device described in claim 16, is characterized in that:
Interface requests success ratio Rs:
Rs = 1 - &Sigma; i = 1 n [ &alpha; i &CenterDot; &Sigma; j = 1 m ( &beta; j &CenterDot; CAU j ) ] &Sigma; i = 1 n [ &alpha; i &CenterDot; &Sigma; j = 1 m ( &beta; j &CenterDot; CVU j + SUC ) ]
Wherein:
N is request kind;
α is the weight factor of certain class request;
M is failure cause kind;
β is weight factor;
CAU is the failure response number of certain reason;
SUC is success response number.
18., according to schedule virtual resources device described in claim 16, is characterized in that:
Interface requests time delay rate K d:
Kd = &Sigma; i = 1 n &alpha; i &CenterDot; DLY i DLS i
Wherein:
N is request kind;
α is the weight factor of certain class request;
DLY is the average response time delay of certain class request, minimumly equals DLS;
DLS is the normal response time delay of certain class request.
19., according to schedule virtual resources device described in claim 16, is characterized in that:
Interface busy rate K b:
K b = U U max
Wherein:
U maxfor the maximum number of user that network element design is supported;
U is active user number, flow, carrying number, message or message number.
20., according to schedule virtual resources device described in claim 16, is characterized in that:
Interface requests responsiveness R p:
R p = &Sigma; i = 1 n ( &alpha; i &CenterDot; RSP i ) &Sigma; i = 1 n ( &alpha; i &CenterDot; RQT i )
Wherein:
N is request kind;
α is the weight factor of certain class request;
RSP is the number of responses sent;
RQT is the number of request received.
21. according to claim 13 or 14 or 15 schedule virtual resources device, it is characterized in that:
Operation layer index H ncomputing formula be:
H N=(T s×P s+T d×P d)÷log 2L d
Wherein:
T sfor sending success ratio weight;
T dfor sending success ratio weight;
P sfor sending success ratio;
P dfor sending success ratio;
L dfor sending time delay rate.
22., according to schedule virtual resources device described in claim 21, is characterized in that:
Send success ratio P s:
Ps = [ 1 - &Sigma; i = 1 m ( &beta; i &CenterDot; Cs i ) &Sigma; i = 1 m ( &beta; i &CenterDot; Cs i ) + Ss ] &times; RSPs RQTs
Wherein:
M is the reason kind of service error;
β is reason weight;
Cs sends failure cause number of times for certain;
Ss is for sending number of success;
RQTs is the number of times of service request;
RSPs is the number of times of service response.
23., according to schedule virtual resources device described in claim 21, is characterized in that:
Send success ratio P d:
Pd = [ 1 - &Sigma; j = 1 n ( a i &CenterDot; Cd i ) &Sigma; j = 1 n ( a i &CenterDot; Cd i ) + Sd ] &times; RQTd RQTs
Wherein:
N is the reason kind of business processing;
α is reason weight;
Cd is certain reason number of times of delivery of notifications failure;
Sd is the successful number of times of delivery of notifications;
RQTs is the number of times of service request;
RQTd is the number of times of service response.
24., according to schedule virtual resources device described in claim 21, is characterized in that:
Send time delay rate L d:
L d = Davg Dstd
Wherein:
Davg is average delivered time delay;
Dstd is standard delivery time delay.
CN201410058955.2A 2014-02-21 2014-02-21 Schedule virtual resources method and apparatus Active CN104866382B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410058955.2A CN104866382B (en) 2014-02-21 2014-02-21 Schedule virtual resources method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410058955.2A CN104866382B (en) 2014-02-21 2014-02-21 Schedule virtual resources method and apparatus

Publications (2)

Publication Number Publication Date
CN104866382A true CN104866382A (en) 2015-08-26
CN104866382B CN104866382B (en) 2019-02-22

Family

ID=53912230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410058955.2A Active CN104866382B (en) 2014-02-21 2014-02-21 Schedule virtual resources method and apparatus

Country Status (1)

Country Link
CN (1) CN104866382B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017041556A1 (en) * 2015-09-11 2017-03-16 中兴通讯股份有限公司 Virtual resource scheduling method
CN106874099A (en) * 2015-12-10 2017-06-20 中国电信股份有限公司 Load dispatching method, device and cloud computing system based on traffic handing capacity
CN109582452A (en) * 2018-11-27 2019-04-05 北京邮电大学 A kind of container dispatching method, dispatching device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040257985A1 (en) * 2003-06-18 2004-12-23 Akhil Sahai System and method of monitoring e-service Quality of Service at a transaction level
CN102143484A (en) * 2010-12-20 2011-08-03 华为技术有限公司 Method and device for processing resource allocation as well as network service system
CN102567072A (en) * 2010-12-20 2012-07-11 中国移动通信集团公司 Resource allocation method, resource allocation device and resource allocation system
US20120317283A1 (en) * 2011-03-30 2012-12-13 International Business Machines Corporation Proxy server, hierarchical network system, and distributed workload management method
CN103530185A (en) * 2012-07-02 2014-01-22 中兴通讯股份有限公司 Resource optimization method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040257985A1 (en) * 2003-06-18 2004-12-23 Akhil Sahai System and method of monitoring e-service Quality of Service at a transaction level
CN102143484A (en) * 2010-12-20 2011-08-03 华为技术有限公司 Method and device for processing resource allocation as well as network service system
CN102567072A (en) * 2010-12-20 2012-07-11 中国移动通信集团公司 Resource allocation method, resource allocation device and resource allocation system
US20120317283A1 (en) * 2011-03-30 2012-12-13 International Business Machines Corporation Proxy server, hierarchical network system, and distributed workload management method
CN103530185A (en) * 2012-07-02 2014-01-22 中兴通讯股份有限公司 Resource optimization method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017041556A1 (en) * 2015-09-11 2017-03-16 中兴通讯股份有限公司 Virtual resource scheduling method
CN106874099A (en) * 2015-12-10 2017-06-20 中国电信股份有限公司 Load dispatching method, device and cloud computing system based on traffic handing capacity
CN109582452A (en) * 2018-11-27 2019-04-05 北京邮电大学 A kind of container dispatching method, dispatching device and electronic equipment

Also Published As

Publication number Publication date
CN104866382B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN112162865B (en) Scheduling method and device of server and server
CN100473021C (en) System and method for autonomic system management through modulation of network controls
CN105242956A (en) Virtual function service chain deployment system and deployment method therefor
CN104580524A (en) Resource scaling method and cloud platform with same
CN103530185A (en) Resource optimization method and device
CN102724103A (en) Proxy server, hierarchical network system and distributed workload management method
CN104536804A (en) Virtual resource dispatching system for related task requests and dispatching and distributing method for related task requests
CN107291550A (en) A kind of Spark platform resources dynamic allocation method and system for iterated application
CN105049485B (en) A kind of Load-aware cloud computing system towards real time video processing
CN102196503A (en) Service quality assurance oriented cognitive network service migration method
CN112866132B (en) Dynamic load balancer and method for massive identification
CN104092620A (en) Method and device for achieving adjustment of network bandwidth
WO2017107456A1 (en) Method and apparatus for determining resources consumed by task
CN104331328A (en) Virtual resource scheduling method and virtual resource scheduling device
CN105119751A (en) Service evaluation and selection method based on environment real-time perceiving
CN103248622B (en) A kind of Online Video QoS guarantee method of automatic telescopic and system
CN106874099A (en) Load dispatching method, device and cloud computing system based on traffic handing capacity
CN104866382A (en) Virtual resource scheduling method and virtual resource scheduling device
CN103442087B (en) A kind of Web service system visit capacity based on response time trend analysis controls apparatus and method
Fu et al. Kalmia: A heterogeneous QoS-aware scheduling framework for DNN tasks on edge servers
WO2017114180A1 (en) Component logical threads quantity adjustment method and device
WO2021057981A1 (en) Cloud billing method and apparatus, cloud management platform and system, and storage medium
CN104811466A (en) Cloud media resource distribution method and device
CN104702521A (en) Load balance method and device
CN102904952B (en) Self-adapting system and method for efficiently processing input of mass data to database

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