CN111193778A - Method, device, equipment and medium for WEB service load balancing - Google Patents
Method, device, equipment and medium for WEB service load balancing Download PDFInfo
- Publication number
- CN111193778A CN111193778A CN201911295667.8A CN201911295667A CN111193778A CN 111193778 A CN111193778 A CN 111193778A CN 201911295667 A CN201911295667 A CN 201911295667A CN 111193778 A CN111193778 A CN 111193778A
- Authority
- CN
- China
- Prior art keywords
- server
- web
- group
- information
- notification data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method, a device, equipment and a medium for WEB service load balancing. The method comprises the following steps: the server acquires state notification data of each server; the server establishes a balance server list through the state notification data, and determines a representative server according to the priority of each server in the balance server list; the representative server acquires a WEB request through the virtual IP information, selects a server from the balance server list as a response server according to the real-time WEB server load information, responds to the corresponding browser according to the browser address by the response server, acquires the WEB server load information of the response server in real time, and updates the corresponding state notification data. According to the invention, the autonomous cooperative work is realized by knowing the load condition of each server through the state, no additional load balancing equipment is required to be deployed, the balancing servers are completely self-organized to realize load balancing, and the hardware investment of users is reduced.
Description
Technical Field
The present invention relates to the field of WEB service load balancing technologies, and in particular, to a method, an apparatus, a device, and a medium for WEB service load balancing.
Background
With the development of the times, the development of the internet is on the rise, wherein the WEB technology is inexhaustible, and provides a very convenient entrance for common netizens to use the internet. However, as the scale of netizens is continuously enlarged, the business pressure of sites providing WEB services is getting larger and larger. How to improve the service capability becomes a key point.
At present, besides improving the hardware performance of the server, the service capacity can be improved by a load balancing method. The current WEB load balancing method can achieve the effect of improving the WEB service capability, but has obvious defects for small websites, the WEB server mirror image and the distributed method need to be deployed in different places, the maintenance is difficult, the server state is difficult to monitor in real time, and the load balancing effect is sometimes not good; the RR-DNS-based method can be implemented only by matching with domain name service, and DNS cache can influence the balance effect; although the load balancer based on hardware has good balancing effect, the investment is huge, and once the load balancer as a single fault point fails, the service cannot be used. Therefore, how to improve the WEB service capability for small websites becomes a problem to be solved urgently.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a device, and a medium for WEB service load balancing, which aim to solve the technical problem that the prior art cannot improve the WEB service capability through autonomous cooperative service of multiple WEB servers for a small website.
The technical scheme of the invention is realized as follows:
in one aspect, the present invention provides a method for balancing a WEB service load, where the method for balancing a WEB service load includes the following steps:
s1, the server obtains status notification data of each server, where the status notification data includes: group ID, priority, virtual IP information and real-time WEB server load information;
s2, the server acquires the local group ID, compares the local group ID with the group ID in the state notification data, establishes a balance server list according to the comparison result, and determines a representative server according to the priority of each server in the balance server list;
and S3, the representative server acquires the WEB request through the virtual IP information, selects a server from the balance server list as a response server according to the real-time WEB server load information, extracts the browser address from the WEB request, responds to the corresponding browser according to the browser address by the response server, acquires the WEB server load information of the response server in real time, and updates the corresponding state notification data.
In addition to the above technical solution, preferably, before the server acquires the status notification data of each server in step S1, the method further includes setting an interval time and a data transmission address, and each server transmits the status notification data to the data transmission address according to the interval time, where the status notification data includes: the server acquires the state notification data of each server from the data sending address.
On the basis of the above technical solution, preferably, in step S2, the server acquires a local group ID, compares the local group ID with a group ID in the status notification data, establishes an equilibrium server list according to the comparison result, and determines a representative server according to the priority of each server in the equilibrium server list, and further includes the steps of acquiring the local group ID by the server, extracting the group ID from the status notification data, comparing the local group ID with the group ID, recording the server corresponding to the group ID at this time when the local group ID is the same as the group ID, establishing the equilibrium server list according to the server, and determining the representative server according to the priority of each server in the equilibrium server list; when the local group ID is not identical to the group ID, the group ID is reacquired.
On the basis of the technical scheme, preferably, a balance server list is established according to the servers, and the representative server is determined according to the priority of each server in the balance server list.
Based on the above technical solution, it is preferable that in step S3, the representative server acquires the WEB request through the virtual IP information, and selects a server from the balance server list as the response server according to the real-time WEB server load information, and further includes a step in which the representative server acquires the WEB request through the virtual IP information, acquires the real-time WEB server load information of each server in the balance server list, and selects a server corresponding to the WEB server load information with the smallest value from the real-time WEB server load information of each server as the response server.
In addition to the above technical solution, it is preferable that before the server corresponding to the WEB server load information with the smallest value is selected from the real-time WEB server load information of each server as the response server, the method further includes the steps of acquiring a real-time status of each server, when the server status is in operation, marking the server, and selecting the server corresponding to the WEB server load information with the smallest value from the marked servers as the response server.
On the basis of the above technical solution, preferably, the response server responds to the corresponding browser according to the browser address, and obtains the WEB server load information of the response server in real time, and updates the corresponding status notification data, and further includes a step in which the response server obtains real IP information, and constructs an HTTP redirection response message according to the real IP information, and feeds back the HTTP redirection response message to the browser, and when a request destination address extracted by the response server from the obtained WEB request is the same as the real IP address of the server, the response server responds to the corresponding browser according to the browser address, and obtains the WEB server load information of the response server in real time, and updates the corresponding status notification data.
Still more preferably, the WEB service load balancing apparatus includes:
an obtaining module, configured to obtain, by a server, status notification data of each server, where the status notification data includes: group ID, priority, virtual IP information and real-time WEB server load information;
the list establishing module is used for the server to obtain the local group ID, compare the local group ID with the group ID in the state notification data, establish a balance server list according to the comparison result and determine a representative server according to the priority of each server in the balance server list;
and the service balancing module is used for acquiring a WEB request on behalf of the server through the virtual IP information, selecting the server from the balancing server list as a response server according to the real-time WEB server load information, extracting a browser address from the WEB request, responding to a corresponding browser by the response server according to the browser address, acquiring the WEB server load information of the response server in real time, and updating the corresponding state notification data.
In a second aspect, the method for WEB service load balancing further includes a device, where the device includes: a memory, a processor, and a method program for WEB services load balancing stored on the memory and executable on the processor, the method program for WEB services load balancing configured to implement the steps of the method for WEB services load balancing as described above.
In a third aspect, the method for WEB service load balancing further includes a medium, where the medium is a computer medium, and the computer medium stores a method program for WEB service load balancing, and the method program for WEB service load balancing implements the steps of the method for WEB service load balancing as described above when executed by a processor.
Compared with the prior art, the method for balancing the WEB service load has the following beneficial effects:
(1) by collecting the state data announcement of each server, the load condition of each server can be intuitively known, the servers can realize autonomous cooperative work according to the load condition, load balancing equipment does not need to be additionally deployed, the balancing servers are completely self-organized to realize load balancing, the independence is strong, and other network services do not need to be relied on;
(2) the load balancing is realized by self-organizing the servers by arranging the plurality of balancing servers, so that the reliability of the whole load balancing system is improved, a single fault point does not exist, when any one balancing server breaks down, other balancing servers can not be influenced to continue providing services, and the condition that once the traditional equipment breaks down, the whole WEB service is broken down is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for balancing load of WEB services according to a first embodiment of the present invention;
fig. 3 is a functional module diagram of a method for load balancing WEB services according to a first embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the device, and that in actual implementations the device may include more or less components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005 as a medium may include an operating system, a network communication module, a user interface module, and a method program for WEB service load balancing.
In the device shown in fig. 1, the network interface 1004 is mainly used for establishing a communication connection between the device and a server storing all data required in the method and system for WEB service load balancing; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the method and apparatus for WEB service load balancing of the present invention may be arranged in the method and apparatus for WEB service load balancing, and the method and apparatus for WEB service load balancing call the method and program for WEB service load balancing stored in the memory 1005 through the processor 1001, and execute the method for WEB service load balancing provided by the present invention.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for load balancing WEB services according to a first embodiment of the present invention.
In this embodiment, the method for balancing the WEB service load includes the following steps:
s10: the method comprises the steps that the server obtains state notification data of each server, wherein the state notification data comprise: group ID, priority, virtual IP information, and real-time WEB server load information.
It should be understood that there are multiple equalization servers in this implementation, hereinafter simply referred to as servers, so that before the server obtains the status notification data of each server, the server itself generates a status notification data, which includes: each server sends the state notification data corresponding to the server to a specific multicast address and sends the state notification data regularly at an interval time set by a user, and after the state notification data are sent to the specific multicast address, the server obtains the state notification data of other servers except the server from the specific multicast address. By deploying a plurality of balancing servers, the balancing servers can be completely self-organized to realize load balancing, so that the hardware investment of users can be reduced, and the independence of the whole system is enhanced.
It should be understood that a multicast address is a 48-bit identifier that names a group of stations that an application should receive a packet on the network. Multicasting works with a concept of virtual group addresses, where the destination addresses of packets are not one but one group.
S20: the server acquires the local group ID, compares the local group ID with the group ID in the state notification data, establishes a balance server list according to the comparison result, and determines a representative server according to the priority of each server in the balance server list.
It should be understood that all servers, after obtaining the status notification data of other servers, will obtain a local group ID, where the group ID refers to the ID of a server group, and a server group contains multiple servers, the server will then compare its own ID with the group ID, tag the servers with the same ID, then establishing a balance server list, storing the servers with the same ID in the list, recording the priority, the virtual IP information, the real IP information and the real-time WEB server load information of the servers in the list by the balance server list, then the server with the highest priority in the balancing server list is selected as the representative server according to the priority, by the method, a balance server list is established, the load of the server can be judged more visually, and the efficiency of the whole load balance is improved.
It should be understood that in the process of selecting the representative server, if there are a plurality of servers with the same priority, the real IPs of the servers are compared, and the server with the smallest real IP is selected as the representative server, because the server with the smaller IP is easier to be allocated for use, in this way, the selection of the balance server can be performed quickly, and the optimal balance server can be selected.
S30: the representative server acquires a WEB request through the virtual IP information, selects a server from the balance server list as a response server according to the real-time WEB server load information, extracts a browser address from the WEB request, responds to a corresponding browser according to the browser address by the response server, acquires the WEB server load information of the response server in real time, and updates corresponding state notification data.
It should be understood that, in this embodiment, the representative server may obtain the access information of the browser according to the WEB distribution service entry of the virtual IP, and the browser obtains the WEB services provided by the entire group of WEB servers in a balanced manner by accessing the WEB distribution service entry.
It should be understood that, when the browser accesses the WEB distribution service entry, the browser will send a WEB access request, and after the server receives the access request, the server responding to the access request will be selected as a response server according to the real-time WEB server load information of each server in the balanced server list, and the server with the smallest real-time WEB server load value of each server in the server list is the response server.
It should be understood that when selecting the answering server, it is also necessary to consider whether the server is in an active state, if the server is in an active state, the server may be used to answer the access request, and if the server is in a dormant state, the server may need to be reselected.
It should be understood that, the response server will obtain its own real IP information, and construct HTTP redirect response message to feed back to the browser according to its own real IP information, then the browser will obtain the real IP information from the HTTP redirect response message, and resend the access request to this real IP information, after the response server receives the request, it will extract the corresponding WEB resource to construct normal WEB response and return to the browser, to complete the actual access, then the response server will obtain its own WEB server load information and update the status notification data, send the status notification data to the specific multicast address, and start a new round of load balancing process. By the method, the load balancing is realized by self-organizing the balancing server, no additional load balancing equipment is required to be deployed, and the hardware investment of a user is reduced; meanwhile, the reliability is high, a single fault point does not exist, when any one balancing server fails, the other balancing servers are not influenced to continue providing services, and once the traditional load balancing equipment fails, the whole WEB service is paralyzed; the expandability is strong, the balancing server is very flexible to join or leave the load balancing group, and users can conveniently and flexibly invest according to the load condition; the independence is strong, the independent realization is completely realized by depending on server software, and the independent realization is independent of other network services.
The above description is only for illustrative purposes and does not limit the technical solutions of the present application in any way.
As can be easily found from the above description, in the present embodiment, the status notification data of each server is obtained by the obtaining server, where the status notification data includes: group ID, priority, virtual IP information and real-time WEB server load information; the server acquires a local group ID, compares the local group ID with the group ID in the state notification data, establishes a balance server list according to the comparison result, and determines a representative server according to the priority of each server in the balance server list; the representative server acquires a WEB request through the virtual IP information, selects a server from the balance server list as a response server according to the real-time WEB server load information, extracts a browser address from the WEB request, responds to a corresponding browser according to the browser address by the response server, acquires the WEB server load information of the response server in real time, and updates corresponding state notification data. According to the embodiment, the autonomous cooperative work is realized by knowing the load condition of each server through the state, no additional load balancing equipment needs to be deployed, the balancing servers are completely self-organized to realize load balancing, and the hardware investment of users is reduced.
In addition, the embodiment of the invention also provides a WEB service load balancing device. As shown in fig. 3, the WEB service load balancing apparatus includes: the system comprises an acquisition module 10, a list establishing module 20 and a service balancing module 30.
An obtaining module 10, configured to obtain, by a server, status notification data of each server, where the status notification data includes: group ID, priority, virtual IP information and real-time WEB server load information;
a list establishing module 20, configured to acquire a local group ID by a server, compare the local group ID with a group ID in the status notification data, establish a balance server list according to a comparison result, and determine a representative server according to a priority of each server in the balance server list;
the service balancing module 30 is configured to obtain a WEB request through virtual IP information on behalf of a server, select a server from the balancing server list as a response server according to real-time WEB server load information, extract a browser address from the WEB request, respond to a corresponding browser according to the browser address by the response server, obtain WEB server load information of the response server in real time, and update corresponding status notification data;
in addition, it should be noted that the above-described embodiments of the apparatus are merely illustrative, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of the modules to implement the purpose of the embodiments according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to a method for balancing a WEB service load provided in any embodiment of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides a medium, where the medium is a computer medium, and a method program for WEB service load balancing is stored on the computer medium, where the method program for WEB service load balancing is executed by a processor, and implements the following operations:
s1, the server obtains status notification data of each server, where the status notification data includes: group ID, priority, virtual IP information and real-time WEB server load information;
s2, the server acquires the local group ID, compares the local group ID with the group ID in the state notification data, establishes a balance server list according to the comparison result, and determines a representative server according to the priority of each server in the balance server list;
and S3, the representative server acquires the WEB request through the virtual IP information, selects a server from the balance server list as a response server according to the real-time WEB server load information, extracts the browser address from the WEB request, responds to the corresponding browser according to the browser address by the response server, acquires the WEB server load information of the response server in real time, and updates the corresponding state notification data.
Further, when executed by a processor, the method for WEB service load balancing further implements the following operations:
setting interval time and a data sending address, and sending state notification data to the data sending address by each server according to the interval time, wherein the state notification data comprises: the server acquires the state notification data of each server from the data sending address.
Further, when executed by a processor, the method for WEB service load balancing further implements the following operations:
the server acquires a local group ID, extracts the group ID from the state notification data, compares the local group ID with the group ID, records a server corresponding to the group ID when the local group ID is the same as the group ID, establishes a balance server list according to the servers, and determines a representative server according to the priority of each server in the balance server list; when the local group ID is not identical to the group ID, the group ID is reacquired.
Further, when executed by a processor, the method for WEB service load balancing further implements the following operations:
and establishing a balance server list according to the servers, simultaneously recording the priority, the virtual IP information, the real IP information and the real-time WEB server load information of the servers of each group of IDs, comparing the priority of each server in the balance server list in pairs, and screening the server with the highest priority as a representative server.
Further, when executed by a processor, the method for WEB service load balancing further implements the following operations:
and the representative server acquires the WEB request through the virtual IP information, acquires the real-time WEB server load information of each server in the balance server list, and selects a server corresponding to the WEB server load information with the minimum value from the real-time WEB server load information of each server as a response server.
Further, when executed by a processor, the method for WEB service load balancing further implements the following operations:
and acquiring the real-time state of each server, marking the servers when the server state is running, and selecting the server corresponding to the WEB server load information with the minimum value from the marked servers as a response server.
Further, when executed by a processor, the method for WEB service load balancing further implements the following operations:
the response server acquires real IP information, constructs HTTP redirection response information according to the real IP information and feeds the HTTP redirection response information back to the browser, and when a request destination address extracted from the acquired WEB request by the response server is the same as the real IP address of the server, the response server responds to the corresponding browser according to the address of the browser, acquires WEB server load information of the response server in real time and updates corresponding state notification data.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (10)
1. A method for balancing WEB service load is characterized in that: comprises the following steps;
s1, the server obtains status notification data of each server, where the status notification data includes: group ID, priority, virtual IP information and real-time WEB server load information;
s2, the server acquires the local group ID, compares the local group ID with the group ID in the state notification data, establishes a balance server list according to the comparison result, and determines a representative server according to the priority of each server in the balance server list;
and S3, the representative server acquires the WEB request through the virtual IP information, selects a server from the balance server list as a response server according to the real-time WEB server load information, extracts the browser address from the WEB request, responds to the corresponding browser according to the browser address by the response server, acquires the WEB server load information of the response server in real time, and updates the corresponding state notification data.
2. The method for WEB services load balancing according to claim 1, wherein: in step S1, before the server acquires the status notification data of each server, the method further includes the following steps of setting an interval time and a data transmission address, and each server transmits the status notification data to the data transmission address according to the interval time, where the status notification data includes: the server acquires the state notification data of each server from the data sending address.
3. The method for WEB services load balancing according to claim 2, wherein: in step S2, the server acquires a local group ID, compares the local group ID with a group ID in the status notification data, establishes a balanced server list according to the comparison result, and determines a representative server according to the priority of each server in the balanced server list, and further includes the steps of acquiring the local group ID, extracting the group ID from the status notification data, comparing the local group ID with the group ID, recording the server corresponding to the group ID at this time when the local group ID is the same as the group ID, establishing the balanced server list according to the server, and determining the representative server according to the priority of each server in the balanced server list; when the local group ID is not identical to the group ID, the group ID is reacquired.
4. A method for WEB services load balancing according to claim 3, wherein: the method comprises the steps of establishing a balance server list according to servers, determining a representative server according to the priority of each server in the balance server list, simultaneously recording the priority, virtual IP information, real IP information and real-time WEB server load information of the servers of each group ID, comparing the priority of each server in the balance server list in pairs, and screening the server with the highest priority as the representative server.
5. The method for WEB services load balancing according to claim 4, wherein: and step S3, the representative server acquires the WEB request through the virtual IP information and selects a server from the balance server list as a response server according to the real-time WEB server load information, and the method further comprises the following steps that the representative server acquires the WEB request through the virtual IP information, acquires the real-time WEB server load information of each server in the balance server list, and selects the server corresponding to the WEB server load information with the minimum value from the real-time WEB server load information of each server as the response server.
6. The method for WEB services load balancing according to claim 5, wherein: before selecting the server corresponding to the WEB server load information with the minimum value from the real-time WEB server load information of each server as the response server, the method further comprises the following steps of acquiring the real-time state of each server, marking the servers when the server state is running, and selecting the server corresponding to the WEB server load information with the minimum value from the marked servers as the response server.
7. The method for WEB services load balancing according to claim 6, wherein: the response server responds to the corresponding browser according to the browser address, acquires WEB server load information of the response server in real time and updates corresponding state notification data.
8. A WEB service load balancing apparatus, comprising:
an obtaining module, configured to obtain, by a server, status notification data of each server, where the status notification data includes: group ID, priority, virtual IP information and real-time WEB server load information;
the list establishing module is used for the server to obtain the local group ID, compare the local group ID with the group ID in the state notification data, establish a balance server list according to the comparison result and determine a representative server according to the priority of each server in the balance server list;
and the service balancing module is used for acquiring a WEB request on behalf of the server through the virtual IP information, selecting the server from the balancing server list as a response server according to the real-time WEB server load information, extracting a browser address from the WEB request, responding to a corresponding browser by the response server according to the browser address, acquiring the WEB server load information of the response server in real time, and updating the corresponding state notification data.
9. An apparatus, characterized in that the apparatus comprises: a memory, a processor, and a method program for WEB service load balancing stored on the memory and executable on the processor, the method program for WEB service load balancing being configured to implement the steps of the method for WEB service load balancing according to any one of claims 1 to 7.
10. A medium, characterized in that the medium is a computer medium having stored thereon a method program for WEB service load balancing, which when executed by a processor, implements the steps of the method for WEB service load balancing according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911295667.8A CN111193778B (en) | 2019-12-16 | 2019-12-16 | Method and device for balancing WEB service load |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911295667.8A CN111193778B (en) | 2019-12-16 | 2019-12-16 | Method and device for balancing WEB service load |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111193778A true CN111193778A (en) | 2020-05-22 |
CN111193778B CN111193778B (en) | 2022-08-09 |
Family
ID=70709798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911295667.8A Active CN111193778B (en) | 2019-12-16 | 2019-12-16 | Method and device for balancing WEB service load |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111193778B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113220491A (en) * | 2021-07-07 | 2021-08-06 | 中邮消费金融有限公司 | Remote call self-adaptive load balancing method, device and system and computer equipment |
CN114268615A (en) * | 2021-12-24 | 2022-04-01 | 成都知道创宇信息技术有限公司 | Service processing method and system based on TCP connection |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004192449A (en) * | 2002-12-12 | 2004-07-08 | Toshiba Corp | Load distribution method for web client/server system, load distribution system, and load distribution program |
WO2009064126A2 (en) * | 2007-11-14 | 2009-05-22 | Cdnetworks Co., Ltd. | Method for load balancing of server and apparatus for thereof |
CN102469110A (en) * | 2010-11-01 | 2012-05-23 | 英业达股份有限公司 | Load balancing method applied to cluster system |
US20120151054A1 (en) * | 2010-12-10 | 2012-06-14 | Inventec Corporation | Load balancing method for cluster system |
CN105515839A (en) * | 2015-11-30 | 2016-04-20 | 上海斐讯数据通信技术有限公司 | System and method for promoting Radius service performance |
-
2019
- 2019-12-16 CN CN201911295667.8A patent/CN111193778B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004192449A (en) * | 2002-12-12 | 2004-07-08 | Toshiba Corp | Load distribution method for web client/server system, load distribution system, and load distribution program |
WO2009064126A2 (en) * | 2007-11-14 | 2009-05-22 | Cdnetworks Co., Ltd. | Method for load balancing of server and apparatus for thereof |
CN102469110A (en) * | 2010-11-01 | 2012-05-23 | 英业达股份有限公司 | Load balancing method applied to cluster system |
US20120151054A1 (en) * | 2010-12-10 | 2012-06-14 | Inventec Corporation | Load balancing method for cluster system |
CN105515839A (en) * | 2015-11-30 | 2016-04-20 | 上海斐讯数据通信技术有限公司 | System and method for promoting Radius service performance |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113220491A (en) * | 2021-07-07 | 2021-08-06 | 中邮消费金融有限公司 | Remote call self-adaptive load balancing method, device and system and computer equipment |
CN113220491B (en) * | 2021-07-07 | 2021-10-29 | 中邮消费金融有限公司 | Remote call self-adaptive load balancing method, device and system and computer equipment |
CN114268615A (en) * | 2021-12-24 | 2022-04-01 | 成都知道创宇信息技术有限公司 | Service processing method and system based on TCP connection |
CN114268615B (en) * | 2021-12-24 | 2023-08-08 | 成都知道创宇信息技术有限公司 | Service processing method and system based on TCP connection |
Also Published As
Publication number | Publication date |
---|---|
CN111193778B (en) | 2022-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110300050B (en) | Message pushing method and device, computer equipment and storage medium | |
CN111431740B (en) | Data transmission method, device, equipment and computer readable storage medium | |
US20220094761A1 (en) | Server Invocation Method and Proxy Server | |
EP2787742B1 (en) | Method and system for transmitting network video | |
US7441046B2 (en) | System enabling server progressive workload reduction to support server maintenance | |
CN102164116B (en) | Method, system and corresponding device for balancing load | |
US8543692B2 (en) | Network system | |
RU2464722C2 (en) | Method, device and system for distribution of messages | |
US20130262681A1 (en) | Apparatus and method for providing service availability to a user via selection of data centers for the user | |
CN109787827B (en) | CDN network monitoring method and device | |
CN112015544A (en) | Load balancing method, device and equipment of k8s cluster and storage medium | |
CN111193778B (en) | Method and device for balancing WEB service load | |
CN112637332B (en) | Service registration discovery method and system | |
CN107181779A (en) | Processing method, the device and system of access request | |
CN109510878A (en) | A kind of long connection session keeping method and device | |
CN114024972A (en) | Long connection communication method, system, device, equipment and storage medium | |
US9244882B2 (en) | Provisioning network resources based on environment | |
US9203704B2 (en) | Discovering a server device, by a non-DLNA device, within a home network | |
US20150149629A1 (en) | User online state querying method and apparatus | |
CN103716230A (en) | Message sending method, device and server | |
CN111427703A (en) | Industrial data real-time display method and system | |
CN105323128B (en) | method, device and system for accessing front-end equipment to server | |
CN106992893A (en) | The management method and device of router | |
CN112543150B (en) | Dynamic load balancing method based on server control | |
US20190037044A1 (en) | Content distribution and delivery optimization in a content delivery network (cdn) |
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 |