CN107707586A - Load-balancing method and device - Google Patents

Load-balancing method and device Download PDF

Info

Publication number
CN107707586A
CN107707586A CN201610645705.8A CN201610645705A CN107707586A CN 107707586 A CN107707586 A CN 107707586A CN 201610645705 A CN201610645705 A CN 201610645705A CN 107707586 A CN107707586 A CN 107707586A
Authority
CN
China
Prior art keywords
server
load value
message
cluster
load
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
CN201610645705.8A
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610645705.8A priority Critical patent/CN107707586A/en
Publication of CN107707586A publication Critical patent/CN107707586A/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
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Abstract

This application discloses load-balancing method and device.One embodiment of methods described includes:Receive the message that client is sent;It is determined that receiving the server cluster of the message, the minimum load value of value is selected from the load value list of the server cluster;The server associated with selected load value is defined as least loaded server, and sends the message to the least loaded server;The new load value that the least loaded server is sent is received, the new load value is updated in the load value list, wherein, the new load value is the load value that the least loaded server recalculates to obtain after receiving the message;Each server into the server cluster sends the message for indicating the load value list change.The embodiment realizes the load balancing between server cluster server.

Description

Load-balancing method and device
Technical field
The application is related to field of computer technology, more particularly to Internet technical field, specifically relates to And load-balancing method and device.
Background technology
In internet arena, to realize the scalability of system, high availability, service can be used The mode of device cluster sets up system, and server cluster refers to multiple servers with identical function Offer service is concentrated in together, in client just as there was only a server.It is whole to improve The handling capacity and concurrency of individual system are, it is necessary to using the method for load balancing by point of task balance It is fitted on each server in server cluster.
The method of existing load balancing is randomly assigned task method and circulation is sequentially allocated task dispatching Method, but these methods are all the load informations of each server in server cluster is not known In the case of task distributed to a certain server, easily cause part server overload, Reduce the handling capacity and concurrency of whole system.
The content of the invention
The purpose of the application is to propose a kind of improved load-balancing method and device, to solve The technical problem that background section above is mentioned.
In a first aspect, this application provides a kind of load-balancing method, methods described includes:Connect Receive the message that client is sent;It is determined that the server cluster of the message is received, from the service The minimum load value of value is selected in the load value list of device cluster, wherein, the server set The load value list of group is made up of the load value of each server in the server cluster List, load value be characterize server process message capability data;It will be born with selected The associated server of charge values is defined as least loaded server, and sends the message to institute State least loaded server;The new load value that the least loaded server is sent is received, by institute New load value is stated to be updated in the load value list, wherein, the new load value be it is described most Smaller load server recalculates obtained load value after receiving the message;To the clothes Each server being engaged in device cluster sends the message for indicating the load value list change.
In certain embodiments, the load value is server according to having received and pending disappeared The number of breath, the duration for handling message, each performance parameter of the server are calculated, Wherein, each performance parameter comprise at least CPU (Central Processing Unit, in Central processor) load, IO (Input Output, input and output) expense.
In certain embodiments, the load-balancing method also includes:It is determined that newly-increased server branch Hold the classification of the message of reception;Destination server cluster is determined whether there is, wherein, the mesh Mark server cluster is the classification of the classification and the message of the newly-increased server reception that receive message Consistent server cluster;In response to destination server cluster be present, then by the newly-increased service Device belongs to the destination server cluster;The load value that the newly-increased server is sent is received, The load value is added in the load value list of the destination server cluster;To the mesh Each server in mark server cluster, which is sent, indicates disappearing for the load value list change Breath;The new load value that the server in the destination server cluster is sent is received, for receiving Each the new load value arrived, the new load value is updated in the load value list, wherein, New load value is counted again after the server in the destination server cluster receives the message Obtained load value.
In certain embodiments, the load-balancing method also includes:
Whether the load value list for detecting the destination server cluster has renewal;In response to detection Load value list to the destination server cluster has renewal, then to the destination server collection Each server in group sends the message for indicating the load value list change.
In certain embodiments, the load-balancing method also includes:In response in the absence of target Server cluster, then the newly-increased server is belonged to new demand servicing device cluster, wherein, it is described New demand servicing device cluster includes the newly-increased server;Receive the load that the newly-increased server is sent Value, the load value is added in the load value list of the new demand servicing device cluster;To described The newly-increased server in new demand servicing device cluster, which is sent, indicates disappearing for the load value list change Breath.
In certain embodiments, the load value in the load-balancing method load value list be by It is tactic according to from small to large.
Second aspect, the load balancing apparatus that the application provides, described device include:Receive single Member, it is configured to receive the message that client is sent;Unit is chosen, is configured to determine to receive The server cluster of the message, value is selected from the load value list of the server cluster Minimum load value, wherein, the load value list of the server cluster is by the server The list of the load value composition of each server in cluster, load value are characterized at server Manage the data of message capability;Transmitting element, being configured to will be associated with selected load value Server be defined as least loaded server, and send the message to the minimum load Server;Updating block, it is configured to receive the new load that the least loaded server is sent Value, the new load value is updated in the load value list, wherein, the new load value It is the load value that the least loaded server recalculates to obtain after receiving the message; First notification unit, it is configured to the transmission of each server into the server cluster and refers to Show the message of the load value list change.
In certain embodiments, load value is server according to having received and waited to locate in described device The number of the message of reason, the duration for handling message, each performance parameter of the server calculate Arrive, wherein, each performance parameter includes cpu load, IO expenses.
In certain embodiments, described device also includes:Classification determination unit, it is configured to really Surely newly-increased server supports the classification of the message received;Judging unit, it is configured to determine whether Destination server cluster be present, wherein, the destination server cluster is the classification for receiving message The server cluster consistent with the classification for the message that the newly-increased server receives;First ownership is single Member, it is configured in response to destination server cluster be present, then belongs to the newly-increased server To the destination server cluster;First list updating block, it is configured to receive described increase newly The load value that server is sent, by the load value bearing added to the destination server cluster In charge values list;Second notification unit, it is configured to every into the destination server cluster One server sends the message for indicating the load value list change;Second list updating block, It is configured to receive the new load value that the server in the destination server cluster is sent, for Each the new load value received, the new load value is updated in the load value list, Wherein, new load value is after server in the destination server cluster receives the message Recalculate obtained load value.
In certain embodiments, described device also includes:Detection unit, it is configured to detect institute Whether the load value list for stating destination server cluster has renewal;Load value list Notification of Changes list Member, it is configured in response to detecting that the load value list of the destination server cluster has renewal, Then each server into the destination server cluster, which is sent, indicates the load value list The message of change.
In certain embodiments, described device also includes:Second ownership unit, is configured to ring Destination server cluster is not present in Ying Yu, then belongs to the newly-increased server to new demand servicing device collection Group, wherein, the new demand servicing device cluster includes the newly-increased server;3rd list update list Member, it is configured to receive the load value that the newly-increased server is sent, the load value is added Into the load value list of the new demand servicing device cluster;Third notice unit, it is configured to institute State the newly-increased server in new demand servicing device cluster and send the instruction load value list change Message.
In certain embodiments, the load value in described device in load value list is according to from small To big tactic.
The load-balancing method and device that the application provides, by receiving message, it is determined that processing disappears The minimum server of load value, then sends a message to load value most in the server cluster of breath Small server, final updating load value list all can will be above-mentioned after message so as to receive every time Message sends the handling capacity and concurrency for the minimum server of load value, improving whole system.
Brief description of the drawings
Retouched by reading with reference to the detailed of being made to non-limiting example of being made of the following drawings State, other features, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the load-balancing method of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the load-balancing method of the application;
Fig. 4 is the flow chart according to another embodiment of the load-balancing method of the application;
Fig. 5 is the structural representation according to one embodiment of the load balancing apparatus of the application;
Fig. 6 is the structural representation according to another embodiment of the load balancing apparatus of the application Figure;
Fig. 7 is adapted for the structure of the computer system of the server for realizing the embodiment of the present application Schematic diagram.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is appreciated that , specific embodiment described herein is used only for explaining related invention, rather than to the hair Bright restriction.It also should be noted that for the ease of description, illustrate only in accompanying drawing with About the related part of invention.
It should be noted that in the case where not conflicting, embodiment and embodiment in the application In feature can be mutually combined.Describe this in detail below with reference to the accompanying drawings and in conjunction with the embodiments Application.
Fig. 1 shows the reality of the load-balancing method or load balancing apparatus that can apply the application Apply the exemplary system architecture 100 of example.
As shown in figure 1, system architecture 100 can include terminal device 101,102, server 103, network 104,106, load-balanced server 105, belong to same server cluster Server 107,108,109.Network 104 is in terminal device 101,102, service The medium of communication link is provided between device 103 and load-balanced server 105.Network 106 is used With load-balanced server 105 and belong to same server cluster server 107,108, The medium of communication link is provided between 109.Network 104,106 can include various connection types, Such as wired, wireless communication link or fiber optic cables etc..
User can pass through network 104 and load-balanced server with using terminal equipment 101,102 105 interactions, to receive or send message etc..Or server 103 by network 104 and is born Carry equalization server 105 to interact, to receive or send message etc..Load-balanced server 105 Interacted by network 106 with belonging to the server 107,108,109 of same server cluster, To receive or send message.Various telecommunication customer ends can be installed on terminal device 101,102 Using, such as web browser applications, the application of shopping class, searching class application, instant messaging work Tool, mailbox client, social platform software etc., server 103 can push various message, Such as logistics notification message, price reduction notification message.
Terminal device 101,102 can be various electronic equipments, including but not limited to smart mobile phone, Tablet personal computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio layer Face 4) player, pocket computer on knee and desktop computer etc..
Load-balanced server 105 can have receive message, forwarding message, realize load The server of the functions such as equilibrium, such as receiving terminal apparatus 101,102 or server 103 disappear Breath, and above-mentioned message is forwarded in server 107,108,109 according to load-balancing algorithm Some server, wherein, server 107,108,109 belongs to same server set Group, and each server has the functions such as processing message, calculated load value.
It should be noted that the load-balancing method that the embodiment of the present application is provided is typically by loading Equalization server 105 performs, and correspondingly, load balancing apparatus is generally positioned at load balancing clothes It is engaged in device 105.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only to illustrate Property.According to needs are realized, can have any number of terminal device, network and server.
With continued reference to Fig. 2, one embodiment of the load-balancing method according to the application is shown Flow 200.Described load-balancing method, comprises the following steps:
Step 201, the message that client is sent is received.
In the present embodiment, electronic equipment (such as the Fig. 1 of load-balancing method operation thereon Shown load-balanced server 105) wired connection mode or wireless connection side can be passed through Formula receives message from client, wherein, client can be subscriber terminal equipment (such as Fig. 1 institutes The terminal device 101 that shows, 102), in a distributed system client can also be server (such as Server 103 shown in Fig. 1).Above-mentioned radio connection can include but is not limited to 3G/4G Connection, WiFi connections, bluetooth connection, WiMAX connections, Zigbee connections, UWB (ultra Wideband) connection and other currently known or exploitation in the future radio connections.On It can be various types of other message to state message.As an example, above-mentioned message can be goods browse Message, order generation message, logistics notification message, price reduction notification message.
Step 202, it is determined that the server cluster of message is received, from the load value of server cluster The minimum load value of value is selected in list.
In the present embodiment, server cluster be by multiple server groups with identical function into Server zone.Above-mentioned electronic equipment can obtain configured all services by configuration file The information of device cluster, for each server cluster in above-mentioned all server clusters, The incidence relation for the processing message that can be supported according to server cluster and server cluster, judges Whether the server cluster can be with the above-mentioned message of reception processing.If the server cluster can connect Receive and handle above-mentioned message, then value minimum is selected from the load value list of the server cluster Load value.Load value is the data for characterizing server process message capability, and the load value can be One in following performance parameter:The utilization rate of central processor CPU, the utilization rate of internal memory, Startup of server enters number of passes.If the minimum load of multiple values in the load value list be present Value, the load value of one value minimum of selection that can be random, can also be from according to ascending Tactic above-mentioned load value list in select the first load value as needing the value chosen most Small load value.Wherein, the load value list of the server cluster is by the server cluster Each server load value composition list.
In some optional implementations of the present embodiment, the load value in load value list is It is tactic according to from small to large.
In some optional implementations of the present embodiment, load value is server according to the clothes Business device has received and the number of pending message, the duration of the server process message, the clothes The data that business each performance parameter of device is calculated.Can calculated load value in accordance with the following steps:
First, acquisition server has received and the number of pending message.
Second, the duration used in the last processing message of the server is calculated, wherein, duration Unit is millisecond.
3rd, obtain at least one in following performance parameter:Central processor CPU loads, is defeated Enter to export IO expenses, wherein, above-mentioned cpu load refers to the current CPU usage of the server, Above-mentioned IO expenses refer to the bit number of the data of the transmission per second of the port of the server or reception.
4th, for each performance parameter at least one performance parameter of above-mentioned acquisition, Quantification treatment is carried out to the performance parameter, it is determined that the parameter value after quantifying.As an example, CPU Utilization rate, which is less than 40%, can be quantified as 1, and CPU usage can less than 70% more than or equal to 40% To be quantified as 3, CPU usage, which is more than or equal to 70%, can be quantified as 5.Certain root is in reality Situation, CPU usage can also be quantified using other modes, for example, CPU usage It is multiplied by 5 and obtains the parameter value after CPU usage quantifies.Logarithm fortune can be carried out to IO expenses Calculate try to achieve IO expenses quantify after parameter value, or using the value that IO expenses divided by certain numerical value obtain as Parameter value after the quantization of IO expenses.
5th, receive and the number of pending message, above-mentioned last handled according to above-mentioned After each performance parameter in duration, above-mentioned at least one performance parameter used in message quantifies Parameter value default weight, to it is above-mentioned received and the number of pending message, it is above-mentioned on Each performance ginseng in duration, above-mentioned at least one performance parameter used in single treatment message The default weight of parameter value after quantification carries out read group total, obtains the load of above-mentioned server Value.As an example, it is default it is above-mentioned received and the weight of the number of pending message be 2, The weight of duration used in above-mentioned last processing message is 4, above-mentioned at least one performance parameter In each performance parameter quantify after parameter value weight be 5, received and pending The number of message is 7, the duration 9 used in last time processing message, the ginseng that cpu load quantifies Numerical value is that the parameter value that 3, IO expenses quantify is 1, then calculates the formula of the server load value It is as follows:2 × 7+4 × 9+5 × 3+5 × 1=70.
Step 203, the server associated with selected load value is defined as minimum load Server, and send a message to least loaded server.
In the present embodiment, above-mentioned electronic equipment is according to each load in record load value list Value and the incidence relation of server in server cluster, determine the associated service of above-mentioned load value Device, and above-mentioned server is set to least loaded server.Above-mentioned message is passed through into wired connection Mode or the mode of wireless connection send to above-mentioned least loaded server.
As an example, above-mentioned electronic equipment receives goods browse message from user terminal, retrieval It is required for receiving above-mentioned business to goods browse server cluster and user behavior monitoring server cluster Product browse message, wherein, goods browse server cluster can be used for reception user and browse commodity Message, above-mentioned message is parsed, return to the merchandise news that user wants to browse, user behavior monitoring Server cluster can be used for reception user and browse commodity message, and parsing user in above- mentioned information will The information such as the classification of the commodity browsed, brand.Above-mentioned electronic equipment is from above-mentioned goods browse service The minimum load value of value is selected in the load value list of device cluster, is arranged according to the load value is recorded The corresponding relation of each load value and server in above-mentioned goods browse server cluster in table, Least loaded server corresponding to above-mentioned load value is determined, and above-mentioned goods browse message is sent To above-mentioned least loaded server.Above-mentioned electronic equipment is from above-mentioned user behavior monitoring server collection The minimum load value of value is selected in the load value list of group, according to recording in the load value list The corresponding relation of each load value and server in above-mentioned user behavior monitoring server cluster, Determine least loaded server corresponding to above-mentioned load value, and by above-mentioned goods browse message or on The copy information for stating goods browse message is sent to the least loaded server.
Step 204, the new load value that least loaded server is sent is received, by new load value more Newly into the load value list of server cluster.
In the present embodiment, above-mentioned electronic equipment can receive least loaded server transmission first New load value, retrieve the server cluster where above-mentioned least loaded server afterwards, then Delete load value corresponding to above-mentioned least loaded server in the load value list of the server cluster And insert above-mentioned new load value.Above-mentioned new load value is that least loaded server receives above-mentioned message Afterwards, obtained load value is recalculated.As an example, in goods browse server cluster most After Smaller load server receives goods browse message, received according to the least loaded server And duration, minimum of the number of pending message, the least loaded server processing message New load value is calculated in load server performance parameter, and above-mentioned new load value transmission is supreme State electronic equipment.Above-mentioned electronic equipment receives the new load value that above-mentioned least loaded server is sent, Retrieve the server cluster i.e. goods browse server set where above-mentioned least loaded server Group, deletes above-mentioned least loaded server in the load value list of the goods browse server cluster Corresponding load value, and the new load value of above-mentioned reception is inserted into the goods browse server cluster Load value list.
In some optional implementations of the present embodiment, the load value in load value list is It is tactic according to from small to large.So above-mentioned electronic equipment can order insertion it is above-mentioned New load value, the load value in the load value list inserted after above-mentioned new load value be still according to From small to large tactic.If when above-mentioned new load value is inserted into load value list, It was found that in the load value list exist with the above-mentioned new multiple load values of load value size identical, can So that above-mentioned new load value is inserted in the multiple load values of identical behind last load value.
Step 205, each server into server cluster sends the negative of server cluster The message of charge values list information change.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can be by pre- What is first created is used to monitor the event of the data change of server cluster load value list, detects Load value changes in the load value list of the server cluster, then into the server cluster Each server send the server cluster load value list change message.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can perform After the load value list that server cluster is updated in complete step 204, into the server cluster Each server sends the message of the load value list change of the server cluster.
In the present embodiment, the server in server cluster receives the change of load value list Message, then load value list is obtained to above-mentioned electronic equipment, if it find that the load of book server Value the above-mentioned index value according in tactic load value list from small to large not become or Above-mentioned index value diminishes, then will not recalculate the load value of oneself.Wherein, above-mentioned index value Refer to the sequence number that above-mentioned load value arranges in above-mentioned load value list.If it find that book server Load value become in the above-mentioned index value according in tactic load value list from small to large Greatly, then the load value of book server can be recalculated, judges new load value according to from small to large Tactic load value list in index value whether can diminish, if above-mentioned index value become It is small, then new load value is sent to above-mentioned electronic equipment.
With continued reference to Fig. 3, Fig. 3 is the application scenarios according to the load-balancing method of the present embodiment An exemplary plot.In Fig. 3 application scenarios.Message generates receipts of the server according to user The merchandise news and the commodity price of the air-conditioning commodity of Tibetan halve information and generate the commodity markdown Notification message, wherein, the price reduction notification message also includes user profile.And the price reduction is notified Message is sent to load-balanced server.Load-balanced server receives the price reduction notification message. According to the load-balancing algorithm of the present embodiment, the price reduction notification message is sent to message and pushes clothes The minimum server of load value in business device cluster.The server is used according in the price reduction notification message Family information sends the message to user terminal.When user is entered by the browser 301 of terminal device Enter the account message informing page, can see that air-conditioning commodity markdown notifies 302, user clicks on above-mentioned Air-conditioning commodity markdown notifies 302, can be appreciated that the text 303 of the notice.
Pass through in the load-balancing method that above-described embodiment of the application provides the message received The server that load value is minimum into server cluster is sent, and timely more server cluster is negative Charge values list.After so the electronic equipment of load-balancing method operation thereon receives message every time, The message will be distributed to the server that load value is minimum in server cluster, will not cause to take Part server overload in business device cluster, and the problem of other parts server free, carry The high handling capacity and concurrency of whole system.
With further reference to Fig. 4, it shows the flow of another embodiment of load-balancing method 400, the flow 400 of the load-balancing method, comprise the following steps:
Step 401, it is determined that newly-increased server supports the classification of the message received.
In the present embodiment, the electronic equipment of load balancing operation thereon is (such as shown in Fig. 1 Load-balanced server 105) newly-increased clothes can be retrieved from the configuration file being pre-configured with Business device supports the classification of the message received.As an example, the classification of above-mentioned message can be commodity Navigation category, order generation classification, logistics notice classification, price reduction notice classification.It is above-mentioned newly-increased Server can receive the message of plurality of classes.As an example, message push server can connect Receive the message of logistics notice classification and the message of price reduction notice classification.
Step 402, it is determined whether destination server cluster be present.
In the present embodiment, above-mentioned electronic equipment can obtain Servers-all from configuration file Cluster.For each server cluster in Servers-all cluster, above-mentioned electronic equipment can To obtain the classification for the message that server cluster support receives by configuration file, compare the clothes The classification for the message that business device cluster is supported to receive whether with the newly-increased server that is determined in step 401 Support whether the classification of the message of reception is consistent.The consistent service of News Category is received if found Then the server cluster is referred to as destination server cluster to device.If there is destination server cluster, Step 403-406 is then performed, if there is no destination server cluster, then performs step 403’-405’。
Step 403, in response to destination server cluster be present, then by newly-increased server belong to Destination server cluster.
In the present embodiment, in response to destination server cluster be present, above-mentioned electronic equipment is advance Above-mentioned destination server cluster information and the destination server collection are store in the configuration file of establishment The information of each server in group, then write configuration file by the information of above-mentioned newly-increased server, And associate to the destination server cluster information.As an example, in configuration file, load is equal Weighing apparatus server can create server cluster node, and service is created under the server cluster node Device node, but it is only the server establishment server node for belonging to the server cluster.
Step 404, the load value that newly-increased server is sent is received, load value is added to target In the load value list of server cluster.
In the present embodiment, above-mentioned electronic equipment can receive the negative of above-mentioned newly-increased server transmission Charge values, and above-mentioned load value is inserted in the load value list of above-mentioned destination server cluster.Its In, above-mentioned load value can be that above-mentioned newly-increased server has received and pending according to the server The number of message, the duration of the server process message, the server performance parameter calculate The load value arrived.Because of above-mentioned newly-increased server not yet access system, so the server has received And the number of pending message is zero, the server process message when a length of zero.
Step 405, it is above-mentioned negative to send instruction for each server into destination server cluster The message of charge values list change.
In the present embodiment, above-mentioned electronic equipment is by wired connection mode or radio connection, Each server in a manner of broadcast or from unicast to above-mentioned destination server cluster, which is sent, to be referred to Show the message of the load value list change of the destination server cluster.
Step 406, the new load value that the server in destination server cluster is sent is received, it is right In each the new load value received, the new load value is updated in load value list.
In the present embodiment, above-mentioned electronic equipment receives what server in the server cluster was sent New load value, for each the new load value received, it is corresponding that the new load value is deleted first Server in load value list corresponding load value, then above-mentioned new load value is inserted negative In charge values list.Wherein, new load value is that the server in above-mentioned destination server cluster receives Obtained load value is recalculated after changing message to load value list.
In the present embodiment, the server in destination server cluster receives the change of load value list Obtained load value is recalculated after more message, is comprised the following steps:
First, the message changed in response to receiving load value list, load is obtained to service end Value list.In the present embodiment, the server in destination server cluster is (such as described in Fig. 1 Server 107,108,109) can by way of wired connection or wireless connection side Formula receives service end from service end (such as load-balanced server 105 described in Fig. 1) and sent The change of load value list message, and pull load value list to above-mentioned service end.
Secondly, above-mentioned server pair in above-mentioned load value list is determined according to ascending order First index value of the load value answered, local load value list is determined according to ascending order In load value corresponding to above-mentioned server the second index value, whether judge above-mentioned first index value More than above-mentioned second index value.Wherein, the index value of load value is smaller, represents the load value pair Priority of the server answered in server cluster is higher.This step judges server cluster In priority corresponding to the server whether diminish.
3rd, if above-mentioned first index value is more than above-mentioned second index value, recalculate The new load value of server is stated, determines above-mentioned new load value above-mentioned according to ascending order The 3rd index value arranged in load value list, it is above-mentioned to judge whether above-mentioned 3rd index value is less than First index value.
4th, if above-mentioned 3rd index value is less than above-mentioned first index value, to above-mentioned service End sends the above-mentioned new load value for recalculating to obtain.The new load value that i.e. basis recalculates, Judgement learns that the priority of the server has lifting, then is counted again to the transmission of above-mentioned service end is above-mentioned Obtained new load value.
5th, the load value in the load value list obtained in above-mentioned steps one is updated to above-mentioned In local load value list.
In the present embodiment, above-mentioned electronic equipment detects the load of above-mentioned destination server cluster Value list has renewal, will send load value to each server in the destination server cluster List altering event, the server in above-mentioned destination server cluster receive above-mentioned load value row Table altering event, through judging to determine to need to recalculate the new load value of book server, find excellent First level has lifting, then sends above-mentioned new load value to above-mentioned electronic equipment, above-mentioned electronic equipment meeting Load value list is updated again.By the circulation of the above-mentioned steps of finite number of time, above-mentioned target clothes It is engaged in after the server acquisition load value list in device cluster, through determining that this clothes need not be recalculated The new load value of business device or the new load value priority being calculated are not lifted, then are no longer needed Above-mentioned new load value is sent to electronic equipment.
Step 403 ', in response in the absence of destination server cluster, then newly-increased server being belonged to To new demand servicing device cluster.
In the present embodiment, in response in the absence of destination server cluster, above-mentioned electronic equipment is then The letter of new demand servicing device cluster information and newly-increased server is created in the configuration file being pre-created Breath, and incidence relation between the two is set.As an example, in configuration file, create new Server cluster node, and newly-increased server node is created under the new demand servicing device clustered node.
Step 404 ', the load value that newly-increased server is sent is received, above-mentioned load value is added to In the load value list of new demand servicing device cluster.
In the present embodiment, above-mentioned electronic equipment receives the load value that above-mentioned newly-increased server is sent, And above-mentioned load value is inserted in the load value list of above-mentioned new demand servicing device cluster.Wherein, it is above-mentioned Load value be above-mentioned newly-increased server received according to the server and pending message The load value that number, the duration of the server process message, the server performance parameter are calculated, Because of above-mentioned newly-increased server not yet access system, so the server has been received and pending disappeared The number of breath is zero, the server process message when a length of zero.
Step 405 ', each server into new demand servicing device cluster sends instruction load value row The message of table change.
In the present embodiment, above-mentioned electronic equipment is by wired connection mode or radio connection, Each server in a manner of broadcast or from unicast to above-mentioned new demand servicing device cluster sends instruction The message of the load value list change of the new demand servicing device cluster.Because in above-mentioned new demand servicing device cluster Above-mentioned newly-increased server only is included, indicates that this is new so only needing to send to above-mentioned newly-increased server The message of the load value list change of server cluster.
Figure 4, it is seen that the flow 400 of the load-balancing method of the present embodiment is shown Load-balanced server first can whether there is in retrieval when there is new demand servicing device access server cluster The consistent destination server cluster of type of message is received, if there is the destination server cluster, The load value of new demand servicing device can be then added to the load value list of above-mentioned destination server cluster In.If there is no destination server cluster, then a new demand servicing device cluster is created, and will be upper State newly-increased server and belong to the new demand servicing device cluster.By updating load value list at least once, The priority of server process message in server cluster is optimized, when said system disappears in reception During breath, be not in the situation of part server overload, and improve handling capacity.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, the application provides A kind of one embodiment of load balancing apparatus, the device embodiment and the method shown in Fig. 2 Embodiment is corresponding, and the device specifically can apply in various electronic equipments.
As shown in figure 5, the load balancing apparatus 500 described in the present embodiment includes:Receiving unit 501st, unit 502, transmitting element 503, updating block 504, the first notification unit 505 are chosen. Wherein, receiving unit 501, it is configured to receive the message that client is sent;Unit 502 is chosen, It is configured to determine the server cluster for receiving above-mentioned message, from the load of above-mentioned server cluster The minimum load value of value is selected in value list, wherein, the load value row of above-mentioned server cluster The list that table is made up of the load value of each server in above-mentioned server cluster, load Value is to characterize the data of server process message capability;Transmitting element 503, be configured to by with The associated server of the load value of upper selection is defined as least loaded server, and disappears above-mentioned Breath is sent to above-mentioned least loaded server;Updating block 504, be configured to receive it is above-mentioned most The new load value that Smaller load server is sent, above-mentioned new load value is updated to above-mentioned load value and arranged In table, wherein, above-mentioned new load value is that above-mentioned least loaded server is receiving above-mentioned message Obtained load value is recalculated afterwards;First notification unit 505, it is configured to above-mentioned service Each server in device cluster sends the message for indicating above-mentioned load value list change.
In some optional implementations of the present embodiment, in above-mentioned load balancing apparatus 500 Load value be server according to received and the number of pending message, handle message duration, What above-mentioned each performance parameter of server was calculated, wherein, above-mentioned each performance parameter includes Central processor CPU load, input and output IO expenses.
In the present embodiment, the receiving unit 501 of above-mentioned load balancing apparatus 500 can pass through The mode of wired connection or the mode of wireless connection receive message from client.Above-mentioned message can To be various types of other message.As an example, above-mentioned message can be goods browse message, order Single generation message, logistics notification message, price reduction notification message.
In the present embodiment, the message received based on receiving unit 501, above-mentioned selection unit 502 obtain all server clusters, for each in above-mentioned all server clusters Server cluster, associating for processing message can be supported with server cluster according to server cluster Relation, judge whether the server cluster can be with the above-mentioned message of reception processing.If the server Cluster can then be selected with the above-mentioned message of reception processing from the load value list of the server cluster The minimum load value of value.If the minimum load value of multiple values in the load value list be present, It can make from the load value list according to the ascending load value of sequential selection first of matching degree To need the minimum load value of the value chosen.Wherein, the load value of the server cluster is by this The list of the load value composition of each server in server cluster.Load value is to characterize clothes It is engaged in the data of device processing message capability, the load value can be that CPU utilization rate, internal memory make With rate, startup of server enters number of passes.
In the present embodiment, transmitting element 503 is according to each load in record load value list Value and the incidence relation of server in server cluster, determine the associated service of above-mentioned load value Device, and above-mentioned server is set to least loaded server.Above-mentioned message is passed through into wired connection Mode or the mode of wireless connection send to above-mentioned least loaded server.
In the present embodiment, updating block 504 receives the new load that least loaded server is sent Value, retrieves the server cluster where above-mentioned least loaded server, deletes the server cluster Load value list in load value corresponding to above-mentioned least loaded server, insert above-mentioned new load Value.Above-mentioned new load value is after least loaded server receives above-mentioned message, to recalculate The load value arrived.
In some optional implementations of the present embodiment, the load value in load value list is It is tactic according to from small to large.So can order the above-mentioned new load value of insertion, insert It is still suitable according to from small to large to enter the load value in the load value list after above-mentioned new load value Sequence arrangement.If when above-mentioned new load value is inserted into load value list, the load is found In value list exist with the above-mentioned new multiple load values of load value size identical, can will it is above-mentioned newly In the load value insertion multiple load values of identical behind last load value.
In some optional implementations of the present embodiment, the first notification unit 505 can lead to The monitoring server cluster load value table data altering event being pre-created is crossed, detects the clothes Load value changes in the load value list of business device cluster, then every into the server cluster One server sends the message of the load value list change of the server cluster.
In the present embodiment, above-mentioned message sending unit 503 selects according to selection unit 502 Minimal negative charge values, least loaded server is determined, then send above-mentioned message to minimum load Server, then updating block 504 receive the new load value that above-mentioned least loaded server is sent, Load value list is updated, such load balancing apparatus 500 receives message every time can all disappear this Breath is sent to the minimum server of load value, is solved load imbalance in server cluster, is gulped down The problem of amount of telling is low.
With further reference to Fig. 6, as the realization to method shown in above-mentioned each figure, the application provides Another embodiment of load balancing apparatus a kind of, the device embodiment and the side shown in Fig. 4 Method embodiment is corresponding, and the device specifically can apply in various electronic equipments.
As shown in fig. 6, the load balancing apparatus 600 described in the present embodiment includes:Classification determines Unit 601, judging unit 602, first belong to unit 603, first list updating block 604, Second notification unit 605, second list updating block 606, second belong to unit 603 ', the 3rd List update unit 604 ', third notice unit 605 '.Wherein, classification determination unit 601 is matched somebody with somebody Put the classification of the message received for determining newly-increased server to support;The configuration of judging unit 602 is used In determining whether there is destination server cluster, wherein, above-mentioned destination server cluster is to receive The classification of the message server cluster consistent with the classification for the message that above-mentioned newly-increased server receives; First ownership unit 603 is configured in response to destination server cluster be present, then will be above-mentioned new Increase server to belong to above-mentioned destination server cluster;The configuration of first list updating block 604 is used In the load value for receiving above-mentioned newly-increased server transmission, above-mentioned load value is added to above-mentioned target In the load value list of server cluster;Second notification unit 605 is configured to above-mentioned target Each server in server cluster sends the message for indicating above-mentioned load value list change; Second list updating block 606 is configured to receive the server in above-mentioned destination server cluster The new load value sent, for each the new load value received, the new load value is updated Into above-mentioned load value list, wherein, new load value is the clothes in above-mentioned destination server cluster Business device receives the load value for recalculating after above-mentioned message to obtain;Second ownership unit 603 ' is matched somebody with somebody Put in response in the absence of destination server cluster, then belonging to above-mentioned newly-increased server to new Server cluster, wherein, above-mentioned new demand servicing device cluster includes above-mentioned newly-increased server;3rd row Table updating block 604 ' is configured to receive the load value that above-mentioned newly-increased server is sent, will be above-mentioned Load value is added in the load value list of above-mentioned new demand servicing device cluster;Third notice unit 605 ' The above-mentioned newly-increased server being configured into above-mentioned new demand servicing device cluster sends the above-mentioned load of instruction The message of value list change.
In some optional implementations of the present embodiment, load balancing apparatus 600 also includes Unshowned unit below:Detection unit, it is configured to detect above-mentioned destination server cluster Whether load value list has renewal;Load value list Notification of Changes unit, be configured in response to Detecting the load value list of above-mentioned destination server cluster has renewal, then to above-mentioned destination service Each server in device cluster sends the message for indicating above-mentioned load value list change.
In the present embodiment, the classification determination unit 601 of load balancing apparatus 600 can be from pre- The classification that newly-increased server supports the message of reception is retrieved in the configuration file first configured.
In the present embodiment, judging unit 602 can obtain Servers-all from configuration file Cluster.For each server cluster in Servers-all cluster, above-mentioned electronic equipment can To obtain the classification for the message that server cluster support receives by configuration file, compare the clothes It is newly-increased that business device cluster supports whether the classification of the message received determines with classification determination unit 601 Server supports whether the classification of the message received is consistent.If it is consistent to find reception News Category Server cluster then the server is referred to as destination server cluster.
In the present embodiment, destination server cluster is retrieved based on judging unit 602, in advance Above-mentioned destination server cluster information and the destination server collection are store in the configuration file of establishment The information of each server in group, first belongs to unit 603 by the letter of above-mentioned newly-increased server Breath write-in configuration file, and associate to the destination server cluster information.As an example, with Put in file, server cluster node can be created, and clothes are created under the server cluster node Business device node, but it is only the server establishment server node for belonging to the server cluster.
In the present embodiment, first list updating block 604 receives above-mentioned newly-increased server and sent Load value, and above-mentioned load value is inserted in the load value list of above-mentioned destination server cluster. Wherein, above-mentioned load value is that above-mentioned newly-increased server has received and pending according to the server The number of message, the duration of the server process message, the server performance parameter are calculated Load value, because of above-mentioned newly-increased server not yet access system, thus the server received and The number of pending message is zero, the server process message when a length of zero.
In the present embodiment, the second notification unit 605 passes through wired connection mode or wireless connection Mode, each server in a manner of broadcast or unicast into above-mentioned destination server cluster Send the message for the load value list change for indicating the destination server cluster.
In the present embodiment, second list updating block 606 receives services in the server cluster The new load value that device is sent, for each the new load value received, it is new negative that this is deleted first The corresponding load value in load value list of server corresponding to charge values, then by above-mentioned new load In value insertion load value list.Wherein, new load value is the clothes in above-mentioned destination server cluster Business device recalculates obtained load value after receiving load value list change message.
In the present embodiment, destination server cluster is not retrieved based on judging unit 602, Second ownership unit 603 ' created in the configuration file being pre-created new demand servicing device cluster information and The information of newly-increased server, and incidence relation between the two is set.As an example, configuring In file, new demand servicing device clustered node is created, and created newly under the new demand servicing device clustered node Increase server node.
In the present embodiment, the 3rd list update unit 604 ' receives above-mentioned newly-increased server and sent Load value, and above-mentioned load value is inserted in the load value list of above-mentioned new demand servicing device cluster. Wherein, above-mentioned load value is that above-mentioned newly-increased server has received and pending according to the server The number of message, the duration of the server process message, the server performance parameter are calculated Load value, because of above-mentioned newly-increased server not yet access system, thus the server received and The number of pending message is zero, the server process message when a length of zero.
In the present embodiment, third notice unit 605 ' passes through wired connection mode or wireless connection Mode, each server hair in a manner of broadcast or unicast into above-mentioned new demand servicing device cluster Send the message for the load value list change for indicating the new demand servicing device cluster.Because above-mentioned new demand servicing device Above-mentioned newly-increased server only is included in cluster, is referred to so only needing to send to above-mentioned newly-increased server Show the message of the load value list change of the new demand servicing device cluster.
From fig. 6 it can be seen that present embodiment illustrates load-balanced server new demand servicing During device access server cluster, can first it retrieve with the presence or absence of the consistent target of the type for receiving message Server cluster, then can be the load value of new demand servicing device if there is the destination server cluster Added in the load value list of above-mentioned destination server cluster.If there is no destination server Cluster, then a new demand servicing device cluster is created, and above-mentioned newly-increased server is belonged into the new clothes Business device cluster.By updating load value list at least once, optimize in server cluster and service Device handles the priority of message, is not in partial service when said apparatus is receiving message The situation of device overload, and improve handling capacity.
Below with reference to Fig. 7, it illustrates suitable for for realizing the computer of the server of the application The structural representation of system 700.
As shown in fig. 7, computer system 700 includes CPU (CPU) 701, its Can be according to being stored in read-only storage (ROM) 702
Program is loaded into random access storage device (RAM) 703 from storage part 708 Program and perform various appropriate actions and processing.In RAM 703, system is also stored with Various programs and data needed for 700 operations.CPU 701, ROM 702 and RAM 703 It is connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to bus 704.
I/O interfaces 705 are connected to lower component:Importation 706 including keyboard, mouse etc.; Including cathode-ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc. Output par, c 707;Storage part 708 including hard disk etc.;And including such as LAN card, The communications portion 709 of the NIC of modem etc..Communications portion 709 is via such as The network of internet performs communication process.Driver 710 is also according to needing to be connected to I/O interfaces 705.Detachable media 711, such as disk, CD, magneto-optic disk, semiconductor memory etc., Be arranged on as needed on driver 710, in order to the computer program that reads from it according to Need to be mounted into storage part 708.
Especially, according to disclosed embodiments, above with reference to the process of flow chart description It may be implemented as computer software programs.For example, disclosed embodiments include one kind Computer program product, it includes being tangibly embodied in the computer program on machine readable media, Above computer program bag contains the program code for being used for the method shown in execution flow chart.So Embodiment in, the computer program can be downloaded by communications portion 709 from network and Installation, and/or be mounted from detachable media 711.In the computer program by central processing list When member (CPU) 701 is performed, the above-mentioned function of being limited in the present processes is performed.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, Architectural framework in the cards, function and the operation of method and computer program product.This point On, each square frame in flow chart or block diagram can represent a module, program segment or code A part, a part for the module, program segment or code is used for comprising one or more The executable instruction of logic function as defined in realization.It should also be noted that at some as replacement In realization, the function of being marked in square frame can also be with different from the order marked in accompanying drawing hair It is raw.For example, two square frames succeedingly represented can essentially perform substantially in parallel, they Sometimes can also perform in the opposite order, this is depending on involved function.It is also noted that It is, each square frame and block diagram in block diagram and/or flow chart and/or the square frame in flow chart Combination, function or the special hardware based system of operation it can be realized as defined in execution, Or it can be realized with the combination of specialized hardware and computer instruction.
Being described in unit involved in the embodiment of the present application can be real by way of software It is existing, it can also be realized by way of hardware.Described unit can also be arranged on processing In device, for example, can be described as:A kind of processor includes receiving unit, chooses unit, hair Send unit, updating block, notification unit.Wherein, the title of these units is under certain conditions The restriction in itself to the unit is not formed, for example, receiving unit is also described as " connecing Receive the unit for the information storage request that client is sent ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, The nonvolatile computer storage media can be described in above-described embodiment included in device Nonvolatile computer storage media;Can also be individualism, without non-in supplying terminal Volatile computer storage medium.Above-mentioned nonvolatile computer storage media be stored with one or The multiple programs of person, when one or more of programs are performed by an equipment so that described Equipment:Receive the message that client is sent;It is determined that the server cluster of the message is received, from The minimum load value of value is selected in the load value list of the server cluster, wherein, it is described The load value list of server cluster is by the negative of each server in the server cluster The list of charge values composition, load value are the data for characterizing server process message capability;Will with institute The associated server of the load value of selection is defined as least loaded server, and by the message Send to the least loaded server;Receive the new load that the least loaded server is sent Value, the new load value is updated in the load value list, wherein, the new load value It is the load value that the least loaded server recalculates to obtain after receiving the message; Each server into the server cluster, which is sent, indicates the load value list change Message.
Above description is only the preferred embodiment of the application and saying to institute's application technology principle It is bright.It will be appreciated by those skilled in the art that invention scope involved in the application, and it is unlimited In the technical scheme that the particular combination of above-mentioned technical characteristic forms, while it should also cover and not depart from In the case of the inventive concept, it is combined by above-mentioned technical characteristic or its equivalent feature And the other technical schemes formed.Such as features described above and (but not limited to) disclosed herein The technical scheme that technical characteristic with similar functions is replaced mutually and formed.

Claims (12)

1. a kind of load-balancing method, it is characterised in that methods described includes:
Receive the message that client is sent;
It is determined that receiving the server cluster of the message, arranged from the load value of the server cluster The minimum load value of value is selected in table, wherein, the load value list of the server cluster is The list being made up of the load value of each server in the server cluster, load value are Characterize the data of server process message capability;
The server associated with selected load value is defined as least loaded server, and Send the message to the least loaded server;
The new load value that the least loaded server is sent is received, the new load value is updated Into the load value list, wherein, the new load value is that the least loaded server exists Receive the load value for recalculating after the message to obtain;
Each server into the server cluster, which is sent, indicates that the load value list becomes Message more.
2. load-balancing method according to claim 1, it is characterised in that the load Value is server according to having received and the number of pending message, the duration for handling message, institute State what each performance parameter of server was calculated, wherein, during each performance parameter includes Central processor cpu load, input and output IO expenses.
3. load-balancing method according to claim 1, it is characterised in that methods described Also include:
It is determined that newly-increased server supports the classification of the message received;
Destination server cluster is determined whether there is, wherein, the destination server cluster is to connect Receive the classification of the message server set consistent with the classification for the message that the newly-increased server receives Group;
In response to destination server cluster be present, then the newly-increased server is belonged to the mesh Mark server cluster;
The load value that the newly-increased server is sent is received, the load value is added to the mesh In the load value list for marking server cluster;
Each server into the destination server cluster, which is sent, indicates the load value row The message of table change;
The new load value that the server in the destination server cluster is sent is received, for receiving Each the new load value arrived, the new load value is updated in the load value list, wherein, New load value is counted again after the server in the destination server cluster receives the message Obtained load value.
4. load-balancing method according to claim 3, it is characterised in that methods described Also include:
Whether the load value list for detecting the destination server cluster has renewal;
In response to detecting that the load value list of the destination server cluster has renewal, then to institute State each server in destination server cluster and send the instruction load value list change Message.
5. load-balancing method according to claim 3, it is characterised in that methods described Also include:
In response in the absence of destination server cluster, then the newly-increased server being belonged to new clothes Business device cluster, wherein, the new demand servicing device cluster includes the newly-increased server;
The load value that the newly-increased server is sent is received, the load value is added to described new In the load value list of server cluster;
The newly-increased server into the new demand servicing device cluster, which is sent, indicates the load value row The message of table change.
6. load-balancing method according to claim 1, it is characterised in that the load Load value in value list is tactic according to from small to large.
7. a kind of load balancing apparatus, it is characterised in that described device includes:
Receiving unit, it is configured to receive the message that client is sent;
Unit is chosen, is configured to determine the server cluster for receiving the message, from the clothes It is engaged in selecting the minimum load value of value in the load value list of device cluster, wherein, the server The load value list of cluster is the load value group by each server in the server cluster Into list, load value be characterize server process message capability data;
Transmitting element, it is configured to the server associated with selected load value being defined as Least loaded server, and send the message to the least loaded server;
Updating block, it is configured to receive the new load value that the least loaded server is sent, The new load value is updated in the load value list, wherein, the new load value is institute State the load value that least loaded server recalculates to obtain after receiving the message;
First notification unit, it is configured to each server hair into the server cluster Send the message for indicating the load value list change.
8. load balancing apparatus according to claim 7, it is characterised in that the load Value is server according to having received and the number of pending message, the duration for handling message, institute State what each performance parameter of server was calculated, wherein, during each performance parameter includes Central processor cpu load, input and output IO expenses.
9. load balancing apparatus according to claim 7, it is characterised in that described device Also include:
Classification determination unit, it is configured to determine the classification for the message that newly-increased server supports reception;
Judging unit, it is configured to determine whether there is destination server cluster, wherein, it is described Destination server cluster is the class of the classification and the message of the newly-increased server reception that receive message Not consistent server cluster;
First ownership unit, is configured in response to destination server cluster be present, then by described in Newly-increased server belongs to the destination server cluster;
First list updating block, it is configured to receive the load value that the newly-increased server is sent, The load value is added in the load value list of the destination server cluster;
Second notification unit, it is configured to each service into the destination server cluster Device sends the message for indicating the load value list change;
Second list updating block, it is configured to receive the service in the destination server cluster The new load value that device is sent, for each the new load value received, by the new load value more In the new extremely load value list, wherein, new load value is in the destination server cluster Server receives the load value for recalculating after the message to obtain.
10. load balancing apparatus according to claim 7, it is characterised in that the dress Putting also includes:
Detection unit, be configured to detect the destination server cluster load value list whether There is renewal;
Load value list Notification of Changes unit, is configured in response to detecting the destination service The load value list of device cluster has renewal, then each clothes into the destination server cluster Business device sends the message for indicating the load value list change.
11. load balancing apparatus according to claim 7, it is characterised in that the dress Putting also includes:
Second ownership unit, is configured in response in the absence of destination server cluster, then by institute Newly-increased server is stated to belong to new demand servicing device cluster, wherein, the new demand servicing device cluster includes institute State newly-increased server;
3rd list update unit, it is configured to receive the load value that the newly-increased server is sent, The load value is added in the load value list of the new demand servicing device cluster;
Third notice unit, it is configured to the newly-increased service into the new demand servicing device cluster Device sends the message for indicating the load value list change.
12. load balancing apparatus according to claim 7, it is characterised in that described negative Load value in charge values list is tactic according to from small to large.
CN201610645705.8A 2016-08-08 2016-08-08 Load-balancing method and device Pending CN107707586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610645705.8A CN107707586A (en) 2016-08-08 2016-08-08 Load-balancing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610645705.8A CN107707586A (en) 2016-08-08 2016-08-08 Load-balancing method and device

Publications (1)

Publication Number Publication Date
CN107707586A true CN107707586A (en) 2018-02-16

Family

ID=61168723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610645705.8A Pending CN107707586A (en) 2016-08-08 2016-08-08 Load-balancing method and device

Country Status (1)

Country Link
CN (1) CN107707586A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462647A (en) * 2018-11-12 2019-03-12 平安科技(深圳)有限公司 Resource allocation methods, device and computer equipment based on data analysis
CN110351370A (en) * 2019-04-24 2019-10-18 上海数据交易中心有限公司 A kind of data distribution method and device
CN111131486A (en) * 2019-12-30 2020-05-08 北京三快在线科技有限公司 Load adjustment method and device of execution node, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480469A (en) * 2010-11-29 2012-05-30 北京中和威软件有限公司 Method and device for load balancing in SIP (session initiation protocol) service cluster based on energy balance
CN102882959A (en) * 2012-09-21 2013-01-16 国电南瑞科技股份有限公司 Load balancing mechanism for WEB server in electric power scheduling system
CN103036979A (en) * 2012-12-12 2013-04-10 广州尚融网络科技有限公司 Server loading balancing method and loading balancer
CN103179206A (en) * 2013-03-15 2013-06-26 成都卫士通信息产业股份有限公司 Method of dynamic feedback for enhancing cypher machine load balance
CN105049509A (en) * 2015-07-23 2015-11-11 浪潮电子信息产业股份有限公司 Cluster scheduling method, load balancer and clustering system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480469A (en) * 2010-11-29 2012-05-30 北京中和威软件有限公司 Method and device for load balancing in SIP (session initiation protocol) service cluster based on energy balance
CN102882959A (en) * 2012-09-21 2013-01-16 国电南瑞科技股份有限公司 Load balancing mechanism for WEB server in electric power scheduling system
CN103036979A (en) * 2012-12-12 2013-04-10 广州尚融网络科技有限公司 Server loading balancing method and loading balancer
CN103179206A (en) * 2013-03-15 2013-06-26 成都卫士通信息产业股份有限公司 Method of dynamic feedback for enhancing cypher machine load balance
CN105049509A (en) * 2015-07-23 2015-11-11 浪潮电子信息产业股份有限公司 Cluster scheduling method, load balancer and clustering system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462647A (en) * 2018-11-12 2019-03-12 平安科技(深圳)有限公司 Resource allocation methods, device and computer equipment based on data analysis
CN110351370A (en) * 2019-04-24 2019-10-18 上海数据交易中心有限公司 A kind of data distribution method and device
CN110351370B (en) * 2019-04-24 2022-06-21 上海数据交易中心有限公司 Data distribution method and device
CN111131486A (en) * 2019-12-30 2020-05-08 北京三快在线科技有限公司 Load adjustment method and device of execution node, server and storage medium
CN111131486B (en) * 2019-12-30 2023-04-07 北京三快在线科技有限公司 Load adjustment method and device of execution node, server and storage medium

Similar Documents

Publication Publication Date Title
CN106875148B (en) Method and device for determining a storage position for an item
US10073605B2 (en) Providing dynamic widgets in a browser
WO2018019139A1 (en) Information pushing method and device
CN109196544A (en) order management system and program
CN107426328B (en) Information pushing method and device
CN105205174A (en) File processing method and device for distributed system
CN107707586A (en) Load-balancing method and device
CN107329963A (en) Accelerate the method and apparatus of web page access
CN108897626A (en) A kind of resource regulating method and server
CN110738436A (en) method and device for determining available stock
CN112488602A (en) Replenishment method, device and system
US7949715B2 (en) Method, server and program product for delivering messages
CN113793081A (en) Storage monitoring method and device, computer readable medium and electronic equipment
CN108600780A (en) Method for pushed information
US11269845B1 (en) Techniques to configure media packages
US20190037263A1 (en) Content management device and content request program
CN110519318B (en) Information pushing method and device
US8423502B1 (en) System, method, and computer program product for permitting an upgrade of extract, transform, and load (ETL) processes, independent of a customization performed by a user
CN107920100B (en) Information pushing method and device
CN110838019A (en) Method and device for determining trial supply distribution crowd
CN113362171B (en) Data processing method, device and storage medium
US11314883B2 (en) Systems and methods of providing access to secure data
CN111580882B (en) Application program starting method, device, computer system and medium
CN109299112B (en) Method and apparatus for processing data
US20210157605A1 (en) Extensible data pipeline manager

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: 20180216