CN106612296A - A method and apparatus for assigning user equipment connection requests - Google Patents

A method and apparatus for assigning user equipment connection requests Download PDF

Info

Publication number
CN106612296A
CN106612296A CN201510689190.7A CN201510689190A CN106612296A CN 106612296 A CN106612296 A CN 106612296A CN 201510689190 A CN201510689190 A CN 201510689190A CN 106612296 A CN106612296 A CN 106612296A
Authority
CN
China
Prior art keywords
server
connection request
load
user equipment
minimum
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.)
Pending
Application number
CN201510689190.7A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510689190.7A priority Critical patent/CN106612296A/en
Publication of CN106612296A publication Critical patent/CN106612296A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a method and apparatus for assigning user equipment connection requests to achieve a fast equalization of multiple server loads in the case of long connections. The method for assigning user equipment connection requests provided by the application comprises the steps of receiving data sent by a plurality of servers for characterizing the current load state value of the present server and a connection request sent by the user equipment; and assigning the connection requests according to the data sent by each of the servers for characterizing the current load state value of the present server.

Description

A kind of method and device of user equipment connection request distribution
Technical field
The application is related to communication technical field, more particularly to a kind of distribution of user equipment connection request method and Device.
Background technology
Load balancing referred to when there is the connection request of substantial amounts of user equipment at this stage, and the user is set Standby connection request is equally distributed to multiple servers and is processed, and make that each server born is total Load level keeps balance.
At present, mode of the strategy that load balancing is adopted for the connection request of mean allocation user's equipment so that On each server, the quantity of the connection request of assigned user equipment is average.
However, when new server is added, server and the service for working in the cluster of new addition There is very big gap in the load born by device, if continuing using mean allocation user's equipment in prior art The mode of connection request, although in the case of short connection, the use connected between server and user equipment The connection request of family equipment can disconnect, such that it is able to make the company for coming from user equipment of each server connection The quantity for connecing request reaches the load of balance, i.e. each server and reaches balance.But, in the feelings of long connection Under condition, it is impossible to so that the load of the new server for adding rapidly with original server for working in the cluster Load reach balance, even if the load of each server can be made to reach balance, it is also desirable to through long-time Iteration, the load of each server could be caused to reach balance.It can be seen that, load balancing in prior art Strategy, the i.e. mode of the connection request of mean allocation user equipment are not particularly suited for the situation of long connection.
In sum, in prior art, user equipment connection request distribution method is only applicable to the situation of short connection Under, in the case of long connection, it is impossible to so that the load of the new server for adding is rapidly with original in collection The load of the server worked in group reaches balance.
The content of the invention
The embodiment of the present application provides a kind of method and device of user equipment connection request distribution, to grow The fast uniform of multiple server loads is realized under connection.
A kind of method of user equipment connection request distribution that the embodiment of the present application is provided, including:
Receive data and use for characterizing book server current loading condition value that multiple servers send The connection request that family equipment sends;
It is according to the data for characterizing book server current loading condition value that each server sends, right The connection request is allocated.
The embodiment of the present application, by receiving that multiple servers send for characterizing book server present load shape The data of state value, can learn the respective load condition of multiple servers in real time, and according to the plurality of server The data for characterizing book server current loading condition value for sending, are allocated to the connection request, And then the plurality of server load balancing is realized, efficiently solve multiple server loads under long connection The problem of fast uniform.
Alternatively, according to each server send for characterizing book server current loading condition value Data, are allocated to the connection request, specifically include:
For arbitrary server, the sign server present load shape sent according to the server The data of state value, calculate the server current loading condition value and account for the current total load state of the plurality of server The ratio of the meansigma methodss of value;
Account for the plurality of when there is the corresponding current loading condition value of any server in the plurality of server The ratio of the meansigma methodss of the current total load state value of server not in default threshold range when, from described many The minimum server of present load is determined in individual server;
The connection request is sent to into the minimum server of the load.
So as to when in the multiple servers in cluster, the load of any one is larger with other server gaps When, by said method, the load fast uniform of the multiple servers being capable of achieving in cluster.When there is new clothes Business device add cluster after, realize the new addition server load rapidly with original work in the cluster The load of the server of work reaches balance, improves the performance of cluster.
Alternatively, the data for characterizing book server current loading condition value that the plurality of server sends The total quantity of the connection request of the user equipment currently having been received by for book server.
Alternatively, according to each server send for characterizing book server current loading condition value Data, are allocated to the connection request, also include:
Work as when the corresponding server current loading condition value of the plurality of server accounts for the plurality of server The ratio of the meansigma methodss of front total load state value, when in the default threshold range, mean allocation is come The plurality of server is given from the connection request in user equipment.
So as to when the corresponding server current loading condition value of the plurality of server accounts for the plurality of service The ratio of the meansigma methodss of the current total load state value of device, when in the default threshold range, by adopting In fashion described above, it is convenient to omit it is determined that the process of the minimum server of load, and then save to the plurality of clothes The time of the connection request of business device distributing user equipment.
Alternatively, after the connection request of the user equipment being sent to the minimum server of the load, The method also includes:
When the minimum corresponding current loading condition value of server of the load, to account for the plurality of server current When the ratio of the meansigma methodss of total load state value is reached in the default threshold range, stop to the load Minimum server is sent current from the connection request of user equipment;
The mode of mean allocation is taken to be sent to the plurality of server the connection request of the user equipment.
So as to effectively prevent the minimum corresponding server current loading condition value of server of the load The ratio for accounting for the meansigma methodss of the current total load state value of the plurality of server exceeds the default threshold value model Enclose, cause multiple server loads unbalanced.
Alternatively, it is described receive that multiple servers send for characterizing book server current loading condition value Data are periodically carried out.
Alternatively, each server current loading condition value of the calculating accounts for the plurality of server and currently always bears The ratio for carrying the meansigma methodss of state value is periodically carried out.
By the data for characterizing book server current loading condition value sent to the plurality of server Real-time statistics are carried out, is conducive to knowing the load state of the plurality of server in real time, is taken in time most effective Load balancing scheme.
Alternatively, the connection request is sent to into the minimum server of the load, is specifically included:
The IP address of the minimum server of the load is obtained from the Hash table of local file;
According to the IP address, the connection request is sent to into the minimum server of the load.
Alternatively, when the quantity that the minimum server of present load is determined from the plurality of server is many When individual, a server is randomly selected from the minimum server of the plurality of load, and please by the connection Ask and be sent to the server.
Alternatively, before distributing user equipment connection request and after distributing user equipment connection request, institute The mode that connection is set up between multiple servers and user equipment is stated to grow connection.
A kind of user equipment connection request assigned unit that the embodiment of the present application is provided, including:
Receiving unit, for receiving that multiple servers send for characterizing book server current loading condition value Data and user equipment send connection request;
Processing unit, for being sent according to each server for characterizing book server present load shape The data of state value, are allocated to the connection request.
Alternatively, the processing unit specifically for:
For arbitrary server, the sign server present load shape sent according to the server The data of state value, calculate the server current loading condition value and account for the current total load state of the plurality of server The ratio of the meansigma methodss of value;
Account for the plurality of when there is the corresponding current loading condition value of any server in the plurality of server The ratio of the meansigma methodss of the current total load state value of server not in default threshold range when, from described many The minimum server of present load is determined in individual server;
The connection request is sent to into the minimum server of the load.
Alternatively, what the plurality of server that the receiving unit is received sent works as characterizing book server The data of front load condition value are the sum of the connection request of the user equipment that book server currently has been received by Amount.
Alternatively, the processing unit is specifically additionally operable to:
Work as when the corresponding server current loading condition value of the plurality of server accounts for the plurality of server The ratio of the meansigma methodss of front total load state value, when in the default threshold range, mean allocation is come The plurality of server is given from the connection request in user equipment.
Alternatively, the connection request of the user equipment is sent to the load minimum by the processing unit After server, it is additionally operable to:
When the minimum corresponding current loading condition value of server of the load, to account for the plurality of server current When the ratio of the meansigma methodss of total load state value is reached in the default threshold range, stop to the load Minimum server is sent current from the connection request of user equipment;
The mode of mean allocation is taken to be sent to the plurality of server the connection request of the user equipment.
Alternatively, the receiving unit periodically receive that the plurality of server sends for characterizing this clothes The data of business device current loading condition value.
Alternatively, the processing unit periodically calculates each server current loading condition value and accounts for described many The ratio of the meansigma methodss of the current total load state value of individual server.
Alternatively, when the connection request is sent to the minimum server of the load by the processing unit, Specifically for:
The IP address of the minimum server of the load is obtained from the Hash table of local file;
According to the IP address, the connection request is sent to into the minimum server of the load.
Alternatively, the processing unit is when the service that present load minimum is determined from the plurality of server When the quantity of device is multiple, a server is randomly selected from the minimum server of the plurality of load, and The connection request is sent to into the server.
Alternatively, described device is before distributing user equipment connection request and distributing user equipment connection request Afterwards, the mode that connection is set up between the plurality of server and user equipment is long connection.
Description of the drawings
A kind of flow process of the method for user equipment connection request distribution that Fig. 1 is provided for the embodiment of the present application is illustrated Figure;
The system architecture schematic diagram that Fig. 2 a and Fig. 2 b is provided for the embodiment of the present application;
The method flow of another user equipment connection request distribution that Fig. 3 is provided for the embodiment of the present application is illustrated Figure;
A kind of structural representation of user equipment connection request assigned unit that Fig. 4 is provided for the embodiment of the present application Figure.
Specific embodiment
The embodiment of the present application provides a kind of method and device of user equipment connection request distribution, to grow The fast uniform of multiple server loads is realized under connection.
The embodiment of the present application, by periodically receiving working as characterizing book server for multiple servers transmissions The data of front load condition value, and according to received multiple servers send for characterizing book server The data of current loading condition value, calculate and judge that the corresponding current loading condition value of each server is accounted for described Whether the ratio of the meansigma methodss of the current total load state value of multiple servers is in default threshold range.Work as institute Exist in stating multiple servers the corresponding current loading condition value of any server account for the plurality of server work as The ratio of the meansigma methodss of front total load state value not in default threshold range when, from the plurality of server In determine the minimum server of present load, and will be sent to current from the connection request in user equipment The minimum server of the load, realizes that the load of multiple servers is rapidly achieved balance.When the plurality of clothes The corresponding server current loading condition value of business device accounts for the current total load state value of the plurality of server The ratio of meansigma methodss, when in the default threshold range, mean allocation comes from the company of user equipment Request is connect to the plurality of server, so as to realize the load balancing of the plurality of server.
Below in conjunction with the accompanying drawings the embodiment of the present application is set forth in.
In load-balanced server side, referring to Fig. 1, the embodiment of the present application connects there is provided a kind of user equipment The method of request distribution, including:
S101, receive that multiple servers send for characterize the data of book server current loading condition value with And the connection request that user equipment sends;
S102, the number for characterizing book server current loading condition value sent according to each server According to being allocated to the connection request.
The embodiment of the present application, by receiving that multiple servers send for characterizing book server present load shape The data of state value, can learn the respective load condition of multiple servers in real time, and according to the plurality of server The data for characterizing book server current loading condition value for sending, are allocated to the connection request, Efficiently solve the problems, such as multiple server load fast uniforms under long connection.
Alternatively, according to each server send for characterizing book server current loading condition value Data, are allocated to the connection request, specifically include:
For arbitrary server, the sign server present load shape sent according to the server The data of state value, calculate the server current loading condition value and account for the current total load state of the plurality of server The ratio of the meansigma methodss of value;
Account for the plurality of when there is the corresponding current loading condition value of any server in the plurality of server The ratio of the meansigma methodss of the current total load state value of server not in default threshold range when, from described many The minimum server of present load is determined in individual server;
The connection request is sent to into the minimum server of the load.
So as to when in the multiple servers in cluster, the load of any one is larger with other server gaps When, by said method, the load fast uniform of the multiple servers being capable of achieving in cluster.When there is new clothes Business device add cluster after, realize the new addition server load rapidly with original work in the cluster The load of the server of work reaches balance, improves the performance of cluster.
It should be noted that the connection request for loading the user equipment received with the server of server Quantity is directly proportional.This is because, when the connection request of the user equipment that server is received, should Server needs to process the connection request of the user equipment, such as the process of related data, CPU The occupancy of (Central Processing Unit, central processing unit), the occupancy of disk I/O, network take etc. Deng can all cause the load of the server correspondingly to increase.Therefore, by will be current from user equipment Connection request be sent to the minimum server of the load, the server that the load can be caused minimum Load rapidly increases.
Here, the number of the plurality of server being represented with N, the plurality of server is currently always born for we Carry state value LtotalRepresent, any server current loading condition value accounts for the plurality of server and currently always bears Carry the ratio P of the meansigma methodss of state valueiRepresent, any server current loading condition value LiRepresent, Wherein i represents the corresponding numbering of any server, for distinguishing different servers.Meanwhile, in order to Convenient to illustrate, any server for hereinafter occurring corresponding current loading condition value is accounted for the plurality of by us The ratio of the meansigma methodss of the current total load state value of server uses PiRepresent, and other symbols such as Ltotal、 N、LiContinuation is hereinafter continued to use Deng also.
Then PiIt is represented by:
The PiNot in default threshold range, can be PiLess than the default threshold range, Can be PiMore than the default threshold range.For example, threshold range is set to 70%-130%, for volume Number for 1 server, be calculated its P1Value be 20%, then P1Less than the default threshold range; Or for the server that numbering is 2, it is calculated its P2Value be 140%, then P2It is default more than described Threshold range.The P of gained is calculated more than i.e.1And P2Not in default threshold range.Certainly, it is right In threshold range, user can carry out sets itself as the case may be, for example, can also be set as 80%-120%, 90%-110% etc..
Wherein, the default threshold range, can preset a unified threshold to the plurality of server Value scope;Can also preset a threshold range to each server, the threshold range can with identical, This can be not construed as limiting with difference, the embodiment of the present application.
Method for the minimum server of present load is determined from the plurality of server, can have many Kind.For example, it is possible to use the current corresponding load condition value of each server is minimum to determine present load Server, it is also possible to using the P of each serveriThe value server minimum to determine present load.
A kind of concrete side that the minimum server of present load is determined from the plurality of server is given below Method.
When the number for characterizing book server current loading condition value for receiving the plurality of server transmission According to rear, it is stored in the Hash table of local file after the data are counted.At current time, work as institute There is the corresponding P of any server in stating multiple serversiWhen not in default threshold range, according to sequence Rule is ranked up to the corresponding load condition value of each server in current Hash table, for example with heapsort Method, finds out the minimum corresponding IP of server of load, so that it is determined that going out the minimum server of present load. It is of course also possible to use other sort methods, such as quicksort, merger sequence etc..
Alternatively, according to each server send for characterizing book server current loading condition value Data, are allocated to the connection request, also include:
Work as when the corresponding server current loading condition value of the plurality of server accounts for the plurality of server The ratio of the meansigma methodss of front total load state value, when in the default threshold range, mean allocation is come The plurality of server is given from the connection request in user equipment.
Wherein, the mode that mean allocation is taken current from the connection request in user equipment is sent to described Multiple servers, can have various implementations.
It is for instance possible to use polling mechanism, that is, by the connection request of multiple user equipmenies, cyclically give The connection request of one user equipment of each server-assignment, so as to so that each server is received To the quantity of connection request of user equipment be average.
Or, random allocation mechanism can be adopted, that is, when the connection for sending multiple user equipmenies one by one please When asking to the plurality of server, per the connection request for sending out a user equipment, just from the plurality of server In randomly select a server, the connection request of the user equipment is sent to into the server then.So, The quantity of the connection request of the user equipment that each server in cluster is received it is also assumed that be it is impartial, It is thus possible to ensure that the load of multiple servers tends to balance.Certainly, in addition to above two mode, may be used also To adopt other implementations, the embodiment of the present application to be not especially limited this implementation.
That is, when the corresponding server current loading condition value of the plurality of server accounts for the plurality of The ratio of the meansigma methodss of the current total load state value of server, when in the default threshold range, respectively Load gap between server less, one can consider that the current load of the plurality of server is average , therefore, take mean allocation to come from the mode of the connection request of user equipment, realize the plurality of clothes The load balancing of business device.By adopting in this way, it is convenient to omit the minimum server of above-mentioned determination load Process, and then save the time of connection request to the plurality of server-assignment user equipment.
Alternatively, after the connection request of user equipment being sent to the minimum server of the load, the party Method also includes:
When the minimum corresponding current loading condition value of server of the load, to account for the plurality of server current When the ratio of the meansigma methodss of total load state value is reached in the default threshold range, stop to the load Minimum server is sent current from the connection request of user equipment;
The mode of mean allocation is taken to be sent to the plurality of server the connection request of user equipment.
So as to effectively prevent the minimum corresponding server current loading condition value of server of the load The ratio for accounting for the meansigma methodss of the current total load state value of the plurality of server exceeds the default threshold value model Enclose, cause multiple server loads unbalanced.
It is briefly described below for said method bright.
Assume that default threshold range is 80%-120%, in current time, the minimum server of the load PiIt is worth for 10%, after the minimum server of present load is determined, the user equipment that subsequently will occur Connection request continuously transmit and give the load minimum server.At the same time, the load is received in real time most Little server send to should server current loading condition value data, and calculate and judge the load The P of minimum serveriWhether value reaches the default threshold range.Assume at the follow-up a certain moment, Calculate the P of the minimum server of the loadiIt is worth for 80%, then stops to the minimum service of the load Device is sent current from the connection request of user equipment, and current time is come from the connection of user equipment please Ask and take the mode of mean allocation to be sent to the plurality of server.
Alternatively, the data for characterizing book server current loading condition value that the plurality of server sends The total quantity of the connection request of the user equipment currently having been received by for book server.
Alternatively, it is described receive that multiple servers send for characterizing book server current loading condition value Data are periodically carried out.
Alternatively, each server current loading condition value of the calculating accounts for the plurality of server and currently always bears The ratio for carrying the meansigma methodss of state value is periodically carried out.
In the above-mentioned cycle, for example, it can be set to being 10ms, 20ms etc., can be set as the case may be.
Alternatively, the connection request is sent to into the minimum server of the load, is specifically included:
The IP address of the minimum server of the load is obtained from the Hash table of local file;
According to the IP address, the connection request is sent to into the minimum server of the load.
Alternatively, when the quantity that the minimum server of present load is determined from the plurality of server is many When individual, a server is randomly selected from the minimum server of the plurality of load, and please by the connection Ask and be sent to the server.
For example, in multiple servers, two servers have been calculated and has distinguished corresponding current loading condition The ratio value that value accounts for the meansigma methodss of the current total load state value of the plurality of server is identical, at this moment, current negative The quantity for carrying minimum server is just 2, in this case, it is possible to from the clothes that the two loads are minimum A server is randomly selected in business device, and the clothes will be sent to current from the connection request in user equipment Business device.
Alternatively, before distributing user equipment connection request and after distributing user equipment connection request, institute The mode that connection is set up between multiple servers and user equipment is stated to grow connection.
Alternatively, the method for a kind of user equipment connection request distribution that the embodiment of the present application is provided, it is adaptable to The situation of long connection, to solve the problems, such as multiple server load fast uniforms under long connection.Certainly, The method of the user equipment connection request distribution that the embodiment of the present application is provided is applied to the situation of short connection Can with.
With reference to specific application scenarios, the embodiment of the present application is explained in detail.
Assume current time, in system cluster, have 3 servers, respectively server A, server B and Server C, the load balancing of these three servers are performed by load-balanced server, from user equipment Request, is sent to server A by load-balanced server, server B, server C, as shown in Figure 2 a.
In subsequent time, due to cluster in 3 servers be subject to the reasons such as its physical configuration, its load to reach To now, can needing to newly increase a server, i.e. server D, such as Fig. 2 b in cluster with the scope of dilatation It is shown.
Wherein, shown in Fig. 2 a and Fig. 2 b A requests, B requests, C requests etc. are simply schematic, The connection request quantity of the user equipment that each server is an actually-received, correspondingly, user equipment are not represented The connection request of side is also simply schematic.In practical application scene, the number of the connection request of user equipment Amount is a lot, and the connection request quantity of the user equipment handled by each server is also a lot, can such as be 100 It is individual, 1000 etc..
Now, in the embodiment of the present application, Fig. 3 can be found in the method that the connection request of user equipment distributes, So that the load of four servers (server A, server B, server C and server D) Fast uniform, the method are specifically included:
Step 201, the number for characterizing book server current loading condition value for receiving four servers transmissions According to this and user equipment send connection request, rear steering step 202;
Step 202, for arbitrary server, the sign server sent according to the server The data of current loading condition value, calculating the server current loading condition value, to account for the plurality of server current Ratio P of the meansigma methodss of total load state valuei, rear steering step 203;
In the present embodiment, load-balanced server by receive four servers send for characterizing this The data of server current loading condition value are stored in the Hash table of local file, and each clothes that will be calculated The P of business deviceiValue is also stored in the Hash table of local file, specifically can be found in shown in table 1.
Table 1
Here, it is emphasized that the data in Hash table in table 1 are also simply schematically given, not Load condition value and P in representative server real workiValue.
Step 203, the P for judging four serversiIt is worth whether in default threshold range, if described The P of four serversiValue in the default threshold range, then execution step 205, otherwise execution step 204;
The threshold range that hypothesis the present embodiment sets (is joined as 80%-120% by the result of calculation of step 202 It is shown in Table and 1) understands, the P of logical server DiValue is not in default scope.
Step 204, the minimum server of present load is determined from the plurality of server, proceeded to afterwards Step 206;
Here, specifically it is ranked up using the corresponding load condition value of four servers in table 1, and then really Make the minimum server of present load, i.e. server D.
Step 205, mean allocation come from the connection request of user equipment to four servers;
Step 206, the service that the load minimum will be sent to current from the connection request in user equipment Device.
Here, from the IP address of reading service device D in the Hash table for passing through sequence, and then will be current from The corresponding IP address of server D is sent in the connection request of user equipment.
So far, realize that the load of the server D for newly increasing rapidly is reached with the load of other servers in cluster To balance.
Referring to Fig. 4, the embodiment of the present application provides a kind of user equipment connection request assigned unit, including:
Receiving unit 11, for receiving that multiple servers send for characterizing book server current loading condition The connection request that the data of value and user equipment send;
Processing unit 12, for being sent according to each server for characterizing book server present load The data of state value, are allocated to the connection request.
Alternatively, the processing unit 12 specifically for:
For each server, the sign server present load shape sent according to the server The data of state value, calculate the server current loading condition value and account for the current total load state of the plurality of server The ratio of the meansigma methodss of value;
Account for the plurality of when there is the corresponding current loading condition value of any server in the plurality of server The ratio of the meansigma methodss of the current total load state value of server not in default threshold range when, from described many The minimum server of present load is determined in individual server;
The connection request is sent to into the minimum server of the load.
Alternatively, the plurality of server that the receiving unit 11 is received send for characterizing this service The data of device current loading condition value are the connection request of the user equipment that book server currently has been received by Total quantity.
Alternatively, the processing unit 12 is specifically additionally operable to:
Work as when the corresponding server current loading condition value of the plurality of server accounts for the plurality of server The ratio of the meansigma methodss of front total load state value, when in the default threshold range, mean allocation is come The plurality of server is given from the connection request in user equipment.
Alternatively, the connection request of user equipment is sent to the load minimum by the processing unit 12 During server, it is additionally operable to:
When the minimum corresponding current loading condition value of server of the load, to account for the plurality of server current When the ratio of the meansigma methodss of total load state value is reached in the default threshold range, stop to the load Minimum server is sent current from the connection request of user equipment;
The mode of mean allocation is taken to be sent to the plurality of server the connection request of user equipment.
Alternatively, the receiving unit 11 periodically receive that the plurality of server sends for characterizing The data of book server current loading condition value.
Alternatively, the processing unit 12 periodically calculates each server current loading condition value and accounts for institute State the ratio of the meansigma methodss of the current total load state value of multiple servers.
Alternatively, the connection request is sent to the minimum server of the load by the processing unit 12 When, specifically for:
The IP address of the minimum server of the load is obtained from the Hash table of local file;
According to the IP address, the connection request is sent to into the minimum server of the load.
Alternatively, the processing unit 12 ought determine present load minimum from the plurality of server When the quantity of server is multiple, a service is randomly selected from the minimum server of the plurality of load Device, and the connection request is sent to into the server.
Alternatively, described device is before distributing user equipment connection request and distributing user equipment connection request Afterwards, the mode that connection is set up between the plurality of server and user equipment is long connection.
The embodiment of the present application can realize above-mentioned each functional unit by specific hardware processor.
The device of the load balancing that the embodiment of the present application is provided, for example, can be above-mentioned load balancing service Device.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or meter Calculation machine program product.Therefore, the application can be using complete hardware embodiment, complete software embodiment or knot The form of the embodiment in terms of conjunction software and hardware.And, the application can be using wherein wrapping at one or more Computer-usable storage medium containing computer usable program code (including but not limited to disk memory and Optical memory etc.) on the form of computer program implemented.
The application be with reference to according to the method for the embodiment of the present application, equipment (system), and computer program produce The flow chart and/or block diagram of product is describing.It should be understood that can by computer program instructions flowchart and / or block diagram in each flow process and/or square frame and flow chart and/or the flow process in block diagram and/ Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedded The processor of formula datatron or other programmable data processing devices is producing a machine so that by calculating The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one The device of the function of specifying in individual flow process or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in and computer or other programmable datas process can be guided to set In the standby computer-readable memory for working in a specific way so that be stored in the computer-readable memory Instruction produce and include the manufacture of command device, command device realization is in one flow process or multiple of flow chart The function of specifying in one square frame of flow process and/or block diagram or multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing devices, made Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one The step of function of specifying in flow process or one square frame of multiple flow processs and/or block diagram or multiple square frames.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this Shen to the application Spirit and scope please.So, if the application these modification and modification belong to the application claim and Within the scope of its equivalent technologies, then the application is also intended to comprising these changes and modification.

Claims (16)

1. a kind of method that user equipment connection request distributes, it is characterised in that the method includes:
Receive data and use for characterizing book server current loading condition value that multiple servers send The connection request that family equipment sends;Currently born for characterizing book server according to what each server sent The data of state value are carried, the connection request is allocated.
2. method according to claim 1, it is characterised in that sent according to each server The data for characterizing book server current loading condition value, the connection request is allocated, specifically Including:
For arbitrary server, the sign server present load shape sent according to the server The data of state value, calculate the server current loading condition value and account for the current total load state of the plurality of server The ratio of the meansigma methodss of value;
Account for the plurality of when there is the corresponding current loading condition value of any server in the plurality of server The ratio of the meansigma methodss of the current total load state value of server not in default threshold range when, from described many The minimum server of present load is determined in individual server;
The connection request is sent to into the minimum server of the load.
3. method according to claim 2, it is characterised in that the use that the plurality of server sends In the user equipment that the data for characterizing book server current loading condition value are currently had been received by for book server Connection request total quantity.
4. method according to claim 2, it is characterised in that the method also includes:
Work as when the corresponding server current loading condition value of the plurality of server accounts for the plurality of server The ratio of the meansigma methodss of front total load state value, when in the default threshold range, mean allocation is come The plurality of server is given from the connection request in user equipment.
5. method according to claim 2, it is characterised in that the connection request is sent to into institute After stating the minimum server of load, the method also includes:
When the minimum corresponding current loading condition value of server of the load, to account for the plurality of server current The ratio of the meansigma methodss of total load state value, when reaching in the default threshold range, stops to described bearing Carry minimum server to send current from the connection request of user equipment;
The mode of mean allocation is taken to be sent to the plurality of server the connection request.
6. method according to claim 2, it is characterised in that the connection request is sent to into institute The minimum server of load is stated, is specifically included:
The IP address of the minimum server of the load is obtained from the Hash table of local file;
According to the IP address, the connection request is sent to into the minimum server of the load.
7. method according to claim 2, it is characterised in that when from the plurality of server really When the quantity for making the minimum server of present load is multiple, from the minimum server of the plurality of load A server is randomly selected, and the connection request is sent to into the server.
8. the method according to the arbitrary claim of claim 1~7, it is characterised in that set in distributing user Before standby connection request and after distributing user equipment connection request, the plurality of server and user equipment it Between set up the mode of connection for long connection.
9. a kind of user equipment connection request assigned unit, it is characterised in that the device includes:
Receiving unit, for receiving that multiple servers send for characterizing book server current loading condition value Data and user equipment send connection request;
Processing unit, for being sent according to each server for characterizing book server present load shape The data of state value, are allocated to the connection request.
10. device according to claim 9, it is characterised in that the processing unit specifically for:
For arbitrary server, the sign server present load shape sent according to the server The data of state value, calculate the server current loading condition value and account for the current total load state of the plurality of server The ratio of the meansigma methodss of value;
Account for the plurality of when there is the corresponding current loading condition value of any server in the plurality of server The ratio of the meansigma methodss of the current total load state value of server not in default threshold range when, from described many The minimum server of present load is determined in individual server;
The connection request is sent to into the minimum server of the load.
11. devices according to claim 9, it is characterised in that it is described that the receiving unit is received The data for characterizing book server current loading condition value that multiple servers send are that book server is current The total quantity of the connection request of the user equipment having been received by.
12. devices according to claim 10, it is characterised in that the processing unit is specifically also used In:
Work as when the corresponding server current loading condition value of the plurality of server accounts for the plurality of server The ratio of the meansigma methodss of front total load state value, when in the default threshold range, mean allocation is come The plurality of server is given from the connection request in user equipment.
13. devices according to claim 10, it is characterised in that the processing unit is by the company Connect after asking to be sent to the minimum server of the load, be additionally operable to:
When the minimum corresponding current loading condition value of server of the load, to account for the plurality of server current When the ratio of the meansigma methodss of total load state value is reached in the default threshold range, stop to the load Minimum server is sent current from the connection request of user equipment;
The mode that mean allocation is taken current from the connection request in user equipment is sent to the plurality of Server.
14. devices according to claim 10, it is characterised in that the processing unit is by the company When connecing request and being sent to the minimum server of the load, specifically for:
The IP address of the minimum server of the load is obtained from the Hash table of local file;
According to the IP address, the connection request is sent to into the minimum server of the load.
15. devices according to claim 10, it is characterised in that the processing unit is when from described The quantity of the minimum server of present load is determined in multiple servers for it is multiple when, from the plurality of load A server is randomly selected in minimum server, and the connection request is sent to into the server.
16. devices according to the arbitrary claim of claim 9~15, it is characterised in that described device exists Before distributing user equipment connection request and after distributing user equipment connection request, the plurality of server with The mode that connection is set up between user equipment is long connection.
CN201510689190.7A 2015-10-21 2015-10-21 A method and apparatus for assigning user equipment connection requests Pending CN106612296A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510689190.7A CN106612296A (en) 2015-10-21 2015-10-21 A method and apparatus for assigning user equipment connection requests

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510689190.7A CN106612296A (en) 2015-10-21 2015-10-21 A method and apparatus for assigning user equipment connection requests

Publications (1)

Publication Number Publication Date
CN106612296A true CN106612296A (en) 2017-05-03

Family

ID=58610907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510689190.7A Pending CN106612296A (en) 2015-10-21 2015-10-21 A method and apparatus for assigning user equipment connection requests

Country Status (1)

Country Link
CN (1) CN106612296A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107302580A (en) * 2017-06-30 2017-10-27 北京金山安全软件有限公司 Load balancing method and device, load balancer and storage medium
CN108200218A (en) * 2018-03-09 2018-06-22 北京奇艺世纪科技有限公司 A kind of method, apparatus and electronic equipment for realizing load balancing
CN109698847A (en) * 2017-10-23 2019-04-30 航天信息股份有限公司 A kind of read method and system of the cloud storage system equally loaded based on the request processing time

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127701A (en) * 2007-07-24 2008-02-20 深圳市深信服电子科技有限公司 Method for realizing proxy server load balance via network device
CN101699793A (en) * 2008-04-23 2010-04-28 北京恒泰实达科技发展有限公司 Method for implementing automatic backup and load balance of proxy servers
CN102244685A (en) * 2011-08-11 2011-11-16 中国科学院软件研究所 Distributed type dynamic cache expanding method and system supporting load balancing
CN103036979A (en) * 2012-12-12 2013-04-10 广州尚融网络科技有限公司 Server loading balancing method and loading balancer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127701A (en) * 2007-07-24 2008-02-20 深圳市深信服电子科技有限公司 Method for realizing proxy server load balance via network device
CN101699793A (en) * 2008-04-23 2010-04-28 北京恒泰实达科技发展有限公司 Method for implementing automatic backup and load balance of proxy servers
CN102244685A (en) * 2011-08-11 2011-11-16 中国科学院软件研究所 Distributed type dynamic cache expanding method and system supporting load balancing
CN103036979A (en) * 2012-12-12 2013-04-10 广州尚融网络科技有限公司 Server loading balancing method and loading balancer

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑祺: ""基于混合策略的集群负载均衡算法研究"", 《浙江科技学院学报》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107302580A (en) * 2017-06-30 2017-10-27 北京金山安全软件有限公司 Load balancing method and device, load balancer and storage medium
CN107302580B (en) * 2017-06-30 2020-05-29 北京金山安全软件有限公司 Load balancing method and device, load balancer and storage medium
CN109698847A (en) * 2017-10-23 2019-04-30 航天信息股份有限公司 A kind of read method and system of the cloud storage system equally loaded based on the request processing time
CN108200218A (en) * 2018-03-09 2018-06-22 北京奇艺世纪科技有限公司 A kind of method, apparatus and electronic equipment for realizing load balancing
CN108200218B (en) * 2018-03-09 2021-11-26 北京奇艺世纪科技有限公司 Method and device for realizing load balance and electronic equipment

Similar Documents

Publication Publication Date Title
CN105391797B (en) Cloud Server load-balancing method and device based on SDN
CN109327550A (en) A kind of distribution method of access request, device, storage medium and computer equipment
CN103929492A (en) Method, devices and system for load balancing of service chain
CN106850834A (en) A kind of service request method and apparatus and load equalizer
CN103401947A (en) Method and device for allocating tasks to multiple servers
CN106156159A (en) A kind of table connection processing method, device and cloud computing system
CN101815033A (en) Method, device and system for load balancing
CN108173698A (en) Network service management method, apparatus, server and storage medium
CN113037869A (en) Method and apparatus for back-sourcing of content distribution network system
CN109218341B (en) Load balancing method and device for monitoring server and server
CN108111595A (en) The equalization methods and device of a kind of server load
WO2014194704A1 (en) A grouping processing method and system
CN106612296A (en) A method and apparatus for assigning user equipment connection requests
CN105978938A (en) Service processing equipment service status determining method and scheduling equipment
CN108123891A (en) The dynamic load balancing method realized in SDN network using distributed domain controller
CN105872082A (en) Fine-grained resource response system based on load balancing algorithm of container cluster
CN109347982A (en) A kind of dispatching method and device of data center
CN110069319B (en) Multi-target virtual machine scheduling method and system for cloud resource management
CN105120008B (en) A kind of distributed cloud computing center balancing method of loads based on layering
CN115334001B (en) Data resource scheduling method and device based on priority relation
CN104243587A (en) Load balancing method and system for message servers
CN103795788B (en) The load-balancing method and load-balanced server of instant communication server
WO2016173133A1 (en) Load sharing implementation method, interface machine, service processor and system
CN109981696A (en) A kind of load-balancing method, device and equipment
CN104270321A (en) Network load balancing method and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170503