CN102469110A - Load balancing method applied to cluster system - Google Patents
Load balancing method applied to cluster system Download PDFInfo
- Publication number
- CN102469110A CN102469110A CN2010105321481A CN201010532148A CN102469110A CN 102469110 A CN102469110 A CN 102469110A CN 2010105321481 A CN2010105321481 A CN 2010105321481A CN 201010532148 A CN201010532148 A CN 201010532148A CN 102469110 A CN102469110 A CN 102469110A
- Authority
- CN
- China
- Prior art keywords
- server
- load
- client
- access
- online
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000013507 mapping Methods 0.000 claims description 2
- 238000012797 qualification Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
A load balancing method applied to a cluster system is characterized in that a load record is established before each server, the load record has the access online number of each server, then an entrance channel is established, and one server is designated as a first server. The first server judges whether the first server appointed by the entrance channel needs to be changed or not according to the load record. When the first server needs to be changed, the other server is designated as a second server according to a configuration strategy, the first server sends a reply signal to the client, and the client establishes access connection with the second server according to the reply signal. And finally, synchronously updating the load records of all the servers, so that all the servers in the cluster system can know the load states of other servers. The invention unifies the access path of the client by establishing a single entry channel, and selects a server with lower load to provide iSCSI service for the client according to the load conditions of the servers.
Description
Technical field
The present invention relates to a kind of load-balancing method, particularly a kind of load-balancing method that is applied to a group system.
Background technology
In general; For higher service frequency range and higher availability are provided, adopt mostly a plurality of provide small computer system interface (Internet Small computer system Interface, the server of iSCSI) serving is formed a group system; As an integral body iSCSI is provided service by this group system; Maximum characteristic is, when group system when wherein a station server breaks down, the application program that its is moved originally can be transferred other server to and take over.
Basically; For present known group system, respectively this server has physical network communications protocol (Internet Protocol, IP) address; The user knows the IP address of Servers-all in this group system, and can choosing arbitrarily server, to carry out access online.But the user is when choosing the server that service is provided; Can't specifically know the access path and the load state of the server that service is provided; The user probably chooses the server of a serious overload, and obtains the service quality and the access path of no good cake, and another server of not chosen possibly be very light of best access path and load for the user; In other words, group system is to this situation and fail to have given play to its maximum benefit.
Therefore, how can be through a kind of method or means, let can have balanced load so that best service to be provided between each server in the group system, be the target that relevant at present manufacturer makes great efforts exploitation.
Summary of the invention
In order to solve the above problems and to improve at present with a plurality of small computer system interface (Internet Small computer system Interface that provide; ISCSI) server of service and the load balancing strategy of the group system formed; The present invention provides a kind of method of load balancing; Through setting up the access path of a single access road uniform client, and, choose a lower server of load and come iSCSI to be provided service client according to the load state of those servers.
The load-balancing method that is applied to a group system of the present invention; This group system comprises a plurality of internet small computer system interface (Internet Small computer system Interface that provide; ISCSI) server of service, respectively this server has physical network communications protocol (Internet Protocol, IP) address; This load-balancing method is at first to set up a load record in each server; This load record has the respectively online quantity of one of this server access, then sets up an access road, and specifying one of those servers is one first server.
When a client is desired to login group system and is sought to serve; An iSCSI who receives the client transmission sets up the online exploration of access (Session Discovery) request; This first server need to judge whether this specified first server of this access road of change according to this load record.
When judging that this first server need be changed, according to a collocation strategy, specifying another server is a second server, and this first server sends a return signal to client, and it is online that client is set up access according to this return signal and this second server.When judging that this first server need not changed; This first server sends a return signal to this client; It is online that this client is set up access according to this return signal and this first server; At last, upgrade respectively this load record of those servers synchronously, let the interior Servers-all of group system all can understand the load condition of other server.
Therefore; Through above-mentioned step; The present invention is through setting up the access path of a single access road with the unified management client; And set up a collocation strategy according to the load state of each server in the cluster system, which server of collocation strategy decision comes provides iSCSI service to client, and then reaches the service quality that provides client best.
Describe the present invention below in conjunction with accompanying drawing and specific embodiment, but not as to qualification of the present invention.
Description of drawings
Fig. 1 the present invention is applied to the flow chart of the load-balancing method of a group system;
The substep flow chart of Fig. 2 A step S16 of the present invention;
The substep flow chart of Fig. 2 B step S13 of the present invention;
The substep flow chart of Fig. 3 step S21 of the present invention.
Embodiment
Below in conjunction with accompanying drawing structural principle of the present invention and operation principle are done concrete description:
Please refer to shown in Figure 1; Fig. 1 load-balancing method that is applied to a group system of the present invention; Be this group system comprise a plurality of provide internet small computer system interface (Internet Small computer system Interface, iSCSI) service server, respectively this server has a physical network communications protocol (Internet Protocol; IP) address, this load-balancing method may further comprise the steps:
Step S10: set up a load record in this server respectively, this load record has the respectively online quantity of an access of this server;
Step S11: set up an access road, specifying one of those servers is one first server;
Step S 12: an iSCSI who receives client transmission sets up the online exploration of access (Session Discovery) request;
Step S13: this first server need to judge whether this specified first server of this access road of change according to this load record;
Step S14: when judging that this first server need be changed, according to a collocation strategy, another of specifying those servers is a second server;
Step S15: this first server sends a return signal to this client;
Step S16: it is online that this client is set up access according to this return signal and this second server;
Step S17: when judging that this first server need not changed, this first server sends a return signal to this client;
Step S18: it is online that this client is set up access according to this return signal and this first server; And
Step S19: upgrade respectively this load record of those servers synchronously, let the interior Servers-all of group system all can understand the load condition of other server.
Wherein, this access road is an inlet IP address.This inlet IP address is a virtual ip address or an entity IP address, and this virtual ip address is mapped across this entity IP address of this first server.
Wherein, The described return signal of step S15, return signal comprise a virtual target title (Virtual target name), and respectively this server comprises a target designation; This virtual target title is that this entity IP address mapping according to this server respectively is in those target designations; The virtual target title is covered the target designation of each server oneself, and concerning the user, it can't see the target designation of setting up the access online server itself.
In simple terms; When the user desires to login to group system; The user can't know the entity IP address of each server, only can be from the specified IP address of access road (no matter being entity IP address or virtual ip address) login the group system one of them server and obtain service (also be aforesaid first or second server).When new user desires to login to group system, be assigned as the server of first server and can service be provided, and it is online that the IP address notification user of suitable servers is set up access according to the server that the collocation strategy corresponding selection is fit to.
Wherein, collocation strategy has a variety of setting meanss, and for instance, collocation strategy can sort according to the online quantity of the access of each server in the load record, and the online quantity of access is minimum as preferentially assigning as the server that service is provided.It should be noted that; Above-mentioned example is merely the usefulness of illustration; Be not that those skilled in the art know that collocation strategy also can be assigned the server that service is provided with group system with the notion of priority in order to qualification the present invention; The user that for example will have higher-priority is assigned on the specific server, and all the other users are redistributed on other the server.
In addition; Because each server all has a load record that is writing down the Servers-all load state; In load record, during the online quantity change of each access (it is online that for example a user and a server are set up access), just can upgrade the load record in the Servers-all synchronously, therefore; Can effectively reach the effect of equally loaded, avoid having on the same server user of the online quantity of too much access.
Please refer to shown in Fig. 2 A, the described step of step S16 comprises that also substep is following:
Step S20: client receives this return signal, to obtain this virtual target title; And
Step S21: client is carried out register to this virtual target title, so that to set up access online with this second server.
Please refer to shown in Fig. 2 B, the described step of step S13 comprises that also substep is following:
Step S22: client receives this return signal, to obtain this virtual target title; And
Step S23: client is carried out register to this virtual target title, so that to set up access online with this first server.
Please refer to shown in Figure 3ly, the described step of step S21 also comprises following substep:
Step S30: upgrade the online quantity of this access that a correspondence and this client are set up this online first server of access or this second server;
Step S31: send the online quantity of this access, send other those servers of a update signal to this group system through upgrading; And
Step S32: other those servers upgrade respectively this load record of this server synchronously according to this update signal that is received.
In sum; The present invention is through setting up the access path of a single access road with the unified management client; And set up collocation strategy according to the load state of each server in the cluster system; Which server of collocation strategy decision comes provides iSCSI service to client, and then reaches the service quality that provides client best.
Certainly; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.
Claims (8)
1. load-balancing method that is applied to a group system; This group system comprises a plurality of servers that the internet small computer system interface iSCSI service is provided; Respectively this server has a physical network communications protocol IP address, it is characterized in that this load-balancing method comprises:
Set up a load record in this server respectively, this load record has the respectively online quantity of an access of this server;
Set up an access road, specifying one of those servers is one first server;
An iSCSI who receives client transmission sets up the online exploration request of access;
This first server need to judge whether this specified first server of this access road of change according to this load record;
When judging that this first server need be changed, according to a collocation strategy, another of specifying those servers is a second server;
This first server sends a return signal to this client;
It is online that this client is set up access according to this return signal and this second server;
When judging that this first server need not changed, this first server sends a return signal to this client;
It is online that this client is set up access according to this return signal and this first server; And
Upgrade respectively this load record of those servers synchronously.
2. the load-balancing method that is applied to a group system according to claim 1 is characterized in that, this access road is an inlet IP address.
3. the load-balancing method that is applied to a group system according to claim 2 is characterized in that, this inlet IP address is a virtual ip address, and this virtual ip address is mapped across this entity IP address of this first server.
4. the load-balancing method that is applied to a group system according to claim 2 is characterized in that, this inlet IP address is this entity IP address of this first server.
5. the load-balancing method that is applied to a group system according to claim 1; It is characterized in that; This return signal comprises a virtual target title, and respectively this server comprises a target designation, this virtual target title according to this entity IP address mapping of this server respectively in those target designations.
6. the load-balancing method that is applied to a group system according to claim 5 is characterized in that, this client is set up the online step of access according to this return signal and this second server, also comprises:
This client receives this return signal, to obtain this virtual target title; And
This client is carried out register to this virtual target title, so that to set up access online with this second server.
7. the load-balancing method that is applied to a group system according to claim 5 is characterized in that, this client is set up the online step of access according to this return signal and this first server, also comprises:
This client receives this return signal, to obtain this virtual target title; And
This client is carried out register to this virtual target title, so that to set up access online with this first server.
8. the load-balancing method that is applied to a group system according to claim 1 is characterized in that, respectively this load record that this upgrades those servers synchronously comprises:
Upgrade a correspondence and this client and set up the online quantity of this access of this online first server of access or this second server;
Send the online quantity of this access, send other those servers of a update signal to this group system through upgrading; And
Other those servers upgrade respectively this load record of this server according to this update signal that is received.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105321481A CN102469110A (en) | 2010-11-01 | 2010-11-01 | Load balancing method applied to cluster system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105321481A CN102469110A (en) | 2010-11-01 | 2010-11-01 | Load balancing method applied to cluster system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102469110A true CN102469110A (en) | 2012-05-23 |
Family
ID=46072276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105321481A Pending CN102469110A (en) | 2010-11-01 | 2010-11-01 | Load balancing method applied to cluster system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102469110A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105872007A (en) * | 2015-12-31 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Access request processing method, device and system |
CN107483538A (en) * | 2017-07-06 | 2017-12-15 | 聚好看科技股份有限公司 | A kind of method and apparatus that access request bag is handled on the node of micro services cluster |
CN109474700A (en) * | 2018-12-18 | 2019-03-15 | 创新科存储技术有限公司 | Cut-in method, storage medium, client and the memory node of iSCSI client |
CN111193778A (en) * | 2019-12-16 | 2020-05-22 | 武汉思为同飞网络技术股份有限公司 | Method, device, equipment and medium for WEB service load balancing |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101061469A (en) * | 2004-06-25 | 2007-10-24 | 泰克迪亚科技公司 | Distributed request routing |
CN101116056A (en) * | 2005-03-31 | 2008-01-30 | 国际商业机器公司 | Systems and methods for content-aware load balancing |
US20080155552A1 (en) * | 2006-12-20 | 2008-06-26 | Samsung Electronics Co., Ltd. | Server, client, load balancing system and load balancing method thereof |
-
2010
- 2010-11-01 CN CN2010105321481A patent/CN102469110A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101061469A (en) * | 2004-06-25 | 2007-10-24 | 泰克迪亚科技公司 | Distributed request routing |
CN101116056A (en) * | 2005-03-31 | 2008-01-30 | 国际商业机器公司 | Systems and methods for content-aware load balancing |
US20080155552A1 (en) * | 2006-12-20 | 2008-06-26 | Samsung Electronics Co., Ltd. | Server, client, load balancing system and load balancing method thereof |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105872007A (en) * | 2015-12-31 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Access request processing method, device and system |
CN107483538A (en) * | 2017-07-06 | 2017-12-15 | 聚好看科技股份有限公司 | A kind of method and apparatus that access request bag is handled on the node of micro services cluster |
CN107483538B (en) * | 2017-07-06 | 2021-01-01 | 聚好看科技股份有限公司 | Method and device for processing access request packet on node of micro-service cluster |
CN109474700A (en) * | 2018-12-18 | 2019-03-15 | 创新科存储技术有限公司 | Cut-in method, storage medium, client and the memory node of iSCSI client |
CN109474700B (en) * | 2018-12-18 | 2021-09-24 | 创新科技术有限公司 | Access method of iSCSI client, storage medium, client and storage node |
CN111193778A (en) * | 2019-12-16 | 2020-05-22 | 武汉思为同飞网络技术股份有限公司 | Method, device, equipment and medium for WEB service load balancing |
CN111193778B (en) * | 2019-12-16 | 2022-08-09 | 武汉思为同飞网络技术股份有限公司 | Method and device for balancing WEB service load |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112136294B (en) | Message and system for influencing service route by application function | |
US9769253B2 (en) | Port pooling | |
CN104219127B (en) | A kind of creation method and equipment of virtual network example | |
US8037025B2 (en) | Method and approach to hosting versioned web services | |
EP2901308B1 (en) | Load distribution in data networks | |
CN102281190B (en) | Networking method for load balancing apparatus, server and client access method | |
CN113596110B (en) | Cloud primary micro-service platform oriented to heterogeneous cloud | |
US7894828B2 (en) | System and method for establishing peer-to-peer bandwidth sharing ad hoc networks | |
CN112087312A (en) | Method, device and equipment for providing edge service | |
EP3226477A1 (en) | Content distribution network (cdn)-based website acceleration method and system | |
US10212223B2 (en) | Overlay network management | |
EP3148125A1 (en) | Setting method, server device and service chain system | |
US8935377B2 (en) | Dynamic registration of listener resources for cloud services | |
US10715635B2 (en) | Node route selection method and system | |
CN103346910A (en) | Method and device for managing available mode of servers | |
US9760370B2 (en) | Load balancing using predictable state partitioning | |
US7739364B2 (en) | Method and apparatus for dynamically reconfiguring a server system | |
CN102469110A (en) | Load balancing method applied to cluster system | |
CN105763616B (en) | Resource downloading method and device | |
US20140317289A1 (en) | Dynamically affinitizing users to a version of a website | |
US20120151054A1 (en) | Load balancing method for cluster system | |
EP3855689A1 (en) | Method, apparatus, and system for providing service, storage medium, and electronic device | |
CN103138961B (en) | server control method, controlled server and central control server | |
CN109302302A (en) | Service scalable method, system and the computer readable storage medium of network element | |
CN102986196B (en) | The node being distributed on communication structure accesses network using the topology server selected with multiple criteria |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120523 |