CN109218341B - Load balancing method and device for monitoring server and server - Google Patents

Load balancing method and device for monitoring server and server Download PDF

Info

Publication number
CN109218341B
CN109218341B CN201710513211.9A CN201710513211A CN109218341B CN 109218341 B CN109218341 B CN 109218341B CN 201710513211 A CN201710513211 A CN 201710513211A CN 109218341 B CN109218341 B CN 109218341B
Authority
CN
China
Prior art keywords
server
load
processing request
forwarding
terminal
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.)
Active
Application number
CN201710513211.9A
Other languages
Chinese (zh)
Other versions
CN109218341A (en
Inventor
乔晓强
者文明
赵玉开
蔚伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710513211.9A priority Critical patent/CN109218341B/en
Publication of CN109218341A publication Critical patent/CN109218341A/en
Application granted granted Critical
Publication of CN109218341B publication Critical patent/CN109218341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/1029Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer
    • 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/1012Server selection for load balancing based on compliance of requirements or conditions with available server resources

Abstract

The application discloses a method and a device for monitoring a server and load balancing for the server. One embodiment of the method comprises: an overload server in the monitoring server cluster transmits a processing request received from a terminal; determining whether a preset light load condition is met, wherein the preset light load condition comprises that the load capacity of each server is smaller than a preset light load threshold of each server; in response to the fact that the preset light load condition is met, determining load allowance information of each server according to the load capacity of each server; and sending the determined load margin information to the terminal so that the terminal can select a server to be sent with the processing request according to the received load margin information. This embodiment enriches the way of load balancing.

Description

Load balancing method and device for monitoring server and server
Technical Field
The present application relates to the field of computer technologies, and in particular, to the field of internet technologies, and in particular, to a method and an apparatus for monitoring a server and load balancing for the server.
Background
With the development of internet technology, the demand of network services is increasing. Due to the limited processing power of a single server, it is now common to deploy a server cluster comprising multiple servers to provide high-performance network services to users. The server cluster is adopted to provide a network, and the problem of distributing network requests (loads) so as to realize uniform distribution of the loads in each server in the server cluster, namely realizing load balance exists.
However, in the existing load balancing method, a management server in a server cluster generally receives a network request of a user, and then determines a server to which the network request is sent by using a predetermined selection policy, so that the problem that the load balancing method is single exists.
Disclosure of Invention
The present application aims to provide an improved method and apparatus for monitoring servers and load balancing for servers, which solve the technical problems mentioned in the above background section.
In a first aspect, an embodiment of the present application provides a load balancing method for a monitoring server, where the monitoring server is used for monitoring a plurality of servers in a server cluster, and the method includes: monitoring an overload server in the server cluster to forward a processing request received from a terminal; determining whether a preset light load condition is met, wherein the preset light load condition comprises that the load capacity of each server is smaller than a preset light load threshold of each server; in response to the fact that the preset light load condition is met, determining load allowance information of each server according to the load capacity of each server; and sending the determined load margin information to the terminal so that the terminal can select a server to be sent with the processing request according to the received load margin information.
In a second aspect, an embodiment of the present application provides a load balancing method for a server, where the server is a server in a server cluster including a plurality of servers, the server in the server cluster is in communication connection with a monitoring server, and the monitoring server is configured to monitor the server in the server cluster, where the method includes: the server is a server in a server cluster including a plurality of servers, and the monitoring server is configured to monitor the plurality of servers in the server cluster, where the method includes: and forwarding the processing request received from the terminal so that the monitoring server responds to the fact that a preset light load condition is met, and determining first load allowance information of each server according to the load capacity of each server, wherein the preset light load condition comprises that the load capacity of each server is smaller than a preset light load threshold value of each server, and sending the determined first load allowance information to the terminal so that the terminal can select the server to which the processing request of the terminal is to be sent according to the received first load allowance information.
In a third aspect, an embodiment of the present application provides a load balancing apparatus for a monitoring server, where the apparatus includes: the monitoring server is used for monitoring a plurality of servers in a server cluster, and the device comprises: the monitoring unit is used for monitoring the overload server in the server cluster to forward the processing request received from the terminal; the system comprises a first determining unit, a second determining unit and a control unit, wherein the first determining unit is used for determining whether a preset light load condition is met, and the preset light load condition comprises that the load capacity of each server is smaller than a preset light load threshold of each server; the second determining unit is used for responding to the fact that the preset light load condition is met, and determining load allowance information of each server according to the load capacity of each server; and the second sending unit is used for sending the determined load margin information to the terminal so that the terminal can select a server to which the processing request is to be sent according to the received load margin information.
In a fourth aspect, an embodiment of the present application provides a load balancing apparatus for a server, where the server is a server in a server cluster including a plurality of servers, the server in the server cluster is in communication connection with a monitoring server, and the monitoring server is configured to monitor the servers in the server cluster, where the apparatus includes: the forwarding unit is configured to forward a processing request received from the terminal, so that the monitoring server determines first load margin information of each server according to a load amount of each server in response to a determination that a preset light load condition is met, where the preset light load condition includes that the load amount of each server is smaller than a preset light load threshold of each server, and send the determined first load margin information to the terminal, so that the terminal selects a server to which the processing request of the terminal is to be sent according to the received first load margin information.
In a fifth aspect, an embodiment of the present application provides a server, where the server includes: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method according to the first aspect.
In a sixth aspect, an embodiment of the present application provides a server, where the server includes: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method according to the second aspect.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the method according to the first aspect.
In an eighth aspect, embodiments of the present application provide a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the method according to the second aspect.
According to the load balancing method and device for the monitoring server and the server, when the server in the server cluster is overloaded, the overload server forwards the processing request firstly, so that the servers in the server cluster are all in a light-load state, after the servers in the server cluster are all in the light-load state, load allowance information of each server is obtained according to the load allowance of each server, the load allowance information is sent to the terminal, the terminal selects the server to which the processing request is sent according to the load allowance information, and the load balancing mode is enriched.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a load balancing method for monitoring servers according to the present application;
FIG. 3 is a schematic diagram of an application scenario of a load balancing method for a monitoring server according to the present application;
FIG. 4 is a flow diagram for one embodiment of a method for load balancing of servers, according to the present application;
FIG. 5 is a flow diagram of one implementation of a method for load balancing of servers according to the present application;
FIG. 6 is a schematic diagram illustrating an embodiment of a load balancing apparatus for monitoring servers according to the present application;
FIG. 7 is a schematic diagram illustrating an embodiment of a load balancing apparatus for servers according to the present application;
FIG. 8 is a schematic block diagram of a computer system suitable for use in implementing a server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of a load balancing method for a server, a load balancing method for a monitoring server, a load balancing apparatus for a server, and a load balancing apparatus for a monitoring server of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include servers 101, 102, 103, a network 104, a monitoring server 105, and a terminal device 106. Here, the servers 101, 102, 103 may be used to represent one server cluster. The network 104 is used to provide a medium for communication links between the terminal device 106 and the servers 101, 102, 103, between the terminal device 106 and the monitoring server 105, and between the servers 101, 102, 103 and the monitoring server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use a terminal device 106 to interact with the servers 101, 102, 103 via the network 104 to receive or send messages or the like. Various communication client applications, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, etc., may be installed on the terminal device 106.
The terminal device 106 may be various electronic devices supporting various functions, including but not limited to a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, mpeg Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, mpeg Audio Layer 4), a laptop computer, a desktop computer, and the like. It should be noted that the terminal device 106 is a device with respect to the server, and may be a device that a user uses to send or receive a message, or may be a device that receives and forwards a message sent by the user to a service.
The servers 101, 102, 103 may be servers providing various services, such as background web servers providing support for web pages displayed on the terminal device 106. The background web server may analyze and perform other processing on the received data such as the web page request, and feed back a processing result (e.g., web page data) to the terminal device.
The monitoring server 105 may be a server that monitors the servers 101, 102, 103. For example, the monitoring server 105 may monitor whether the servers 101, 102, and 103 are overloaded, and if so, may send a migration instruction to the servers to perform load migration (process request forwarding) between the servers 101, 102, and 103, so that each server is in a stable operation state, thereby achieving load balancing of the entire server cluster. In addition, the monitoring server can obtain load margin information of each server in the server cluster based on the operation state of the server, for example, the load margin information may be a weight, and the weight is used to represent a weight of a proportion of the load margin of each server in the total load margin of the server cluster. The monitoring server 105 may also send load margin information to the terminal device 106.
The terminal device 106 may select the server 101, 102, or 103 to which the processing request is transmitted, according to the load margin information and a predetermined scheduling algorithm. The client side automatically selects the server to which the processing request is sent, so that load balance of each server in the server cluster can be realized. Here, the predetermined scheduling algorithm may be Round Robin (Round Robin), Weighted Round Robin (Weighted Round Robin), Least Connections (Least Connections), etc., and will not be described herein.
It should be understood that the number of terminal devices, networks, servers and monitoring servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, servers, and monitoring servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a load balancing method for monitoring servers in accordance with the present application is shown. The monitoring server is used for monitoring a plurality of servers in the server cluster. It should be noted that the load balancing method for the monitoring server provided by the embodiment corresponding to fig. 2 is generally performed by the monitoring server 105 in fig. 1. The load balancing method for the monitoring server comprises the following steps:
step 201, an overload server in the monitoring server cluster forwards a processing request received from a terminal.
In this embodiment, the electronic device (for example, the monitoring server shown in fig. 1) on which the load balancing method operates may monitor that an overloaded server in the server cluster forwards the processing request received from the terminal.
In this embodiment, the electronic device may monitor a plurality of servers in the server to determine whether there is an overloaded server in the server cluster. The monitoring server can acquire the load of the server in real time, and if the load is larger than a preset overload threshold value, the overload of the server is determined. Here, the preset overload threshold may be set according to an actual application condition of the server cluster.
As an example, if the current number of servers in the server cluster is sufficient to handle all processing requests, the overload threshold may be set lower, such as 60% of the maximum sustainable load of the servers. If the number of servers in the server cluster is not enough to process all the processing requests, the overload threshold may be set higher, for example, the overload threshold may be set to 90% of the maximum tolerable load of the servers.
In some optional implementations of this embodiment, step 201 may include: the electronic device may send a data request forwarding instruction to an overload server in a server cluster, so that the overload server may forward a data request received from a terminal to another server in the server cluster except the overload server in response to receiving the data request forwarding instruction. The overload server may forward the processing request received from the terminal to another server in response to receiving the processing request forwarding instruction.
It will be appreciated that forwarding processing requests may also be described as migrating loads. Here, the other server may be other than the overloaded server in the above-described server cluster.
In some optional implementation manners of this embodiment, the monitoring server may monitor a load of each server in the server cluster, further determine a load margin of each server, and then send the load margin or load margin information of the server that is not overloaded to the overloaded server. The overload server may determine a server to which the processing request received from the terminal is forwarded, according to the received receivable load amounts of the respective servers.
In some optional implementations of this embodiment, step 201 may include: monitoring the servers in the server cluster to execute the following steps: the server in the server cluster sends a forwarding request to other servers except the overloaded server in response to the fact that the server is overloaded, so that the server receiving the forwarding request sends a load capacity to the overloaded server; the overload server selects a server for forwarding the processing request received from the terminal according to the received at least one sustainable load; and forwarding the processing request received from the terminal to the selected server.
It should be noted that the overload server may be a process of forwarding the processing request received from the terminal to the other server. Alternatively, the overloaded server may transmit one or more processing requests received from the terminal to the other servers. It will be appreciated that after the overloaded server receives the processing request forwarding instruction, it may continue to forward processing requests to other servers. The processing request may be a processing request received by the overload server after receiving the processing request forwarding instruction, or may be a processing request received by the overload server before receiving the processing request forwarding instruction and not processed yet.
Step 202, determining whether a preset light load condition is met.
In this embodiment, the electronic device (e.g., the monitoring server shown in fig. 1) on which the load balancing method operates may determine whether a preset light load condition is satisfied. Here, the preset light load condition may include that the load amount of each server is smaller than a preset light load threshold of each server.
As an example, the server cluster includes a first server and a second server, the preset light load threshold of the first server may be 40% of the maximum supportable load capacity of the first server, and the preset request threshold of the second server may be 30% of the maximum supportable load capacity of the second server. The preset request condition may be that the load capacity of the first server is less than 40% of the maximum supportable load capacity of the first server, and the load capacity of the second server is less than 30% of the maximum supportable load capacity of the second server.
And step 203, responding to the condition that the preset light load is met, and determining load allowance information of each server according to the load capacity of each server.
In this embodiment, an electronic device (e.g., the monitoring server shown in fig. 1) on which the load balancing method operates may determine load margin information of each server according to a load amount of each server in response to determining that a preset light load condition is satisfied.
In some optional implementations of this embodiment, the load margin information may be a weight value used to characterize a proportion of the load margin of the server in the total load margin of the server cluster. As an example, step 203 may comprise: and determining the difference value of the known maximum sustainable load capacity of each server and the load capacity of each server as the load margin of each server. And determining the sum of the load margins as the sum of the load margins of the server cluster. And for each server, determining the ratio of the load margin of the server to the sum of the load margins as the load margin information of the server.
Those skilled in the art can understand that the determination of the maximum sustainable load of the server is related to the computing capability of the server, and a specific determination process can be implemented in practical applications by those skilled in the art according to the prior art, and is not described herein again.
In some optional implementations of this embodiment, the load margin information may be a load margin. Step 203 may comprise: and determining the difference value between the maximum sustainable load of each server and the load of each server as the load margin of each server, namely determining the load margin information of each server.
It should be noted that, if the monitoring server determines load margin information of each server immediately after finding that there is an overloaded server in the server cluster, and sends the determined load margin information to the terminal, it may cause the terminal to be congested and preempted the server with a lighter load, so that the server with the originally lighter load is overloaded quickly.
In contrast, according to the method provided by this embodiment, after the monitoring server finds that there is an overloaded server in the server cluster, the monitoring server first instructs load migration between the servers in the server cluster, and after each server in the server cluster is lightly loaded, determines the load margin information of each server. By the method, the server can be prevented from being seized by the terminal equipment, so that the secondary unbalance and the load oscillation possibly caused in the server cluster are avoided, the load balance can be ensured, and the load balance efficiency of the server cluster is improved.
And step 204, transmitting the determined load margin information to the terminal.
In this embodiment, the electronic device (e.g., the monitoring server shown in fig. 1) on which the load balancing method operates may transmit the determined load margin information to the terminal. Here, the terminal may select a server to which the processing request is to be transmitted, based on the received load margin information.
It should be noted that there may be one or more terminals. The terminal to which the load margin information is transmitted may be the same as or different from the terminal to which the overload server receives the processing request.
In some optional implementations of this embodiment, the terminal may select a server to which the processing request is sent according to the load headroom information and the predetermined scheduling algorithm. Those skilled in the art will appreciate that the load balancing method provided in the present application may be client-based load balancing, that is, a server to which a processing request is sent is selected by a client to implement load balancing. The client can be installed on a terminal.
As an example, the terminal may allocate a proportion of the processing requests to be sent by the terminal according to a proportion represented by each piece of load margin information. For example, there are 10 processing requests that the terminal will send. The server cluster comprises a first server and a second server, wherein the load margin information of the first server is 60%, and the load margin information of the second server is 40%. Then 6 of the 10 processing requests may be sent to the a server and 4 of the 10 processing requests may be sent to the b server.
In some optional implementation manners of this embodiment, the method provided by this embodiment may further include: and sending a forwarding stopping instruction to the overload server in response to sending the determined load margin information to the terminal. The overload server may determine whether to stop forwarding the processing request received after receiving the stop forwarding instruction, in response to receiving the stop forwarding instruction.
In some optional implementations of this embodiment, the determining, by the overload server, whether to stop forwarding the processing request received after receiving the stop forwarding instruction in response to receiving the stop forwarding instruction may include: it is determined whether a post-processing request received after receiving the stop-and-forward instruction is in the same session as a preceding processing request, where the preceding processing request is a processing request that the terminal sent before sending the post-processing request. If not, the in-process request is not forwarded. If so, determining that the target processing request is processed by the server processing the previous processing request. If the server that processes the preceding processing request is another server, the subsequent processing request is forwarded. If the server that processes the preceding processing request is another server, the post-processing request is not forwarded.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the load balancing method according to the present embodiment. In the application scenario of fig. 3, the monitoring server 301 monitors the servers in the server cluster, such as the server 302 and the server 303, in real time to determine whether there is an overloaded server in the server cluster. The overload server 302 can forward processing requests received from the terminals, e.g., the overload server 302 can forward processing requests received from the terminal 304 to the server 303. The monitoring server may determine whether a preset light load condition is satisfied, that is, whether the load capacity of each server in the server cluster is less than a preset light load threshold of each server, for example, whether the load capacity of the server 302 is less than 40% of the request handling capacity of the server 302, and the load capacity of the server 303 is less than 30% of the request handling capacity of the server 303. The monitoring server may determine load margin information of each server according to the load amount of each server in response to determining that the preset light load condition is satisfied, for example, the load margin information of the server 302 is 60% and the load margin information of the server 303 is 40%. The monitoring server may transmit the determined load margin information to the terminal. The terminal may select a server to which the processing request is to be transmitted according to the received load margin information.
According to the method provided by the embodiment of the application, when the servers in the server cluster are overloaded, the overload servers forward the processing requests firstly, so that the servers in the server cluster are all in a light load state, after the servers in the server cluster are all in the light load state, the load allowance information of each server is obtained according to the load allowance of each server, the load allowance information is sent to the terminal, the terminal selects the server to which the processing requests are to be sent according to the load allowance information, and the load balancing mode is enriched.
With further reference to FIG. 4, a flow 400 of one embodiment of a method for load balancing of servers is shown. The server is a server in a server cluster comprising a plurality of servers, the servers in the server cluster are in communication connection with a monitoring server, and the monitoring server is used for monitoring the servers in the server cluster. It should be noted that the load balancing method for the server provided by the embodiment corresponding to fig. 4 is generally performed by the servers 101, 102, and 103 in fig. 1. The process 400 of the load balancing method includes the following steps:
step 401, forwarding the processing request received from the terminal.
In this embodiment, the electronic device (e.g., the server shown in fig. 1) on which the load balancing method operates may forward the processing request received from the terminal.
In this embodiment, the monitoring server may determine, in response to determining that a preset light load condition is met, first load margin information of each server according to a load amount of each server, where the preset light load condition includes that the load amount of each server is smaller than a preset light load threshold of each server, and send the determined first load margin information to the terminal, so that the terminal selects, according to the received first load margin information, a server to which a processing request of the terminal is to be sent.
In some optional implementations of this embodiment, step 401 may include: and receiving a processing request forwarding instruction sent to an overload server by the monitoring server. And responding to the received processing request forwarding instruction, and forwarding the processing request received from the terminal to other servers except the overload server in the server cluster.
In some optional implementation manners of this embodiment, in the method provided by this embodiment, step 401 may include: the server in the server cluster sends a forwarding request to other servers except the overloaded server in response to the fact that the server is overloaded, so that the server receiving the forwarding request sends a load capacity to the overloaded server; and the overload server selects a server for forwarding the processing request received from the terminal according to the received at least one sustainable load.
In some optional implementation manners of this embodiment, the method provided by this embodiment may further include: and receiving a stop forwarding instruction sent by the monitoring server, wherein the stop forwarding instruction is sent by the monitoring server in response to the determined first load margin information being sent to the terminal. And determining whether to stop forwarding the processing request received after receiving the stop forwarding instruction or not in response to receiving the stop forwarding instruction.
It is understood that the server capable of receiving the processing request forwarding instruction is an overloaded server.
In some optional implementations of this embodiment, step 401 may be implemented by: the overload server may forward all processing requests received from the terminal to other servers.
In some optional implementations of this embodiment, please refer to fig. 5, which shows a flow 500 of an implementation of step 401, and step 402 can be implemented by steps 501 to 506 shown in fig. 5, and the specific process is as follows:
step 501, receiving a target processing request sent by a user through a terminal.
In this implementation, an electronic device (e.g., the server shown in fig. 1) on which the load balancing method for the server operates may receive a target processing request sent by a user through a terminal. Here, the target processing request may include first information.
Optionally, the first information may include, but is not limited to, one or more of the following: the user type of the user, and the type of the target processing request. As an example, user types such as general users and member users can be classified. The type of the processing request may be set to a type with a larger amount of calculation, a type with a smaller amount of calculation, or the like.
Step 502, determining whether to forward the target processing request according to the first information.
In this implementation, an electronic device (e.g., the server shown in fig. 1) on which the load balancing method for the server operates may determine whether to forward the target processing request according to the first information.
As an example, a forwarding rule may be set in advance, for example, forwarding if the user type is a general user, and not forwarding if the user type is a member user. As another example, if the request type is a more computationally intensive type, it is forwarded, and if the request type is a less computationally intensive type, it is not forwarded.
In this implementation, the target processing request further includes second information, where the second information is used to indicate whether the target processing request and a previous processing request are in the same session, where the previous processing request is a processing request that is sent by the terminal before the target processing request is sent.
As an example, during a session of processing order payments, a terminal used by a user submits a payment request to a server. The server may process the payment request after receiving the payment request, i.e. issue an instruction to the terminal used by the user to input the payment password. The user can submit a password confirmation request to the server by using the terminal after inputting the password. The server may process the password confirmation request, i.e. confirm whether the password is correct. Here, the payment request is a preceding processing request of the password confirmation request. It will be appreciated that the second information may be provided for the password confirmation request such that the second information may indicate that the password confirmation request is in the same session as the payment request.
Step 503', in response to determining not to forward the target processing request, process the target processing request.
In this implementation, an electronic device (e.g., the server shown in fig. 1) on which the load balancing method for the server operates may process the target processing request in response to determining not to forward the target processing request.
Step 503, in response to determining to forward the target processing request, determining whether the target processing request and the previous processing request are in the same session according to the second information.
In this implementation, an electronic device (e.g., the server shown in fig. 1) on which the load balancing method for the server operates may determine, in response to determining to forward the target processing request, whether the target processing request and the previous processing request are in the same session according to the second information.
In this implementation manner, the processing request forwarding instruction further includes second load margin information of each server in the server cluster.
It will be appreciated that the terminal may send multiple processing requests before sending a target processing request, which may be in the same session with one or more of them.
Step 504, in response to determining that the target processing request and the previous processing request are not in the same session, determining a destination server to which the target processing request is sent according to the second load margin information of each server in the server cluster.
In this implementation, an electronic device (e.g., the server shown in fig. 1) on which the load balancing method for the server operates may determine, in response to determining that the target processing request is not in the same session as the previous processing request, a destination server to which the target processing request is sent according to the second load margin information of each server in the server cluster.
Step 505, the target processing request is sent to the destination server.
In this implementation, an electronic device (e.g., the server shown in fig. 1) on which the load balancing method for the server operates may send the target processing request to the destination server. Here, the destination server may process the target processing request.
In response to determining that the target processing request is in the same session as the prior processing request, it is determined that the target processing request is processed by a server that processes the prior processing request, STEP 506.
In this implementation, an electronic device (e.g., the server shown in fig. 1) on which the load balancing method for the server operates may determine that the target processing request is processed by the server that processes the preceding processing request in response to determining that the target processing request is in the same session as the preceding processing request.
Here, the server that processes the preceding processing request may be the overloaded server or may be another server in the server cluster.
It should be noted that, implementation of each step in the method provided in this embodiment, especially description of the step performed by the overload server, may refer to the description in the embodiment provided in fig. 2, and for brevity of the text, the description is not repeated here.
According to the method provided by the embodiment of the application, after the processing request forwarding instruction sent by the monitoring server is received, the processing request is forwarded, so that the servers in the server cluster are all in a light-load state, after the servers in the server cluster are all in the light-load state, the load allowance information of each server is obtained according to the load allowance of each server through monitoring, the load allowance information is sent to the terminal, the terminal selects the server to which the processing request is sent according to the load allowance information, and the load balancing mode is enriched.
With further reference to fig. 6, as an implementation of the method shown in fig. 2, the present application provides an embodiment of a load balancing apparatus for a monitoring server, where the monitoring server is used to monitor a plurality of servers in a server cluster, and the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be applied to various electronic devices, and in particular, the apparatus may be applied to the monitoring server 105 shown in fig. 1.
As shown in fig. 6, the load balancing apparatus 600 of the present embodiment includes: a monitoring unit 601, a first determining unit 602, a second transmitting unit 603 and a second transmitting unit 604. The monitoring unit is used for monitoring the overload server in the server cluster to forward the processing request received from the terminal; the system comprises a first determining unit, a second determining unit and a control unit, wherein the first determining unit is used for determining whether a preset light load condition is met, and the preset light load condition comprises that the load capacity of each server is smaller than a preset light load threshold of each server; the second determining unit is used for responding to the fact that the preset light load condition is met, and determining load allowance information of each server according to the load capacity of each server; and the second sending unit is used for sending the determined load margin information to the terminal so that the terminal can select a server to which the processing request is to be sent according to the received load margin information.
In this embodiment, specific processing of the monitoring unit 601, the first determining unit 602, the second sending unit 603, and the second sending unit 604 and technical effects thereof may refer to related descriptions of step 201, step 202, step 203, and step 204 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of this embodiment, the apparatus further includes: a third transmitting unit (not shown) configured to transmit a stop forwarding instruction to the overload server in response to transmitting the determined load margin information to the terminal, so that the overload server determines whether to stop forwarding the processing request received after receiving the stop forwarding instruction in response to receiving the stop forwarding instruction.
In some optional implementations of this embodiment, the first determining unit is configured to: determining the difference value between the known maximum sustainable load of each server and the load of each server as the load margin of each server; determining the sum of the load margins as the sum of the load margins of the server cluster; and for each server, determining the ratio of the load margin of the server to the sum of the load margins as the load margin information of the server.
In some optional implementation manners of this embodiment, the monitoring unit is further configured to: and sending a data request forwarding instruction to an overload server in a server cluster, so that the overload server responds to the received data request forwarding instruction and forwards the data request received from the terminal to other servers except the overload server in the server cluster.
In some optional implementation manners of this embodiment, the monitoring unit is further configured to: monitoring the servers in the server cluster to execute the following steps: the server in the server cluster sends a forwarding request to other servers except the overloaded server in response to the fact that the server is overloaded, so that the server receiving the forwarding request sends a load capacity to the overloaded server; the overload server selects a server for forwarding the processing request received from the terminal according to the received at least one sustainable load; and forwarding the processing request received from the terminal to the selected server.
It should be noted that, for details of implementation and technical effects of each unit in the load balancing apparatus for a monitoring server provided in this embodiment, reference may be made to descriptions of other embodiments in this application, and details are not described herein again.
With further reference to fig. 7, as an implementation of the method shown in fig. 4, the present application provides an embodiment of a load balancing apparatus for a server, where the server is a server in a server cluster including a plurality of servers, the servers in the server cluster are communicatively connected to a monitoring server, and the monitoring server is configured to monitor the servers in the server cluster. The embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 4, and the apparatus may be applied to various electronic devices, and in particular, the apparatus may be applied to the servers 101, 102, 103 shown in fig. 1.
As shown in fig. 7, the load balancing apparatus 700 of the present embodiment includes: forwarding unit 701. The forwarding unit is configured to forward, in response to receiving the processing request forwarding instruction, the processing request received from the terminal to other servers in the server cluster except the overloaded server, so that the monitoring server determines, in response to determining that a preset light load condition is met, first load margin information of each server according to a load amount of each server, where the preset light load condition includes that the load amount of each server is smaller than a preset light load threshold of each server, and sends the determined first load margin information to the terminal, so that the terminal selects, according to the received first load margin information, a server to which the processing request of the terminal is to be sent.
In this embodiment, the specific processing of the forwarding unit 701 and the technical effects brought by the processing can refer to the related descriptions in step 401 in the corresponding embodiment of fig. 4, which are not described herein again.
In some optional implementation manners of this embodiment, the forwarding unit is further configured to: receiving a processing request forwarding instruction sent by the monitoring server to an overload server; and responding to the received processing request forwarding instruction, and forwarding the processing request received from the terminal to other servers except the overloaded server in the server cluster.
In some optional implementation manners of this embodiment, the forwarding unit is further configured to: the server in the server cluster sends a forwarding request to other servers except the overloaded server in response to the fact that the server is overloaded, so that the server receiving the forwarding request sends a load capacity to the overloaded server; and the overload server selects a server for forwarding the processing request received from the terminal according to the received at least one sustainable load.
In some optional implementation manners of this embodiment, the forwarding unit, in response to receiving a processing request forwarding instruction sent by the monitoring server, is further configured to: receiving a target processing request sent by a user through a terminal, wherein the target processing request comprises first information, and the first information comprises at least one of the following items: a user type of the user, a type of the target processing request; and determining whether to forward the target processing request or not according to the first information.
In some optional implementations of this embodiment, the target processing request further includes second information, where the second information is used to indicate whether the target processing request and a previous processing request are in the same session, where the previous processing request is a processing request sent by the terminal before sending the target processing request; and the forwarding unit is further configured to: and responding to the determination of forwarding the target processing request, and determining whether the target processing request and the previous processing request are in the same session according to the second information.
In some optional implementation manners of this embodiment, the processing request forwarding instruction further includes second load margin information of each server in the server cluster; and the forwarding unit is further configured to: in response to determining that the target processing request and the previous processing request are not in the same session, determining a destination server to which the target processing request is sent according to second load margin information of each server in the server cluster; and sending the target processing request to the target server so that the target server can process the target processing request.
In some optional implementation manners of this embodiment, the forwarding unit is further configured to: in response to determining that the target processing request is in the same session as the prior processing request, determining that the target processing request is processed by a server that processes the prior processing request.
In some optional implementations of this embodiment, the apparatus further includes: a second receiving unit (not shown) configured to receive a stop forwarding instruction sent by the monitoring server, where the stop forwarding instruction is sent by the monitoring server in response to sending the determined first load margin information to a terminal; a third determining unit (not shown) configured to determine, in response to receiving the stop forwarding instruction, whether to stop forwarding the processing request received after receiving the stop forwarding instruction.
It should be noted that, for details of implementation and technical effects of each unit in the load balancing apparatus for a server provided in this embodiment, reference may be made to descriptions of other embodiments in this application, and details are not described herein again.
Referring now to FIG. 8, a block diagram of a computer system 800 suitable for implementing a monitoring server and servers of embodiments of the present application is shown. The server shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program performs the above-described functions defined in the method of the present application when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a monitoring unit, a first determining unit, a second transmitting unit, and a second transmitting unit. The names of these units do not in some cases form a limitation on the unit itself, and for example, the monitoring unit may also be described as "a unit in which an overloaded server in the server cluster forwards a processing request received from a terminal".
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a forwarding unit. The names of these units do not in some cases constitute a limitation on the unit itself, and for example, the forwarding unit may also be described as a "unit that forwards a processing request received from a terminal".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: monitoring an overload server in the server cluster to forward a processing request received from a terminal; determining whether a preset light load condition is met, wherein the preset light load condition comprises that the load capacity of each server is smaller than a preset light load threshold of each server; in response to the fact that the preset light load condition is met, determining load allowance information of each server according to the load capacity of each server; and sending the determined load margin information to the terminal so that the terminal can select a server to be sent with the processing request according to the received load margin information.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: the server is a server in a server cluster including a plurality of servers, and the monitoring server is configured to monitor the plurality of servers in the server cluster, where the method includes: and forwarding the processing request received from the terminal so that the monitoring server can respond to the fact that a preset light load condition is met, and determining first load allowance information of each server according to the load capacity of each server, wherein the preset light load condition comprises that the load capacity of each server is smaller than a preset light load threshold value of each server, and sending the determined first load allowance information to the terminal so that the terminal can select the server to which the processing request of the terminal is to be sent according to the received first load allowance information.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (17)

1. A load balancing method for a monitoring server, wherein the monitoring server is used for monitoring a plurality of servers in a server cluster, the method comprising:
monitoring an overload server in the server cluster to forward a processing request received from a terminal;
determining whether a preset light load condition is met, wherein the preset light load condition comprises that the load capacity of each server is smaller than a preset light load threshold of each server;
in response to the fact that the preset light load condition is met, determining load allowance information of each server according to the load capacity of each server;
sending the determined load allowance information to a terminal so that the terminal can select a server to which the processing request is to be sent according to the received load allowance information;
and sending a forwarding stopping instruction to the overload server in response to the determined load margin information being sent to the terminal, so that the overload server determines whether to stop forwarding the processing request received after receiving the forwarding stopping instruction in response to receiving the forwarding stopping instruction.
2. The method according to claim 1, wherein the determining load margin information of each server according to the load amount of each server comprises:
determining the difference value between the known maximum sustainable load of each server and the load of each server as the load margin of each server;
determining the sum of the load margins as the sum of the load margins of the server cluster;
and for each server in the server cluster, determining the ratio of the load margin of the server to the sum of the load margins as the load margin information of the server.
3. The method according to any one of claims 1-2, wherein the forwarding of the processing request received from the terminal by the overloaded server in the monitoring server cluster comprises:
and sending a data request forwarding instruction to an overload server in a server cluster, so that the overload server responds to the received data request forwarding instruction and forwards the data request received from the terminal to other servers except the overload server in the server cluster.
4. The method according to any one of claims 1-2, wherein the forwarding of the processing request received from the terminal by the overloaded server in the monitoring server cluster comprises:
monitoring the servers in the server cluster to execute the following steps:
the server in the server cluster sends a forwarding request to other servers except the overloaded server in response to the fact that the server is overloaded, so that the server receiving the forwarding request sends a load capacity to the overloaded server;
the overload server selects a server for forwarding the processing request received from the terminal according to the received at least one sustainable load;
and forwarding the processing request received from the terminal to the selected server.
5. A load balancing method for a server, wherein the server is a server in a server cluster including a plurality of servers, the server in the server cluster is connected to a monitoring server in communication, and the monitoring server is configured to monitor the server in the server cluster, and the method includes:
forwarding a processing request received from a terminal, so that the monitoring server can determine first load allowance information of each server according to the load of each server in response to the fact that a preset light load condition is met, wherein the preset light load condition comprises that the load of each server is smaller than a preset light load threshold value of each server, and the determined first load allowance information is sent to the terminal, so that the terminal can select the server to which the processing request of the terminal is to be sent according to the received first load allowance information;
receiving a forwarding stopping instruction sent by the monitoring server, wherein the forwarding stopping instruction is sent by the monitoring server in response to sending the determined first load margin information to a terminal;
in response to receiving the stop-forwarding instruction, determining whether to stop forwarding the processing request received after receiving the stop-forwarding instruction.
6. The method of claim 5, wherein forwarding the processing request received from the terminal comprises:
receiving a processing request forwarding instruction sent by the monitoring server to an overload server;
and responding to the received processing request forwarding instruction, and forwarding the processing request received from the terminal to other servers except the overloaded server in the server cluster.
7. The method of claim 5, wherein forwarding the processing request received from the terminal comprises:
the server in the server cluster sends a forwarding request to other servers except the overloaded server in response to the fact that the server is overloaded, so that the server receiving the forwarding request sends a load capacity to the overloaded server;
and the overload server selects a server for forwarding the processing request received from the terminal according to the received at least one sustainable load.
8. The method of claim 5, wherein forwarding the processing request received from the terminal further comprises:
receiving a target processing request sent by a user through a terminal, wherein the target processing request comprises first information, and the first information comprises at least one of the following items: the user type of the user and the type of the target processing request;
and determining whether to forward the target processing request or not according to the first information.
9. The method of claim 8, wherein the target processing request further comprises second information, wherein the second information is used to indicate whether the target processing request is in the same session as a previous processing request, and wherein the previous processing request is a processing request sent by a terminal before the target processing request is sent; and
the forwarding of the processing request received from the terminal further comprises:
in response to determining to forward the target processing request, determining whether the target processing request is in the same session as the previous processing request based on the second information.
10. The method of claim 9, wherein the processing request forwarding instruction further comprises second load margin information for each server in the server cluster; and
the forwarding of the processing request received from the terminal further comprises:
in response to determining that the target processing request and the previous processing request are not in the same session, determining a destination server to which the target processing request is sent according to second load margin information of each server in the server cluster;
and sending the target processing request to the target server so that the target server can process the target processing request.
11. The method of claim 10, wherein forwarding the processing request received from the terminal further comprises:
in response to determining that the target processing request is in the same session as the prior processing request, determining to process the target processing request by a server that processes the prior processing request.
12. A load balancing apparatus for a monitoring server, wherein the monitoring server is configured to monitor a plurality of servers in a server cluster, the apparatus comprising:
the monitoring unit is used for monitoring the overload server in the server cluster to forward the processing request received from the terminal;
the first determining unit is used for determining whether a preset light load condition is met, wherein the preset light load condition comprises that the load capacity of each server is smaller than a preset light load threshold of each server;
the second determining unit is used for responding to the fact that the preset light load condition is met, and determining load allowance information of each server according to the load capacity of each server;
the second sending unit is used for sending the determined load allowance information to the terminal so that the terminal can select a server to which the processing request is to be sent according to the received load allowance information;
a third sending unit, configured to send, in response to sending the determined load margin information to the terminal, a forwarding stop instruction to the overload server, so that the overload server determines, in response to receiving the forwarding stop instruction, whether to stop forwarding the processing request received after receiving the forwarding stop instruction.
13. A load balancing apparatus for a server, wherein the server is a server in a server cluster including a plurality of servers, the server in the server cluster is communicatively connected to a monitoring server, and the monitoring server is configured to monitor the server in the server cluster, the apparatus comprising:
the forwarding unit is used for forwarding the processing request received from the terminal so that the monitoring server can determine first load allowance information of each server according to the load capacity of each server in response to the fact that the preset light load condition is met, wherein the preset light load condition comprises the fact that the load capacity of each server is smaller than a preset light load threshold value of each server, the determined first load allowance information is sent to the terminal, and the terminal can select the server to which the processing request of the terminal is to be sent according to the received first load allowance information;
a second receiving unit, configured to receive a forwarding stop instruction sent by the monitoring server, where the forwarding stop instruction is sent by the monitoring server in response to sending the determined first load margin information to a terminal;
a third determination unit, configured to determine, in response to receiving the stop forwarding instruction, whether to stop forwarding the processing request received after receiving the stop forwarding instruction.
14. A server, characterized in that the server comprises:
one or more processors;
a storage device for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-4.
15. A server, characterized in that the server comprises:
one or more processors;
a storage device for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 5-11.
16. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
17. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 5-11.
CN201710513211.9A 2017-06-29 2017-06-29 Load balancing method and device for monitoring server and server Active CN109218341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710513211.9A CN109218341B (en) 2017-06-29 2017-06-29 Load balancing method and device for monitoring server and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710513211.9A CN109218341B (en) 2017-06-29 2017-06-29 Load balancing method and device for monitoring server and server

Publications (2)

Publication Number Publication Date
CN109218341A CN109218341A (en) 2019-01-15
CN109218341B true CN109218341B (en) 2022-02-25

Family

ID=64960590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710513211.9A Active CN109218341B (en) 2017-06-29 2017-06-29 Load balancing method and device for monitoring server and server

Country Status (1)

Country Link
CN (1) CN109218341B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688229A (en) * 2019-01-24 2019-04-26 江苏中云科技有限公司 Session keeps system under a kind of load balancing cluster
CN113051143A (en) * 2019-12-27 2021-06-29 中国移动通信集团湖南有限公司 Detection method, device, equipment and storage medium for service load balancing server
CN111787048B (en) * 2020-04-28 2023-08-04 北京沃东天骏信息技术有限公司 Connection method of terminal equipment, scheduling server and Internet of things system
JP2023534337A (en) * 2021-06-17 2023-08-09 ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッド Task assignment method and apparatus, electronic device, computer readable medium
CN113342665B (en) * 2021-06-17 2023-10-20 北京百度网讯科技有限公司 Task allocation method and device, electronic equipment and computer readable medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791113A (en) * 2005-12-26 2006-06-21 北京航空航天大学 Method for balancing gridding load
CN101719082A (en) * 2009-12-24 2010-06-02 中国科学院计算技术研究所 Method and system for dispatching application requests in virtual calculation platform
WO2011075131A1 (en) * 2009-12-18 2011-06-23 Hewlett-Packard Development Company, L.P. Proxy agents in a network
CN102244685A (en) * 2011-08-11 2011-11-16 中国科学院软件研究所 Distributed type dynamic cache expanding method and system supporting load balancing
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
CN102857577A (en) * 2012-09-24 2013-01-02 北京联创信安科技有限公司 System and method for automatic load balancing of cluster storage
CN103188345A (en) * 2013-03-01 2013-07-03 北京邮电大学 Distributive dynamic load management system and distributive dynamic load management method
CN103391299A (en) * 2012-05-08 2013-11-13 深圳市腾讯计算机系统有限公司 Load balance method and load balance system
CN105099935A (en) * 2015-07-28 2015-11-25 小米科技有限责任公司 Server load control method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364930A (en) * 2008-09-24 2009-02-11 深圳市金蝶中间件有限公司 Session control method, apparatus and system
CN101754278B (en) * 2008-12-16 2012-04-25 中国移动通信集团公司 Method, system and device for load balancing
US8489744B2 (en) * 2009-06-29 2013-07-16 Red Hat Israel, Ltd. Selecting a host from a host cluster for live migration of a virtual machine
US8769541B2 (en) * 2009-12-31 2014-07-01 Facebook, Inc. Load balancing web service by rejecting connections
US9026630B2 (en) * 2011-06-14 2015-05-05 Vmware, Inc. Managing resources in a distributed system using dynamic clusters
CN102523158B (en) * 2011-12-15 2014-07-09 杭州电子科技大学 Metadata server cluster load balancing method based on weight
CN104243337B (en) * 2013-06-09 2017-09-01 新华三技术有限公司 A kind of method and device across cluster load balance
CN104023082B (en) * 2014-06-23 2017-05-03 浪潮电子信息产业股份有限公司 Method for achieving cluster load balance

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791113A (en) * 2005-12-26 2006-06-21 北京航空航天大学 Method for balancing gridding load
WO2011075131A1 (en) * 2009-12-18 2011-06-23 Hewlett-Packard Development Company, L.P. Proxy agents in a network
CN101719082A (en) * 2009-12-24 2010-06-02 中国科学院计算技术研究所 Method and system for dispatching application requests in virtual calculation platform
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
CN102244685A (en) * 2011-08-11 2011-11-16 中国科学院软件研究所 Distributed type dynamic cache expanding method and system supporting load balancing
CN103391299A (en) * 2012-05-08 2013-11-13 深圳市腾讯计算机系统有限公司 Load balance method and load balance system
CN102857577A (en) * 2012-09-24 2013-01-02 北京联创信安科技有限公司 System and method for automatic load balancing of cluster storage
CN103188345A (en) * 2013-03-01 2013-07-03 北京邮电大学 Distributive dynamic load management system and distributive dynamic load management method
CN105099935A (en) * 2015-07-28 2015-11-25 小米科技有限责任公司 Server load control method and device

Also Published As

Publication number Publication date
CN109218341A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN109218341B (en) Load balancing method and device for monitoring server and server
US10733021B2 (en) System of cloud computing and method for detaching load in cloud computing system
CN107341050B (en) Service processing method and device based on dynamic thread pool
WO2019056640A1 (en) Order processing method and device
CN108023953B (en) High-availability implementation method and device for FTP service
CN105376111B (en) Resource allocation methods and device
CN110650209B (en) Method and device for realizing load balancing
CN107451785B (en) Method and apparatus for outputting information
CN108810047B (en) Method and device for determining information push accuracy rate and server
CN105321129A (en) Order processing method and order processing system for food ordering system
CN112379982B (en) Task processing method, device, electronic equipment and computer readable storage medium
CN108924183B (en) Method and device for processing information
CN111062572B (en) Task allocation method and device
CN107342929B (en) Method, device and system for sending new message notification
CN110113176B (en) Information synchronization method and device for configuration server
CN110245014B (en) Data processing method and device
CN112685481B (en) Data processing method and device
CN111010453B (en) Service request processing method, system, electronic device and computer readable medium
CN110716809B (en) Method and device for scheduling cloud resources
CN113765969A (en) Flow control method and device
CN107609852B (en) Method and apparatus for processing payment requests
CN109842665B (en) Task processing method and device for task allocation server
CN109088907B (en) File transfer method and device
CN113626175B (en) Data processing method and device
CN113127561B (en) Method and device for generating service single number, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant