CN106998340A - A kind of load-balancing method and device of board resource - Google Patents
A kind of load-balancing method and device of board resource Download PDFInfo
- Publication number
- CN106998340A CN106998340A CN201610046025.4A CN201610046025A CN106998340A CN 106998340 A CN106998340 A CN 106998340A CN 201610046025 A CN201610046025 A CN 201610046025A CN 106998340 A CN106998340 A CN 106998340A
- Authority
- CN
- China
- Prior art keywords
- board
- weight
- load condition
- current
- service 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multi Processors (AREA)
Abstract
The present invention relates to the communications field, the more particularly to a kind of load-balancing method and device of board resource.To for veneer shortage of resources problem, by way of load balancing, making full use of for board resource is realized.This method is:Network element device is when receiving service request, the real-time load condition of each board is determined according to the current weight of each board, and service request is distributed to present load most light board handled, wherein, the current weight of a board is to calculate what is obtained according to the present weight of at least one corresponding load condition parameter of the board.So, due to consideration that Real Time Effect degree of each load performance parameter to board performance, therefore, it can select the optimal board of current performance rapidly, processing speed and the response time of service are improved.
Description
Technical field
The present invention relates to the communications field, the more particularly to a kind of load-balancing method and device of board resource.
Background technology
With the raising of network traffic, the visit capacity and data traffic of each core of network are also quick
Increase, accordingly, the calculating intensity of the board of each in equipment also accordingly increases so that single board gradually without
Method undertakes growing business.
In order to solve the above problems, go to carry out substantial amounts of board HardwareUpgring if abandoning existing equipment, can make
Into a large amount of wastes of existing resource, and if the lifting of portfolio again and again is faced, using hard
The mode of part upgrading is solved, and unnecessary great number can be caused to put into, and superior equipment can not again for performance
All the time the increased requirement of portfolio is met, therefore, load-balancing mechanism is particularly important.
Load balancing has both sides implication.First, substantial amounts of concurrently access or data traffic share multiple
Handled respectively on board, reduce user's wait-for-response duration;Secondly, the single heavy duty computing of board,
Weigh and do parallel processing onto multiple boards, return to user, such system processing power is largely increased.
The quality of load balancing and its complexity realized have two key factors, first, load it is equal
Account method, second, detection mode and ability to network system situation.Current scheme would generally select with
Lower two ways.
First way is:Poll is balanced.
Specially:Assuming that the process performance of all boards is all identical, service request is assigned in turn in order
On each board.
First way is realized simply, but not in the inconsistent situation of each board performance, and when outside
Service request arrival time difference than it is larger when, the laod unbalance between board can be caused.
The second way is:WRR is balanced.
Specially:According to the actual disposition situation of different boards, a power is specified to each board respectively
Value, weights characterize the process performance of board using an integer representation.When user sends service request,
Preferentially service request is distributed to the board of maximum weight, the big board of weights is endowed more business please
Ask, after a period of time, the service request number of the processing of each board is intended to the ratio of respective weights.
The second way considers the difference of each board performance, but does not account for the negative in real time of each board
Load situation, therefore, when service request arrival time difference than it is larger when, can still cause negative between board
Carry unbalanced.
The content of the invention
The embodiment of the present invention provides a kind of load-balancing method and device of board resource, to be provided for veneer
Source shortage problem, by way of load balancing, realizes making full use of for board resource.
Concrete technical scheme provided in an embodiment of the present invention is as follows:
A kind of load-balancing method of board resource, including:
Network element device receives service request;
Network element device determines the current weight of each local board respectively, wherein, the current power of a board
Value characterizes the current load condition of one board, and the current weight is according to one board pair
What the present weight at least one load condition parameter answered was obtained;
Network element device chooses a board from the minimum N number of board of current weight, and by the service request
Distribution to the board chosen is handled.
Preferably, network element device determines the current weight for each board being locally configured respectively, including:
Before service request is received, network element device calculates the current weight of each local board respectively,
And be periodically updated, and after service request is received, read and newest be directed to each plate respectively
The current weight that calorimeter is calculated;Or,
After service request is received, network element device calculates the current power of each local board respectively in real time
Value.
Preferably, network element device calculates the current weight of any one local board, including:
Network element device calculates the current of each corresponding load condition parameter of any one described board respectively
The difference of value and the history value specified;
Network element device according to each corresponding difference of load condition parameter, obtains each load condition respectively
The weight adjusting step of parameter;
Network element device is based on the corresponding weight initial value of each load condition parameter and weight scheduling step-length, meter
Calculate the present weight for obtaining each load condition parameter;
The present weight of each load condition parameter is added by network element device, obtains any one described board
Current weight.
Preferably, the history value of a load condition parameter, to be set for one load condition parameter
The initial default value put, or, for one load condition parameter note when being last calculating weight
The value of record.
Preferably, the corresponding load condition parameter of a board includes following one kind or any combination:
CPU usage, wherein, CPU usage is higher, and corresponding weight is higher;
Physical memory occupancy, wherein, physical memory occupancy is higher, and corresponding weight is higher;
Number of cells is carried, wherein, carrying number of cells is more, and corresponding weight is higher;
Whether it is scheduling board, is not scheduling board, then corresponding weight is higher.
Preferably, network element device chooses a board from the minimum N number of board of current weight, and will be described
Service request is distributed to the board of selection and handled, including:
If there is scheduling board in the minimum N number of board of current weight, the scheduling board is chosen, and will
The service request is distributed to the dispatching board card and handled;
If scheduling board is not present in the minimum N number of board of current weight, from the N that current weight is minimum
A board is randomly selected in individual board, or, a minimum board of current weight is chosen, and will be described
Service request is distributed to a board of selection and handled.
Preferably, distributing after the service request finishes, further comprise:
The local corresponding current weight of each board is updated.
A kind of load balancing apparatus of board resource, including:
Communication unit, for receiving service request;
Processing unit, the current weight for determining each local board respectively, wherein, board
Current weight characterizes the current load condition of one board, and the current weight is according to one
What the present weight of the corresponding at least one load condition parameter of board was obtained;
Allocation unit, for choosing a board from the minimum N number of board of current weight, and by the industry
Business request distribution to the board chosen is handled.
Preferably, during the current weight for each board for determining to be locally configured respectively, the processing unit is used
In:
Before service request is received, the current weight of each local board is calculated respectively, and is periodically entered
Row updates, and after service request is received, and reads and newest is calculated respectively for each board
Current weight;Or,
After service request is received, the current weight of each local board is calculated respectively in real time.
Preferably, when calculating the current weight of any one local board, the processing unit is used for:
The current value of each corresponding load condition parameter of any one described board is calculated respectively with referring to
The difference of fixed history value;
Respectively according to each corresponding difference of load condition parameter, the power of each load condition parameter is obtained
Recanalization step-length;
Based on the corresponding weight initial value of each load condition parameter and weight scheduling step-length, calculate and obtain every
The present weight of one load condition parameter;
The present weight of each load condition parameter is added, the current power of any one board is obtained
Value.
Preferably, the history value of a load condition parameter, to be set for one load condition parameter
The initial default value put, or, for one load condition parameter note when being last calculating weight
The value of record.
Preferably, the corresponding load condition parameter of a board includes following one kind or any combination:
CPU usage, wherein, CPU usage is higher, and corresponding weight is higher;
Physical memory occupancy, wherein, physical memory occupancy is higher, and corresponding weight is higher;
Number of cells is carried, wherein, carrying number of cells is more, and corresponding weight is higher;
Whether it is scheduling board, is not scheduling board, then corresponding weight is higher.
Preferably, a board is chosen from the minimum N number of board of current weight, and by the service request
When distribution to the board chosen is handled, the allocation unit is used for:
If there is scheduling board in the minimum N number of board of current weight, the scheduling board is chosen, and will
The service request is distributed to the dispatching board card and handled;
If scheduling board is not present in the minimum N number of board of current weight, from the N that current weight is minimum
A board is randomly selected in individual board, or, a minimum board of current weight is chosen, and will be described
Service request is distributed to a board of selection and handled.
Preferably, distributing after the service request finishes, the processing unit is further used for:
The local corresponding current weight of each board is updated.
The present invention has the beneficial effect that:
In the embodiment of the present invention, network element device is when receiving service request, according to the current power of each board
Value determines the real-time load condition of each board, and service request is distributed to present load most light board
Row processing, wherein, the current weight of a board is according to corresponding at least one load condition ginseng of the board
Several present weights calculates what is obtained.So, network element device just can according to the load condition parameter after quantization,
Using the current weight of each board of dynamic weighting mode real-time update, born in real time so as to grasp each board
Performance is carried, to select the board resource of optimal performance to handle service request, due to consideration that each load
Performance parameter therefore, it can rapidly that to select current performance optimal to the Real Time Effect degree of board performance
Board, improves processing speed and the response time of service;And in the case of veneer shortage of resources, realize
Many board resource-sharings, optimize board resource, so that remain existing platform evolution thinking, without
The new board of exploitation, effectively saves O&M cost.
Brief description of the drawings
Fig. 1 is board structure schematic diagram in network element device in the embodiment of the present invention;
Fig. 2 be the embodiment of the present invention in load balancing flow chart is realized between board;
Fig. 3 is network element device structural representation in the embodiment of the present invention.
Embodiment
For veneer shortage of resources problem, in order to by way of load balancing, realize board resource
Make full use of, the present invention is implemented in body, a solution is provided for the distribution and scheduling of board resource.Should
Scheme is:I.e. when receiving service request, the load state information of each veneer is detected in real time, according to
Each load condition parameter and the difference of original state that load state information includes, to calculate each list
The current weight of plate, current weight is bigger, shows that the load of veneer currently is bigger, therefore, chooses current power
The minimum veneer processing business request of value, so, dynamically can realize load balancing between each veneer.
Further description is made to the preferred embodiment of the invention below in conjunction with the accompanying drawings.
As shown in fig.1, because board common at present is usually single baseband board, i.e., only three numeral letters
Number processing (Digital Signal Processing, DSP) module, six cells can be at most handled in theory
Signal, but in practical application, for multiple cell scene or cell combining scene, be limited by single plate ability
Limitation, the number therefore, it is possible to the cell of processing is also restricted, and then causes the number of users of carrying to be limited,
Coverage is narrow.Therefore, the present invention proposes to consider dynamic weighting implementation method in a balanced way, and basic thought is:
Current weight to single board by the way of multi-load state parameter dynamic weighting is carried out, current weight table
Load performance is levied, current weight is bigger, show that load is bigger, this board may be defined as heavy duty board, and
The relatively small board of current weight then may be defined as gently loading board.So-called dynamic refers to consider real time load
Situation is (such as:Cell number), during if new service request, it should be assigned to the service request and work as
Some preceding is gently loaded and handled on board.
In the embodiment of the present invention, in the current weight of one board of calculating, a variety of negative of board may be referred to
State parameter is carried, including but not limited to:
1st, CPU usage.
Under normal circumstances, board is currently carried cell and business, can take CPU resource, when some
When time point CPU usage remains high, board load can be aggravated, and cause its traffic handing capacity to decline,
Or even cause board to crash.Therefore, for new service request, consider that CPU usage is relatively low first
Board resource, it is ensured that the normal operation of business.
2nd, physical memory occupancy.
Physical memory is that for logical memory, physical memory to performance except that can impact, also
Can influence other resources, but board physical memory occupancy it is too high when, board can be influenceed to business datum
Process performance, therefore, for new service request, physical memory occupancy is also need to consider one
Important load state parameter.
3rd, number of cells is carried.
Current one piece of veneer, the ability with 6 cells of most carryings therefore, it can work as each board
The number of the cell of preceding carrying, as the load condition parameter for weighing board loading level, if different boards
When the number of cells of carrying is different, for new service request, it can consider that carrying number of cells is less first
Board.
4th, whether it is scheduling board
When resource scheduling between board and board is related to, scheduling board and scheduled board
The weight given is different, for new service request, considers to receive the scheduling of service request first
Board, and if the current weight of scheduling board is more than the current weight of scheduled board, then select scheduled
Board.
As shown in fig.2, in the embodiment of the present invention, realizing the detailed process of load balancing of board resource such as
Under:
Step 200:Network element device receives service request.
As shown in fig.1, in the embodiment of the present invention, being usually provided with network element device (e.g., base station) many
Block board, e.g., 1 frid card, 2 frid cards ... 7 frid cards, each piece of board can as scheduling
Board receives service request, and calculates the current weight of each board, and determines to distribute service request
Scheduling board processing is still stayed in scheduled board processing.
Step 210:Network element device determines the current weight of each local board respectively, wherein, a plate
The current weight of card characterizes the current load condition of a board, and current weight is according to a board
What the present weight of corresponding at least one load condition parameter was obtained.
In the embodiment of the present invention, when performing step 210, it can use but be not limited to following several ways,
First way is:Before service request is received, network element device calculates each local plate respectively
The current weight of card, and be periodically updated, and after service request is received, read newest point
The current weight that safety pin is calculated each board.
During using first way, network element device can calculate local each periodically or according to trigger event in advance
The current weight of individual board, so, is receiving after service request, can directly read the sheet of latest computed
The current weight of each board of ground, so that the calculating time is saved, between raising board during the regulation of load balancing
Between.
The second way is:After service request is received, network element device calculates local each respectively in real time
The current weight of individual board.
During using the second way, network element device is after service request is received, then calculates local each in real time
The current weight of individual board, so, newest current weight can be obtained in time, so as to be more beneficial for realizing
Load balancing between board.
Specifically, by taking any one board as an example (hereinafter referred to as board A), network element device calculates board A's
During current weight, following operation can be performed:
First, network element device calculate respectively the current value of each corresponding load condition parameter of board A with
The difference for the history value specified.
Specifically, the history value of a load condition parameter, can be directed to a load condition parameter
The initial default value of setting, or or last a load condition is directed to when calculating weight
The value of reference record.For example, by taking load condition parameter A as an example, it is assumed that load condition parameter A's works as
Preceding value be A2, its initial default value be A0, and afterwards during become turn to A1, then, meter
When calculating the difference with history value, A2 and A0 difference can be calculated, can also calculate A2's and A1
Difference.
Secondly, network element device obtains each and born respectively according to each corresponding difference of load condition parameter
Carry the weight adjusting step of state parameter.
Specifically, a load condition parameter illustrates this load shape in the difference of the value of different time
The variable condition of state parameter, the value of a load condition parameter changes, and can influence working as corresponding board
Preceding weights, therefore, the change (i.e. difference) for the value of a load condition parameter are provided with corresponding
Weight adjusting step.
Again, network element device is based on the corresponding weight initial value of each load condition parameter and weight scheduling step
It is long, calculate the present weight for obtaining each load condition parameter.
For example, still by taking above-mentioned load condition parameter A as an example.
If in the difference of calculating and history value, using A2 and A0 difference, then, can be with
On the basis of the corresponding weight initial values of A0, A2 weight adjusting steps corresponding with A0 difference are added,
So as to calculate the present weight for obtaining load condition parameter A.
If in the difference of calculating and history value, using A2 and A1 difference, then, can be with
On the basis of the corresponding weight values of A1, A2 weight adjusting steps corresponding with A0 difference are added,
So as to calculate the present weight for obtaining load condition parameter A.
It is above-mentioned only by taking load condition parameter A as an example, network element device for each board each load shape
State parameter, can calculate corresponding present weight using aforesaid way.
Finally, the present weight of each load condition parameter is added by network element device, obtains working as board A
Preceding weights.
In the above-described embodiments, board A load condition parameter can choose a variety of, including but not limited to
One kind or any combination of lower parameter:
CPU usage, wherein, CPU usage is higher, and corresponding weight is higher;
Physical memory occupancy, wherein, physical memory occupancy is higher, and corresponding weight is higher;
Number of cells is carried, wherein, carrying number of cells is more, and corresponding weight is higher;
Whether it is scheduling board, is not scheduling board, then corresponding weight is higher.
Step 220:Network element device chooses a board from the minimum N number of board of current weight, and will be upper
State service request and distribute to the board of selection and handled.
Specifically, when performing step 220, can use but be not limited to following two modes:
First way is:If there is scheduling board in the minimum N number of board of current weight, choose described
Board is dispatched, and the service request is distributed to the dispatching board card handled.
Scheduling board is to perform the board that service request is distributed, in practical application, if dispatching working as board
Preceding weights are relatively low, then the load of explanation scheduling board currently is relatively low, then, pay the utmost attention to choose scheduling board
Service request processing is carried out, so, the load balancing between board can be both realized, straddle can also be avoided to adjust
The brought resource loss of degree.
The second way is:If scheduling board is not present in the minimum N number of board of current weight, from current
A board is randomly selected in the minimum N number of board of weights, or, choose a minimum plate of current weight
Card, and the board that service request is distributed to selection is handled.
Due to the current heavier loads of scheduling board, accordingly, it would be desirable to carry out straddle scheduling, from current weight most
Choose a board in low N number of board to carry out service request processing, this way it is possible to avoid to dispatching board
Cassette tape carrys out overweight computational load, while load balancing that can also in real time between board.
Preferably, after above-mentioned service request is distributed to corresponding board is disposed, further, net
Element device can be again updated to the local corresponding current weight of each board, because with service request
Distribution, the load condition parameter of each board can change again, so needing each plate of real-time update
The current weight of card.
Further description is made to above-described embodiment below by a specific application scenarios.
Assuming that the calculative load condition parameter sets of network element device are R={ R1, R2 ..., Rn }, wherein
N represented in load condition parameter total number, the embodiment of the present invention, n=4, wherein, R1 represents that CPU takes
Rate, R2 represents physics memory usage, and R3 represents to carry number of cells, and R4 represents whether current board is adjusted
Spend plate.In addition, in the present embodiment, stating service request specific so that cell sets up request as an example.
Four kinds of load condition parameters based on more than, it is important with respect to board performance according to each load condition parameter
Degree, by each load condition parameter quantify, by the way of weighting, real-time update difference board it is current
Weights Y (R).
For example, arrival is asked, it is necessary to select the board resource gently loaded when there is a new cell to set up,
That is board relatively small Y (R), it is assumed that current have 2 pieces of boards, respectively 4 grooves position board, 5 grooves position board,
And currently receive cell as dispatching board clamping sets up request to 4 grooves position board, then, selection board resource
When, it is necessary to calculate the current weight Y (R) of each board.
Quantify each load condition parameter, according to its influence degree, be temporarily assumed to be:R3>R1>R4>R2;
And the unit of weight is assumed for r, and the corresponding weight initial value of each load condition parameter is:
R3:5r;R1:3r;R2:2r;R1:r.
Assuming that CPU usage initialization value is 0, and CPU usage often lifts 5%, CPU usage
The weight adjusting step of corresponding weight lifting 3r, i.e. CPU usage is 3r;
Assuming that physical memory occupancy initialization value is 0, and physical memory occupancy often lifts 5%, physics
The weight adjusting step of weight lifting r, i.e. the physical memory occupancy of memory usage is r;
Assuming that the initialization value of carrying number of cells is 0, and often increase a cell, carrying number of cells
Weight lifts 5r, that is, the weight scheduling step-length for carrying number of cells is 5r.
Assuming that whether be that to dispatch the initialization value of board be 0, the scheduling of each straddle, the weight for the board that is scheduled
Position lifting 2r, i.e., whether be scheduling board weight set-up procedure be 2r.
Assuming that when the cell of reception sets up request, board current CPU usage in 4 grooves position is 40%, thing
It is 30% to manage memory usage, and carrying number of cells is 2;And the CPU usage of 5 grooves position board is 30%,
Physical memory occupancy is 40%, and carrying number of cells is 1.Then
Then when new cell, which sets up request, is sent to 4 grooves position board, 4 grooves position board is needed according to current 4
The load weight of groove position plate and 5 grooves position board, selects suitable board resource, and respond cell foundation request
Corresponding solicited message, specifically, the calculation of the current weight of 4 grooves position board and 5 grooves position board is such as
Under:
Y (4)=(40%/5%) * 3r+ (30%/5%) * r+2*5r=40r;
Y (5)=(30%/5%) * 3r+ (40%/5%) * r+1*5r+2r=33r.
According to above-mentioned algorithm, now, current weight Y (5) < Y (4) illustrate the load of 5 grooves position board currently
Relatively light, therefore, 4 grooves position board, which needs to set up the cell received, asks distribution to 5 grooves position board to carry out
Processing, so as to realize the reasonable disposition of board resource.
And after the cell that the board response of 5 grooves position is assigned to sets up request, Y (5) also can dynamically occur accordingly
Change, therefore, when receiving next new cell and setting up request, after scheduling board can be using updating
Current weight is compared, and then selects suitable board resource, is easy to the reasonable disposition and property of whole resource
Can be substantially improved.
Based on above-described embodiment, as shown in fig.3, in the embodiment of the present invention, network element device (can be managed
Solve to receive the scheduling board of service request) at least include communication unit 30, processing unit 31 and distribution
Unit 32, wherein,
Communication unit 30, for receiving service request;
Processing unit 31, the current weight for determining each local board respectively, wherein, a board
Current weight characterize the current load condition of said one board, and above-mentioned current weight is according to above-mentioned one
What the present weight of the corresponding at least one load condition parameter of individual board was obtained;
Allocation unit 32, for choosing a board from the minimum N number of board of current weight, and will be upper
State service request and distribute to the board of selection and handled.
Preferably, during the current weight for each board for determining to be locally configured respectively, processing unit 31 is used
In:
Before service request is received, the current weight of each local board is calculated respectively, and is periodically entered
Row updates, and after service request is received, and reads and newest is calculated respectively for each board
Current weight;Or,
After service request is received, the current weight of each local board is calculated respectively in real time.
Preferably, when calculating the current weight of any one local board, processing unit 31 is used for:
The current value of each corresponding load condition parameter of any one above-mentioned board is calculated respectively with referring to
The difference of fixed history value;
Respectively according to each corresponding difference of load condition parameter, the power of each load condition parameter is obtained
Recanalization step-length;
Based on the corresponding weight initial value of each load condition parameter and weight scheduling step-length, calculate and obtain every
The present weight of one load condition parameter;
The present weight of each load condition parameter is added, the current power of any one above-mentioned board is obtained
Value.
Preferably, the history value of a load condition parameter, to be set for said one load condition parameter
The initial default value put, or, for said one load condition parameter note when being last calculating weight
The value of record.
Preferably, the corresponding load condition parameter of a board includes following one kind or any combination:
CPU usage, wherein, CPU usage is higher, and corresponding weight is higher;
Physical memory occupancy, wherein, physical memory occupancy is higher, and corresponding weight is higher;
Number of cells is carried, wherein, carrying number of cells is more, and corresponding weight is higher;
Whether it is scheduling board, is not scheduling board, then corresponding weight is higher.
Preferably, a board is chosen from the minimum N number of board of current weight, and by above-mentioned service request
When distribution to the board chosen is handled, allocation unit 32 is used for:
If there is scheduling board in the minimum N number of board of current weight, above-mentioned scheduling board is chosen, and will
Above-mentioned service request is distributed to above-mentioned dispatching board card and handled;
If scheduling board is not present in the minimum N number of board of current weight, from the N that current weight is minimum
A board is randomly selected in individual board, or, a minimum board of current weight is chosen, and will be above-mentioned
Service request is distributed to a board of selection and handled.
Preferably, distributing after above-mentioned service request finishes, processing unit 31 is further used for:
The local corresponding current weight of each board is updated.
In summary, in the embodiment of the present invention, network element device is when receiving service request, according to each plate
The current weight of card determines the real-time load condition of each board, and service request is distributed to present load most
Light board is handled, wherein, the current weight of a board be according to the board it is corresponding at least one
The present weight of load condition parameter calculates what is obtained.So, network element device just can be according to negative after quantization
State parameter is carried, using the current weight of each board of dynamic weighting mode real-time update, so as to grasp each
The real-time load performance of board, to select the board resource of optimal performance to handle service request, due to considering
Real Time Effect degree of each load performance parameter to board performance has been arrived, therefore, it can select rapidly and work as
The board of preceding best performance, improves processing speed and the response time of service;And in veneer shortage of resources
In the case of, many board resource-sharings are realized, board resource is optimized, drilled so as to remain existing platform
Enter thinking, new board, effectively saves O&M cost without developing.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or knot
The form of embodiment in terms of conjunction software and hardware.Wherein wrapped one or more moreover, the present invention can be used
Containing computer usable program code computer-usable storage medium (include but is not limited to magnetic disk storage,
CD-ROM, optical memory etc.) on the form of computer program product implemented.
The present invention is with reference to the production of method according to embodiments of the present invention, equipment (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can by computer program instructions implementation process figure and
/ or each flow and/or square frame in block diagram and the flow in flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions can be provided to all-purpose computer, special-purpose computer, insertion
Formula processor or the processor of other programmable data processing devices are to produce a machine so that pass through and calculate
The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one
The device for the function of being specified in individual flow or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or the processing of other programmable datas to set
In the standby computer-readable memory worked in a specific way so that be stored in the computer-readable memory
Instruction produce include the manufacture of command device, the command device realization in one flow or multiple of flow chart
The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made
Obtain and perform series of operation steps on computer or other programmable devices to produce computer implemented place
Reason, so that the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of being specified in flow or multiple flows and/or one square frame of block diagram or multiple square frames.
, but those skilled in the art once know base although preferred embodiments of the present invention have been described
This creative concept, then can make other change and modification to these embodiments.So, appended right will
Ask and be intended to be construed to include preferred embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without de- to the embodiment of the present invention
From the spirit and scope of the embodiment of the present invention.So, if these modifications and variations category of the embodiment of the present invention
Within the scope of the claims in the present invention and its equivalent technologies, then the present invention be also intended to comprising these change and
Including modification.
Claims (14)
1. a kind of load-balancing method of board resource, it is characterised in that including:
Network element device receives service request;
Network element device determines the current weight of each local board respectively, wherein, the current power of a board
Value characterizes the current load condition of one board, and the current weight is according to one board pair
What the present weight at least one load condition parameter answered was obtained;
Network element device chooses a board from the minimum N number of board of current weight, and by the service request
Distribution to the board chosen is handled.
2. the method as described in claim 1, it is characterised in that network element device determines to be locally configured respectively
Each board current weight, including:
Before service request is received, network element device calculates the current weight of each local board respectively,
And be periodically updated, and after service request is received, read and newest be directed to each plate respectively
The current weight that calorimeter is calculated;Or,
After service request is received, network element device calculates the current power of each local board respectively in real time
Value.
3. method as claimed in claim 2, it is characterised in that network element device calculates locally any one
The current weight of individual board, including:
Network element device calculates the current of each corresponding load condition parameter of any one described board respectively
The difference of value and the history value specified;
Network element device according to each corresponding difference of load condition parameter, obtains each load condition respectively
The weight adjusting step of parameter;
Network element device is based on the corresponding weight initial value of each load condition parameter and weight scheduling step-length, meter
Calculate the present weight for obtaining each load condition parameter;
The present weight of each load condition parameter is added by network element device, obtains any one described board
Current weight.
4. method as claimed in claim 3, it is characterised in that the history of a load condition parameter takes
Value, for the initial default value for one load condition parameter setting, or, it is last calculating
For the value of one load condition reference record during weight.
5. method as claimed in claim 3, it is characterised in that the corresponding load condition ginseng of a board
Number includes following one kind or any combination:
Central processor CPU occupancy, wherein, CPU usage is higher, and corresponding weight is higher;
Physical memory occupancy, wherein, physical memory occupancy is higher, and corresponding weight is higher;
Number of cells is carried, wherein, carrying number of cells is more, and corresponding weight is higher;
Whether it is scheduling board, is not scheduling board, then corresponding weight is higher.
6. the method as described in claim any one of 1-5, it is characterised in that network element device is weighed from current
A board is chosen in the minimum N number of board of value, and the service request is distributed to the board progress of selection
Processing, including:
If there is scheduling board in the minimum N number of board of current weight, the scheduling board is chosen, and will
The service request is distributed to the dispatching board card and handled;
If scheduling board is not present in the minimum N number of board of current weight, from the N that current weight is minimum
A board is randomly selected in individual board, or, a minimum board of current weight is chosen, and will be described
Service request is distributed to a board of selection and handled.
7. method as claimed in claim 6, it is characterised in that after the distribution service request is finished,
Further comprise:
The local corresponding current weight of each board is updated.
8. a kind of load balancing apparatus of board resource, it is characterised in that including:
Communication unit, for receiving service request;
Processing unit, the current weight for determining each local board respectively, wherein, board
Current weight characterizes the current load condition of one board, and the current weight is according to one
What the present weight of the corresponding at least one load condition parameter of board was obtained;
Allocation unit, for choosing a board from the minimum N number of board of current weight, and by the industry
Business request distribution to the board chosen is handled.
9. device as claimed in claim 8, it is characterised in that determine each being locally configured respectively
During the current weight of board, the processing unit is used for:
Before service request is received, the current weight of each local board is calculated respectively, and is periodically entered
Row updates, and after service request is received, and reads and newest is calculated respectively for each board
Current weight;Or,
After service request is received, the current weight of each local board is calculated respectively in real time.
10. device as claimed in claim 9, it is characterised in that calculate any one local board
During current weight, the processing unit is used for:
The current value of each corresponding load condition parameter of any one described board is calculated respectively with referring to
The difference of fixed history value;
Respectively according to each corresponding difference of load condition parameter, the power of each load condition parameter is obtained
Recanalization step-length;
Based on the corresponding weight initial value of each load condition parameter and weight scheduling step-length, calculate and obtain every
The present weight of one load condition parameter;
The present weight of each load condition parameter is added, the current power of any one board is obtained
Value.
11. device as claimed in claim 10, it is characterised in that the history of a load condition parameter
Value, for the initial default value for one load condition parameter setting, or, it is last meter
For the value of one load condition reference record during calculation weight.
12. device as claimed in claim 10, it is characterised in that the corresponding load condition of a board
Parameter includes following one kind or any combination:
Central processor CPU occupancy, wherein, CPU usage is higher, and corresponding weight is higher;
Physical memory occupancy, wherein, physical memory occupancy is higher, and corresponding weight is higher;
Number of cells is carried, wherein, carrying number of cells is more, and corresponding weight is higher;
Whether it is scheduling board, is not scheduling board, then corresponding weight is higher.
13. the device as described in claim any one of 8-12, it is characterised in that minimum from current weight
N number of board in choose a board, and the board that the service request is distributed to selection is handled
When, the allocation unit is used for:
If there is scheduling board in the minimum N number of board of current weight, the scheduling board is chosen, and will
The service request is distributed to the dispatching board card and handled;
If scheduling board is not present in the minimum N number of board of current weight, from the N that current weight is minimum
A board is randomly selected in individual board, or, a minimum board of current weight is chosen, and will be described
Service request is distributed to a board of selection and handled.
14. device as claimed in claim 13, it is characterised in that after the distribution service request is finished,
The processing unit is further used for:
The local corresponding current weight of each board is updated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610046025.4A CN106998340B (en) | 2016-01-22 | 2016-01-22 | Load balancing method and device for board resources |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610046025.4A CN106998340B (en) | 2016-01-22 | 2016-01-22 | Load balancing method and device for board resources |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106998340A true CN106998340A (en) | 2017-08-01 |
CN106998340B CN106998340B (en) | 2020-10-30 |
Family
ID=59428799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610046025.4A Active CN106998340B (en) | 2016-01-22 | 2016-01-22 | Load balancing method and device for board resources |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106998340B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108055333A (en) * | 2017-12-21 | 2018-05-18 | 创新科存储技术(深圳)有限公司 | A kind of NAS-CIFS cluster load balancing methods based on UFS |
CN110191159A (en) * | 2019-05-09 | 2019-08-30 | 网宿科技股份有限公司 | A kind of load regulation method and system, the equipment of Resource Server |
CN112312202A (en) * | 2020-08-10 | 2021-02-02 | 浙江宇视科技有限公司 | Decoding splicing processing equipment |
CN115048206A (en) * | 2022-08-15 | 2022-09-13 | 阿里巴巴(中国)有限公司 | Resource scheduling method and server |
WO2023093064A1 (en) * | 2021-11-23 | 2023-06-01 | 中国电信股份有限公司 | Method and apparatus for creating optical multiplex section, and network management system and box-type wavelength division device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101860486A (en) * | 2010-06-07 | 2010-10-13 | 北京邮电大学 | Dynamic load balancing mechanism based on leaky bucket algorithm |
CN102882959A (en) * | 2012-09-21 | 2013-01-16 | 国电南瑞科技股份有限公司 | Load balancing mechanism for WEB server in electric power scheduling system |
CN103501509A (en) * | 2013-09-04 | 2014-01-08 | 大唐移动通信设备有限公司 | Method and device for balancing loads of radio network controller |
CN104423529A (en) * | 2013-08-30 | 2015-03-18 | 华为技术有限公司 | CPU (central processing unit) state adjustment method and device |
CN104702521A (en) * | 2013-12-06 | 2015-06-10 | 中兴通讯股份有限公司 | Load balance method and device |
EP2947908A1 (en) * | 2014-05-23 | 2015-11-25 | Alcatel Lucent | Management method for use by a management system |
-
2016
- 2016-01-22 CN CN201610046025.4A patent/CN106998340B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101860486A (en) * | 2010-06-07 | 2010-10-13 | 北京邮电大学 | Dynamic load balancing mechanism based on leaky bucket algorithm |
CN102882959A (en) * | 2012-09-21 | 2013-01-16 | 国电南瑞科技股份有限公司 | Load balancing mechanism for WEB server in electric power scheduling system |
CN104423529A (en) * | 2013-08-30 | 2015-03-18 | 华为技术有限公司 | CPU (central processing unit) state adjustment method and device |
CN103501509A (en) * | 2013-09-04 | 2014-01-08 | 大唐移动通信设备有限公司 | Method and device for balancing loads of radio network controller |
CN104702521A (en) * | 2013-12-06 | 2015-06-10 | 中兴通讯股份有限公司 | Load balance method and device |
EP2947908A1 (en) * | 2014-05-23 | 2015-11-25 | Alcatel Lucent | Management method for use by a management system |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108055333A (en) * | 2017-12-21 | 2018-05-18 | 创新科存储技术(深圳)有限公司 | A kind of NAS-CIFS cluster load balancing methods based on UFS |
CN110191159A (en) * | 2019-05-09 | 2019-08-30 | 网宿科技股份有限公司 | A kind of load regulation method and system, the equipment of Resource Server |
WO2020224024A1 (en) * | 2019-05-09 | 2020-11-12 | 网宿科技股份有限公司 | Load adjustment method and system for resource server, and device |
EP3761609A4 (en) * | 2019-05-09 | 2021-01-13 | Wangsu Science & Technology Co., Ltd. | Load adjustment method and system for resource server, and device |
CN110191159B (en) * | 2019-05-09 | 2021-05-25 | 网宿科技股份有限公司 | Load adjusting method, system and equipment of resource server |
US11108695B2 (en) | 2019-05-09 | 2021-08-31 | Wangsu Science & Technology Co., Ltd. | Method, system and device for adjusting load of resource server |
CN112312202A (en) * | 2020-08-10 | 2021-02-02 | 浙江宇视科技有限公司 | Decoding splicing processing equipment |
CN112312202B (en) * | 2020-08-10 | 2023-02-28 | 浙江宇视科技有限公司 | Decoding splicing processing equipment |
WO2023093064A1 (en) * | 2021-11-23 | 2023-06-01 | 中国电信股份有限公司 | Method and apparatus for creating optical multiplex section, and network management system and box-type wavelength division device |
CN115048206A (en) * | 2022-08-15 | 2022-09-13 | 阿里巴巴(中国)有限公司 | Resource scheduling method and server |
Also Published As
Publication number | Publication date |
---|---|
CN106998340B (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106998340A (en) | A kind of load-balancing method and device of board resource | |
CN104243405B (en) | A kind of request processing method, apparatus and system | |
CN103763346B (en) | A kind of distributed resource scheduling method and device | |
CN104104551B (en) | Cloud resource need assessment method and device | |
CN107562531A (en) | A kind of data balancing method and device | |
CN104994156A (en) | Load balancing method and system for cluster | |
CN106325976B (en) | A kind of rendering task scheduling processing method and server | |
CN111694663A (en) | Load balancing method, device and system for server cluster | |
CN107819867A (en) | The load-balancing method and device of a kind of cluster network | |
CN105677441B (en) | Virtual machine migration method, virtual facility manager and coordinator | |
CN103703830B (en) | A kind of physical resource adjustment, device and controller | |
CN108647092A (en) | Cloud storage method, cloud platform and computer readable storage medium | |
CN105607943A (en) | Dynamic deployment mechanism of virtual machine under cloud environment | |
CN106850822A (en) | Load-balancing method, equipment and distributed system | |
CN103501509B (en) | A kind of method and device equalizing radio network controller load | |
CN109697105A (en) | A kind of container cloud environment physical machine selection method and its system, virtual resource configuration method and moving method | |
CN104184685B (en) | Data center resource distribution method, apparatus and system | |
CN105517176B (en) | The method of dynamic dispatching virtualization base station resource | |
CN111722923A (en) | Heterogeneous resource calling method and device and computer readable storage medium | |
CN106301729B (en) | Member carrier dispatching method and device under a kind of carrier aggregation scene | |
CN107634978A (en) | A kind of resource regulating method and device | |
CN113867942B (en) | Method, system and computer readable storage medium for mounting volume | |
CN105187488A (en) | Method for realizing MAS (Multi Agent System) load balancing based on genetic algorithm | |
CN110349076A (en) | The processing method and processing device of data | |
CN101568150A (en) | Resource management method, system and baseband board |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |