CN107566466A - Load-balancing method and device - Google Patents

Load-balancing method and device Download PDF

Info

Publication number
CN107566466A
CN107566466A CN201710734532.1A CN201710734532A CN107566466A CN 107566466 A CN107566466 A CN 107566466A CN 201710734532 A CN201710734532 A CN 201710734532A CN 107566466 A CN107566466 A CN 107566466A
Authority
CN
China
Prior art keywords
server
lvs
gateway equipment
nfs
data operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710734532.1A
Other languages
Chinese (zh)
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 Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data 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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN201710734532.1A priority Critical patent/CN107566466A/en
Publication of CN107566466A publication Critical patent/CN107566466A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This disclosure relates to a kind of load-balancing method and device.This method is applied to be provided with LVS server, including:When receiving the data operation request of client, the load condition of multiple NFS gateway equipment is determined;The NFS gateway equipment for according to load condition determining that data operation request can be handled;Data operation request is sent to the NFS gateway equipment determined, so that NFS gateway equipment carries out forward process to data operation request.In accordance with an embodiment of the present disclosure, can be when receiving multiple data operation requests from client, it is allocated according to the load condition of multiple NFS gateway equipment, so that obtaining multiple NFS gateway equipment carries out load balancings, the problem of only existing the single HDFS NFS gateways equipment access bottleneck occurred and the service disruption occurred in its job failure is avoided, realizes the HDFS NFS gateways of high availability and load balancing.

Description

Load-balancing method and device
Technical field
This disclosure relates to field of computer technology, more particularly to a kind of load-balancing method and device.
Background technology
Hadoop distributed file systems (English:Hadoop Distributed File System, referred to as:HDFS) it is The significant components of Hadoop clusters.HDFS is the fault-tolerant file system of a height, can provide the data access of high-throughput, and suitable Close the storage service of big data quantity.
In practical operation, HDFS can be accessed in several ways.For example, order line, webpage (web), Java are applied Program Interfaces (English:Java Application Programming Interface, referred to as:Java API) etc. access Mode.In the related art, HDFS can also have NFS (Network File System, abbreviation:NFS) net Close (NFS Gateway) function.User can be file system mounted (for example, using by HDFS by HDFS NFS gateways function Linux carry (mount) order carries out carry operation) Linux local directory is arrived, can is by HDFS after carry success Operated as a part for local file system, simplify HDFS access mode.
However, with the rapid development of big data, performance requirement more and more higher of the people to equipment.Existing HDFS NFS Gateway can only single node install and use, access performance bottleneck be present, the use demand of user can not be met;Also, in HDFS When NFS gateway is stopped, it will cause HDFS service disruptions.
The content of the invention
In view of this, can be by the data operation request of user the present disclosure proposes a kind of load-balancing method and device Distribute to multiple NFS gateway equipment and carry out load balancing, realize the HDFS NFS gateways of high availability and load balancing.
According to the one side of the disclosure, there is provided a kind of load-balancing method, methods described are applied to be provided with Linux void In the server for intending server LVS, methods described includes:
When receiving the data operation request from client, multiple NFS NFS gateway equipment are determined Load condition;
According to the load condition of the multiple NFS gateway equipment, being determined from the multiple NFS gateway equipment can be to institute State the NFS gateway equipment that data operation request is handled;
The data operation request is sent to the NFS gateway equipment determined, so that the NFS gateway equipment is to institute State data operation request and carry out forward process.
According to another aspect of the present disclosure, there is provided a kind of load balancing apparatus, described device are applied to be provided with Linux In virtual server LVS server, described device includes:
Receiving module, for receiving the data operation request from client;
State determining module, for according to the data operation request, determining multiple NFS NFS gateway equipment Load condition;
Equipment determining module, for the load condition according to the multiple NFS gateway equipment, from the multiple NFS gateway The NFS gateway equipment that can be handled the data operation request is determined in equipment;
Distribute module is asked, for sending the data operation request to the NFS gateway equipment determined, so that institute State NFS gateway equipment and forward process is carried out to the data operation request.
According to another aspect of the present disclosure, there is provided a kind of server for being provided with Linux virtual server LVS, including: Processor and machinable medium, the machinable medium is stored with can be by the machine of the computing device Executable instruction, the processor are promoted by the machine-executable instruction:Realize above-mentioned method and step.
According to another aspect of the present disclosure, there is provided a kind of machinable medium, the machinable medium For the storage medium in server, machine-executable instruction is stored with, when being called and being performed by processor, the machine can be held Row instruction promotes the processor:Realize above-mentioned method and step.
According to the load-balancing method and device of the embodiment of the present disclosure, multiple data from client can received During operation requests, multiple data operation requests are allocated according to the load condition of multiple NFS gateway equipment, so as to obtain multiple NFS gateway equipment carries out load balancing, avoid only exist access bottleneck that single HDFS NFS gateways equipment occurs and The problem of HDFS service disruptions occurred during its job failure, realize the HDFS NFS gateways of high availability and load balancing.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, the further feature and aspect of the disclosure It is clear.
Brief description of the drawings
Comprising in the description and the accompanying drawing of a part for constitution instruction and specification together illustrate the disclosure Exemplary embodiment, feature and aspect, and for explaining the principle of the disclosure.
Fig. 1 is the configuration diagram according to the HDFS NFS gateway systems of correlation technique.
Fig. 2 is a kind of flow chart of load-balancing method according to an exemplary embodiment.
Fig. 3 is a kind of framework of the HDFS NFS gateway systems of load-balancing method according to an exemplary embodiment Schematic diagram.
Fig. 4 is a kind of flow chart of load-balancing method according to an exemplary embodiment.
Fig. 5 is a kind of flow chart of load-balancing method according to an exemplary embodiment.
Fig. 6 is a kind of flow chart of load-balancing method according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of load balancing apparatus according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of load balancing apparatus according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of load balancing apparatus according to an exemplary embodiment.
Embodiment
Describe various exemplary embodiments, feature and the aspect of the disclosure in detail below with reference to accompanying drawing.It is identical in accompanying drawing Reference represent the same or analogous element of function.Although the various aspects of embodiment are shown in the drawings, remove Non-specifically point out, it is not necessary to accompanying drawing drawn to scale.
Special word " exemplary " is meant " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the disclosure, numerous details is given in embodiment below. It will be appreciated by those skilled in the art that without some details, the disclosure can equally be implemented.In some instances, for Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the disclosure.
Fig. 1 is the configuration diagram according to the HDFS NFS gateway systems of correlation technique.As shown in figure 1, according to correlation In the HDFS NFS gateways of technology, client (client) 11, NFS gateway (NFS Gateway) 12 and HDFS can be included Cluster 13.Wherein, HDFS clusters 13 can include a management node (NameNode) 131 and multiple back end (DateNode)132.HDFS clusters 13 can be mounted to Linux local directory, carry success by user by NFS gateway 12 It can be operated afterwards using HDFS clusters 13 as a part for local file system.
In this case, data operation request can be sent to NFS gateway 12 by client 11.NFS gateway 12 receives During data operation request (for example, the reading and writing data request), the data operation request can be sent in HDFS clusters 13. HDFS clusters 13 can carry out data manipulation by management node 131 and multiple back end 132, obtain data manipulation result, And the data manipulation result is sent to NFS gateway 12.NFS gateway 12 sends pin according to the data manipulation result to client 11 Response to data operation request.So as to realize the whole process that user is accessed HDFS.
However, HDFS NFS gateways as shown in Figure 1 are installed and used for single node, when client sends substantial amounts of data behaviour When asking to NFS gateway 12, single NFS gateway 12 can not be handled substantial amounts of data operation request, accessed Performance bottleneck, the problem of use demand of user can not be met;Also, if HDFS NFS gateways failure or when being stopped, The problem of HDFS service disruptions will be caused.
In consideration of it, the disclosure proposes a kind of load-balancing method, the data operation request of user can be distributed to multiple NFS gateway equipment simultaneously carries out load balancing, realizes the HDFS NFS gateways of high availability and load balancing.
Fig. 2 is a kind of flow chart of load-balancing method according to an exemplary embodiment.Implemented according to the disclosure The load-balancing method of example can be applied to be provided with Linux virtual server (Linux Virtual Server, abbreviation:LVS) Server in.As shown in Fig. 2 this method includes:
Step S11, when receiving the data operation request from client, determine multiple NFS NFS nets Close the load condition of equipment;
Step S12, according to the load condition of the multiple NFS gateway equipment, determined from the multiple NFS gateway equipment Go out the NFS gateway equipment that can be handled the data operation request;
Step S13, the data operation request is sent to the NFS gateway equipment determined, so that the NFS gateway Equipment carries out forward process to the data operation request.
In accordance with an embodiment of the present disclosure, can be when receiving multiple data operation requests from client, according to more Multiple data operation requests are allocated by the load condition of individual NFS gateway equipment, are carried out so as to obtain multiple NFS gateway equipment Load balancing, avoid the access bottleneck for only existing single HDFS NFS gateways equipment appearance and occur in its job failure HDFS service disruptions the problem of, realize the HDFS NFS gateway systems of high availability and load balancing.
Fig. 3 is a kind of framework of the HDFS NFS gateway systems of load-balancing method according to an exemplary embodiment Schematic diagram.As shown in figure 3, the HDFS NFS gateways system according to the embodiment of the present disclosure can include client 21, be provided with LVS multiple servers 22, multiple NFS gateway equipment 23 and HDFS clusters 24.Wherein, HDFS clusters 24 can include one Management node 241 and multiple back end 242.
For example, in one example, NFS gateway can be separately mounted to multiple nodes (clothes of hadoop cluster Business device) on, form multiple NFS gateway equipment 23 (being referred to as NFS gateway cluster).For example, the NFS gateway equipment in Fig. 3 231st, 232 and 233.Multiple NFS gateway equipment 23 can access HDFS clusters 24 each node (management node 241 and Multiple back end 242).In another example, LVS can be arranged on multiple servers 22, form LVS master servers With LVS for server, wherein, LVS master servers and LVS can be active and standby each other for server.For example, in figure 3, it is provided with LVS multiple servers 22 can include LVS master servers 221 and LVS for server 222.
In the present embodiment, the server for being provided with LVS can be independent server, or be integrated in the multiple NFS nets Close in any one NFS network equipment in equipment.For example, LVS can be separately mounted on independent server, made It is independent LVS master servers 221 and LVS for server 222;LVS can also be arranged on to times selected in hadoop cluster Anticipate on two nodes (two-server), so as to be provided with LVS server and NFS gateway integration of equipments.For example, the main clothes of LVS Being engaged in device 221 can be integrated with NFS gateway equipment 231, and LVS can be integrated with NFS gateway equipment 232 for server 222.
It is possible to further realize the load balancing of distributed system by LVS technologies.LVS master servers 221 can be made For load dispatcher, when user reaches LVS master servers 221 by VIP (virtual IP address), LVS master servers 221 can basis LVS dispatching algorithms analyze the loading condition of each NFS nodes (multiple NFS gateway equipment 23).Scheduler (LVS master servers 221) monitoring process has been run on, each server node being responsible in monitoring service process and server cluster is (multiple NFS gateway equipment 23) situation, determine that a node (for example, NFS gateway equipment 231) is used to access, and result will be accessed Return to client 21.It should be appreciated that LVS dispatching algorithms well known in the art can be used to the negative of multiple NFS gateway equipment 23 Load state is analyzed, and the disclosure is not restricted to this.
Further, the LVS health examination of service can be provided by Keepalived.Keepalived can be based on Virtual Router Redundacy Protocol (Virtual Router Redundancy Protocol, referred to as:VRRP) agreement realizes LVS's High Availabitity solution, its health status inspection for being mainly used in realizing LVS services and LVS master servers 221 and the standby clothes of LVS The failover (failover) of business device 222.LVS master servers 221 and LVS are fitted with Keepalived for server 222, LVS master servers 221 can send particular message to LVS for server 222, when LVS can not receive the message for server 222, Then think that LVS master servers 221 break down, LVS for server 222 can adapter virtual IP address, continue offer service, so as to ensure High availability.It should be appreciated that health can be carried out to the multiple servers 22 for being provided with LVS using mode well known in the art Check and failover, the disclosure are not restricted to this.
Client 21 can access LVS master servers 221 by virtual IP address.When LVS master servers 221 go wrong, LVS will take over LVS master servers 221 for server 222 and work on.
The server (LVS master servers 221) for being provided with LVS is receiving the data operation request (example from client Such as, reading and writing data is asked) when, it may be determined that the load condition of multiple NFS gateway equipment 23;According to multiple NFS gateway equipment 23 Load condition, be provided with LVS server carry out load dispatch, can be determined from multiple NFS gateway equipment 23 can be right The NFS gateway equipment (for example, NFS gateway equipment 231) that the data operation request is handled;Then please by the data manipulation The NFS gateway equipment (NFS gateway equipment 231) distributed to and determined is sought, so that the NFS gateway equipment is entered to data operation request Row forward process.
The NFS gateway equipment is forwarded to HDFS clusters 24 when receiving data operation request, by the data operation request. HDFS clusters 24 carry out data manipulation by management node 241 and multiple back end 242, obtain data manipulation result.
Fig. 4 is a kind of flow chart of load-balancing method according to an exemplary embodiment.As shown in figure 4, one In the possible implementation of kind, methods described also includes:
Step S14, receive the response message that the NFS gateway equipment is sent according to the data operation request;
Step S15, the response message is sent to the client, the response message is used to determine the client The data operation request carries out forward process by the NFS gateway equipment.For example, as shown in figure 3, HDFS clusters 24 In node (for example, management node 241 and multiple back end 242) after handling data operation request, can be with Data manipulation result is sent to NFS gateway equipment (for example, NFS gateway equipment 231).NFS gateway equipment 231 can be according to this As a result the response message for the data operation request is sent.The server (LVS master servers 221) for being provided with LVS is receiving During to the response message, the response message can be sent to corresponding client 21.The response message can be used for making client 21 determine that data operation request carries out forward process by NFS gateway equipment.Also, client 21 is to the number in the response message Handled according to operating result, for example, display, analysis etc..In this way, the access of client 21 can be rung Should, so as to realize whole process that user is accessed HDFS.
Fig. 5 is a kind of flow chart of load-balancing method according to an exemplary embodiment.As shown in figure 5, one It is described when the server for being provided with LVS is the master server for being currently at working condition in the possible implementation of kind Method also includes:
Step S16, to be provided with LVS and be not presently within working condition standby server send work state information, institute Work state information is stated to be used to make the standby server determine that the master server is in normal condition.
For example, the server for being provided with LVS can be the LVS master servers 221 for being currently at working condition.LVS Master server 221 and LVS are fitted with Keepalived for server 222, are currently at the LVS master servers of working condition 221 can send work state information (for example, the particular message such as VRRP bags) to LVS for server 222.LVS can for server 222 To determine whether LVS master servers 221 are in normal condition (health status) according to the work state information.Wherein, currently In running order LVS master servers 221 refer to that LVS master servers 221 currently receive the access of client, and based on negative Carry balance policy distribution NFS gateway equipment.
Fig. 6 is a kind of flow chart of load-balancing method according to an exemplary embodiment.As shown in fig. 6, one In kind possible implementation, when being provided with LVS server and being the standby server for being not presently within working condition, receiving To before the data operation request of client, methods described also includes:
Step S17, detection are provided with LVS and are currently at the master server of working condition whether be in normal condition;
Step S18, in the case where the master server is not in normal condition, by the mode of operation of the standby server Switch to the mode of operation of the master server.
For example, the server for being provided with LVS can be LVS for server 222.As described above, LVS master servers 221 and LVS is fitted with Keepalived for server 222, is currently at the LVS master servers 221 of working condition and can send Work state information (for example, the particular message such as VRRP bags) is to LVS for server 222.LVS can be according to this for server 222 Work state information detects whether LVS master servers 221 are in normal condition (health status).
In a kind of possible implementation, if LVS can receive the work state information for server 222, recognize Normal condition is in for LVS master servers 221., whereas if LVS can not receive the work state information for server 222, then recognize Normal condition (for example, breaking down) is not in for LVS master servers 221.In this case, LVS can incite somebody to action for server 222 The mode of operation of itself switches to the mode of operation of master server, and (adapter virtual IP address is specially adapter virtual IP address:So that it is directed to The access request of the virtual IP address is sent to LVS for server 222), offer service is provided.In this way, can be in master The alternating of main being serviced device is realized during server failure, ensures the high availability of whole system.
Using example
Application example given below according to the embodiment of the present disclosure, in order to understand the load-balancing method according to the disclosure Flow.It will be understood by those skilled in the art that below using example merely for the sake of the purpose for readily appreciating the embodiment of the present disclosure, It is not construed as the limitation to the embodiment of the present disclosure.
As shown in figure 3, in this applies example, client 21 can pass through virtual IP address (LVS-VIP) 192.168.1.115 Conduct interviews;The IP of LVS master servers 221 is 192.168.1.113;LVS is 192.168.1.114 for the IP of server 222; The IP of NFS gateway equipment 231,232 and 233 be respectively 192.168.1.101,192.168.1.102 and 192.168.1.103。
In this applies example, when client 21 accesses LVS master servers 221 by virtual IP address, LVS master servers 221 receive the reading and writing data request of client 21, and determine the load condition of NFS gateway equipment 231,232 and 233.According to NFS The load condition of gateway device 231,232 and 233, LVS master servers 221 can carry out load dispatch, from NFS gateway equipment 231st, determine in 232 and 233 that data read-write requests can be carried out to handle NFS gateway equipment (for example, NFS gateway equipment 231). The reading and writing data is requested assignment to NFS gateway equipment 231 by LVS master servers 221.NFS gateway equipment 231 is by the reading and writing data Request is forwarded to HDFS clusters 24.HDFS clusters 24 carry out data reading by management node 241 and multiple back end 242 Write, obtain reading and writing data result.
In this applies example, the management node 241 and multiple back end 242 of HDFS clusters 24, grasped to data After request is handled, reading and writing data result can be sent to NFS gateway equipment 231.NFS gateway equipment 231 is according to this As a result the response message for reading and writing data request is sent.LVS master servers 221, can be with when receiving the response message The response message is sent to corresponding client 21.Client 21 can determine that the reading and writing data is asked according to the response message Forward process is carried out by NFS gateway equipment 231;Also, client 21 can be entered to the reading and writing data result in the response message Row processing, for example, display data reads result etc..In this way, the access of client 21 can be responded, so as to Realize the whole process that user is accessed HDFS.
In this applies example, when LVS master servers 221 go wrong, LVS will take over the main clothes of LVS for server 222 Business device 221 works on., can also be by the reading and writing data request point of client 21 when LVS master servers 221 carry out load dispatch Dispensing NFS gateway equipment 232 or 233, it is achieved thereby that the HDFS NFS gateway systems of high availability and load balancing.
Corresponding with foregoing load-balancing method embodiment, the disclosure additionally provides the embodiment of load balancing apparatus.Fig. 7 It is a kind of block diagram of load balancing apparatus according to an exemplary embodiment.The load balancing apparatus of the embodiment can be applied In being provided with LVS server.As shown in fig. 7, the load balancing apparatus includes:
Receiving module 61, for receiving the data operation request from client;
State determining module 62, for according to the data operation request, determining that multiple NFS NFS gateways are set Standby load condition;
Equipment determining module 63, for the load condition according to the multiple NFS gateway equipment, from the multiple NFS nets Close the NFS gateway equipment for determining can be handled the data operation request in equipment;
Distribute module 64 is asked, for sending the data operation request to the NFS gateway equipment determined, so that The NFS gateway equipment carries out forward process to the data operation request.
Fig. 8 is a kind of block diagram of load balancing apparatus according to an exemplary embodiment.As shown in figure 8, in one kind In possible implementation, when the server for being provided with LVS is the master server for being currently at working condition, the dress Putting also includes:
Status information sending module 67, for be provided with LVS and be not presently within working condition standby server send Work state information, the work state information are used to make the standby server determine that the master server is in normal condition.
It is to be not presently within the server for being provided with LVS as shown in figure 8, in a kind of possible implementation During the standby server of working condition, before the data operation request from client is received, described device also includes:
State detection module 68, detection are provided with LVS and whether are currently at the master server of working condition in normal State;
Handover module 69, in the case where the master server is not in normal condition, by the work of the standby server Pattern switching is the mode of operation of the master server.
As shown in figure 8, in a kind of possible implementation, described device also includes:
Respond receiving module 65, the response sent for receiving the NFS gateway equipment according to the data operation request Message;
Sending module 66 is responded, for sending the response message to the client, the response message is used to make institute State client and determine that the data operation request carries out forward process by the NFS gateway equipment.
In a kind of possible implementation, the server for being provided with LVS is independent server, or is integrated in institute State in any one NFS network equipment in multiple NFS gateway equipment.
In accordance with an embodiment of the present disclosure, can be when receiving multiple data operation requests from client, according to more Multiple data operation requests are allocated by the load condition of individual NFS gateway equipment, are carried out so as to obtain multiple NFS gateway equipment Load balancing, avoid the access bottleneck for only existing single HDFS NFS gateways equipment appearance and occur in its job failure HDFS service disruptions the problem of, realize the HDFS NFS gateway systems of high availability and load balancing.
Fig. 9 is a kind of block diagram of load balancing apparatus 900 according to an exemplary embodiment.Reference picture 9, the device 900 machinable mediums 902 that may include processor 901, be stored with machine-executable instruction.Processor 901 and machine Readable storage medium storing program for executing 902 can communicate via system bus 903.Also, processor 901 passes through read machine readable storage medium storing program for executing Machine-executable instruction corresponding with load balancing apparatus is to perform load-balancing method described above in 902.
Machinable medium 902 referred to herein can be any electronics, magnetic, optics or other physical stores Device, can be included or storage information, such as executable instruction, data, etc..For example, machinable medium can be: RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, storage are driven Dynamic device (such as hard disk drive), solid state hard disc, any kind of storage dish (such as CD, dvd), or similar storage are situated between Matter, or combinations thereof.
It is described above the presently disclosed embodiments, described above is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport The principle of each embodiment, practical application or technological improvement to the technology in market are best being explained, or is leading this technology Other those of ordinary skill in domain are understood that each embodiment disclosed herein.

Claims (12)

1. a kind of load-balancing method, methods described is applied to be provided with Linux virtual server LVS server, and it is special Sign is, including:
When receiving the data operation request from client, the load of multiple NFS NFS gateway equipment is determined State;
According to the load condition of the multiple NFS gateway equipment, being determined from the multiple NFS gateway equipment can be to the number The NFS gateway equipment handled according to operation requests;
The data operation request is sent to the NFS gateway equipment determined, so that the NFS gateway equipment is to the number Forward process is carried out according to operation requests.
2. according to the method for claim 1, it is characterised in that in the server for being provided with LVS to be currently at work When making the master server of state, methods described also includes:
To being provided with LVS and being not presently within the standby server transmission work state information of working condition, the working condition is believed Cease for making the standby server determine that the master server is in normal condition.
3. according to the method for claim 1, it is characterised in that in the server for being provided with LVS to be not presently within During the standby server of working condition, before the data operation request from client is received, methods described also includes:
Detection is provided with LVS and is currently at the master server of working condition whether be in normal condition;
In the case where the master server is not in normal condition, the mode of operation of the standby server is switched into the master The mode of operation of server.
4. according to the method for claim 1, it is characterised in that methods described also includes:
Receive the response message that the NFS gateway equipment is sent according to the data operation request;
The response message is sent to the client, the response message is used to make the client determine the data manipulation Request carries out forward process by the NFS gateway equipment.
5. according to the method described in any one in claim 1-4, it is characterised in that it is described LVS is installed server be In independent server, or any one the NFS network equipment being integrated in the multiple NFS gateway equipment.
6. a kind of load balancing apparatus, described device is applied to be provided with Linux virtual server LVS server, and it is special Sign is, including:
Receiving module, for receiving the data operation request from client;
State determining module, for according to the data operation request, determining the negative of multiple NFS NFS gateway equipment Load state;
Equipment determining module, for the load condition according to the multiple NFS gateway equipment, from the multiple NFS gateway equipment In determine the NFS gateway equipment that can be handled the data operation request;
Distribute module is asked, for sending the data operation request to the NFS gateway equipment determined, so that described NFS gateway equipment carries out forward process to the data operation request.
7. device according to claim 6, it is characterised in that in the server for being provided with LVS to be currently at work When making the master server of state, described device also includes:
Status information sending module, for be provided with LVS and be not presently within working condition standby server send work shape State information, the work state information are used to make the standby server determine that the master server is in normal condition.
8. device according to claim 6, it is characterised in that in the server for being provided with LVS to be not presently within During the standby server of working condition, before the data operation request from client is received, described device also includes:
State detection module, detection are provided with LVS and are currently at the master server of working condition whether be in normal condition;
Handover module, in the case where the master server is not in normal condition, the mode of operation of the standby server is cut It is changed to the mode of operation of the master server.
9. device according to claim 6, it is characterised in that described device also includes:
Respond receiving module, the response message sent for receiving the NFS gateway equipment according to the data operation request;
Sending module is responded, for sending the response message to the client, the response message is used to make the client End determines that the data operation request carries out forward process by the NFS gateway equipment.
10. according to the device described in any one in claim 6-9, it is characterised in that it is described LVS is installed server be In independent server, or any one the NFS network equipment being integrated in the multiple NFS gateway equipment.
A kind of 11. server for being provided with Linux virtual server LVS, it is characterised in that including:Processor and machine readable Storage medium, the machinable medium is stored with can be described by the machine-executable instruction of the computing device Processor is promoted by the machine-executable instruction:Realize any described method and steps of claim 1-5.
12. a kind of machinable medium, it is characterised in that the machinable medium is that the storage in server is situated between Matter, machine-executable instruction is stored with, when being called and being performed by processor, the machine-executable instruction promotes the processing Device:Realize any described method and steps of claim 1-5.
CN201710734532.1A 2017-08-24 2017-08-24 Load-balancing method and device Pending CN107566466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710734532.1A CN107566466A (en) 2017-08-24 2017-08-24 Load-balancing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710734532.1A CN107566466A (en) 2017-08-24 2017-08-24 Load-balancing method and device

Publications (1)

Publication Number Publication Date
CN107566466A true CN107566466A (en) 2018-01-09

Family

ID=60976763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710734532.1A Pending CN107566466A (en) 2017-08-24 2017-08-24 Load-balancing method and device

Country Status (1)

Country Link
CN (1) CN107566466A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108200185A (en) * 2018-01-15 2018-06-22 杭州迪普科技股份有限公司 A kind of method and device for realizing load balancing
CN109167702A (en) * 2018-08-28 2019-01-08 新华三大数据技术有限公司 A kind of distributed test method and device based on load balancing
CN111314098A (en) * 2018-12-11 2020-06-19 杭州海康威视系统技术有限公司 Method and device for realizing VIP address drift in HA system
CN112346899A (en) * 2020-11-06 2021-02-09 北京北信源软件股份有限公司 Method and device for optimizing microservice performance
CN113765710A (en) * 2021-08-24 2021-12-07 中国人寿保险股份有限公司上海数据中心 Request processing system and method based on multi-active hybrid cloud deployment
CN116112500A (en) * 2023-02-08 2023-05-12 北京志凌海纳科技有限公司 NFS high availability system and method based on fault detection and routing strategy

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902400A (en) * 2010-07-21 2010-12-01 成都市华为赛门铁克科技有限公司 Gateway load balancing method, system and client device
CN102571959A (en) * 2012-01-11 2012-07-11 北京奇虎科技有限公司 System and method for downloading data
CN104144155A (en) * 2013-05-10 2014-11-12 百度在线网络技术(北京)有限公司 Session handling system and session handling method for long connection
WO2014209320A1 (en) * 2013-06-27 2014-12-31 Thomson Licensing Target replication distribution
CN104301244A (en) * 2014-10-22 2015-01-21 许继电气股份有限公司 Cluster communication system and method of large-scale power distribution network system
CN106570074A (en) * 2016-10-14 2017-04-19 深圳前海微众银行股份有限公司 Distributed database system and implementation method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902400A (en) * 2010-07-21 2010-12-01 成都市华为赛门铁克科技有限公司 Gateway load balancing method, system and client device
CN102571959A (en) * 2012-01-11 2012-07-11 北京奇虎科技有限公司 System and method for downloading data
CN104144155A (en) * 2013-05-10 2014-11-12 百度在线网络技术(北京)有限公司 Session handling system and session handling method for long connection
WO2014209320A1 (en) * 2013-06-27 2014-12-31 Thomson Licensing Target replication distribution
CN104301244A (en) * 2014-10-22 2015-01-21 许继电气股份有限公司 Cluster communication system and method of large-scale power distribution network system
CN106570074A (en) * 2016-10-14 2017-04-19 深圳前海微众银行股份有限公司 Distributed database system and implementation method thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108200185A (en) * 2018-01-15 2018-06-22 杭州迪普科技股份有限公司 A kind of method and device for realizing load balancing
CN108200185B (en) * 2018-01-15 2020-12-04 杭州迪普科技股份有限公司 Method and device for realizing load balance
CN109167702A (en) * 2018-08-28 2019-01-08 新华三大数据技术有限公司 A kind of distributed test method and device based on load balancing
CN111314098A (en) * 2018-12-11 2020-06-19 杭州海康威视系统技术有限公司 Method and device for realizing VIP address drift in HA system
CN112346899A (en) * 2020-11-06 2021-02-09 北京北信源软件股份有限公司 Method and device for optimizing microservice performance
CN112346899B (en) * 2020-11-06 2024-02-09 北京北信源软件股份有限公司 Micro-service performance optimization method and device
CN113765710A (en) * 2021-08-24 2021-12-07 中国人寿保险股份有限公司上海数据中心 Request processing system and method based on multi-active hybrid cloud deployment
CN116112500A (en) * 2023-02-08 2023-05-12 北京志凌海纳科技有限公司 NFS high availability system and method based on fault detection and routing strategy
CN116112500B (en) * 2023-02-08 2023-08-15 北京志凌海纳科技有限公司 NFS high availability system and method based on fault detection and routing strategy

Similar Documents

Publication Publication Date Title
CN107566466A (en) Load-balancing method and device
EP3811597B1 (en) Zone redundant computing services using multiple local services in distributed computing systems
CN101118521B (en) System and method for spanning multiple logical sectorization to distributing virtual input-output operation
US9729666B2 (en) Large scale storage system and method of operating thereof
JP4988710B2 (en) Method for storing data in a storage virtualization system comprising at least two storage devices, and computer program thereof, storage virtualization system, and computer
CN104137085A (en) Method for controlling access of clients to a service in a cluster environment
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
US10908940B1 (en) Dynamically managed virtual server system
US10705740B2 (en) Managing of storage resources
JP6631710B2 (en) Virtualization management program, virtualization management device, and virtualization management method
KR20200080458A (en) Cloud multi-cluster apparatus
US8832215B2 (en) Load-balancing in replication engine of directory server
EP2645635B1 (en) Cluster monitor, method for monitoring a cluster, and computer-readable recording medium
US11917001B2 (en) Efficient virtual IP address management for service clusters
JP2016177324A (en) Information processing apparatus, information processing system, information processing method, and program
JP2011209811A (en) Virtual machine system and virtual machine arrangement method
US11431553B2 (en) Remote control planes with automated failover
US11349718B2 (en) Capacity bursting using a remote control plane
CN112398668B (en) IaaS cluster-based cloud platform and node switching method
US11971902B1 (en) Data retrieval latency management system
JP6246677B2 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, AND PROCESSING DEVICE SWITCHING METHOD
CN115357426A (en) Method and device for processing node exception, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180109