CN107493351A - A kind of client accesses the method and device of the load balancing of storage system - Google Patents

A kind of client accesses the method and device of the load balancing of storage system Download PDF

Info

Publication number
CN107493351A
CN107493351A CN201710930494.7A CN201710930494A CN107493351A CN 107493351 A CN107493351 A CN 107493351A CN 201710930494 A CN201710930494 A CN 201710930494A CN 107493351 A CN107493351 A CN 107493351A
Authority
CN
China
Prior art keywords
address
virtual
background server
client
storage system
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
Application number
CN201710930494.7A
Other languages
Chinese (zh)
Other versions
CN107493351B (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710930494.7A priority Critical patent/CN107493351B/en
Publication of CN107493351A publication Critical patent/CN107493351A/en
Application granted granted Critical
Publication of CN107493351B publication Critical patent/CN107493351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1023Server selection for load balancing based on a hash applied to IP addresses or costs

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

A kind of method that the load balancing of storage system is accessed the invention discloses client, including:The service request that client is sent to the storage system with unique domain name is received, parsing obtains Virtual Service;Select background server group corresponding to Virtual Service;Background server is selected in a manner of poll in background server group;Virtual ip address is selected in a manner of poll in virtual ip address corresponding to physical IP address, and virtual ip address is sent to client.Method provided by the invention is first polled to the physical IP address of background server, because physical IP address and background server correspond, poll physical IP address is equivalent to poll background server, avoids the problem of task distribution is uneven only caused by poll virtual ip address in the prior art.The present invention also provides device, background server, background server system and the computer-readable recording medium that a kind of client accesses the load balancing of storage system, has above-mentioned beneficial effect.

Description

A kind of client accesses the method and device of the load balancing of storage system
Technical field
The present invention relates to computer realm, more particularly to a kind of side of the load balancing of client access storage system Method, device, background server, background server system and computer-readable recording medium.
Background technology
With the rapid growth of the increase of Internet service amount, visit capacity and data traffic, each core of storage system The processing intensity divided also relative increase, makes background server system workload increasingly increase.User needs to access storage system Information content be in explosive growth, growing stronger day by day for storage system scale brings huge choose to the pressure of background server War, especially for application fields such as finance, military affairs, large enterprises, when accessing storage system, once occur access fault, Catastrophic failure, the enterprises such as collapse will be faced with the massive losses for being difficult to bear.Therefore, the reliability of access has become measurement An important factor for storage system overall performance.
The mechanism that client accesses storage system is mainly that client sends the request for accessing storage system, dns server The client domain name to be accessed is parsed, according to domain name and the one-to-one relationship of virtual ip address, by virtual IP address corresponding to domain name Address is sent to client, so that client passes through background server corresponding to virtual ip address access.Accessed to improve Reliability because the corresponding Virtual Service of domain name, can be a Virtual Service set it is multiple corresponding to virtual IP addresses Address, select one to be accessed for client in virtual ip address corresponding to the domain name that client provides using the method for poll and deposit Storage system.
But under above-mentioned background and mechanism, the reliability of access is faced with stern challenge, although dns server Polling method can be used, access request is equally distributed to corresponding to different virtual ip address on background server, still The heavier loads that these background servers have, some light loads, even in idle condition, for being assigned to heavier loads Background server on access task, it is desired nonetheless to wait the long period;Meanwhile when visit capacity is excessive, it can also cause to deposit The storage system speed of service is slow, is unable to the situation of login system, ultimately results in whole system collapse.
Therefore how access task to be equally distributed into each backstage as far as possible when client accesses storage system to take It is engaged on device, the load of balanced each background server, is those skilled in the art's technical issues that need to address.
The content of the invention
The method, apparatus of the load balancing of storage system is accessed it is an object of the invention to provide a kind of client, backstage takes Business device, background server system and computer-readable recording medium, for task will to be accessed when client accesses storage system It is equally distributed to as far as possible on each background server, the load of balanced each background server.
In order to solve the above technical problems, the present invention provides a kind of method that client accesses the load balancing of storage system, Including:
The service request that the client is sent to the storage system is received, and is parsed virtual in the service request Service;Wherein, the storage system has unique domain name;
Select background server group corresponding to the Virtual Service;Wherein, the Virtual Service and the background server Group corresponds;
Select a background server in platform server group in a manner of poll in the rear;Wherein, the background service Utensil has unique physical IP address, and the physical IP address corresponds to multiple virtual ip address;
A virtual ip address is selected in a manner of poll in virtual ip address corresponding to the physical IP address, and will The virtual ip address is sent to the client, is taken so that the client accesses the backstage by the virtual ip address Business device.
Preferably, it is described to select one virtually in a manner of poll in virtual ip address corresponding to the physical IP address IP address, and the virtual ip address is sent to the client and specifically included:
A virtual ip address is selected in a manner of poll in virtual ip address corresponding to the physical IP address, and is examined Look into whether the virtual ip address is virtual ip address corresponding to the unique domain name;
If so, then virtual ip address corresponding to the unique domain name is sent to the client;
If it is not, then skipping the virtual ip address, continue in virtual ip address corresponding to the physical IP address A step of virtual ip address is selected in a manner of poll.
Preferably, when the client accesses the background server by the virtual ip address, in addition to:
When the background server breaks down corresponding to the virtual ip address, by virtual ip address switching pair Should into the background server group where the background server normal operation background server, so that the client accesses The background server of the normal operation.
In order to solve the above technical problems, the present invention provides the device that a kind of client accesses the load balancing of storage system, Including:
Receiving unit, the service request sent for receiving the client to the storage system, and parse the industry Virtual Service in business request;Wherein, the storage system has unique domain name;
Allocation unit, for selecting background server group corresponding to the Virtual Service;Wherein, the Virtual Service and institute State background server group one-to-one corresponding;Background server is selected in a manner of poll in platform server group in the rear;Wherein, institute Stating background server has unique physical IP address, and the physical IP address corresponds to multiple virtual ip address;In the thing A virtual ip address is selected in a manner of poll in virtual ip address corresponding to reason IP address, and the virtual ip address is sent out The client is delivered to, so that the client accesses the background server by the virtual ip address.
Preferably, the allocation unit is selected in virtual ip address corresponding to the physical IP address in a manner of poll One virtual ip address, and the virtual ip address is sent to the client and specifically included:
A virtual ip address is selected in a manner of poll in virtual ip address corresponding to the physical IP address, and is examined Look into whether the virtual ip address is virtual ip address corresponding to the unique domain name;
If so, then virtual ip address corresponding to the unique domain name is sent to the client;
If it is not, then skipping the virtual ip address, continue in virtual ip address corresponding to the physical IP address A step of virtual ip address is selected in a manner of poll.
Preferably, the allocation unit is additionally operable to, and the backstage is accessed by the virtual ip address in the client During server, when the background server breaks down corresponding to the virtual ip address, the virtual ip address is switched The background server of the corresponding normal operation into the background server group where the background server, so that the client is visited Ask the background server of the normal operation.
In order to solve the above technical problems, the present invention provides a kind of background server, including:
Memory, the program for accessing the load balancing of storage system for storing client;
Processor, realize during the program for the load balancing for accessing storage system for performing the client any as described above The step of method for the load balancing that client described in accesses storage system.
In order to solve the above technical problems, the present invention provides a kind of background server system, including multiple backstages described above Server, and only have client described in the computing device of a background server to access storage system in synchronization The program of load balancing;When the background server of the execution described program breaks down, by the backstage of the failure Server switches to the background server of normal operation, so as to described in the computing device of the background server of the normal operation Client accesses the program of the load balancing of storage system.
It is described computer-readable to deposit in order to solve the above technical problems, the present invention provides a kind of computer-readable recording medium Computer program is stored with storage media, the visitor described in any one as described above is realized when the computer program is executed by processor Family end accesses the step of method of the load balancing of storage system.
The method that client provided by the present invention accesses the load balancing of storage system, including:Client is received to depositing The service request that storage system is sent, and parse the Virtual Service in service request;Wherein, storage system has unique domain name;Choosing Select background server group corresponding to Virtual Service;Wherein, Virtual Service corresponds with background server group;In background server A background server is selected in group in a manner of poll;Wherein, background server has unique physical IP address, and physics IP address corresponds to multiple virtual ip address;A void is selected in a manner of poll in virtual ip address corresponding to physical IP address Intend IP address, and virtual ip address is sent to client, so that client accesses background server by virtual ip address. Prior art, on the basis of distributing virtual ip address by the method for poll for client, method provided by the invention is first to rear The physical IP address of platform server is polled, because physical IP address with background server is one-to-one, and this right It should be related to it is fixed, therefore poll physical IP address is equivalent to poll background server, avoids and only takes turns in the prior art The problem of task distribution is uneven caused by asking virtual ip address.The present invention also provides the load that a kind of client accesses storage system Balanced device, background server, background server system and computer-readable recording medium, has above-mentioned beneficial effect, This is repeated no more.
Brief description of the drawings
, below will be to embodiment or existing for the clearer explanation embodiment of the present invention or the technical scheme of prior art The required accompanying drawing used is briefly described in technology description, it should be apparent that, drawings in the following description are only this hair Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow of the method for the load balancing that a kind of client provided in an embodiment of the present invention accesses storage system Figure;
Fig. 2 is flow chart corresponding to a kind of step S13 provided in an embodiment of the present invention;
Fig. 3 is the flow of the method for the load balancing that another client provided in an embodiment of the present invention accesses storage system Figure;
Fig. 4 is the signal of the device for the load balancing that a kind of client provided in an embodiment of the present invention accesses storage system Figure;
Fig. 5 is a kind of structural representation of background server provided in an embodiment of the present invention.
Embodiment
The core of the present invention is to provide a kind of method, apparatus of the load balancing of client access storage system, backstage takes Business device and computer-readable recording medium, for fifty-fifty distributing access task as far as possible when client accesses storage system Onto each background server, the load of balanced each background server.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Fig. 1 is the flow of the method for the load balancing that a kind of client provided in an embodiment of the present invention accesses storage system Figure.As shown in figure 1, the method that client accesses the load balancing of storage system includes:
S10:The service request that client is sent to storage system is received, and parses the Virtual Service in service request;Its In, storage system has unique domain name.
S11:Select background server group corresponding to Virtual Service;Wherein, a pair of Virtual Service and background server group 1 Should.
S12:A background server is selected in a manner of poll in background server group;Wherein, background service utensil There is unique physical IP address, and physical IP address corresponds to multiple virtual ip address.
S13:A virtual ip address is selected in a manner of poll in virtual ip address corresponding to physical IP address, and will Virtual ip address is sent to client, so that client accesses background server by virtual ip address.
The embodiment of the present invention accesses storage system in order to facilitate user by client, and one is provided with only to storage system One domain name, all Virtual Services in storage system can be asked by the domain name., can be with the domain name mapping stage PowerDNS softwares as DNS service component, to realize visit by the load balancing module that storage system is connected by its PIPE pattern The load balancing asked.Load balancing module is specially stored in the load balancing configuration file in background server, load balancing Configuration file defines the mechanism for accessing storage system load balancing, and this mechanism can be realized with client accesses storage system Load balancing.The parameter of control load-balancing mechanism should be included in load balancing configuration file, unique domain name, SNMP can be included Receiving port, load balancing, time, version, address pool etc..One or more backstage in storage system can be selected Server preserves load balancing configuration file.Load balancing configuration file is placed in shared drive by background server.Perform negative The background server for carrying equalization task reads load balancing configuration file from shared drive, by load balancing structure therein Build load-balancing mechanism.
In specific implementation, for step S10, storage system is accessed based on unique domain name, for client, Storage system is equivalent to a single unit, and client need to only illustrate required Virtual Service in service request, In practice, user sends service request by different modes, passage to storage system, also corresponds to the required void provided Intend the content of service.
For step S11, the corresponding relation of Virtual Service and background server group is set in advance.
For step S12 and step S13, a background service is selected from background server group in a manner of poll Device, the key point of load balancing is exactly embodied, i.e., really realize each backstage in load sharing to each background server The load balancing of server.
Because a physical IP address corresponds to multiple virtual ip address, and this corresponding relation is dynamic, therefore real When or periodic refreshing IP corresponding tables.IP corresponding tables are normally placed in shared drive, are physical IP address and virtual ip address Corresponding table.Refreshing the embodiment of IP corresponding tables is:Perform the newest physical IP address and void in order acquisition CTDB Intend the corresponding relation of IP address, if corresponding relation is not sky, the IP corresponding tables corresponding relation being put into shared drive In;If corresponding relation is sky, such case is write such as error log, and the IP corresponding tables in shared drive are empty.
When carrying out load balance process in the way of poll, the load balancing configuration text in shared drive need to be taken out Part, configuration information is read, and take out the IP corresponding tables in shared drive, if IP corresponding tables are not sky, carried out subsequently twice Poll;If IP corresponding tables are sky, by such case write error daily record.
First time poll is the poll to physical IP address.Inquire the thing of all background servers in background server group IP address is managed, a background server is selected in a manner of poll.For example, in typical three nodes storage system, according to industry The priority of time is initiated in business request, access of the client to storage system for first initiating business request, by taking from the background Business device A provide service;Access of the client to storage system for second initiating business request, is carried by background server B For service;Access of the client to storage system for the 3rd initiating business request, service is provided by background server C; Access of the client to storage system for the 4th initiating business request, service is provided by background server A;... with this Analogize.
Second of poll is the poll to virtual ip address, according to physical IP address in IP corresponding tables and virtual ip address Corresponding relation, a virtual ip address is selected in a manner of poll.For example, corresponding four virtual ip address of certain physical IP address, The client of service is then provided for first time by background server A, virtual ip address 1 is distributed into the client, so as to this Client accesses background server A by virtual ip address 1;The client of service is provided for first time by background server A, Virtual ip address 1 is distributed into the client, so that the client accesses background server A by virtual ip address 1;For The secondary client that service is provided by background server A, distributes to the client, so that the client is led to by virtual ip address 2 Cross virtual ip address 2 and access background server A;The client of service is provided by background server A for third time, by virtual IP address The client is distributed in address 3, so that the client accesses background server A by virtual ip address 3;... by that analogy.
Client will be returned to by dns server by the virtual ip address that poll obtains twice, so that client is led to Cross the virtual ip address and access background server.
The method that client provided in an embodiment of the present invention accesses the load balancing of storage system, including:Receive client The service request sent to storage system, and parse the Virtual Service in service request;Wherein, storage system has unique domain Name;Select background server group corresponding to Virtual Service;Wherein, Virtual Service corresponds with background server group;On backstage A background server is selected in server group in a manner of poll;Wherein, background server has unique physical IP address, And physical IP address corresponds to multiple virtual ip address;Selected in virtual ip address corresponding to physical IP address in a manner of poll One virtual ip address, and virtual ip address is sent to client, taken so that client accesses backstage by virtual ip address Business device.In prior art, on the basis of distributing virtual ip address by the method for poll for client, method provided by the invention First the physical IP address of background server is polled, because physical IP address with background server is one-to-one, and This corresponding relation is fixed, therefore poll physical IP address is equivalent to poll background server, avoids prior art In only caused by poll virtual ip address task distribution it is uneven the problem of.
Fig. 2 is flow chart corresponding to a kind of step S13 provided in an embodiment of the present invention.As shown in Fig. 2 in above-described embodiment On the basis of, in another embodiment, step S13 is specifically included:
S20:A virtual ip address is selected in a manner of poll in virtual ip address corresponding to physical IP address.
S21:Check whether the virtual ip address is virtual ip address corresponding to unique domain name, if so, then entering step S22;If it is not, then enter step S23.
S22:Virtual ip address corresponding to the unique domain name is sent to the client, so that client is virtual by this IP address accesses background server.
S23:The virtual ip address is skipped, continues executing with step S20.
It should be noted that step S20 to step S23 can be understood as circulation step, i.e., only in step S21 judgement In, when the virtual ip address obtained by poll is virtual ip address corresponding to unique domain name, ability end loop, otherwise enter step Rapid S23, then proceed by the step S20 of the poll and step S21 of inspection.
Although physical IP address corresponds to multiple virtual ip address, i.e., can be visited by one virtual ip address of any of which Ask the physical IP address point to background server, but wherein may as virtual ip address can not provide user needed for void Intend service.And the unique domain name of the storage system can provide all types of Virtual Services in the storage system, therefore only Virtual ip address corresponding to the unique domain name is only the virtual ip address that can provide Virtual Service.
In specific implementation, if corresponding four virtual ip address of certain physical IP address, respectively virtual ip address 1, void Intend IP address 2, virtual ip address 3, virtual ip address 4, and first three virtual ip address is for virtual IP address corresponding to unique domain name Location, then when being polled to virtual ip address 4, the situation for checking and not passing through necessarily occurs, client can not by virtual IP address Location 4 accesses background server and obtains required Virtual Service, therefore skips virtual ip address 4, by the order of poll, by virtual IP address Client is distributed in location 1, because virtual ip address 1 is virtual ip address corresponding to unique domain name, therefore client can pass through Virtual ip address 1 obtains required Virtual Service.
Client provided in an embodiment of the present invention accesses the load-balancing method of storage system, corresponding from physical IP address Virtual ip address in when being polled, check whether the virtual ip address being polled to is virtual IP address corresponding to unique domain name Location, it is ensured that finally required Virtual Service can be provided clients with to provide the virtual ip address of access by issuing client, Avoid accessing and fail.
Fig. 3 is the flow of the method for the load balancing that another client provided in an embodiment of the present invention accesses storage system Figure.As shown in figure 3, on the basis of above-described embodiment, in another embodiment, client accesses the load balancing of storage system Method also include:
S30:When background server corresponding to virtual ip address breaks down, virtual ip address is switched corresponding to backstage The background server of normal operation in background server group where server, so that client accesses the backstage clothes of normal operation Business device.
It should be noted that step S30 and other steps do not have ordinal relation, during only for once access task, Arranged side by side or sequencing be present with step S13.
In specific implementation, when background server breaks down, it is possible to which load-balancing mechanism is just by virtual ip address Send to client, it is also possible to which client accesses background server by virtual ip address, at this moment wants startup separator to cut Task is changed, the background server of normal operation in background server where checking the fault daemon server, in these operations just In normal background server, it can continue, with one background server of polling schemas or other policy selections, client to be rectified Switched in the virtual ip address of access on this background server, client can continue to access the virtual ip address.
Certainly, if detecting fault daemon server, then when performing polling schemas distribution task, will also skip the event Hinder server.
The method that client provided in an embodiment of the present invention accesses the load balancing of storage system, when virtual ip address is corresponding Background server when breaking down, virtual ip address is switched and corresponding transported into the background server group where background server The normal background server of row, ensure that client accesses the reliability of background server, prevent loss of data.
Client as detailed above accesses each embodiment corresponding to the method for the load balancing of storage system, basic herein On, the invention also discloses device corresponding with the above method.
Fig. 4 is the signal of the device for the load balancing that a kind of client provided in an embodiment of the present invention accesses storage system Figure.As shown in figure 4, the device that client accesses the load balancing of storage system includes:
Receiving unit 401, the service request sent for receiving client to the storage system, and parse service request In Virtual Service;Wherein, storage system has unique domain name.
Allocation unit 402, for selecting background server group corresponding to Virtual Service;Wherein, Virtual Service takes with backstage Device group of being engaged in corresponds;Background server is selected in a manner of poll in background server group;Wherein, background server has Unique physical IP address, and physical IP address corresponds to multiple virtual ip address;In virtual ip address corresponding to physical IP address In a virtual ip address is selected in a manner of poll, and virtual ip address is sent to client, so that client passes through void Intend IP address and access background server.
Because the embodiment of device part and the embodiment of method part are mutually corresponding, therefore the embodiment of device part please Referring to the description of the embodiment of method part, wouldn't repeat here.
Client provided in an embodiment of the present invention accesses the device of the load balancing of storage system, including:Receiving unit, use In the service request that reception client is sent to the storage system, and parse the Virtual Service in service request;Wherein, store System has unique domain name.Allocation unit, for selecting background server group corresponding to Virtual Service;Wherein, Virtual Service with Background server group corresponds;Background server is selected in a manner of poll in background server group;Wherein, background service Utensil has unique physical IP address, and physical IP address corresponds to multiple virtual ip address;Virtual corresponding to physical IP address A virtual ip address is selected in IP address in a manner of poll, and virtual ip address is sent to client, so as to client Background server is accessed by virtual ip address.In prior art, virtual ip address is distributed for client by the method for poll On the basis of, method provided by the invention is first polled to the physical IP address of background server, due to physical IP address with Background server is one-to-one, and this corresponding relation is fixed, therefore poll physical IP address is equivalent to poll Background server, avoid the problem of task distribution is uneven only caused by poll virtual ip address in the prior art.
On the basis of above-described embodiment, in another embodiment, allocation unit 402 is virtual corresponding to physical IP address A virtual ip address is selected in IP address in a manner of poll, and virtual ip address is sent to client and specifically included:
A virtual ip address is selected in a manner of poll in virtual ip address corresponding to physical IP address, and checks void Intend whether IP address is virtual ip address corresponding to unique domain name;
If so, then virtual ip address corresponding to the unique domain name is sent to client;
If it is not, then skipping the virtual ip address, continue in virtual ip address corresponding to physical IP address with poll Mode the step of selecting a virtual ip address.
On the basis of above-described embodiment, in another embodiment, allocation unit 402 is additionally operable to, and passes through void in client When intending IP address access background server, when background server corresponding to virtual ip address breaks down, by virtual ip address The background server of the corresponding normal operation into the background server group where the background server of switching, so that client accesses The background server of normal operation.
Because the embodiment of device part and the embodiment of method part are mutually corresponding, therefore the embodiment of device part please Referring to the description of the embodiment of method part, wouldn't repeat here.
Client as detailed above accesses each embodiment corresponding to the method and device of the load balancing of storage system, On the basis of this, the invention also discloses background server corresponding with the above method.
Fig. 5 is a kind of structural representation of background server provided in an embodiment of the present invention.As shown in figure 5, the backstage takes Business device can produce bigger difference because configuration or performance are different, can include one or more processors (central Processing units, CPU) 510 (for example, one or more processors) and memory 520, one or more Store the storage medium 530 (such as one or more mass memory units) of application program 533 or data 532.Wherein, deposit Reservoir 520 and storage medium 530 can be of short duration storage or persistently storage.Being stored in the program of storage medium 530 can include One or more units (diagram does not mark), each unit can include operating the series of instructions in computing device. Further, processor 510 be could be arranged to communicate with storage medium 530, and storage medium is performed on background server 500 Series of instructions operation in 530.
Background server 500 can also include one or more power supplys 540, and one or more are wired or wireless Network interface 550, one or more input/output interfaces 550, and/or, one or more operating systems 531, example Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Step in above-mentioned Fig. 1 to the method for the load balancing of the client access storage system described by Fig. 3 is by backstage Server is realized based on the structure shown in the Fig. 5.
The embodiment of the present invention additionally provides a kind of background server system, including the background service in multiple above-described embodiments Device 500, and under general work state, the computing device client of only one background server 500 accesses storage system Load balancing program;When the background server of configuration processor breaks down, the background server switching of failure will appear from To the background server of normal operation, so that the computing device client of the background server of normal operation accesses storage system Load balancing program.
It is apparent to those skilled in the art that for convenience and simplicity of description, the backstage of foregoing description The specific work process of server, background server system and computer-readable recording medium, it may be referred to preceding method implementation Corresponding process in example, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed method, apparatus, background server, Background server component computer readable storage medium storing program for executing, can be realized by another way.For example, device described above Embodiment is only schematical, for example, the division of unit, only a kind of division of logic function, can have when actually realizing Other dividing mode, such as multiple units or component can combine or be desirably integrated into another system, or some features It can ignore, or not perform.Another, shown or discussed mutual coupling or direct-coupling or communication connection can be with It is by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, can is electrical, mechanical or other forms.Make The unit illustrated for separating component can be or may not be physically separate, can be as the part that unit is shown Or it may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be with Some or all of unit therein is selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can To be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application substantially or Saying all or part of the part to be contributed to prior art or the technical scheme can be embodied in the form of software product Out, the computer software product is stored in a storage medium, including some instructions are causing a computer equipment (can be personal computer, funcall device, or network equipment etc.) performs the whole of each embodiment method of the application Or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can be with storage program The medium of code.
Method, apparatus, the backstage of the load balancing of storage system is accessed a kind of client provided by the present invention above Server, background server system and computer-readable recording medium are described in detail.Each embodiment is adopted in specification Described with progressive mode, what each embodiment stressed is the difference with other embodiment, each embodiment it Between identical similar portion mutually referring to.For device disclosed in embodiment, due to its with embodiment disclosed in method Corresponding, so description is fairly simple, related part is referring to method part illustration.It should be pointed out that led for this technology For the those of ordinary skill in domain, under the premise without departing from the principles of the invention, can also to the present invention carry out it is some improvement and Modification, these are improved and modification is also fallen into the protection domain of the claims in the present invention.
It should also be noted that, in this manual, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except other identical element in the process including the key element, method, article or equipment being also present.

Claims (9)

1. a kind of method that client accesses the load balancing of storage system, it is characterised in that including:
The service request that the client is sent to the storage system is received, and parses the virtual clothes in the service request Business;Wherein, the storage system has unique domain name;
Select background server group corresponding to the Virtual Service;Wherein, the Virtual Service and the background server group one One correspondence;
Select a background server in platform server group in a manner of poll in the rear;Wherein, the background service utensil There is unique physical IP address, and the physical IP address corresponds to multiple virtual ip address;
A virtual ip address is selected in a manner of poll in virtual ip address corresponding to the physical IP address, and by described in Virtual ip address is sent to the client, so that the client accesses the background service by the virtual ip address Device.
2. according to the method for claim 1, it is characterised in that described in virtual ip address corresponding to the physical IP address In a virtual ip address is selected in a manner of poll, and the virtual ip address is sent to the client and specifically included:
A virtual ip address is selected in a manner of poll in virtual ip address corresponding to the physical IP address, and checks institute State whether virtual ip address is virtual ip address corresponding to the unique domain name;
If so, then virtual ip address corresponding to the unique domain name is sent to the client, so that the client passes through The virtual ip address accesses the background server;
If it is not, then skipping the virtual ip address, continue in virtual ip address corresponding to the physical IP address with wheel The mode of inquiry selects the step of virtual ip address.
3. according to the method for claim 1, it is characterised in that institute is accessed by the virtual ip address in the client When stating background server, in addition to:
When the background server breaks down corresponding to the virtual ip address, the virtual ip address is switched and corresponded to extremely The background server of normal operation in background server group where the background server, so as to described in client access The background server of normal operation.
4. a kind of client accesses the device of the load balancing of storage system, it is characterised in that including:
Receiving unit, the service request sent for receiving the client to the storage system, and parse the business and ask Virtual Service in asking;Wherein, the storage system has unique domain name;
Allocation unit, for selecting background server group corresponding to the Virtual Service;Wherein, the Virtual Service with it is described after Platform server group corresponds;Background server is selected in a manner of poll in platform server group in the rear;Wherein, after described Platform server has unique physical IP address, and the physical IP address corresponds to multiple virtual ip address;In the physical IP Select a virtual ip address in virtual ip address corresponding to address in a manner of poll, and by the virtual ip address send to The client, so that the client accesses the background server by the virtual ip address.
5. device according to claim 4, it is characterised in that the allocation unit is empty corresponding to the physical IP address Intend selecting a virtual ip address in IP address in a manner of poll, and the virtual ip address is sent to the client and had Body includes:
A virtual ip address is selected in a manner of poll in virtual ip address corresponding to the physical IP address, and checks institute State whether virtual ip address is virtual ip address corresponding to the unique domain name;
If so, then virtual ip address corresponding to the unique domain name is sent to the client;
If it is not, then skipping the virtual ip address, continue in virtual ip address corresponding to the physical IP address with wheel The mode of inquiry selects the step of virtual ip address.
6. device according to claim 4, it is characterised in that the allocation unit is additionally operable to, and is passed through in the client When the virtual ip address accesses the background server, when event occurs in the background server corresponding to the virtual ip address During barrier, the virtual ip address is switched and corresponded into the background server group where the background server after normal operation Platform server, so that the client accesses the background server of the normal operation.
A kind of 7. background server, it is characterised in that including:
Memory, the program for accessing the load balancing of storage system for storing client;
Processor, such as claims 1 to 3 is realized during the program for the load balancing for accessing storage system for performing the client The step of method for the load balancing that client described in any one accesses storage system.
A kind of 8. background server system, it is characterised in that including multiple background servers as claimed in claim 7, and Synchronization only has the load balancing of client access storage system described in the computing device of a background server Program;When the background server of the execution described program breaks down, the background server of the failure is switched To the background server of normal operation, so that client described in the computing device of the background server of the normal operation accesses The program of the load balancing of storage system.
9. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, realize that the client as described in any one of claims 1 to 3 accesses storage when the computer program is executed by processor The step of method of the load balancing of system.
CN201710930494.7A 2017-10-09 2017-10-09 Load balancing method and device for client to access storage system Active CN107493351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710930494.7A CN107493351B (en) 2017-10-09 2017-10-09 Load balancing method and device for client to access storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710930494.7A CN107493351B (en) 2017-10-09 2017-10-09 Load balancing method and device for client to access storage system

Publications (2)

Publication Number Publication Date
CN107493351A true CN107493351A (en) 2017-12-19
CN107493351B CN107493351B (en) 2021-06-29

Family

ID=60654055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710930494.7A Active CN107493351B (en) 2017-10-09 2017-10-09 Load balancing method and device for client to access storage system

Country Status (1)

Country Link
CN (1) CN107493351B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040236A (en) * 2018-08-01 2018-12-18 平安科技(深圳)有限公司 A kind of server cut-in method and network system
CN109218442A (en) * 2018-10-18 2019-01-15 郑州云海信息技术有限公司 A kind of load-balancing method and device of distributed file system
CN109471740A (en) * 2018-10-31 2019-03-15 深圳智链物联科技有限公司 Built-in system and third party system software interconnection method, device and terminal device
CN110225094A (en) * 2019-05-17 2019-09-10 平安科技(深圳)有限公司 Load balancing application virtual IP address switching method, device, computer equipment and storage medium
CN111193800A (en) * 2019-12-31 2020-05-22 厦门汉印电子技术有限公司 Instruction interaction method, device, server and system based on server analysis
CN111200512A (en) * 2018-11-20 2020-05-26 北京京东尚科信息技术有限公司 Network connection disaster tolerance method, terminal device, storage medium and electronic device
CN113079504A (en) * 2021-03-23 2021-07-06 广州讯鸿网络技术有限公司 Method, device and system for realizing access of 5G message DM multi-load balancer
CN113347037A (en) * 2021-06-07 2021-09-03 中国建设银行股份有限公司 Data center access method and device
CN115225608A (en) * 2022-07-22 2022-10-21 济南浪潮数据技术有限公司 Load balancing method, device, equipment and medium for DNS domain name resolution

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237089A (en) * 2013-05-16 2013-08-07 广东睿江科技有限公司 Method and device for repairing domain name system (DNS) polling mode-based webpages and server
CN103491123A (en) * 2012-06-14 2014-01-01 中国移动通信集团贵州有限公司 Load balancing method based on domain name visiting, system and load balancer
CN103905531A (en) * 2014-03-14 2014-07-02 浪潮电子信息产业股份有限公司 Method for converting load balancing among nodes in cluster storage system
EP2881861A1 (en) * 2012-08-02 2015-06-10 Murakumo Corporation Load distribution device, information processing system, method, and program
CN104967538A (en) * 2015-06-30 2015-10-07 北京奇虎科技有限公司 Method, device and system for network fault switching
CN106210147A (en) * 2016-09-13 2016-12-07 郑州云海信息技术有限公司 A kind of load-balancing method based on poll and device
CN106330610A (en) * 2016-08-29 2017-01-11 浪潮(北京)电子信息产业有限公司 Load balance processing system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491123A (en) * 2012-06-14 2014-01-01 中国移动通信集团贵州有限公司 Load balancing method based on domain name visiting, system and load balancer
EP2881861A1 (en) * 2012-08-02 2015-06-10 Murakumo Corporation Load distribution device, information processing system, method, and program
CN103237089A (en) * 2013-05-16 2013-08-07 广东睿江科技有限公司 Method and device for repairing domain name system (DNS) polling mode-based webpages and server
CN103905531A (en) * 2014-03-14 2014-07-02 浪潮电子信息产业股份有限公司 Method for converting load balancing among nodes in cluster storage system
CN104967538A (en) * 2015-06-30 2015-10-07 北京奇虎科技有限公司 Method, device and system for network fault switching
CN106330610A (en) * 2016-08-29 2017-01-11 浪潮(北京)电子信息产业有限公司 Load balance processing system and method
CN106210147A (en) * 2016-09-13 2016-12-07 郑州云海信息技术有限公司 A kind of load-balancing method based on poll and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040236A (en) * 2018-08-01 2018-12-18 平安科技(深圳)有限公司 A kind of server cut-in method and network system
WO2020024379A1 (en) * 2018-08-01 2020-02-06 平安科技(深圳)有限公司 Server access method and network system
CN109218442A (en) * 2018-10-18 2019-01-15 郑州云海信息技术有限公司 A kind of load-balancing method and device of distributed file system
CN109471740A (en) * 2018-10-31 2019-03-15 深圳智链物联科技有限公司 Built-in system and third party system software interconnection method, device and terminal device
CN111200512A (en) * 2018-11-20 2020-05-26 北京京东尚科信息技术有限公司 Network connection disaster tolerance method, terminal device, storage medium and electronic device
CN111200512B (en) * 2018-11-20 2023-05-30 北京京东尚科信息技术有限公司 Network connection disaster recovery method, terminal equipment, storage medium and electronic equipment
CN110225094A (en) * 2019-05-17 2019-09-10 平安科技(深圳)有限公司 Load balancing application virtual IP address switching method, device, computer equipment and storage medium
CN110225094B (en) * 2019-05-17 2022-02-11 平安科技(深圳)有限公司 Load balancing application virtual IP switching method and device, computer equipment and storage medium
CN111193800A (en) * 2019-12-31 2020-05-22 厦门汉印电子技术有限公司 Instruction interaction method, device, server and system based on server analysis
CN113079504A (en) * 2021-03-23 2021-07-06 广州讯鸿网络技术有限公司 Method, device and system for realizing access of 5G message DM multi-load balancer
CN113347037A (en) * 2021-06-07 2021-09-03 中国建设银行股份有限公司 Data center access method and device
CN113347037B (en) * 2021-06-07 2022-07-12 中国建设银行股份有限公司 Data center access method and device
CN115225608A (en) * 2022-07-22 2022-10-21 济南浪潮数据技术有限公司 Load balancing method, device, equipment and medium for DNS domain name resolution

Also Published As

Publication number Publication date
CN107493351B (en) 2021-06-29

Similar Documents

Publication Publication Date Title
CN107493351A (en) A kind of client accesses the method and device of the load balancing of storage system
Mao et al. Draps: Dynamic and resource-aware placement scheme for docker containers in a heterogeneous cluster
US7962635B2 (en) Systems and methods for single session management in load balanced application server clusters
US8984328B2 (en) Fault tolerance in a parallel database system
CN102053982B (en) A kind of database information management method and equipment
US8914502B2 (en) System and method for dynamic discovery of origin servers in a traffic director environment
US8799409B2 (en) Server side data cache system
US7937437B2 (en) Method and apparatus for processing a request using proxy servers
US9122685B2 (en) Operating cloud computing and cloud computing information system
US8589538B2 (en) Storage workload balancing
US10908940B1 (en) Dynamically managed virtual server system
US20070180453A1 (en) On demand application scheduling in a heterogeneous workload environment
US9479575B2 (en) Managing capacity on demand in a server cloud
US20040254984A1 (en) System and method for coordinating cluster serviceability updates over distributed consensus within a distributed data system cluster
US10512053B2 (en) System and method for selectively hibernating and restarting a node of an application instance
CN101656718A (en) Network server system and method for establishing and starting virtual machine thereof
US20080082647A1 (en) Connection reservation in dynamic node allocation computing environments
CN104811503A (en) R statistical modeling system
CA2845932C (en) Method and system for registering software systems in data-sharing sessions
CN105357250A (en) Data operation system
US7861108B2 (en) Restoring user states in dynamic computing environments
US8302104B2 (en) Session persistence in dynamic node allocation computing environments
US8667048B2 (en) Method for managing internet protocol addresses in network
US11824916B1 (en) Accessing and interacting with requested web content using a modified web farm framework
US10313433B2 (en) Method and system for registering software systems and data-sharing sessions

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