CN107204870A - Resource expansion method and apparatus - Google Patents

Resource expansion method and apparatus Download PDF

Info

Publication number
CN107204870A
CN107204870A CN201611032921.1A CN201611032921A CN107204870A CN 107204870 A CN107204870 A CN 107204870A CN 201611032921 A CN201611032921 A CN 201611032921A CN 107204870 A CN107204870 A CN 107204870A
Authority
CN
China
Prior art keywords
server
resource
address
virtual
index
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
CN201611032921.1A
Other languages
Chinese (zh)
Other versions
CN107204870B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201611032921.1A priority Critical patent/CN107204870B/en
Publication of CN107204870A publication Critical patent/CN107204870A/en
Application granted granted Critical
Publication of CN107204870B publication Critical patent/CN107204870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing

Abstract

The invention discloses a kind of resource expansion method, methods described includes:The data on flows parameter of the Protocol IP address interconnected between the virtual network corresponding to SiteServer LBS is obtained, and obtains the integrated flow rate index of the virtual ip address;According to the data on flows parameter, after the preset time of interval, the performance index of the virtual ip address is calculated;The performance index and the integrated flow rate index are contrasted;If the performance index is less than the integrated flow rate index, increase the quantity of the dummy load balance module corresponding to the virtual ip address.The invention also discloses a kind of resource expansion device.The present invention is realized in SiteServer LBS, scheduling of resource is carried out according to the resource needed for each virtual ip address, the distribution of dummy load balance module is reasonably improved into the level of resources utilization in SiteServer LBS, it is ensured that the balance of scheduling of resource in different servers.

Description

Resource expansion method and apparatus
Technical field
The present invention relates to communication technical field, more particularly to a kind of resource expansion method and apparatus.
Background technology
Load balancing is built upon on existing network infrastructure, and it provides a kind of cheap effective transparent method to extend The bandwidth of the network equipment and server, increase handling capacity, Strengthens network data-handling capacity, the flexibility for improving network and available Property.
But in SiteServer LBS, for an independent virtual ip address, during load balancing, can with it is a certain Individual single Internet service is corresponding, i.e. the corresponding instant flow number for being this and servicing of the data on flows of virtual ip address According to.This data on flows can such as be come off duty, everybody starts to play heroic alliance according to time change, then at this moment with hero's connection The corresponding virtual ip address of alliance will sense the increase of data on flows.Now, close how the resource in SiteServer LBS Reason distributes to each virtual ip address, is the key factor for determining Consumer's Experience effect.
The content of the invention
It is a primary object of the present invention to provide a kind of resource expansion method and apparatus, it is intended to which how solution makes load balancing Resource reasonable distribution in system gives the technical problem of each virtual ip address.
To achieve the above object, a kind of resource expansion method that the present invention is provided, the resource expansion method includes:
The data on flows parameter of the Protocol IP address interconnected between the virtual network corresponding to SiteServer LBS is obtained, with And obtain the integrated flow rate index of the virtual ip address;
According to the data on flows parameter, after the preset time of interval, the performance index of the virtual ip address is calculated;
The performance index and the integrated flow rate index are contrasted;
If the performance index is less than the integrated flow rate index, increase the virtual negative corresponding to the virtual ip address Carry the quantity of balance module.
Preferably, if the performance index is less than the integrated flow rate index, the virtual ip address institute is increased After the step of quantity of corresponding dummy load balance module, in addition to:
Determine the dummy load balance module resource utilization corresponding to server in the SiteServer LBS;
Warning level according to where the resource utilization of the load balancing module determines the server.
Preferably, the early warning level where the resource utilization according to the load balancing module determines the server After other step, in addition to:
The resource utilization of the server is determined according to the warning level;
When the resource utilization of the server is less than predetermined threshold value, by the resource reclaim of the server to standby money In the pond of source;
When the resource utilization of the server is more than the predetermined threshold value, by the server in the standby resources pond Working condition is changed to from stand-by state.
Preferably, if the performance index is less than the integrated flow rate index, the virtual ip address institute is increased The step of quantity of corresponding dummy load balance module, includes:
Calculate the difference between the performance index and the integrated flow rate index;
The index of discharge and the difference according to corresponding to a dummy load balance module obtain result of calculation;
The quantity of dummy load balance module according to corresponding to the result of calculation increases the virtual ip address.
Preferably, it is described the step of the performance index and the integrated flow rate index are contrasted after, in addition to:
If the performance index is more than the integrated flow rate index, the virtual negative corresponding to the virtual ip address is reduced Carry the quantity of balance module.
In addition, to achieve the above object, the present invention also provides a kind of resource expansion device, the resource expansion device bag Include:
Acquisition module, the stream for obtaining the Protocol IP address interconnected between the virtual network corresponding to SiteServer LBS Data parameters are measured, and obtain the integrated flow rate index of the virtual ip address;
Computing module, for according to the data on flows parameter, after the preset time of interval, calculating the virtual ip address Performance index;
Contrast module, for the performance index and the integrated flow rate index to be contrasted;
Increase module, if being less than the integrated flow rate index for the performance index, increase the virtual ip address The quantity of corresponding dummy load balance module.
Preferably, the resource expansion device also includes:
Determining module, for determining the dummy load balance module resource in the SiteServer LBS corresponding to server Utilization rate;Warning level according to where the resource utilization of the load balancing module determines the server.
Preferably, the determining module is additionally operable to determine the resource utilization of the server according to the warning level;
The resource expansion device also includes:
Recycling module, for when the resource utilization of the server is less than predetermined threshold value, by the money of the server Source is recycled in standby resources pond;
Module is changed, for when the resource utilization of the server is more than the predetermined threshold value, by the standby money Server in the pond of source is changed to working condition from stand-by state.
Preferably, the increase module includes:
Computing unit, if for the performance index be less than the integrated flow rate index, calculate the performance index and Difference between the integrated flow rate index;The index of discharge and the difference according to corresponding to a dummy load balance module Obtain result of calculation;
Adding unit, for the dummy load equilibrium model according to corresponding to the result of calculation increase virtual ip address The quantity of block.
Preferably, the resource expansion device also includes reducing module, if being more than the synthesis for the performance index The index of discharge, then reduce the quantity of the dummy load balance module corresponding to the virtual ip address.
Data on flows parameter and integrated flow rate data of the invention by the virtual ip address in SiteServer LBS, It is less than the integrated flow rate index in the performance index, increases the dummy load balance module corresponding to the virtual ip address Quantity.Realize in SiteServer LBS, carry out scheduling of resource according to the resource needed for each virtual ip address, reasonably By the distribution of dummy load balance module in different servers, the level of resources utilization in SiteServer LBS is improved, it is ensured that The balance of scheduling of resource.
Brief description of the drawings
Fig. 1 is the Organization Chart of resource expansion of the present invention;
Fig. 2 is the schematic flow sheet of the first embodiment of resource expansion method of the present invention;
Fig. 3 is the schematic flow sheet of the second embodiment of resource expansion method of the present invention;
Fig. 4 is the schematic flow sheet of the 3rd embodiment of resource expansion method of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the first embodiment of resource expansion device of the present invention;
Fig. 6 is the high-level schematic functional block diagram of the second embodiment of resource expansion device of the present invention;
Fig. 7 is the high-level schematic functional block diagram of the 3rd embodiment of resource expansion device of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of resource expansion method.
Reference picture 1, Fig. 1 is the Organization Chart of resource expansion of the present invention.
As shown in Figure 1, the flow for the client sent from Internet by interchanger, it is necessary to enter LVS (Linux Virtual Server, the load balancing module that Linux increases income) server cluster.The interchanger and the LVS There is ECMP (Equal Cost Multiple path, equal-cost route mechanism) between server, the ECMP can be by difference The flow that client is sent is assigned to by load-balancing algorithm on the different LVS servers.
The LVS servers are received after flow, and vLB (Virtual are forwarded the packet to by way of LVS is forwarded Load Balancing, dummy load is balanced) cluster.(Linux Container, lightweight is virtual with LXC for the vLB modules Change technology) mode operate on physical server.The mode of the LVS forwardings includes NAT (Network Address Translation, network address translation), the mode such as Tunnel.
The LXC is a kind of virtualization technology of more light weight, can lift vLB modules compared with traditional virtual machine Extended deployment efficiency.Due to host shared internal nucleus, forward efficiency can be also improved to a certain extent.
The vLB modules provide 7 layers of load-balancing function, pass through http reverse proxy's (reversed proxy server) Mode forward the message to rear end real server (runtime server end application program, for client provide service cloud master Machine).
Reference picture 2, Fig. 2 is the schematic flow sheet of resource expansion method first embodiment of the present invention.
In the present embodiment, the resource expansion method includes:
Step S10, obtains the flow number of the Protocol IP address interconnected between the virtual network corresponding to SiteServer LBS According to parameter, and obtain the integrated flow rate index of the virtual ip address;
Step S20, according to the data on flows parameter, after the preset time of interval, calculates the property of the virtual ip address Can index;
The data on flows parameter of the virtual ip address corresponding to SiteServer LBS is obtained, and with obtaining the virtual IP address The integrated flow rate index of location.Wherein, the data on flows parameter of the virtual ip address includes CoPS (Connection Per Second) and CuPS (Concurrency Per Second), that the CoPS is represented is the user per second for newly increasing connection Number, i.e., newly-built performance;What the CuPS was represented is the user's number per second for keeping connecting, i.e. concurrency performance.It should be noted that Because the newly-built performance and concurrency performance of the dummy load balance module have certain inversely prroportional relationship, i.e., newly-built performance is too Gao Shi, influences whether maximum concurrent performance.Therefore need by specific formula Index=function (CoPS, CuPS) Calculate the performance index of the virtual ip address.Index=function (CoPS, the CuPS) formula are according to specific stream Measure model and set, such as work as newly-built performance and concurrency performance has a kind of relation of elliptic curve, Index=function (CoPS, CuPS)=a (CoPS) * (CoPS)+b (CuPS) * (CuPS).It is understood that the newly-built performance and it is described simultaneously Volatility can be other function models, can be by the correctness of function model described in logistic regression proof of algorithm.
It should be noted that during the performance index of the virtual ip address is calculated, can be when interval be default Between collect CoPS and CuPS in the LVS clusters after section, i.e., after the preset time of interval, calculate the property of the virtual ip address Energy index, in order to improve the correctness for the performance index for calculating the obtained virtual ip address.
Step S30, the performance index and the integrated flow rate index are contrasted;
Step S40, if the performance index is less than the integrated flow rate index, increases corresponding to the virtual ip address Dummy load balance module quantity.
Further, the resource expansion method also includes:If the performance index is more than the integrated flow rate index, Reduce the quantity of the dummy load balance module corresponding to the virtual ip address.
When the performance index and integrated flow rate index for obtaining the virtual ip address, by the performance of the virtual ip address Index and integrated flow rate index are contrasted.If the performance index is less than the integrated flow rate index, increase described virtual The quantity of dummy load balance module corresponding to IP address.If the performance index is more than the integrated flow rate index, subtract The quantity of dummy load balance module corresponding to few virtual ip address.
Further, the step S40 includes:
Step a, if the performance index is less than the integrated flow rate index, calculates the performance index and the synthesis Difference between the index of discharge;
Step b, the index of discharge and the difference according to corresponding to a dummy load balance module obtain result of calculation;
Step c, the number of the dummy load balance module according to corresponding to the result of calculation increases the virtual ip address Amount.
When the performance index is less than the integrated flow rate index, calculates the performance index and the integrated flow rate refers to Difference between number.It should be noted that the difference between the performance index and the integrated flow rate index is the performance Index and the integrated flow rate index subtract each other the absolute value of the value of gained.When obtaining the performance index and the integrated flow rate refers to During difference between number, by the index of discharge corresponding to the difference divided by a load balancing module, result of calculation is obtained, institute State the quantity that result of calculation is increased dummy load balance module required for the virtual ip address.Reduce the virtual IP address The computational methods of the quantity of dummy load balance module corresponding to address are with increasing the dummy load corresponding to the IP address The computational methods of the quantity of balance module are similar, will not be repeated here.
Data on flows parameter and integrated flow rate number that the present embodiment passes through the virtual ip address in SiteServer LBS According in the performance index less than the integrated flow rate index, the dummy load increased corresponding to the virtual ip address is balanced The quantity of module.Realize in SiteServer LBS, scheduling of resource is carried out according to the resource needed for each virtual ip address, close The distribution of dummy load balance module in different servers, is improved the level of resources utilization in SiteServer LBS by reason ground, It ensure that the balance of scheduling of resource.
Reference picture 3, Fig. 3 is the schematic flow sheet of resource expansion method second embodiment of the present invention, based on resource of the present invention The first embodiment of extended method proposes the second embodiment of the present invention.
In the present embodiment, the resource expansion method also includes:
Step S50, determines the dummy load balance module utilization of resources corresponding to server in the SiteServer LBS Rate;
Step S60, the warning level according to where the resource utilization of the load balancing module determines the server.
When it is determined that virtual ip address needs the quantity of increased dummy load balance module, the load balancing system is determined The number of dummy load balance module in system corresponding to server, and each dummy load balance module the utilization of resources Rate, the warning level according to where the resource utilization of the load balancing module determines the server.
It should be noted that the warning level represents the size of the resource utilization of the server.Warning level Number can be set as desired, and such as could be arranged to three warning levels, respectively the first warning level, the second early warning level Not with the 3rd warning level.When the server is in the first warning level, the resource utilization of the server is less than 60%;When the server is in the second warning level, the resource utilization of the server is 60%~80%;When described When server is in three warning levels, the resource utilization of the server is more than 80%.
It is understood that when needing the resource of distribution server, it is preferentially pre- in first according to polling algorithm distribution The server resource of alert rank.The acquiescence warning level of the server is the first warning level.If can be with a server Dispose the dummy load balance module that N number of utilization rate is a, the dummy load balance module that M utilization rate is b, then when the clothes When the dummy load balance module that utilization rate in device of being engaged in is a is more than N, the warning level of the server is set to the second early warning Rank, represents that the server resource lightweight lacks;When utilization rate is big for b dummy load balance module in the server When M, the warning level of the server is set to the 3rd warning level, represents that the server resource heavyweight lacks. Wherein, what a and b were represented is a value range, and a is less than b.
It should be noted that in the present embodiment, the server is physical server, not including LVS servers.
The present embodiment is pre- where by determining the server according to the quantity of dummy load balance module in server Alert rank, so that it is determined that in server dummy load balance module resource utilization, realize effective utilization of resource.
Reference picture 4, Fig. 4 is the schematic flow sheet of resource expansion method 3rd embodiment of the present invention, based on resource of the present invention The second embodiment of extended method proposes the third embodiment of the present invention.
In the present embodiment, the resource expansion method also includes:
Step S70, the resource utilization of the server is determined according to the warning level;
Step S80, when the resource utilization of the server is less than predetermined threshold value, by the resource reclaim of the server Into standby resources pond;
Step S90, when the resource utilization of the server is more than the predetermined threshold value, by the standby resources pond Server be changed to working condition from stand-by state.
According to the resource utilization of the dummy load balance module in the server each warning level, determine described negative Carry the resource utilization of each server in equalizing system.When the dummy load in the 3rd warning level is equal in the server When the number for the module that weighs is more, show that the resource utilization of the server is higher;When in the service in the first early warning level When the quantity of other dummy load balance module is more, show that the resource utilization of the server is relatively low.
When it is determined that the server resource utilization after, judge the server resource utilization whether be more than it is pre- If threshold value.Judge the server resource utilization whether be more than predetermined threshold value detailed process be:Obtain default service The baseline efficiency value X of device, and default Floating efficiency value Y.Calculate the base station efficiency value X and Floating efficiency value Y it Between difference, the absolute value of the difference between the base station efficiency value X and the Floating efficiency value Y is obtained, by the absolute value The utilization of resources with the server is contrasted.It is understood that the predetermined threshold value be the base station efficiency value X and The absolute value of difference between the Floating efficiency value Y.
When the resource utilization of the server is less than the difference between the base station efficiency value X and the Floating efficiency value Y During the absolute value of value, determine that the resource utilization is less than the dummy load in the first warning level in the absolute value balanced The minimum server of module number, preferentially by the server of the dummy load balance module minimum number in the first warning level Resource reclaim into standby resources pond.When the resource utilization of the server is more than the base station efficiency value X and described floating During the absolute value of the difference between efficiency of movement value Y, then the server in the standby resources pond is changed to work from stand-by state Make state, server migration that will be in the standby resources pond is into working resource pond.Meanwhile, can also be by the working resource The partial virtual load balancing module in the 3rd warning level, which is moved to, in server in pond just moves to the work money In the server in source pond.When the server resource utilization be equal to the base station efficiency value X and Floating efficiency value Y it Between difference absolute value when, operated without scheduling of resource.
It is possible to further preset interval time section after by between the base station efficiency value X and the Floating efficiency value Y The resource utilization of absolute value and the server of difference contrasted.It should be noted that the preset interval time Set as the case may be for user, still, the performance that the preset interval time is more than the calculating virtual ip address refers to Several time, i.e., described preset interval time is more than the prefixed time interval.
The present embodiment is equal from the load by calculating the resource utilization of each server in the SiteServer LBS The angle of weighing apparatus server carries out scheduling of resource, and effective profit of the resource of the SiteServer LBS is realized from the angle of server With.
The present invention further provides a kind of resource expansion device 100.
Reference picture 5, Fig. 5 is the high-level schematic functional block diagram of the first embodiment of resource expansion device 100 of the present invention.
It is emphasized that it will be apparent to those skilled in the art that module map shown in Fig. 5 is only a preferred embodiment Exemplary plot, the module of resource expansion device 100 of the those skilled in the art shown in Fig. 5 can carry out new mould easily The supplement of block;The title of each module is self-defined title, is only used for aiding in each program work(for understanding the resource expansion device 100 Energy block, is not used in restriction technical scheme, the core of technical solution of the present invention is that the module of each self-defined title is wanted The function of reaching.
In the present embodiment, the resource expansion device 100 includes:
Acquisition module 10, for obtaining the Protocol IP address interconnected between the virtual network corresponding to SiteServer LBS Data on flows parameter, and obtain the integrated flow rate index of the virtual ip address;
Computing module 20, for according to the data on flows parameter, after the preset time of interval, with calculating the virtual IP address The performance index of location;
The data on flows parameter of the virtual ip address corresponding to SiteServer LBS is obtained, and with obtaining the virtual IP address The integrated flow rate index of location.Wherein, the data on flows parameter of the virtual ip address includes CoPS (Connection Per Second) and CuPS (Concurrency Per Second), that the CoPS is represented is the user per second for newly increasing connection Number, i.e., newly-built performance;What the CuPS was represented is the user's number per second for keeping connecting, i.e. concurrency performance.It should be noted that Because the newly-built performance and concurrency performance of the dummy load balance module have certain inversely prroportional relationship, i.e., newly-built performance is too Gao Shi, influences whether maximum concurrent performance.Therefore need by specific formula Index=function (CoPS, CuPS) Calculate the performance index of the virtual ip address.Index=function (CoPS, the CuPS) formula are according to specific stream Measure model and set, such as work as newly-built performance and concurrency performance has a kind of relation of elliptic curve, Index=function (CoPS, CuPS)=a (CoPS) * (CoPS)+b (CuPS) * (CuPS).It is understood that the newly-built performance and it is described simultaneously Volatility can be other function models, can be by the correctness of function model described in logistic regression proof of algorithm.
It should be noted that during the performance index of the virtual ip address is calculated, can be when interval be default Between collect CoPS and CuPS in the LVS clusters after section, i.e., after the preset time of interval, calculate the property of the virtual ip address Energy index, in order to improve the correctness for the performance index for calculating the obtained virtual ip address.
Contrast module 30, for the performance index and the integrated flow rate index to be contrasted;
Increase module 40, if being less than the integrated flow rate index for the performance index, with increasing the virtual IP address The quantity of dummy load balance module corresponding to location.
The resource expansion device 100 also includes reducing module, if being more than the integrated flow rate for the performance index Index, then reduce the quantity of the dummy load balance module corresponding to the virtual ip address.
When the performance index and integrated flow rate index for obtaining the virtual ip address, by the performance of the virtual ip address Index and integrated flow rate index are contrasted.If the performance index is less than the integrated flow rate index, increase described virtual The quantity of dummy load balance module corresponding to IP address.If the performance index is more than the integrated flow rate index, subtract The quantity of dummy load balance module corresponding to few virtual ip address.
The increase module includes:
Computing unit, if for the performance index be less than the integrated flow rate index, calculate the performance index and Difference between the integrated flow rate index;The index of discharge and the difference according to corresponding to a dummy load balance module Obtain result of calculation;
Adding unit, for the dummy load equilibrium model according to corresponding to the result of calculation increase virtual ip address The quantity of block.
When the performance index is less than the integrated flow rate index, calculates the performance index and the integrated flow rate refers to Difference between number.It should be noted that the difference between the performance index and the integrated flow rate index is the performance Index and the integrated flow rate index subtract each other the absolute value of the value of gained.When obtaining the performance index and the integrated flow rate refers to During difference between number, by the index of discharge corresponding to the difference divided by a load balancing module, result of calculation is obtained, institute State the quantity that result of calculation is increased dummy load balance module required for the virtual ip address.Reduce the virtual IP address The computational methods of the quantity of dummy load balance module corresponding to address are with increasing the dummy load corresponding to the IP address The computational methods of the quantity of balance module are similar, will not be repeated here.
Data on flows parameter and integrated flow rate number that the present embodiment passes through the virtual ip address in SiteServer LBS According in the performance index less than the integrated flow rate index, the dummy load increased corresponding to the virtual ip address is balanced The quantity of module.Realize in SiteServer LBS, scheduling of resource is carried out according to the resource needed for each virtual ip address, close The distribution of dummy load balance module in different servers, is improved the level of resources utilization in SiteServer LBS by reason ground, It ensure that the balance of scheduling of resource.
Reference picture 6, Fig. 6 is the high-level schematic functional block diagram of the second embodiment of resource expansion device 100 of the present invention, based on this hair The first embodiment of bright resource expansion device 100 proposes the second embodiment of the present invention.
In the present embodiment, the resource expansion device 100 also includes:
Determining module 50, for determining the dummy load balance module money in the SiteServer LBS corresponding to server Source utilization rate;Warning level according to where the resource utilization of the load balancing module determines the server.
When it is determined that virtual ip address needs the quantity of increased dummy load balance module, the load balancing system is determined The number of dummy load balance module in system corresponding to server, and each dummy load balance module the utilization of resources Rate, the warning level according to where the resource utilization of the load balancing module determines the server.
It should be noted that the warning level represents the size of the resource utilization of the server.Warning level Number can be set as desired, and such as could be arranged to three warning levels, respectively the first warning level, the second early warning level Not with the 3rd warning level.When the server is in the first warning level, the resource utilization of the server is less than 60%;When the server is in the second warning level, the resource utilization of the server is 60%~80%;When described When server is in three warning levels, the resource utilization of the server is more than 80%.
It is understood that when needing the resource of distribution server, it is preferentially pre- in first according to polling algorithm distribution The server resource of alert rank.The acquiescence warning level of the server is the first warning level.If can be with a server Dispose the dummy load balance module that N number of utilization rate is a, the dummy load balance module that M utilization rate is b, then when the clothes When the dummy load balance module that utilization rate in device of being engaged in is a is more than N, the warning level of the server is set to the second early warning Rank, represents that the server resource lightweight lacks;When utilization rate is big for b dummy load balance module in the server When M, the warning level of the server is set to the 3rd warning level, represents that the server resource heavyweight lacks. Wherein, what a and b were represented is a value range, and a is less than b.
It should be noted that in the present embodiment, the server is physical server, not including LVS servers.
The present embodiment is pre- where by determining the server according to the quantity of dummy load balance module in server Alert rank, so that it is determined that in server dummy load balance module resource utilization, realize effective utilization of resource.
Reference picture 7, Fig. 7 is the high-level schematic functional block diagram of the 3rd embodiment of resource expansion device 100 of the present invention, based on this hair The second embodiment of bright resource expansion device 100 proposes the third embodiment of the present invention.
In the present embodiment, the determining module 50 is additionally operable to determine the resource of the server according to the warning level Utilization rate;
The resource expansion device 100 also includes:
Recycling module 60, for when the resource utilization of the server is less than predetermined threshold value, by the server Resource reclaim is into standby resources pond;
Change module 70, for when the server resource utilization be more than the predetermined threshold value when, will be described standby Server in resource pool is changed to working condition from stand-by state.
According to the resource utilization of the dummy load balance module in the server each warning level, determine described negative Carry the resource utilization of each server in equalizing system.When the dummy load in the 3rd warning level is equal in the server When the number for the module that weighs is more, show that the resource utilization of the server is higher;When in the service in the first early warning level When the quantity of other dummy load balance module is more, show that the resource utilization of the server is relatively low.
When it is determined that the server resource utilization after, judge the server resource utilization whether be more than it is pre- If threshold value.Judge the server resource utilization whether be more than predetermined threshold value detailed process be:Obtain default service The baseline efficiency value X of device, and default Floating efficiency value Y.Calculate the base station efficiency value X and Floating efficiency value Y it Between difference, the absolute value of the difference between the base station efficiency value X and the Floating efficiency value Y is obtained, by the absolute value The utilization of resources with the server is contrasted.It is understood that the predetermined threshold value be the base station efficiency value X and The absolute value of difference between the Floating efficiency value Y.
When the resource utilization of the server is less than the difference between the base station efficiency value X and the Floating efficiency value Y During the absolute value of value, determine that the resource utilization is less than the dummy load in the first warning level in the absolute value balanced The minimum server of module number, preferentially by the server of the dummy load balance module minimum number in the first warning level Resource reclaim into standby resources pond.When the resource utilization of the server is more than the base station efficiency value X and described floating During the absolute value of the difference between efficiency of movement value Y, then the server in the standby resources pond is changed to work from stand-by state Make state, server migration that will be in the standby resources pond is into working resource pond.Meanwhile, can also be by the working resource The partial virtual load balancing module in the 3rd warning level, which is moved to, in server in pond just moves to the work money In the server in source pond.When the server resource utilization be equal to the base station efficiency value X and Floating efficiency value Y it Between difference absolute value when, operated without scheduling of resource.
It is possible to further preset interval time section after by between the base station efficiency value X and the Floating efficiency value Y The resource utilization of absolute value and the server of difference contrasted.It should be noted that the preset interval time Set as the case may be for user, still, the performance that the preset interval time is more than the calculating virtual ip address refers to Several time, i.e., described preset interval time is more than the prefixed time interval.
The present embodiment is equal from the load by calculating the resource utilization of each server in the SiteServer LBS The angle of weighing apparatus server carries out scheduling of resource, and effective profit of the resource of the SiteServer LBS is realized from the angle of server With.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.Embodiment party more than The description of formula, it is required general that those skilled in the art can be understood that above-described embodiment method can add by software The mode of hardware platform is realized, naturally it is also possible to by hardware, but the former is more preferably embodiment in many cases.It is based on Such to understand, the part that technical scheme substantially contributes to prior art in other words can be with software product Form embody, the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD), including Some instructions are to cause a station terminal equipment (can be mobile phone, computer, server, or network equipment etc.) to perform this hair Method described in each bright embodiment.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of resource expansion method, it is characterised in that the resource expansion method includes:
The data on flows parameter of the Protocol IP address interconnected between the virtual network corresponding to SiteServer LBS is obtained, and is obtained Take the integrated flow rate index of the virtual ip address;
According to the data on flows parameter, after the preset time of interval, the performance index of the virtual ip address is calculated;
The performance index and the integrated flow rate index are contrasted;
If the performance index is less than the integrated flow rate index, the dummy load increased corresponding to the virtual ip address is equal The quantity for the module that weighs.
2. resource expansion method as claimed in claim 1, it is characterised in that if the performance index is less than the synthesis After the index of discharge, then the step of increasing the quantity of dummy load balance module corresponding to the virtual ip address, in addition to:
Determine the dummy load balance module resource utilization corresponding to server in the SiteServer LBS;
Warning level according to where the resource utilization of the load balancing module determines the server.
3. resource expansion method as claimed in claim 2, it is characterised in that the resource according to the load balancing module After the step of utilization rate determines the warning level where the server, in addition to:
The resource utilization of the server is determined according to the warning level;
When the resource utilization of the server is less than predetermined threshold value, by the resource reclaim of the server to standby resources pond In;
When the resource utilization of the server is more than the predetermined threshold value, by the server in the standby resources pond from standby Working condition is changed to state.
4. resource expansion method as claimed in claim 1, it is characterised in that if the performance index is less than the synthesis The step of index of discharge, then quantity for increasing the dummy load balance module corresponding to the virtual ip address, includes:
Calculate the difference between the performance index and the integrated flow rate index;
The index of discharge and the difference according to corresponding to a dummy load balance module obtain result of calculation;
The quantity of dummy load balance module according to corresponding to the result of calculation increases the virtual ip address.
5. the resource expansion method as described in any one of Claims 1-4, it is characterised in that it is described by the performance index and After the step of integrated flow rate index is contrasted, in addition to:
If the performance index is more than the integrated flow rate index, the dummy load reduced corresponding to the virtual ip address is equal The quantity for the module that weighs.
6. a kind of resource expansion device, it is characterised in that the resource expansion device includes:
Acquisition module, the flow number for obtaining the Protocol IP address interconnected between the virtual network corresponding to SiteServer LBS According to parameter, and obtain the integrated flow rate index of the virtual ip address;
Computing module, for according to the data on flows parameter, after the preset time of interval, calculating the property of the virtual ip address Can index;
Contrast module, for the performance index and the integrated flow rate index to be contrasted;
Increase module, if being less than the integrated flow rate index for the performance index, increase the virtual ip address institute right The quantity for the dummy load balance module answered.
7. resource expansion device as claimed in claim 6, it is characterised in that the resource expansion device also includes:
Determining module, for determining the dummy load balance module utilization of resources in the SiteServer LBS corresponding to server Rate;Warning level according to where the resource utilization of the load balancing module determines the server.
8. resource expansion device as claimed in claim 7, it is characterised in that the determining module is additionally operable to according to the early warning Rank determines the resource utilization of the server;
The resource expansion device also includes:
Recycling module, for when the resource utilization of the server is less than predetermined threshold value, the resource of the server to be returned Receive into standby resources pond;
Module is changed, for when the resource utilization of the server is more than the predetermined threshold value, by the standby resources pond In server be changed to working condition from stand-by state.
9. resource expansion device as claimed in claim 6, it is characterised in that the increase module includes:
Computing unit, if being less than the integrated flow rate index for the performance index, calculates the performance index and described Difference between integrated flow rate index;The index of discharge and the difference according to corresponding to a dummy load balance module are obtained Result of calculation;
Adding unit, for the dummy load balance module according to corresponding to the result of calculation increase virtual ip address Quantity.
10. the resource expansion device as described in any one of claim 6 to 9, it is characterised in that the resource expansion device is also wrapped Reduction module is included, if being more than the integrated flow rate index for the performance index, is reduced corresponding to the virtual ip address Dummy load balance module quantity.
CN201611032921.1A 2016-11-14 2016-11-14 Resource expansion method and apparatus Active CN107204870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611032921.1A CN107204870B (en) 2016-11-14 2016-11-14 Resource expansion method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611032921.1A CN107204870B (en) 2016-11-14 2016-11-14 Resource expansion method and apparatus

Publications (2)

Publication Number Publication Date
CN107204870A true CN107204870A (en) 2017-09-26
CN107204870B CN107204870B (en) 2018-07-31

Family

ID=59904691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611032921.1A Active CN107204870B (en) 2016-11-14 2016-11-14 Resource expansion method and apparatus

Country Status (1)

Country Link
CN (1) CN107204870B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116166428A (en) * 2023-01-06 2023-05-26 菲尼思信息技术(苏州)有限公司 High concurrency high flow system load resource processing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188277A (en) * 2011-12-27 2013-07-03 中国电信股份有限公司 Load energy consumption management system, method and server
CN103227754A (en) * 2013-04-16 2013-07-31 浪潮(北京)电子信息产业有限公司 Dynamic load balancing method of high-availability cluster system, and node equipment
US20140201821A1 (en) * 2012-07-18 2014-07-17 Sypris Electronics, Llc Resilient Device Authentication System
CN104811398A (en) * 2015-04-17 2015-07-29 北京奇艺世纪科技有限公司 Method and device for load balancing
CN105007337A (en) * 2015-08-20 2015-10-28 浪潮(北京)电子信息产业有限公司 Cluster system load balancing method and system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188277A (en) * 2011-12-27 2013-07-03 中国电信股份有限公司 Load energy consumption management system, method and server
US20140201821A1 (en) * 2012-07-18 2014-07-17 Sypris Electronics, Llc Resilient Device Authentication System
CN103227754A (en) * 2013-04-16 2013-07-31 浪潮(北京)电子信息产业有限公司 Dynamic load balancing method of high-availability cluster system, and node equipment
CN104811398A (en) * 2015-04-17 2015-07-29 北京奇艺世纪科技有限公司 Method and device for load balancing
CN105007337A (en) * 2015-08-20 2015-10-28 浪潮(北京)电子信息产业有限公司 Cluster system load balancing method and system thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116166428A (en) * 2023-01-06 2023-05-26 菲尼思信息技术(苏州)有限公司 High concurrency high flow system load resource processing method
CN116166428B (en) * 2023-01-06 2023-12-12 菲尼思信息技术(苏州)有限公司 High concurrency high flow system load resource processing method

Also Published As

Publication number Publication date
CN107204870B (en) 2018-07-31

Similar Documents

Publication Publication Date Title
CN111400001B (en) Online computing task unloading scheduling method facing edge computing environment
CN102724277B (en) The method of live migration of virtual machine and deployment, server and group system
CN109426549A (en) Distribution is interconnected for the accelerator of virtual environment
CN107613107A (en) Resource allocation method and related product
CN106101232A (en) Load-balancing method and device
CN105183543B (en) A kind of gunz based on mobile social networking calculates online method for allocating tasks
CN106534318A (en) OpenStack cloud platform resource dynamic scheduling system and method based on flow affinity
CN105308941A (en) Method and apparatus for resource configuration
CN104239431B (en) Three-dimension GIS model display methods and device
CN105491150A (en) Load balance processing method based on time sequence and system
CN107612970B (en) Large graph caching method, large graph display method and large graph display system based on power grid topology analysis
WO2017165003A1 (en) Control device for estimation of power consumption and energy efficiency of application containers
CN105144109A (en) Distributed data center technology
CN108063784A (en) The methods, devices and systems of application cluster resource allocation under a kind of cloud environment
CN107220108A (en) A kind of method and system for realizing cloud data center load balancing
CN105210324B (en) Strategy and charging rule functions virtual method, apparatus and system
CN105897887A (en) Clouding computing-based remote sensing satellite big data processing system and method
CN108920274B (en) Performance optimization and device for image processing server side
CN107196848A (en) Information push method and device
CN106502761B (en) Virtual machine deployment method capable of efficiently utilizing resources
CN107204870B (en) Resource expansion method and apparatus
CN106549827A (en) The detection method and device of network state
CN109327340A (en) A kind of mobile wireless network virtual net mapping method based on dynamic migration
CN102929693A (en) Performance evaluation method and device for servers of whole equipment cabinet
CN103905473B (en) Cloud computing system, SiteServer LBS, load-balancing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1237143

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant