The content of the invention
It is an object of the invention to provide a kind of cloud controller load-balancing method and its device, a kind of cloud controller, effectively
Ensure normal operation of the cloud controller under event of overload.
The technical scheme that the present invention is provided is as follows:
A kind of cloud AC load-balancing methods, it is characterised in that included in the load-balancing method:
Judge whether to meet load balancing condition;If so,
Count the quantity of each wireless aps access terminal;
Judged to need the wireless aps for the relation of decontroling according to the quantity of each wireless aps access terminal;
Release respective wireless AP administrative relationships.
In the technical program, if judging, there is overburden in cloud AC, that is, meets load balancing condition, then according to each
The quantitative determination of wireless aps access terminal needs the wireless aps for the relation of decontroling, and the management of certain amount wireless aps is released with this
Relation, ensures cloud AC normal operation, and the load-balancing method is simple and convenient.
It is further preferred that described judge whether to meet load balancing condition, including:
Judge whether the quantity for the WAP access terminal that cloud controller is currently managed exceedes predetermined threshold value, if so,
Then meet load balancing condition.
In the technical program, judged whether to meet load according to the quantity of the wireless aps access terminal of cloud AC current services
Equilibrium condition, it is simple and convenient.
It is further preferred that the quantity of each wireless aps access terminal of statistics, including:
Periodically receive the quantity for the access terminal that each wireless aps are reported;
The quantity that each wireless aps received are reported is counted and stored.
It is further preferred that described judge to need the wireless of the relation of decontroling according to the quantity of each wireless aps access terminal
AP, including:
Count the average access value of each wireless aps access terminal in preset time period;
Calculate the overburden between the quantity and predetermined threshold value for the WAP access terminal that cloud controller is currently managed
Difference;
The wireless aps for the relation that decontroled according to average access value and overburden the difference determination.
In the technical program, by the average access value and overburden that count wireless aps access terminal in preset time period
Difference judges to need the wireless aps for the relation of decontroling, improves the efficiency of load balancing, the influence to user is preferably minimized.
It is further preferred that described judge to need the wireless of the relation of decontroling according to the quantity of each wireless aps access terminal
AP, including:
Count the average access value of each wireless aps access terminal in multiple different time sections;
The access score value for obtaining each wireless aps is calculated according to the average access value in different time sections;
Calculate the overburden between the quantity and predetermined threshold value for the WAP access terminal that cloud controller is currently managed
Difference;
The wireless aps for the relation that decontroled according to the access score value and the determination of overburden difference.
In the technical program, obtained accessing score value according to the average access value calculating of different periods, needs are judged with this
The wireless aps for the relation that decontrols.In the evaluation process, the quantity that wireless aps are currently accessed terminal, Er Qieping not only have evaluated
The quantity of access terminal in a period of time is estimated, the accuracy of assessment is substantially increased with this, effectively prevents wireless aps from accidentally connecing
Enter the higher situation of quantity to occur, ensured while cloud AC normal works and to be preferably minimized the influence degree to user.
Present invention also offers a kind of cloud AC load balancing apparatus, including:
Judge module, for judging whether to meet load balancing condition, and for according to statistical module counts obtain it is each
The quantity of wireless aps access terminal judges to need the wireless aps for the relation of decontroling;
Statistical module, the quantity for counting each wireless aps access terminal;
Relation broken module, the administrative relationships for releasing respective wireless AP according to the judged result of judge module.
In the technical program, if judging, there is overburden in cloud AC, that is, meets load balancing condition, then according to each
The quantitative determination of wireless aps access terminal needs the wireless aps for the relation of decontroling, and the management of certain amount wireless aps is released with this
Relation, ensures cloud AC normal operation.
It is further preferred that in judge module, judging the WAP access terminal that cloud controller is currently managed
Whether quantity exceedes predetermined threshold value;
Judge that the quantity for the WAP access terminal that cloud controller is currently managed exceedes predetermined threshold value, then meet load
Equilibrium condition.
In the technical program, judged whether to meet load according to the quantity of the wireless aps access terminal of cloud AC current services
Equilibrium condition, it is simple and convenient.
It is further preferred that in statistical module, the average access of each wireless aps access terminal in statistics preset time period
Value, and the overburden calculated between the quantity and predetermined threshold value for the WAP access terminal that cloud controller is currently managed are poor
Value;
In judge module, the average access value and overburden difference obtained according to statistical module determines the relation that decontrols
Wireless aps.
In the technical program, by the average access value and overburden that count wireless aps access terminal in preset time period
Difference judges to need the wireless aps for the relation of decontroling, improves the efficiency of load balancing, the influence to user is preferably minimized.
It is further preferred that in statistical module, each wireless aps access terminal is averaged in the multiple different time sections of statistics
Access value, the access score value for obtaining each wireless aps is calculated according to the average access value in different time sections, and calculate cloud control
Overburden difference between the quantity and predetermined threshold value of the WAP access terminal that device is currently managed;
In judge module, the access score value and overburden difference obtained according to statistical module determines the relation that decontrols
Wireless aps.
In the technical program, obtained accessing score value according to the average access value calculating of different periods, needs are judged with this
The wireless aps for the relation that decontrols.In the evaluation process, the quantity that wireless aps are currently accessed terminal, Er Qieping not only have evaluated
The quantity of access terminal in a period of time is estimated, the accuracy of assessment is substantially increased with this, effectively prevents wireless aps from accidentally connecing
Enter the higher situation of quantity to occur, ensured while cloud AC normal works and to be preferably minimized the influence degree to user.
Present invention also offers a kind of cloud AC, including above-mentioned cloud AC load balancing apparatus.
In this technology method, if extra-heavy situation occurs in cloud AC, sentenced according to the quantity of each wireless aps access terminal
Surely the wireless aps for the relation of decontroling are needed, the administrative relationships of certain amount wireless aps are released with this.Judging to need to release pipe
During the wireless aps of reason relation, the quantity that wireless aps are currently accessed terminal is considered not only, while in view of a period of time
The quantity of interior access terminal, the accuracy of judgement is substantially increased with this, effectively prevents wireless aps from accidentally accessing quantity higher
Situation occurs, and has ensured while cloud AC normal works and to be preferably minimized the influence degree to user.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
The embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing, and obtain other embodiments.
To make only to schematically show part related to the present invention in simplified form, each figure, their not generations
Table its as product practical structures.
A kind of embodiment schematic flow sheet of cloud AC load-balancing methods provided as shown in Figure 1 for the present invention, from figure
As can be seen that including in the load-balancing method:S10 judges whether to meet load balancing condition, if so, jumping to step
S20;S20 counts the quantity of each wireless aps access terminal;S30 judges to need to release pipe according to the quantity of each wireless aps access terminal
The wireless aps of reason relation;S40 releases respective wireless AP administrative relationships.
In the present embodiment, the quantity of the wireless aps access terminal of statistics cloud AC management, and be according to quantity judgement
It is no to meet load balancing condition.Specifically, if the quantity that the wireless aps for the management that statistics is obtained are currently accessed terminal is less than default threshold
Value, then judge to be unsatisfactory for load balancing condition, do not do subsequent treatment;If on the contrary, the wireless aps for the management that statistics is obtained currently connect
The quantity for entering terminal is more than predetermined threshold value, then judges to meet load balancing condition, jumps to the step S20 further current clothes of statistics
The quantity of the terminal of each wireless aps access of business, and the nothing for relation of according to the quantity of access terminal judging to decontrol with cloud AC
Line AP, i.e. cloud AC stop as the service of these wireless aps, while normal operation to ensure whole system, at utmost reduction pair
The loss of user.More particularly, in the present embodiment, above-mentioned predetermined threshold value is not specifically limited, can be according to cloud AC
Actual bearer ability is appropriately arranged with, e.g., and when normal condition cloud AC can service 8000 terminals simultaneously, (cloud AC is while service 4000
Wireless aps, each wireless aps access 20 terminals), then predetermined threshold value is set as 7500, or predetermined threshold value is set as cloud AC
Limit service ability 10000 etc..
During judging to need the wireless aps for the relation of decontroling, carried out according to the quantity of each wireless aps access terminal
Judge, specifically, using the less wireless aps of number of access terminals as relation to be decontroled wireless aps, until cloud AC no longer goes out
Existing overburden situation.In one example, if cloud AC is managed in 20 wireless aps, occur after overburden, judge one wirelessly
The quantity of AP access terminals is 30, and also one is 40, and remaining is 100, then wireless aps and cloud of the preferred access quantity for 30
AC decontrols relation, and selection access quantity is 40 afterwards, by that analogy, until overburden situation no longer occurs in cloud AC.If
Occur, the quantity identical situation of multiple wireless aps access terminals, then it is random selected.
Above-mentioned embodiment is improved and obtains present embodiment, as shown in Fig. 2 in the present embodiment, the load
Equalization methods include:S10 judges whether to meet load balancing condition, if so, jumping to step S21;S21 counts preset time
The average access value of each wireless aps access terminal in section;S22 calculate the quantity of wireless aps access terminal that cloud AC currently manages with
Overburden difference between predetermined threshold value;S30 determines the wireless of relation that decontrol according to average access value and overburden difference
AP;S40 releases respective wireless AP administrative relationships.
In the present embodiment, periodically (such as wireless aps are reported once for every 20 minutes, report once within every 30 minutes, every 1 small
When report it is one inferior) quantity of the wireless aps access terminal of statistics cloud AC management, and judged whether according to the quantity to meet load
Equilibrium condition, if the quantity of the wireless aps access terminal for the management that statistics is obtained is more than predetermined threshold value, judges that satisfaction load is equal
Weighing apparatus condition, jump to step S21 further count current service each wireless aps access terminal quantity, and according to access eventually
The quantity at end is judged to decontrol with cloud AC the wireless aps of relation, i.e. cloud AC stops as the service of these wireless aps, whole to ensure
While the normal operation of individual system, the loss to user is at utmost reduced.
During wireless aps number of access terminals is counted, obtain wireless aps access point and be currently accessed the same of terminal quantity
When, the average access value of the interior wireless aps access terminal of statistics preset time period;At the same time, calculate beyond predetermined threshold value
Terminal quantity, and according to the administrative relationships of the average access value of wireless aps releasing respective numbers wireless aps, stop carrying for these AP
For management service.Specifically, using the access terminal averagely less wireless aps of access value as relation to be decontroled wireless aps, directly
No longer there is overburden situation to cloud AC.
In one example, if cloud AC can service 4000 wireless aps simultaneously under normal circumstances, each wireless aps are averaged
Access 20 terminals, i.e. cloud AC can service 80000 terminals (cloud AC limit load value is 100000), predetermined threshold value simultaneously
For 90000, preset time period is nearest 2 hours.
Then when a certain moment, the sum of the terminal of each wireless aps access of system rises to 110000, then according to default threshold
Value 90000 stops the server of some wireless aps, it is necessary to stop stopping service for unnecessary 20000 terminals, it is ensured that
The normal service of 90000 terminals.
Afterwards, each wireless aps are counted respectively and currently connect the quantity of terminal, and count the flat of each wireless aps of nearest 2 hours
Access value (the access number average for taking nearest 2 hour wireless aps to report), the average access value obtained according to statistics, will be averaged
The minimum wireless aps point of access value preferentially decontrols relation, until the quantity of access terminal in remaining wireless aps is in default threshold
In the range of value, stop releasing.
Above-mentioned embodiment is improved and obtains present embodiment, as shown in figure 3, in the present embodiment, the load
Equalization methods include:S10 judges whether to meet load balancing condition, if so, jumping to step S23;S23 counts multiple differences
The average access value of each wireless aps access terminal in period;S24 is obtained according to the average access value calculating in different time sections
The access score value of each wireless aps;S25 is calculated between the quantity and predetermined threshold value of the wireless aps access terminal that cloud AC is currently managed
Overburden difference;S30 determines the wireless aps of relation of decontroling according to access score value and overburden difference;S40 releases corresponding nothing
Line AP administrative relationships.
In the present embodiment, the quantity of the wireless aps access terminal of periodic statistical cloud AC management, and being sentenced according to the quantity
It is disconnected whether to meet load balancing condition, if the quantity of the wireless aps access terminal for the management that statistics is obtained is more than predetermined threshold value,
Judgement meet load balancing condition, jump to step S21 further count current service each wireless aps access terminal number
Amount, and the wireless aps for relation of according to the quantity of access terminal judging to decontrol with cloud AC, i.e. cloud AC stop as these are wireless
AP is serviced, and while normal operation to ensure whole system, at utmost reduces the loss to user.
During wireless aps number of access terminals is counted, obtain wireless aps access point and be currently accessed the same of terminal quantity
When, the average access value of the wireless aps access terminal in multiple preset time periods is counted, and calculate the access point of each wireless aps
Value;At the same time, calculate the terminal quantity beyond predetermined threshold value, and according to the access score value of wireless aps release respective numbers without
Line AP administrative relationships, stop providing management service for these AP.Specifically, multiple preset period of time here can be according to actual feelings
Condition is set, and is such as set as nearest 1 hour, nearest 2 hours, nearest 3 hours, nearest 4 hours, is not done here
It is specific to limit.More particularly, wireless aps of the less wireless aps of score value as relation to be decontroled will be accessed, until cloud AC
No longer there is overburden situation.
In one example, during each wireless aps access score value is calculated, preset period of time is nearest 1 hour and nearest
4 hours, and statistics obtains the access value of present terminal for Q1, the average access value of nearest 1 hour terminal is Q2, nearest 4
The average access value of individual hour terminal is Q3, then is calculated according to below equation and obtain access score value score:
Score=a*Q3+b*Q2+c*Q1
Wherein, a, b and c are empirical parameter, and meet a+b+c=1, and the value to a, b and c is not specifically limited here, root
Determined according to actual conditions, such as a=0.2, b=0.3, c=0.5;And for example, a=0.1, b=0.3, c=0.6;And for example, a=0.3, b
=0.3, c=0.4 etc..
A kind of embodiment schematic diagram of cloud AC load balancing apparatus for there is provided of the present invention is provided, can be with from figure
Find out, include in cloud AC load balancing apparatus 100:Judge module 110, statistical module 120 and relation broken module
130, wherein, judge module 110 is connected with statistical module 120 and relation broken module 130 respectively.
In the present embodiment, the quantity of the wireless aps access terminal of the periodic statistical cloud AC of statistical module 120 management, with this
Judge module 110 judges whether to meet load balancing condition according to the quantity.Specifically, if the wireless aps for the management that statistics is obtained connect
The quantity for entering terminal is less than predetermined threshold value, then judges to be unsatisfactory for load balancing condition, do not do subsequent treatment;If on the contrary, counting
The quantity of the wireless aps access terminal for the management arrived is more than predetermined threshold value, then judges to meet load balancing condition.Afterwards, mould is counted
Block 120 further counts the quantity of the terminal of each wireless aps access of current service, with this judge module 110 according to access terminal
Quantity judge with cloud AC decontrol relation wireless aps and be managed by relation broken module 130 solution of relation
Remove, while normal operation to ensure whole system, at utmost reduce the loss to user.
In addition, during statistical module 120 counts the quantity of each wireless aps access terminal, it is each according to what is periodically received
The quantity for the access terminal that wireless aps are reported is counted, specifically, here periodically be predeterminated frequency, such as report one within every 20 minutes
Report once within secondary, every 30 minutes, every 1 hour report it is one inferior.
Above-mentioned embodiment is improved and obtains present embodiment, in the present embodiment, statistical module 120 counts pre-
If the average access value of each wireless aps access terminal in the period, and calculate the number for the wireless aps access terminal that cloud AC is currently managed
Overburden difference between amount and predetermined threshold value;The average access value that is obtained with this judge module 110 according to statistical module 120 and
Overburden difference determines the wireless aps of relation of decontroling.
In the present embodiment, periodically (such as wireless aps are reported once statistical module 120 for every 20 minutes, reported within every 30 minutes
Once, every 1 hour reports one inferior) quantity of the wireless aps access terminal of statistics cloud AC management, with this judge module 110
Judge whether to meet load balancing condition according to the quantity.Specifically, if the quantity of the wireless aps access terminal for the management that statistics is obtained
More than predetermined threshold value, then judge to meet load balancing condition.Afterwards, statistical module 120 further counts each in preset time period
The average access value of wireless aps access terminal, judges to release with cloud AC and manages with this judge module 110 according to the average access value
The wireless aps of reason relation and the releasing that relation is managed by relation broken module 130, to ensure the normal fortune of whole system
While row, the loss to user is at utmost reduced.
Specifically, during wireless aps number of access terminals is counted, obtain wireless aps access point and be currently accessed number of terminals
While amount, the average access value of the wireless aps access terminal in statistics preset time period;At the same time, calculate beyond default
The terminal quantity of threshold value, and according to the administrative relationships of the average access value of wireless aps releasing respective numbers wireless aps, pass through relation
Module 130 is released to stop providing management service for these AP.More particularly, using the less wireless aps of average access value as treating
The wireless aps for the relation that decontrols, until overburden situation no longer occurs in cloud AC.
Above-mentioned embodiment is improved and obtains present embodiment, in the present embodiment, statistical module 120 counts many
The average access value of each wireless aps access terminal in individual different time sections, is calculated according to the average access value in different time sections
To the access score value of each wireless aps, and calculate between the quantity and predetermined threshold value for the wireless aps access terminal that cloud AC is currently managed
Overburden difference;The access score value and overburden difference that judge module 110 is obtained according to statistical module 120 determine to decontrol
The wireless aps of relation.
In the present embodiment, the quantity of the wireless aps access terminal of the periodic statistical cloud AC of statistical module 120 management, with this
Judge module 110 judges whether to meet load balancing condition according to the quantity.Specifically, if the wireless aps for the management that statistics is obtained connect
The quantity for entering terminal is more than predetermined threshold value, then judges to meet load balancing condition.Afterwards, further statistics is pre- for statistical module 120
If the access score value of each wireless aps access terminal in the period, is judged and cloud with this judge module 110 according to the access score value
AC decontrol relation wireless aps and the releasing of relation is managed by relation broken module 130, to ensure whole system
Normal operation while, at utmost reduce the loss to user.
During wireless aps number of access terminals is counted, obtain wireless aps access point and be currently accessed the same of terminal quantity
When, the average access value of the wireless aps access terminal in multiple preset time periods is counted, and calculate the access point of each wireless aps
Value;At the same time, calculate the terminal quantity beyond predetermined threshold value, and according to the access score value of wireless aps release respective numbers without
Line AP administrative relationships, stop providing management service for these AP.Specifically, multiple preset period of time here can be according to actual feelings
Condition is set, and is such as set as nearest 1 hour, nearest 2 hours, nearest 3 hours, nearest 4 hours, is not done here
It is specific to limit.More particularly, wireless aps of the less wireless aps of score value as relation to be decontroled will be accessed, until cloud AC
No longer there is overburden situation.
In one example, during each wireless aps access score value is calculated, preset period of time be chosen to be nearest 1 hour,
Nearest 4 hours and nearest 8 hours, and it is Q1 that statistics, which obtains the access value of present terminal, nearest 1 hour terminal is averaged
Access value is Q2, and the average access value of nearest 4 hour terminals is Q3, and the average access value of nearest 8 hour terminals is Q4, then
Calculated according to below equation and obtain access score value score:
Score=d*Q4+e*Q3+f*Q2+g*Q1
Wherein, d, e, f and g are empirical parameter, and meet d+e+f+g=1.
Present invention also offers a kind of cloud AC, including above-mentioned cloud AC load balancing apparatus.Specifically, loaded at this in cloud AC
Balancer includes a processor, for realizing each instruction;Also include a memory, processor loading is applied to for storing
And the instruction performed, specifically include:Judge whether to meet load balancing condition;If so, counting each WAP access terminal
Quantity;Judged to need the WAP for the relation of decontroling according to the quantity of each WAP access terminal;Release phase
Answer the administrative relationships of WAP.
Also include:Count the average access value of each WAP access terminal in preset time period;Calculate cloud controller
Overburden difference between the quantity and predetermined threshold value of the WAP access terminal currently managed;According to the average access
Value and overburden difference determine to decontrol the WAP of relation.And
Count the average access value of each WAP access terminal in multiple different time sections;According in different time sections
Average access value calculate and obtain the access score value of each WAP;The WAP that calculating cloud controller is currently managed connects
Enter the overburden difference between the quantity of terminal and predetermined threshold value;Determine to release pipe according to the access score value and overburden difference
The WAP of reason relation.
It should be noted that above-described embodiment can independent assortment as needed.Described above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, is not departing from the premise of the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.