CN100389392C - Method for realizing load uniform in clustering system, system and storage controller - Google Patents

Method for realizing load uniform in clustering system, system and storage controller Download PDF

Info

Publication number
CN100389392C
CN100389392C CNB2006100836042A CN200610083604A CN100389392C CN 100389392 C CN100389392 C CN 100389392C CN B2006100836042 A CNB2006100836042 A CN B2006100836042A CN 200610083604 A CN200610083604 A CN 200610083604A CN 100389392 C CN100389392 C CN 100389392C
Authority
CN
China
Prior art keywords
memory controller
load
controller
primary storage
iscsi
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
CNB2006100836042A
Other languages
Chinese (zh)
Other versions
CN1852502A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CNB2006100836042A priority Critical patent/CN100389392C/en
Publication of CN1852502A publication Critical patent/CN1852502A/en
Application granted granted Critical
Publication of CN100389392C publication Critical patent/CN100389392C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present invention discloses a method, a system and a storage controller which realize uniform load in a cluster system. The method comprises that a client end dispatches ISCSI login requirements, a main storage controller uses the loading condition of each storage controller for selecting the storage controller with the minimum load for the client end for login, and the login of the client end is in the storage controller. The system realizing the present invention comprises at least two storage controllers, one storage controller is a main storage controller, and the other storage controllers are assistant storage controllers. The method and the system of the present invention use the loading condition in the cluster system for determining the storage controller which provides service for the client end. The main storage controller selects the memory controller with the minimum load to provide login service for the client end by comparing the loading information of each storage controller queried by a loading dispatcher. Thus, the load of the storage controllers in the cluster system is balanced.

Description

Realize method, system and the memory controller of load balancing in a kind of group system
Technical field
The present invention relates to the computer cluster technical field, be meant method, system and the memory controller of realizing load balancing in a kind of group system especially.
Background technology
Cluster is meant a sets of computer, and doing as a wholely provides a group network resource to the user.These single computer systems are exactly the node of cluster.A desirable cluster is the node that the user never can be appreciated that the group system bottom, and In the view of them, cluster is a system, but not a plurality of computer system, and the keeper of group system can arbitrarily increase and delete the node of group system.
Internet Small Computer Systems Interface (ISCSI, Internet Small ComputerSystem Interface) is widely used in group system at present.The ISCSI agreement is based upon small computer system interface (SCSI, Small Computer SystemInterface) on agreement and transmission control protocol/Internet protocol (TCP/IP, the TransmissionControl Protocol/Internet Protocol) basis.Scsi interface allows to connect many different types of equipment, but can only support 16 equipment at most, and the bus limited length of interface.ISCSI has increased one deck key-course, utilize the network advantage of TCP/IP, not only solved original SCSI bus limited length, the hypodynamic problem of memory device propagation energy, can also utilize the Internet protocol (IP of existing Ethernet network realization based on ICP/IP protocol, InternetProtocol) storage area network has reduced the spending of enterprise aspect data storage.
In the ISCSI field of storage, provide the group system of the mode of operation of service simultaneously for a plurality of clustered nodes, be to dispatch the load balancing that realizes in the cluster at present with static equilibrium.As shown in Figure 1, client 101 comprises m main frame, links to each other with clustered node 104 by ISCSI/IP network 103 respectively, and clustered node 104 comprises n clustered node, and one of them clustered node is set at host node.The respective modules that create for Various types of data office terminal 102 is called ISCSI object machine 105.The information stores of ISCSI object machine 105 is in the database of each clustered node.(ID, Identification) information inquiry is to corresponding data for the sign of each ISCSI object machine that sends when clustered node is logined by client.But the one or more ISCSI object machines of load on each clustered node, each ISCSI object machine correspondence the data on one or more disk arrays.
Adopt the implementation procedure of static equilibrium scheduling as follows: 1) the corresponding ISCSI object machine 105 of client 101 desired datas is created by graphic user interface or order line in office terminal 102, and host node is with a plurality of ISCSI object machine mean allocation of being created and load on each clustered node in the clustered node 104.When 2) client need be operated data in magnetic disk, the id information of ISCSI object machine when host node is logined by terminal in the cluster inquired this ISCSI object machine and loads on which clustered node, and changeing provides service by this clustered node.
Though the ISCSI object machine that create the office terminal in the cluster has obtained mean allocation on each server.But according to user's actual needs, some main frame may be on the shelf always in operational process, and some main frame may often be visited the same clustered node at a plurality of ISCSI object machines place, and the clustered node at some ISCSI object machine place is asked without frequentation.Thereby the clustered node load size of host access is different.Cause some clustered node busier like this, and some clustered node is relatively more idle, does not reach real load balancing, usage factor of system resource is lower.
Summary of the invention
The technical matters that the present invention solves is to provide method, system and the memory controller of realizing load balancing in a kind of group system.It is not of uniform size to have solved in the system that server mean allocation client resource causes in the group system load.
For solving prior art problems, the invention provides the method that realizes load balancing in a kind of group system, comprising:
Client is sent logging request to the primary storage controller in a, the group system;
B, primary storage controller inquiry self load information also obtains respectively from the load information of memory controller, and more described load information to be determining the memory controller of load minimum, and the information of this memory controller is offered client;
C, client are logined the memory controller of aforementioned load minimum.
Wherein, further comprise before the described step a: setting a memory controller in each memory controller of group system is the primary storage controller.
Wherein, client is sent logging request to primary storage controller to send logging request be client by the primary storage controller virtual Internet protocol IP address and Internet Small Computer Systems Interface ISCSI port among the described step a.
Wherein, step b is:
The load of the central processing unit CPU of primary storage controller inquiry self is describedly inquired about the load of CPU separately respectively and is offered the primary storage controller from memory controller;
The primary storage controller compares self the cpu load and the cpu load of described memory controller determining the memory controller of cpu load minimum, and the information of this memory controller is offered client.
Wherein, described primary storage controller compares cpu load further and comprises:
Described cpu load is compared with assign thresholds respectively, with cpu load greater than the memory controller part ISCSI session transfer of threshold value to the memory controller of cpu load less than threshold value.
Wherein, the described memory controller that cpu load is compared to determine the cpu load minimum further comprises:
Judge whether to exist the minimum and identical memory controller of a plurality of cpu loads, if, then the primary storage controller compares the ISCSI session number of these memory controllers, selects the memory controller of the memory controller of session number minimum as described cpu load minimum.
Wherein, the ISCSI session number of described these memory controllers of primary storage controller comparison further comprises:
Judge whether to exist the minimum and identical memory controller of a plurality of ISCSI session numbers, if then select the memory controller of a memory controller therein at random as described cpu load minimum.
Wherein, in step b, described information with this memory controller offers client and is:
The real ip address and the ISCSI port of described memory controller are offered client;
Among the step c, client is logined according to this real ip address and ISCSI port.
Wherein, send among logging request and the step c login that login is based on the ISCSI agreement among the described step a and be redirected characteristic.
Wherein, described from the memory controller further bag that breaks down that is in operation
Wherein, when described memory controller was the primary storage controller, this memory controller was further used for: draw together:
Break down from memory controller recover normal after, again this memory controller is joined in the cluster by the office terminal, the primary storage controller is given an order to the big memory controller of load information according to load information, disconnect the ISCSI session that the respective stored controller connects, shift these sessions to initiate from memory controller.
The present invention also provides the memory controller of realizing load balancing in a kind of group system, and this memory controller further comprises the load dispatch device, wherein:
Described load dispatch device is used to inquire about the load information of the memory controller of self correspondence, and the load information that inquiry obtains is offered the load dispatch device of primary storage controller;
When described memory controller is the primary storage controller, this memory controller is further used for that himself load dispatch device is inquired about the load information that the load dispatch device of the load information that obtains and other memory controller inquired and compares, and the information that will compare the memory controller of the determined load minimum in back offers client.
Wherein, described load dispatch device is used to inquire about and provides the cpu load of the memory controller of self correspondence;
When described memory controller was the primary storage controller, the load information comparing function that this memory controller is realized was the comparison of cpu load.
Wherein, when described memory controller was the primary storage controller, this memory controller was further used for:
With self and respectively compare with assign thresholds respectively from the cpu load of memory controller, with cpu load greater than the memory controller part ISCSI session transfer of threshold value to the memory controller of cpu load less than threshold value.
Wherein, described memory controller further comprises ISCSI object machine service unit, described load dispatch device is further used for inquiring about current session number and offering the primary storage controller by ISCSI object machine service unit, when described memory controller was the primary storage controller, this memory controller was further used for:
When judgement obtained existing the minimum and identical memory controller of a plurality of cpu loads, relatively the ISCSI session number of these memory controllers was selected the memory controller of the memory controller of session number minimum as described load minimum.
When judgement obtains existing the minimum and identical memory controller of a plurality of ISCSI session numbers, in these memory controllers, select the memory controller of a memory controller at random as described load minimum.
Wherein, after the office terminal joined new memory controller in the cluster, the primary storage controller was further used for:
Give an order to the big memory controller of load according to load information, disconnect the ISCSI session of respective stored controller, shift these sessions to initiate memory controller.
Wherein, described memory controller has the load comparing unit, and the described comparing function of memory controller is realized in this unit.
The present invention also provides the system that realizes load balancing in a kind of group system, and this system comprises at least two memory controllers, and wherein a memory controller is the primary storage controller, and all the other memory controllers are from memory controller, wherein:
Primary storage controller in the described memory controller is used to receive the logging request from client, inquire about self load information and obtain respectively load information from memory controller, more described load information to be determining the memory controller of load minimum, and the information of this memory controller is offered client;
Be used to inquire about self load information from memory controller in the described memory controller.
Wherein, described memory controller further comprises the load dispatch device, wherein:
Described load dispatch device is used to inquire about the load information of the memory controller of self correspondence, and the load information that inquiry obtains is offered the load dispatch device of primary storage controller;
When described memory controller is the primary storage controller, this memory controller is further used for that himself load dispatch device is inquired about the load information that the load dispatch device of the load information that obtains and other memory controller inquired and compares, and the information that will compare the memory controller of the determined load minimum in back offers client.
Wherein, described memory controller has the load comparing unit, and the described comparing function of memory controller is realized in this unit.
The inventive method is compared with the static equilibrium dispatching method of prior art, utilizes that loading condition decides the memory controller that service is provided to client in the group system.When having avoided employing static equilibrium dispatching method,, each clustered node load occurs when causing client login clustered node and differ bigger, the system resource waste condition with higher because each ISCSI object machine mean allocation arrives each clustered node.The load information of each memory controller that primary storage controller comparison load dispatch device inquires in the system of the present invention, select the memory controller of load minimum to provide login service, make that the load of each memory controller has reached equilibrium in the group system to client.
Description of drawings
Fig. 1 is the system schematic that adopts the static equilibrium scheduling;
Fig. 2 is the process flow diagram of the inventive method;
Fig. 3 is the synoptic diagram of the inventive method embodiment;
Fig. 4 is that the ISCSI login is redirected synoptic diagram;
Fig. 5 is the process flow diagram of the inventive method embodiment;
Fig. 6 is the structural drawing of system of the present invention in group system.
Embodiment
Method of the present invention can be that client is distributed the memory controller of being logined according to the loading condition of the memory controller of each server in the group system, can solve prior art is that the load size that each ISCSI object machine of clustered node mean allocation brings differs bigger, the system resource waste condition with higher with the static equilibrium dispatching method.
Referring to Fig. 2, the present invention realizes that the method for load balancing comprises:
Step S201: client is sent logging request to the primary storage controller;
Step S202: the primary storage controller utilizes each memory controller loading condition to select the memory controller login of load minimum for client.
Step S203: client is logined aforementioned memory controller.
Synoptic diagram below in conjunction with method embodiment of the present invention is described in detail method of the present invention.Referring to Fig. 3,
Step S301: the ISCSI object machine is created to the primary storage controller in the office terminal, and the primary storage controller receives order.
Step S302: the primary storage controller preserve the configuration information created the office terminal in the CONFIG.SYS of disk array after, upgrade self database, and be sent to other and respectively upgrade its database from memory controller.
Step S303: the primary storage controller returns the successful information of creating to the office terminal.
Step S304:ISCSI client is sent the ISCSI logging request by the virtual ip address and the ISCSI port of primary storage controller to the primary storage controller.
Step S305: the information inquiry of primary storage controller ISCSI logging request from the ISCSI port goes out to provide the ISCSI object machine of service.
Step S306: the load information of each memory controller that the load comparing unit comparison load dispatch device in the primary storage controller inquires finds out the memory controller of CPU (central processing unit) (CPU, CenterProcess Unit) load minimum; If there is the minimum and identical memory controller of a plurality of loads, then compare the current I SCSI session number of these memory controllers, find out the memory controller of current I SCSI session number minimum; If have the minimum and identical memory controller of a plurality of current I SCSI session numbers, then select a memory controller at random.
Step S307: the primary storage controller is sent to the ISCSI client with IP address information and the ISCSI port numbers of the memory controller k of finding out present load minimum.
Step S308:ISCSI client sends landing request information by IP address and the ISCSI port of memory controller k to this memory controller.
Step S309:ISCSI memory controller k returns the successful information of login to the ISCSI client, provides service to the ISCSI client.
In the implementation of step S306, the load dispatch device of primary storage controller is regularly inquired about its loading condition to the load dispatch device from memory controller respectively.
The ISCSI login part of the load dispatch device of each memory controller timing from ISCSI object machine service unit obtained current ISCSI session number in the operational process of group system, regularly inquires about the load of current central processing unit CPU to memory controller operating system.In the implementation of step S306, load information is fed back to the load dispatch device of primary storage controller.
In the operational process of group system, after the load dispatch device of primary storage controller regularly inquires the load information of load dispatch device, the assign thresholds scope, the load comparing unit compares each memory controller cpu load and CPU threshold value, ISCSI object machine service unit with cpu load greater than the memory controller part ISCSI session transfer of threshold value to the memory controller of cpu load less than threshold value.
In the operational process of group system, if memory controller t breaks down, then the ISCSI session that is connected with client will be restarted automatically, logins the primary storage controller again.
In the operational process of group system, join in the cluster if need rebulid by the office terminal after memory controller m recovers from fault.After the adding, the load dispatch device of primary storage controller is given an order to the load dispatch device of other memory controller, and breaking part ISCSI session is shifted these sessions to newly-increased memory controller.
To the implementation of step S308, the login process of client login memory controller is based on the redirected characteristic of ISCSI agreement login and logins at step S305.Be redirected flow process figure below in conjunction with the ISCSI login and describe this login process.Referring to Fig. 4, have only master server to set virtual ip address in the server.Sign in to master server by virtual address during the client login.Each server contains a real IP address.
Step S401: client is set up TCP with master server and is connected.
Step S402: client is by the virtual ip address 10.0.0.1 and the port 3260 login master servers of master server.
Step S403: master server returns the IP address 10.0.0.3 and the port 3260 of the server that service is provided to client.
Step S404: client is according to address and this server of port login of returning.
Step S405: server returns the login successful information and service is provided to client.
In the method for the present invention, behind the client login primary storage controller,, network is redirected characteristic, IP address information and this memory controller of ISCSI port login in the address information that client can be returned according to the primary storage controller because having the ISCSI login.
Provide the preferred embodiment that the inventive method realizes below.
Suppose that client comprises 8 main frames in the group system, 4 memory controllers.Referring to Fig. 5,
Step S501: group system starts, and finishes initial configuration.
After group system starts, at first to carry out initial configuration, 4 memory controllers are set out the primary storage controller by connection separately, suppose the 1st memory controller setting becoming primary storage controller, and other 3 memory controllers are set and become from memory controller.The primary storage controller provides unique virtual ip address and ISCSI port to client.The primary storage controller reads group system from disk array CONFIG.SYS upgrades self database.
Step S502: the configuration information of ISCSI object machine is preserved and upgraded to group system.
After the group system operation, the keeper has created 20 ISCSI object machines by the office terminal, names ISCSI object machine 1 to ISCSI object machine 20 respectively.The configuration information of these object machines upgrades self database be saved in the CONFIG.SYS of disk array by the primary storage controller after, and is sent to other 3 and upgrades its database from memory controller.
Step S503: client is sent logging request to group system.
The 2nd main frame sends logging request by the virtual ip address and the port numbers of primary storage controller to the primary storage controller.
Step S504: the primary storage controller finds out the ISCSI object machine.
The primary storage controller is according to landing request information, and for example, what find out in database that the 2nd main frame require service is provided is ISCSI object machine 15.
Step S505: the primary storage controller is load information relatively.
Load comparing unit comparison load dispatch device in primary storage controller load information that regularly the load dispatch device from memory controller inquires from other 3 and the load information of self compare.It is minimum judging the 3rd load from memory controller at the load information of CPU after relatively.
Step S506: the primary storage controller returns the address information of login.
The primary storage controller adds the 3rd IP address information and the ISCSI port from memory controller in the return message of the 2nd main frame.
Step S507: be redirected login.
The 2nd main frame sends logging request to the 3rd from memory controller according to the IP address information and the port that return.This memory controller reads its data storehouse CONFIG.SYS, finds out the position of data on disk of ISCSI object machine 15 correspondences.Finish follow-up login process with the 2nd main frame, main frame is finished the data write operation.
In the operational process of said system, if the 3rd from memory controller fault has taken place and can not provide service for the 2nd main frame, ISCSI session meeting between them is interrupted automatically so, again send logging request to the primary storage controller, the primary storage controller also can learn that the 3rd breaks down from memory controller in constantly detecting, the logging request of the 2nd main frame is turned on other memory controller.
When the 3rd after memory controller recovers from fault, need to join in the group system again by the office terminal.The primary storage controller is according to the load information of cluster, and the ISCSI session transfer of the memory controller that load is big is to this memory controller.This process can be carried out repeatedly, till the load of these 4 memory controllers is roughly the same.
Provide an embodiment who realizes that system of the present invention uses in group system below.Referring to Fig. 6, this group system comprises:
Client 601, office terminal 602, ISCSI/IP network 603, primary storage controller 604, from memory controller 607, load comparing unit 610, load dispatch device 605, ISCSI object machine service unit 606, storage area exchange network 608, disk array 609.Wherein,
Client 601 comprises main frame 1 to n, by ISCSI/IP network 603 login primary storage controllers 604 or from memory controller 607, operates by the data in magnetic disk on 608 pairs of disk arrays 609 of storage area exchange network.
ISCSI/IP network 603 is used to connect client 601 and primary storage controller 604, from memory controller 607, finish client 601 to primary storage controller 604, from the login of memory controller 607 and the exchange of information by the redirected characteristic that network self has.
Primary storage controller 604 is that memory controller of setting is the primary storage controller in each memory controller, primary storage control contains a virtual ip address, a real ip address, ISCSI port that is useful on the client login, three modules that are used for load balancing, load comparing unit 610, load dispatch device 605, ISCSI object machine service unit 606.The ISCSI object machine information that primary storage controller 604 is sent when being used to inquire client 601 logins, and inquiring the load information of each memory controller in the network by its load dispatch device 605, load comparing unit 610 is used for the load information that comparison load dispatch device 605 is inquired.Primary storage controller 604 is sent to client with the memory controller IP address and the ISCSI port of load minimum.
Load comparing unit 610 is used for the load information of comparison load dispatch device 605, has only when this place, unit memory controller is primary storage controller 604, and this unit is just effective.
Load dispatch device 605 is used for regularly obtaining current ISCSI session number from the ISCSI login part of ISCSI object machine service unit 606, regularly inquires about the load of current C PU to memory controller operating system.Wherein, the load dispatch device of primary storage controller 604 be used for regularly inquiring about self with other respectively from memory controller 607 load dispatch loads that device inquires.
ISCSI object machine service unit 606 is used for the login and the login redirection process of client 601 and each memory controller, assists memory controller to identify the ISCSI object machine that service is provided for client.
Comprise memory controller 2 to m from memory controller 607, be used to receive the landing request information of client, assist client 601 to operate by the data of 608 pairs of disk arrays 609 of storage area exchange network.Contain real ip address and ISCSI port, load comparing unit 610, load dispatch device 605 and the ISCSI object machine service unit 606 that is useful on client login from memory controller.Wherein, load comparing unit 610 is inoperative from memory controller.
Storage area exchange network 608 is used to connect disk array 609 and primary storage controller 604, from memory controller 607, and between these equipment transmission information.
Disk array 609 is used to preserve the required all types of user data of client, the configuration file of ISCSI object machine.
Describe memory controller of the present invention in detail below in conjunction with accompanying drawing 6.
The basic function that memory controller of the present invention and current cluster node can be realized is identical, and different is that device of the present invention has added load comparing unit 610, load dispatch unit 605, ISCSI object machine service unit 606.Wherein, memory controller is used to client 601 that login is provided, and the ISCSI object machine information that is sent when inquiring client 601 logins assists client 601 to operate by the data of 608 pairs of disk arrays 609 of storage area exchange network.
When this memory controller is set at primary storage controller 604, the primary storage controller contains a virtual ip address, a real ip address, ISCSI port that is useful on the client login, and inquiring the load information of each memory controller in the network by its load dispatch device 605, load comparing unit 610 is the load information that inquired of load dispatch devices 605 relatively.Primary storage controller 604 is sent to client with the memory controller IP address and the ISCSI port of load minimum.
When this memory controller is during from memory controller 607, be used to receive the landing request information of client, contain real ip address and ISCSI port, load comparing unit 610, load dispatch device 605 and the ISCSI object machine service unit 606 that is useful on client login from memory controller.Wherein, load comparing unit 610 is inoperative from memory controller.
Load comparing unit 610 is used for the load information of comparison load dispatch device 605, has only when this place, unit memory controller is primary storage controller 604, and this unit is just effective.This unit is used for the load information that comparison load dispatch device 605 is inquired, and compares the memory controller of cpu load minimum; If there is the identical CPU memory controller of a plurality of load minimums and load, then compare the ISCSI session number of cpu load minimum and identical memory controller, compare the memory controller of session number minimum; If have the minimum and identical memory controller of a plurality of ISCSI session numbers, then select one therein at random.This unit also is used for the cpu load of each memory controller that the load dispatch device of primary storage controller inquired and the comparison of assign thresholds.
Load dispatch device 605 is used for regularly obtaining current ISCSI session number from the ISCSI login part of ISCSI object machine service unit 606, regularly inquires about the load of current C PU to memory controller operating system.Wherein, when this load dispatch device was in primary storage controller 604, this load dispatch device was regularly inquired about self and other cpu load that respectively the load dispatch device is inquired from memory controller 607 and current I SCSI session number, and the assign thresholds scope.
ISCSI object machine service unit 606 is used for the login and the login redirection process of client 601 and each memory controller, assists memory controller to identify the ISCSI object machine that service is provided for client.With cpu load greater than the memory controller part ISCSI session transfer of threshold value to the memory controller of cpu load less than threshold value.
This equipment is a preferred embodiment of the present invention, and in this embodiment, load dispatch device 605 also can only be inquired about cpu load, thereby realizes purpose of the present invention.But the present invention considers and may have the minimum and identical situation of a plurality of cpu loads, add ISCSI conversation element 606, the load information of each each memory controller of memory controller ISCSI session number comparison that the load dispatch device 605 that load comparing unit 610 compares the primary storage controller inquires is further judged the memory controller of load minimum, thereby realizes goal of the invention.
This also can obtain the application of expansion for the system of method of the present invention and this method of realization in the colony system.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (20)

1. realize the method for load balancing in the group system, it is characterized in that, comprising:
Client is sent logging request to the primary storage controller in a, the group system;
B, primary storage controller inquiry self load information also obtains respectively from the load information of memory controller, and more described load information to be determining the memory controller of load minimum, and the information of this memory controller is offered client;
C, client are logined the memory controller of aforementioned load minimum.
2. method according to claim 1 is characterized in that, further comprises before the described step a: setting a memory controller in each memory controller of group system is the primary storage controller.
3. method according to claim 1, it is characterized in that client is sent logging request to primary storage controller to send logging request be client by the primary storage controller virtual Internet protocol IP address and Internet Small Computer Systems Interface ISCSI port among the described step a.
4. method according to claim 1 is characterized in that, step b is:
The load of the central processing unit CPU of primary storage controller inquiry self is describedly inquired about the load of CPU separately respectively and is offered the primary storage controller from memory controller;
The primary storage controller compares self the cpu load and the cpu load of described memory controller determining the memory controller of cpu load minimum, and the information of this memory controller is offered client.
5. method according to claim 4 is characterized in that, described primary storage controller compares cpu load further and comprises:
Described cpu load is compared with assign thresholds respectively, with cpu load greater than the memory controller part ISCSI session transfer of threshold value to the memory controller of cpu load less than threshold value.
6. method according to claim 4 is characterized in that, the described memory controller that cpu load is compared to determine the cpu load minimum further comprises:
Judge whether to exist the minimum and identical memory controller of a plurality of cpu loads, if, then the primary storage controller compares the ISCSI session number of these memory controllers, selects the memory controller of the memory controller of session number minimum as described cpu load minimum.
7. method according to claim 6 is characterized in that, the ISCSI session number of described these memory controllers of primary storage controller comparison further comprises:
Judge whether to exist the minimum and identical memory controller of a plurality of ISCSI session numbers, if then select the memory controller of a memory controller therein at random as described cpu load minimum.
8. method according to claim 1 is characterized in that, in step b, described information with this memory controller offers client and is:
The real ip address and the ISCSI port of described memory controller are offered client;
Among the step c, client is logined according to this real ip address and ISCSI port.
9. method according to claim 1 is characterized in that, sends among the described step a and logins the redirected characteristic of the login that is based on the ISCSI agreement among logging request and the step c.
10. method according to claim 1 is characterized in that, described be in operation to break down from memory controller further comprise:
Break down from memory controller recover normal after, again this memory controller is joined in the cluster by the office terminal, the primary storage controller is given an order to the big memory controller of load information according to load information, disconnect the ISCSI session that the respective stored controller connects, shift these sessions to initiate from memory controller.
11. realize the memory controller of load balancing in the group system, it is characterized in that this memory controller further comprises the load dispatch device, wherein:
Described load dispatch device is used to inquire about the load information of the memory controller of self correspondence, and the load information that inquiry obtains is offered the load dispatch device of primary storage controller;
When described memory controller is the primary storage controller, this memory controller is further used for that himself load dispatch device is inquired about the load information that the load dispatch device of the load information that obtains and other memory controller inquired and compares, and the information that will compare the memory controller of the determined load minimum in back offers client.
12. memory controller according to claim 11 is characterized in that, described load dispatch device is used to inquire about and provides the cpu load of the memory controller of self correspondence;
When described memory controller was the primary storage controller, the load information comparing function that this memory controller is realized was the comparison of cpu load.
13. memory controller according to claim 12 is characterized in that, when described memory controller was the primary storage controller, this memory controller was further used for:
With self and respectively compare with assign thresholds respectively from the cpu load of memory controller, with cpu load greater than the memory controller part ISCSI session transfer of threshold value to the memory controller of cpu load less than threshold value.
14. memory controller according to claim 12, it is characterized in that, described memory controller further comprises ISCSI object machine service unit, described load dispatch device is further used for inquiring about current session number and offering the primary storage controller by ISCSI object machine service unit, when described memory controller was the primary storage controller, this memory controller was further used for:
When judgement obtained existing the minimum and identical memory controller of a plurality of cpu loads, relatively the ISCSI session number of these memory controllers was selected the memory controller of the memory controller of session number minimum as described load minimum.
15. memory controller according to claim 14 is characterized in that, when described memory controller was the primary storage controller, this memory controller was further used for:
When judgement obtains existing the minimum and identical memory controller of a plurality of ISCSI session numbers, in these memory controllers, select the memory controller of a memory controller at random as described load minimum.
16. memory controller according to claim 11 is characterized in that, after the office terminal joined new memory controller in the cluster, the primary storage controller was further used for:
Give an order to the big memory controller of load according to load information, disconnect the ISCSI session of respective stored controller, shift these sessions to initiate memory controller.
17. according to any described memory controller of claim 11 to 16, it is characterized in that described memory controller has the load comparing unit, the described comparing function of memory controller is realized in this unit.
18. realize the system of load balancing in the group system, this system comprises at least two memory controllers, wherein a memory controller is the primary storage controller, and all the other memory controllers are from memory controller, it is characterized in that:
Primary storage controller in the described memory controller is used to receive the logging request from client, inquire about self load information and obtain respectively load information from memory controller, more described load information to be determining the memory controller of load minimum, and the information of this memory controller is offered client;
Be used to inquire about self load information from memory controller in the described memory controller.
19. system according to claim 18 is characterized in that, described memory controller further comprises the load dispatch device, wherein:
Described load dispatch device is used to inquire about the load information of the memory controller of self correspondence, and the load information that inquiry obtains is offered the load dispatch device of primary storage controller;
When described memory controller is the primary storage controller, this memory controller is further used for that himself load dispatch device is inquired about the load information that the load dispatch device of the load information that obtains and other memory controller inquired and compares, and the information that will compare the memory controller of the determined load minimum in back offers client.
20. system according to claim 19 is characterized in that, described memory controller has the load comparing unit, and the described comparing function of memory controller is realized in this unit.
CNB2006100836042A 2006-05-29 2006-05-29 Method for realizing load uniform in clustering system, system and storage controller Active CN100389392C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100836042A CN100389392C (en) 2006-05-29 2006-05-29 Method for realizing load uniform in clustering system, system and storage controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100836042A CN100389392C (en) 2006-05-29 2006-05-29 Method for realizing load uniform in clustering system, system and storage controller

Publications (2)

Publication Number Publication Date
CN1852502A CN1852502A (en) 2006-10-25
CN100389392C true CN100389392C (en) 2008-05-21

Family

ID=37133967

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100836042A Active CN100389392C (en) 2006-05-29 2006-05-29 Method for realizing load uniform in clustering system, system and storage controller

Country Status (1)

Country Link
CN (1) CN100389392C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010148892A1 (en) * 2009-11-12 2010-12-29 中兴通讯股份有限公司 Method, video access unit and system for implementing load balance for media transcoding network

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076012B (en) * 2007-07-20 2010-12-15 华为技术有限公司 Date telecommunication system and method and interface controller of Internet microcomputer system
CN101227378B (en) * 2008-01-24 2011-05-11 创新科存储技术(深圳)有限公司 Communication service establishing method based on network storage and storage device thereof
CN101500201B (en) * 2008-02-03 2011-05-11 中兴通讯股份有限公司 Method and system for cluster call distribution customer terminal
CN102132577B (en) * 2008-07-10 2014-11-05 瞻博网络公司 Model-based resource allocation
CN101841565B (en) * 2010-04-20 2013-07-31 中国科学院软件研究所 Database cluster system load balancing method and database cluster system
CN101924655B (en) * 2010-08-23 2015-06-03 中兴通讯股份有限公司 Method and device for supporting login of multi-serial port terminal
CN102111436B (en) * 2010-12-20 2013-09-18 深圳市安云信息科技有限公司 Storage device and method for accessing storage device through internet small computer system interface (iSCSI)
CN102118389B (en) * 2010-12-28 2014-01-22 深圳市安云信息科技有限公司 Method for accessing storage device through internet small computer system interface (iSCSI) in multipath manner and storage device
CN102694786A (en) * 2011-03-25 2012-09-26 株式会社野村综合研究所 Session management system
CN103186536A (en) * 2011-12-27 2013-07-03 中兴通讯股份有限公司 Method and system for scheduling data shearing devices
US10212084B2 (en) 2012-06-14 2019-02-19 Nec Corporation Communication system, control apparatus, communication method, control method and program
CN103618621B (en) * 2013-11-21 2017-08-11 华为技术有限公司 A kind of software defined network SDN method of automatic configuration, equipment and system
CN103618738B (en) * 2013-12-09 2017-05-03 惠州华阳通用电子有限公司 Intelligent load distribution system and method for achieving TCP long connection and communication
CN103812867B (en) * 2014-02-17 2017-04-19 华中科技大学 Self-adaption encryption and decryption security storage system and method based on ISCSI
CN104935664B (en) * 2015-06-19 2018-12-21 中国铁道科学研究院集团有限公司电子计算技术研究所 Seat automatic load balancing method and system
CN105207808B (en) * 2015-08-24 2018-12-11 浪潮(北京)电子信息产业有限公司 A kind of determination method and system at data flow control end
CN105847171A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Network device overload protection method
CN107645421A (en) * 2017-11-09 2018-01-30 郑州云海信息技术有限公司 A kind of ISCSI protocol implementing methods of distributed storage
CN108055338B (en) * 2017-12-22 2021-04-09 创新科技术有限公司 ISCSI access load balancing method
CN110022337A (en) * 2018-01-09 2019-07-16 阿里巴巴集团控股有限公司 Resource regulating method, device, equipment and system
CN108200218B (en) * 2018-03-09 2021-11-26 北京奇艺世纪科技有限公司 Method and device for realizing load balance and electronic equipment
CN109474700B (en) * 2018-12-18 2021-09-24 创新科技术有限公司 Access method of iSCSI client, storage medium, client and storage node
WO2021174466A1 (en) * 2020-03-04 2021-09-10 深圳市大疆创新科技有限公司 Self-adaptive load balancing method and system, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1202971A (en) * 1996-01-26 1998-12-23 国际商业机器公司 Load balancing across the processes of a server computer
CN1645330A (en) * 2004-01-21 2005-07-27 国际商业机器公司 Method and system for grid-enabled virtual machines with distributed management of applications
US20060026177A1 (en) * 2004-07-29 2006-02-02 Howell Brian K Method and system of subsetting a cluster of servers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1202971A (en) * 1996-01-26 1998-12-23 国际商业机器公司 Load balancing across the processes of a server computer
CN1645330A (en) * 2004-01-21 2005-07-27 国际商业机器公司 Method and system for grid-enabled virtual machines with distributed management of applications
US20060026177A1 (en) * 2004-07-29 2006-02-02 Howell Brian K Method and system of subsetting a cluster of servers

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010148892A1 (en) * 2009-11-12 2010-12-29 中兴通讯股份有限公司 Method, video access unit and system for implementing load balance for media transcoding network

Also Published As

Publication number Publication date
CN1852502A (en) 2006-10-25

Similar Documents

Publication Publication Date Title
CN100389392C (en) Method for realizing load uniform in clustering system, system and storage controller
CN101447939B (en) Functional distribution method and load balancer
CN110505319A (en) A kind of RS485 is from device address auto-allocation method and system
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN102025630A (en) Load balancing method and load balancing system
CN101296176B (en) Data processing method and apparatus based on cluster
CN103458013A (en) Streaming media server cluster load balancing system and balancing method
CN108933829A (en) A kind of load-balancing method and device
CN112015544A (en) Load balancing method, device and equipment of k8s cluster and storage medium
CN101808119A (en) Method and equipment for multiple storage array load balancing
CN108696581A (en) Caching method, device, computer equipment and the storage medium of distributed information
CN106101171B (en) Server connection method and device
CN110830574B (en) Method for realizing intranet load balance based on docker container
CN113014611B (en) Load balancing method and related equipment
CN105340214A (en) Pattern coalescing for wake-enabled applications
JP2009527056A (en) Server management system and method
US8832215B2 (en) Load-balancing in replication engine of directory server
CN107426323A (en) One kind is based on distributed resource service and Visualized Monitoring System and method
CN107566466A (en) Load-balancing method and device
US7768905B2 (en) Program and method for controlling communication
CN102511146A (en) Implementation method for session board controller pool and session board controller
CN101345770A (en) Load equalization implementing method, storage control equipment and memory system
CN107342929B (en) Method, device and system for sending new message notification
CN111541762A (en) Data processing method, management server, device and storage medium
US20180041579A1 (en) Cloud data transmission system and dynamic data flow decentralizing method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.