CN108023953A - The high availability implementation method and device of FTP service - Google Patents

The high availability implementation method and device of FTP service Download PDF

Info

Publication number
CN108023953A
CN108023953A CN201711261661.XA CN201711261661A CN108023953A CN 108023953 A CN108023953 A CN 108023953A CN 201711261661 A CN201711261661 A CN 201711261661A CN 108023953 A CN108023953 A CN 108023953A
Authority
CN
China
Prior art keywords
address
ftp
ftp service
virtual
client
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
CN201711261661.XA
Other languages
Chinese (zh)
Other versions
CN108023953B (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.)
Beijing Xiaodu Information Technology Co Ltd
Original Assignee
Beijing Xiaodu 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 Beijing Xiaodu Information Technology Co Ltd filed Critical Beijing Xiaodu Information Technology Co Ltd
Priority to CN201711261661.XA priority Critical patent/CN108023953B/en
Publication of CN108023953A publication Critical patent/CN108023953A/en
Application granted granted Critical
Publication of CN108023953B publication Critical patent/CN108023953B/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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

This application provides the high availability implementation method and device of a kind of FTP service, the described method includes:One virtual ip address is provided and establishes the mapping relations between the physical IP address of virtual ip address and multiple FTP service nodes;Receive client and be directed to the request for establishing ftp session that virtual ip address is sent;A currently available FTP service node is forwarded the request to according to mapping relations, to establish a ftp session between currently available FTP service node and client.Structure FTP service cluster provides FTP service and the request for establishing ftp session is scheduled between multiple FTP service nodes by host node, realizes the High Availabitity of the FTP service based on HDFS.

Description

The high availability implementation method and device of FTP service
Technical field
This application involves internet data communication technology, and in particular to the high availability implementation method and dress of a kind of FTP service Put.
Background technology
Hadoop, which is one, can allow the light framework of user and the Distributed Computing Platform that uses.User can easily exist The application program of processing mass data is developed and run on Hadoop.
Hadoop distributed file systems (HDFS) are designed to be adapted to operate in the distributed field system on common hardware System.HDFS has the characteristics of high fault tolerance (fault-tolerant), and is designed to be deployed in cheap (low-cost) On hardware.And it is capable of providing the data that high-throughput (high throughput) carrys out access application, is adapted to have super The application program of large data sets (large data set).HDFS can realize access (streaming in the form of streaming Access) the data in file system.
HDFS-over-FTP be one increase income, the easy to use download and the upload function that realize to HDFS systems Small tool, can use as management tool, efficient and convenient.But connect quantity it is excessive when, often result in FTP service not It can use.
The content of the invention
In view of this, the embodiment of the present application provides the high availability implementation method and device of a kind of FTP service, existing to solve There is the technical problem that HDFS-over-FTP instruments can not realize High Availabitity.
According to the one side of the embodiment of the present application, there is provided a kind of high availability implementation method of FTP service, the method Including:One virtual ip address is provided and is established between the physical IP address of the virtual ip address and multiple FTP service nodes Mapping relations;Receive client and be directed to the request for establishing ftp session that the virtual ip address is sent;Closed according to the mapping System forwards the request to a currently available FTP service node, so as in the currently available FTP service node and A ftp session is established between client.
In one embodiment, the high availability implementation method of FTP service further includes:FTP service is judged by heartbeat message Whether node can use;It is unavailable in response to one of FTP service node, by the physical IP of the unavailable FTP service node Deleted from the mapping relations address.
In one embodiment a currently available FTP service section is forwarded the request to according to the mapping relations Point, includes to establish a ftp session between the currently available FTP service node and client:To the multiple FTP service node carries out load monitoring;The request is forwarded to one according to LVS load balancing rules according to the mapping relations A FTP service node, to establish a ftp session between the FTP service node and client.
In one embodiment, there is provided a virtual ip address simultaneously establishes the virtual ip address and multiple FTP service sections Mapping relations between the physical IP address of point include:Same virtual ip address is provided jointly with backup server and establishes institute State the mapping relations between the physical IP address of virtual ip address and multiple FTP service nodes;Sent to the standby server Heartbeat message, so that standby server takes over the virtual ip address when not receiving the heartbeat message and continues to client End provides the FTP service based on the virtual ip address.
In one embodiment, the high availability implementation method of FTP service further includes:Receive and obtain the FTP service node The request of monitoring data;Monitored item in the request returns to corresponding monitoring data, and the monitored item includes client One or more in IP address, FTP connection quantity and Connection Time.
According to the other side of the embodiment of the present application, there is provided a kind of high availability implementation method of FTP service, the side Method includes:The client for receiving host node forwarding is directed to the request for establishing ftp session that virtual ip address is sent, the virtual IP address Address and local physical IP address establish mapping relations by the host node;Client ip address in the request returns Response message simultaneously establishes a ftp session with the client.
In one embodiment, the client for receiving host node forwarding establishes ftp session for what virtual ip address was sent Request further include:During the host node delays machine, the client for receiving the standby server forwarding of the host node is directed to What the virtual ip address was sent establishes the request of ftp session.
In one embodiment, the high availability implementation method of FTP service further includes:The file that the client uploads is deposited Storage is to Hadoop distributed file systems, by the Hadoop distributed file systems by the file in default mirror image catalogue In backed up.
In one embodiment, the high availability implementation method of FTP service further includes:Ftp session is established with other clients; The request of the file is accessed in response to other described clients, the mirror image catalogue is accessed and obtains the backup file.
According to the other side of the embodiment of the present application, there is provided a kind of High Availabitity realization device of FTP service, the dress Put including:IP address mapping block, for providing a virtual ip address and establishing the virtual ip address and multiple FTP services Mapping relations between the physical IP address of node;First receiving module, the virtual ip address is directed to for receiving client What is sent establishes the request of ftp session;Forwarding module, for forwarding the request to one currently according to the mapping relations Available FTP service node, to establish a ftp session between the currently available FTP service node and client.
In one embodiment, the High Availabitity realization device of FTP service further includes:Node determination module, for passing through the heart Hop-information judges whether FTP service node can use;IP address maintenance module, in response to one of FTP service node not It can use, the physical IP address of the unavailable FTP service node is deleted from the mapping relations.
In one embodiment, the forwarding module includes:Load monitoring unit, for the multiple FTP service section Point carries out load monitoring;Retransmission unit, for being forwarded the request according to LVS load balancing rule according to the mapping relations To a FTP service node, a ftp session is established between the FTP service node and client.
In one embodiment, IP address mapping block includes:Map unit, it is same for being provided jointly with standby server The one virtual ip address and mapping established between the physical IP address of the virtual ip address and multiple FTP service nodes is closed System;Transmitting element, for sending heartbeat message to the standby server, so that backup server is not receiving the heartbeat The virtual ip address is taken over during information and continues to provide the FTP service based on the virtual ip address to client.
In one embodiment, the High Availabitity realization device of FTP service further includes:Second receiving module, is obtained for receiving Take the request of the FTP service monitoring nodes data;Monitoring data feedback module, is returned for the monitored item in the request Corresponding monitoring data is returned, the monitored item includes one kind or more in client ip address, FTP connection quantity and Connection Time Kind.
According to the other side of the embodiment of the present application, there is provided a kind of High Availabitity realization device of FTP service, the dress Put including:3rd receiving module, the client for receiving host node forwarding establish ftp session for what virtual ip address was sent Request, the virtual ip address and local physical IP address establish mapping relations by the host node;Session establishment module, is used Response message is returned in the client ip address in the request and establishes a ftp session with the client.
In one embodiment, the 3rd receiving module is further used for during the host node delays machine, receives institute The client for stating the standby server forwarding of host node is directed to the request for establishing ftp session that the virtual ip address is sent.
In one embodiment, the High Availabitity realization device of FTP service further includes:Memory module, for by the client The file that end uploads is stored to Hadoop distributed file systems, and the file is existed by the Hadoop distributed file systems Backed up in default mirror image catalogue.
In one embodiment, the High Availabitity realization device of FTP service further includes:Mirror image directory access module, for After other clients establish ftp session, the request of the file is accessed in response to other described clients, accesses the mirror image mesh Record obtains the backup file.
According to the other side of the embodiment of the present application, there is provided a kind of electronic equipment, including memory and processor;Deposit Reservoir is used to store one or more computer instruction, wherein, one or more computer is performed by the processor to realize The monitoring method of above-mentioned tables of data visit capacity.
According to the other side of the embodiment of the present application, there is provided a kind of computer-readable recording medium, is stored thereon with The monitoring method of above-mentioned tables of data visit capacity is realized in computer instruction, the instruction when being executed by processor.
The beneficial effect of the embodiment of the present application includes:Client request is established the request of ftp session according to reflecting by host node The relation of penetrating is forwarded to a currently available FTP service node.Structure FTP service cluster provides FTP service and passes through host node The request for establishing ftp session is scheduled between multiple FTP service nodes, realizes the height of the FTP service based on HDFS It can use.
Brief description of the drawings
By the description to the embodiment of the present application referring to the drawings, the above-mentioned and other purpose of the application, feature and Advantage will be apparent from, in the accompanying drawings:
Fig. 1 is the embodiment of the present application FTP service system architecture schematic diagram;
Fig. 2 is the embodiment of the present application FTP service system architecture schematic diagram;
Fig. 3 is the flow chart of the high availability implementation method of FTP service provided by the embodiments of the present application;
Fig. 4 is the flow chart of the high availability implementation method of FTP service provided by the embodiments of the present application;
Fig. 5 is the block diagram of the High Availabitity realization device of FTP service provided by the embodiments of the present application;
Fig. 6 is the block diagram of the High Availabitity realization device of FTP service provided by the embodiments of the present application;
Fig. 7 is the structure diagram of electronic equipment provided by the embodiments of the present application.
Embodiment
The application is described below based on embodiment, but the application is not restricted to these embodiments.Under Text is detailed to describe some specific detail sections in the detailed description of the application.Do not have for a person skilled in the art The description of these detail sections can also understand the application completely.In order to avoid obscuring the essence of the application, known method, mistake The not narration in detail of journey, flow, element and circuit.
In addition, it should be understood by one skilled in the art that provided herein attached drawing be provided to explanation purpose, and What attached drawing was not necessarily drawn to scale.
Unless the context clearly requires otherwise, otherwise entire disclosure is similar with the " comprising " in claims, "comprising" etc. Word should be construed to the implication included rather than exclusive or exhaustive implication;That is, it is containing for " including but not limited to " Justice.
In the description of the present application, it is to be understood that term " first ", " second " etc. are only used for description purpose, without It is understood that to indicate or implying relative importance.In addition, in the description of the present application, unless otherwise indicated, the implication of " multiple " It is two or more.
The embodiment of the present application establishes the FTP service cluster with multiple FTP service nodes based on HDFS, from host node to Client provides a virtual ip address and establishes between the physical IP address of the virtual ip address and multiple FTP service nodes Mapping relations.Host node by client request establish the request of ftp session according to mapping relations be forwarded to one it is currently available FTP service node.Build FTP service cluster and provide FTP service and by host node to establishing the request of ftp session multiple It is scheduled between FTP service node, realizes the High Availabitity of the FTP service based on HDFS.
Fig. 1 is the configuration diagram of the FTP systems based on HDFS of the embodiment of the present application, including HDFS 10, FTP service Cluster 11, client 12, console 13, Oracle storage clusters 14;FTP service cluster 11 includes host node 111 and multiple FTP Service node 112.
Host node 111 creates a virtual ip address, and establishes the thing of virtual ip address and multiple FTP service nodes 112 Manage the mapping relations between IP address.Host node 111 judges whether each FTP service node 112 can use by heartbeat message, and Safeguard the mapping relations.If it is determined that some FTP service node 112 is currently unavailable (such as delayed machine or current FTP meetings Words connection number exceedes pre-determined threshold), then the physical IP address of the disabled FTP service node is deleted from mapping relations; Its physical IP address is re-added in mapping relations when the FTP service node recovers to upstate.
FTP service cluster 11 externally provides FTP service by virtual ip address, please by virtual ip address for client 12 Ask and establish ftp session.Client 12 sends the request for establishing ftp session, host node to host node 111 for the virtual ip address 111 receive and select a physical IP address from mapping relations according to preset rules after the request and be forwarded to.This is default Rule can be Linux virtual server (Linux Virtual Server) LVS load balancing rule.In order to preferably each Load balancing is realized between a FTP service node 112, FTP service cluster 11 is configured to LVS clusters, by main section The each FTP service node 112 of 111 pairs of point carries out load monitoring.LVS clusters are using IP load-balancing techniques and based on content requests Distribution technology, wherein, load dispatcher has good throughput, and request is balancedly transferred on different servers and is held OK, and load dispatcher automatic shield falls the failure of server, so that one group of server is formed a high performance, High Availabitity Virtual server.The structure of whole server cluster is transparent to client, and it is not necessary to modify client and server Program.From the angle of LVS clusters, host node 111 is load dispatcher, and multiple FTP service nodes 112 are server Pond, HDFS 10 are the shared storage of LVS clusters.
After selecting a physical IP address, corresponding FTP service node 112 is forwarded the request to.Included in the request The IP address information of client, the FTP service node 112 receive the request and according to agreement return response message so as to transmission The client 12 of the request establishes a ftp session.
, please according to mapping relations in the case of host node 111 carries out real time load monitoring to FTP service node 112 Ask and be forwarded to a FTP service node according to LVS load balancing rules, so as to the FTP service node 112 and client 12 it Between establish a ftp session.LVS load balancing rule can according to host node 111 configure all monitored item monitoring data into Row integrated judgment.Monitored item includes one in the projects such as client ip address, FTP connections quantity, Connection Time, resources occupation rate Kind is a variety of.Host node 111 can timing or periodically obtain each item data from FTP service node 112 and be stored in monitoring Record (MetricsContext).At this time, console 13 accesses host node to 111 acquisition request monitoring data of host node, request 111 monitoring record.Corresponding monitored item (Metrics) is set in the configuration file of console 13, is set according to the monitored item Corresponding monitoring data is obtained from the monitoring record of host node 111.Oracle storage clusters are equipped with the distal end of console 13 14, for storing the monitoring data got, the monitoring data got can be showed in the form of report in console 13.
Can also be configured for FTP service cluster 11 can avoid the Keepalived schemes of Single Point of Faliure.Lead in order to prevent 111 failure of node causes FTP service cluster 11 can not externally provide service, and one or more spare clothes are equipped with for host node 111 Business device 111 ', as shown in Figure 2.Host node 111 and standby server 111 ' externally provide same virtual ip address, the void of maintenance The mapping relations for intending IP address and physical IP address are also identical.Host node 111 sends heartbeat message to standby server 111 ', when When standby server 111 ' does not receive heartbeat message, then judge that host node 111 is delayed and machine and take over the virtual ip address.At this time by The continuation of standby server 111 ' externally provides service, receives client 12 and establishes asking for ftp session for the virtual ip address Ask and be forwarded to available FTP service node 112.
In the embodiment of the present application, FTP service node 112 is established after ftp session with client 12, if client 12 Starting upper transmitting file, then FTP service node 112 preserves the file of upload to HDFS 10, if client 12 downloads file, The file that then FTP service node-node transmission is downloaded is to client 12.Preferably, the file of upload is preserved in FTP service node 112 During to HDFS 10, HDFS 10 can back up the file of upload in a mirror image catalogue, generate corresponding backup file. If the request of other clients 12 accesses this document, FTP service node 112 determines its mirror image mesh according to the store path of this document Record, corresponding backup file is obtained from the mirror image catalogue and is transmitted to the client 12 of request.
Based on described above, the embodiment of the present application provides a kind of high availability implementation method of FTP service, suitable for main section Point 11, as shown in figure 3, this method comprises the following steps.
S20, there is provided a virtual ip address and establish virtual ip address and multiple FTP service nodes physical IP address it Between mapping relations;
S21, receives client and is directed to the request for establishing ftp session that virtual ip address is sent;
S22, forwards the request to a currently available FTP service node, so as to currently available according to mapping relations FTP service node and client between establish a ftp session.
The FTP service cluster of the present embodiment has multiple FTP service nodes, and host node provides a virtual ip address conduct The entrance of FTP service cluster, is forwarded to currently available FTP service node by the request for establishing ftp session, realizes and be based on The High Availabitity of the FTP service of HDFS.
In one embodiment, the high availability implementation method of the FTP service is further comprising the steps of.
S23, judges whether FTP service node can use by heartbeat message;
S24, it is unavailable in response to one of FTP service node, by the physical IP address of unavailable FTP service node from Deleted in mapping relations.
In the present embodiment to mapping relations carry out real-time servicing, by the physical IP address of disabled FTP service node from Deleted in mapping relations, keep FTP service node all in mapping relations can use, it is ensured that the High Availabitity of FTP service.
In one embodiment, S22 further comprises:
Multiple FTP service nodes are carried out load monitoring by S221;
S222, will ask to be forwarded to a FTP service node according to LVS load balancing rules according to mapping relations, so as to A ftp session is established between the FTP service node and client.
It is LVS clusters by FTP service cluster configuration in the present embodiment, realizes the negative of each FTP service node of cluster internal Carry balanced.
In one embodiment, S20 further comprises:
S201, same virtual ip address is provided with backup server and establishes virtual ip address and multiple FTP clothes jointly Mapping relations between the physical IP address of node of being engaged in;
S202, sends heartbeat message, so that standby server is taken over when not receiving heartbeat message to standby server The virtual ip address simultaneously continues to provide the FTP service based on the virtual ip address to client.
In one embodiment, the high availability implementation method of the FTP service is further comprising the steps of.
S25, receives the request for obtaining FTP service monitoring nodes data;
S26, the monitored item in request return to corresponding monitoring data, and monitored item includes client ip address, FTP connects Connect the one or more in quantity and Connection Time.
In the present embodiment, host node obtains the monitoring record of FTP service node, and the monitored item in request is remembered from monitoring Corresponding monitoring data is returned in record, realizes the monitoring data without the collection FTP service cluster for burying point type.
The embodiment of the present application additionally provides a kind of high availability implementation method of FTP service, suitable for FTP service node, such as Shown in Fig. 4, this method includes:
S30, the client for receiving host node forwarding are directed to the request for establishing ftp session that virtual ip address is sent, virtually IP address and local physical IP address establish mapping relations by host node;
S31, the client ip address in request return to response message and establish a ftp session with client.
In the present embodiment, FTP service node by host node forward establish ftp session request and with client establish Ftp session, the physical IP address of currently available FTP service node are maintained in the mapping relations of host node maintenance, realize The High Availabitity of FTP service.
In one embodiment, S30 further comprises:
During host node delays machine, the client for receiving the standby server forwarding of host node is sent for virtual ip address The request for establishing ftp session.
Standby server and host node coexpress are same virtual ip address, the standby server when host node delays machine It will take over virtual ip address and FTP service be externally provided, prevent the Single Point of Faliure of host node from causing FTP service cluster unavailable.
In one embodiment, the high availability implementation method of the FTP service further includes:
S32, the file that client uploads is stored to Hadoop distributed file systems, by Hadoop distributed field systems System is backed up file in default mirror image catalogue.
Preferably, this method further comprises:
S33, ftp session is established with other clients;
S34, the request of file is accessed in response to other clients, is accessed mirror image catalogue and is obtained backup file.
HDFS will be stored by mirror image catalogue to be isolated with access, and the file uploaded from FTP service node is in mirror image mesh Backed up in record, if other clients access the backup text in mirror image catalogue from FTP service node visit this document Part, ensure that the safety of original upload data.
The high availability implementation method of corresponding above-mentioned FTP service, the embodiment of the present application additionally provides a kind of height of FTP service can With realization device, as shown in figure 5, the device includes:
IP address mapping block 40, for providing a virtual ip address and establishing virtual ip address and multiple FTP services Mapping relations between the physical IP address of node;
First receiving module 41, the request for establishing ftp session for being directed to virtual ip address for receiving client and sending;
Forwarding module 42, for forwarding the request to a currently available FTP service node according to mapping relations, so as to A ftp session is established between currently available FTP service node and client.
In one embodiment, the High Availabitity realization device of the FTP service further includes:
Node determination module, for judging whether FTP service node can use by heartbeat message;
IP address maintenance module, for unavailable in response to one of FTP service node, by unavailable FTP service section The physical IP address of point is deleted from mapping relations.
In one embodiment, forwarding module 42 further comprises:
Load monitoring unit, for carrying out load monitoring to multiple FTP service nodes;
Retransmission unit, for the request to be forwarded to a FTP clothes according to LVS load balancing rules according to mapping relations Business node, establishes a ftp session between the FTP service node and client.
In one embodiment, IP address mapping block 40 further comprises:
Map unit, for same virtual ip address is provided jointly with standby server and establish virtual ip address with it is more Mapping relations between the physical IP address of a FTP service node;
Transmitting element, for sending heartbeat message to standby server, so that backup server is not receiving heartbeat letter During breath adapter virtual ip address and continue to client provide the FTP service based on virtual ip address.
In one embodiment, the High Availabitity realization device of the FTP service further includes:
Second receiving module, the request of FTP service monitoring nodes data is obtained for receiving;
Monitoring data feedback module, returns to corresponding monitoring data, monitored item includes for the monitored item in request One or more in client ip address, FTP connection quantity and Connection Time.
The high availability implementation method of corresponding above-mentioned FTP service, the embodiment of the present application additionally provides a kind of height of FTP service can With realization device, as shown in fig. 6, the device includes:
3rd receiving module 50, the client for receiving host node forwarding establish FTP for what virtual ip address was sent The request of session, virtual ip address and local physical IP address establish mapping relations by host node,
Session establishment module 51, returns to response message for the client ip address in request and is established with client One ftp session.
In one embodiment, the 3rd receiving module 50 is further used for during host node delays machine, receiving host node The client of standby server forwarding is directed to the request for establishing ftp session that virtual ip address is sent.
In one embodiment, the High Availabitity realization device of FTP service further includes:
Memory module, the file for client to be uploaded are stored to Hadoop distributed file systems, by Hadoop points Cloth file system is backed up file in default mirror image catalogue.
In one embodiment, the High Availabitity realization device of FTP service further includes:
Mirror image directory access module, after establishing ftp session with other clients, text is accessed in response to other clients The request of part, accesses mirror image catalogue and obtains backup file.
In addition, the High Availabitity realization device of above-mentioned FTP service can also pass through hardware processor (hardware Processor) above-mentioned each program step is realized.Below with reference to Fig. 7, it illustrates suitable for for realizing the embodiment of the present application Electronic equipment computer system 600 structure diagram.Electronic equipment shown in Fig. 7 is only an example, should not be right The function and use scope of the embodiment of the present application bring any restrictions.
As shown in fig. 7, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into program in random access storage device (RAM) 603 from storage part 608 and Perform various appropriate actions and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interfaces 605 are connected to lower component:Importation 606 including keyboard, mouse etc.;Penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net performs communication process.Driver 610 is also according to needing to be connected to I/O interfaces 606.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc., are installed on driver 610, in order to read from it as needed Computer program be mounted into as needed storage part 608.
Especially, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product, it includes being carried on computer-readable medium On computer program, the computer program include be used for execution flow chart shown in method program code.In such reality Apply in example, which can be downloaded and installed by communications portion 609 from network, and/or from detachable media 611 are mounted.When the computer program is performed by central processing unit (CPU) 601, perform what is limited in the present processes Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer-readable recording medium either the two any combination.Computer-readable recording medium for example can be --- but Be not limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination. The more specifically example of computer-readable recording medium can include but is not limited to:Electrical connection with one or more conducting wires, Portable computer diskette, hard disk, random access storage device (RAM), read-only storage (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In this application, computer-readable recording medium can any be included or store The tangible medium of program, the program can be commanded the either device use or in connection of execution system, device.And In the application, computer-readable signal media can include believing in a base band or as the data that a carrier wave part is propagated Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer Any computer-readable medium beyond readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use In by instruction execution system, device either device use or program in connection.Included on computer-readable medium Program code any appropriate medium can be used to transmit, include but not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo Zheshang Any appropriate combination stated.
Flow chart and block diagram in attached drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation The part of one module of table, program segment or code, a part for the module, program segment or code include one or more The executable instruction of logic function as defined in being used for realization.It should also be noted that some as replace realization in, institute in square frame The function of mark can also be with different from the order marked in attached drawing generation.For example, two square frames succeedingly represented are actual On can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depending on involved function.Also It is noted that the combination of each square frame and block diagram in block diagram and/or flow chart and/or the square frame in flow chart, Ke Yiyong The dedicated hardware based systems of functions or operations as defined in execution is realized, or can be referred to specialized hardware and computer The combination of order is realized.
Being described in module involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described module can also be set within a processor, for example, can be described as:A kind of processor bag Include IP address mapping block, the first receiving module and forwarding module;Or the processor includes the 3rd receiving module and session is built Formwork erection block.
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, the non-volatile calculating Machine storage medium can be nonvolatile computer storage media included in device described in above-described embodiment;Can also be Individualism, without the nonvolatile computer storage media in supplying electronic equipment.Above-mentioned non-volatile computer storage is situated between Matter is stored with one or more program, when one or more program stored is performed by an equipment so that described Equipment:One virtual ip address is provided and is established between the physical IP address of the virtual ip address and multiple FTP service nodes Mapping relations;Receive client and be directed to the request for establishing ftp session that the virtual ip address is sent;Closed according to the mapping System forwards the request to a currently available FTP service node, so as in the currently available FTP service node and A ftp session is established between client;Or so that the equipment:The client for receiving host node forwarding is directed to virtual IP address What address was sent establishes the request of ftp session, and the virtual ip address and local physical IP address are established by the host node and reflected Penetrate relation;Client ip address in the request returns to response message and establishes a ftp session with the client.
The foregoing is merely the preferred embodiment of the application, the application is not limited to, for those skilled in the art For, the application can have various modifications and changes.All any modifications made within spirit herein and principle, be equal Replace, improve etc., it should be included within the protection domain of the application.

Claims (10)

  1. A kind of 1. high availability implementation method of FTP service, it is characterised in that the described method includes:
    One virtual ip address is provided and is established between the physical IP address of the virtual ip address and multiple FTP service nodes Mapping relations;
    Receive client and be directed to the request for establishing ftp session that the virtual ip address is sent;
    A currently available FTP service node is forwarded the request to according to the mapping relations, so as to described current A ftp session is established between available FTP service node and client.
  2. 2. according to the method described in claim 1, it is characterized in that, the method further includes:
    Judge whether FTP service node can use by heartbeat message;
    It is unavailable in response to one of FTP service node, by the physical IP address of the unavailable FTP service node from described Deleted in mapping relations.
  3. 3. according to the method described in claim 1, it is characterized in that, forward the request to one according to the mapping relations Currently available FTP service node, to establish a FTP between the currently available FTP service node and client Session includes:
    Load monitoring is carried out to the multiple FTP service node;
    The request according to LVS load balancing rules is forwarded to a FTP service node according to the mapping relations, so as to A ftp session is established between the FTP service node and client.
  4. 4. according to the method described in claim 1, it is characterized in that, there is provided a virtual ip address and with establishing the virtual IP address Mapping relations between the physical IP address of location and multiple FTP service nodes include:
    Same virtual ip address is provided jointly with backup server and establishes the virtual ip address and multiple FTP service nodes Physical IP address between mapping relations;
    Heartbeat message is sent to the standby server, so that standby server takes over institute when not receiving the heartbeat message State virtual ip address and continue to provide the FTP service based on the virtual ip address to client.
  5. 5. according to the method described in claim 1, it is characterized in that, the method further includes:
    Receive the request for obtaining the FTP service monitoring nodes data;
    Monitored item in the request returns to corresponding monitoring data, and the monitored item includes client ip address, FTP connects Connect the one or more in quantity and Connection Time.
  6. A kind of 6. high availability implementation method of FTP service, it is characterised in that the described method includes:
    The request for establishing ftp session that the client of reception host node forwarding is sent for virtual ip address, the virtual IP address Location and local physical IP address establish mapping relations by the host node;
    Client ip address in the request returns to response message and establishes a ftp session with the client.
  7. 7. the High Availabitity realization device of a kind of FTP service, it is characterised in that described device includes:
    IP address mapping block, for providing a virtual ip address and establishing the virtual ip address and multiple FTP service sections Mapping relations between the physical IP address of point;
    First receiving module, the request for establishing ftp session for being directed to the virtual ip address for receiving client and sending;
    Forwarding module, for forwarding the request to a currently available FTP service node according to the mapping relations, with Just a ftp session is established between the currently available FTP service node and client.
  8. 8. the High Availabitity realization device of a kind of FTP service, it is characterised in that described device includes:
    3rd receiving module, the client for receiving host node forwarding establish ftp session for what virtual ip address was sent Request, the virtual ip address and local physical IP address establish mapping relations by the host node;
    Session establishment module, returns to response message for the client ip address in the request and is built with the client Found a ftp session.
  9. 9. a kind of electronic equipment, it is characterised in that including memory and processor;The memory is used to store one or more Computer instruction, wherein, one or more computer is performed by the processor to realize that claim 1 to 5 is any one The step of item or claim 6 to 9 any one the method.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer instruction, it is characterised in that the instruction is by processor The step of claim 1 to 5 any one or claim 6 to 9 any one the method are realized during execution.
CN201711261661.XA 2017-12-04 2017-12-04 High-availability implementation method and device for FTP service Active CN108023953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711261661.XA CN108023953B (en) 2017-12-04 2017-12-04 High-availability implementation method and device for FTP service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711261661.XA CN108023953B (en) 2017-12-04 2017-12-04 High-availability implementation method and device for FTP service

Publications (2)

Publication Number Publication Date
CN108023953A true CN108023953A (en) 2018-05-11
CN108023953B CN108023953B (en) 2021-07-09

Family

ID=62078413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711261661.XA Active CN108023953B (en) 2017-12-04 2017-12-04 High-availability implementation method and device for FTP service

Country Status (1)

Country Link
CN (1) CN108023953B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271106A (en) * 2018-08-31 2019-01-25 华为技术有限公司 Message storage, read method and device, server, storage medium
CN109992531A (en) * 2019-04-15 2019-07-09 成都四方伟业软件股份有限公司 Date storage method and device
CN110266761A (en) * 2019-05-17 2019-09-20 平安科技(深圳)有限公司 Load balancing application creation method, device, computer equipment and storage medium
CN111131492A (en) * 2019-12-31 2020-05-08 中国联合网络通信集团有限公司 Node access method and system
CN111225003A (en) * 2018-11-23 2020-06-02 北京京东金融科技控股有限公司 NFS node configuration method and device
CN111431980A (en) * 2020-03-17 2020-07-17 星辰天合(北京)数据科技有限公司 Distributed storage system and path switching method thereof
CN113238893A (en) * 2021-05-11 2021-08-10 鸬鹚科技(深圳)有限公司 Disaster recovery system, method, computer device and medium for multiple data centers
CN113722084A (en) * 2020-05-25 2021-11-30 中移(苏州)软件技术有限公司 Data processing method and device, electronic equipment and computer storage medium
CN113824812A (en) * 2021-08-27 2021-12-21 济南浪潮数据技术有限公司 Method, device and storage medium for HDFS service to acquire service node IP
CN115051982A (en) * 2022-06-14 2022-09-13 北京天融信网络安全技术有限公司 Information processing method, system and storage medium based on FTP protocol

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6061349A (en) * 1995-11-03 2000-05-09 Cisco Technology, Inc. System and method for implementing multiple IP addresses on multiple ports
CN1468002A (en) * 2002-06-27 2004-01-14 上海汉唐科技有限公司 Flow media compression, transmission and storage system based on internet
CN1595906A (en) * 2003-12-17 2005-03-16 浪潮电子信息产业股份有限公司 Single address traffic distributor of cluster network
CN1649326A (en) * 2004-12-09 2005-08-03 武汉大学 Front end system constructing method of multiple distributor of colony server
US20060075080A1 (en) * 2004-09-27 2006-04-06 Citrix Systems, Inc. Systems and methods for virtual host name roaming
US7039008B1 (en) * 1997-05-02 2006-05-02 Cisco Technology, Inc. Method and apparatus for maintaining connection state between a connection manager and a failover device
CN1855916A (en) * 2005-04-20 2006-11-01 大唐移动通信设备有限公司 Method and system for realizing virtual IP protocol
CN101325580A (en) * 2007-06-15 2008-12-17 上海亿人通信终端有限公司 Method for implementing FTP application-layer gateway based on NAT-PT
CN102148839A (en) * 2010-02-09 2011-08-10 蓝盾信息安全技术股份有限公司 Method, device and system for managing FTP (file transfer protocol) server
CN103475732A (en) * 2013-09-25 2013-12-25 浪潮电子信息产业股份有限公司 Distributed file system data volume deployment method based on virtual address pool
EP1410229B1 (en) * 2001-07-23 2014-04-30 Network Appliance, Inc. HIGH-AVAILABILITY CLUSTER VIRTUAL SERVER SYSTEM and method
CN104320401A (en) * 2014-10-31 2015-01-28 北京思特奇信息技术股份有限公司 Big data storage and access system and method based on distributed file system
CN105337780A (en) * 2015-12-01 2016-02-17 迈普通信技术股份有限公司 Server node configuration method and physical nodes
CN105357280A (en) * 2015-10-19 2016-02-24 福建新大陆软件工程有限公司 Hadoop distributed file system (HDFS) based file tracing file transfer protocol (FTP) system
CN105744004A (en) * 2016-04-29 2016-07-06 广东凯通软件开发有限公司 Distributed database file transmission method and system based on FTP
CN105912677A (en) * 2016-04-13 2016-08-31 北京思特奇信息技术股份有限公司 Method and system for implementing document transmission between FTP and HDFS based on OOZIE
CN106372256A (en) * 2016-09-30 2017-02-01 浙江大学 Distributed storage method for massive Argo data
CN106789324A (en) * 2017-01-09 2017-05-31 上海轻维软件有限公司 FTP distributed acquisition methods based on MapReduce

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6061349A (en) * 1995-11-03 2000-05-09 Cisco Technology, Inc. System and method for implementing multiple IP addresses on multiple ports
US7039008B1 (en) * 1997-05-02 2006-05-02 Cisco Technology, Inc. Method and apparatus for maintaining connection state between a connection manager and a failover device
EP1410229B1 (en) * 2001-07-23 2014-04-30 Network Appliance, Inc. HIGH-AVAILABILITY CLUSTER VIRTUAL SERVER SYSTEM and method
CN1468002A (en) * 2002-06-27 2004-01-14 上海汉唐科技有限公司 Flow media compression, transmission and storage system based on internet
CN1595906A (en) * 2003-12-17 2005-03-16 浪潮电子信息产业股份有限公司 Single address traffic distributor of cluster network
US20060075080A1 (en) * 2004-09-27 2006-04-06 Citrix Systems, Inc. Systems and methods for virtual host name roaming
CN1649326A (en) * 2004-12-09 2005-08-03 武汉大学 Front end system constructing method of multiple distributor of colony server
CN1855916A (en) * 2005-04-20 2006-11-01 大唐移动通信设备有限公司 Method and system for realizing virtual IP protocol
CN101325580A (en) * 2007-06-15 2008-12-17 上海亿人通信终端有限公司 Method for implementing FTP application-layer gateway based on NAT-PT
CN102148839A (en) * 2010-02-09 2011-08-10 蓝盾信息安全技术股份有限公司 Method, device and system for managing FTP (file transfer protocol) server
CN103475732A (en) * 2013-09-25 2013-12-25 浪潮电子信息产业股份有限公司 Distributed file system data volume deployment method based on virtual address pool
CN104320401A (en) * 2014-10-31 2015-01-28 北京思特奇信息技术股份有限公司 Big data storage and access system and method based on distributed file system
CN105357280A (en) * 2015-10-19 2016-02-24 福建新大陆软件工程有限公司 Hadoop distributed file system (HDFS) based file tracing file transfer protocol (FTP) system
CN105337780A (en) * 2015-12-01 2016-02-17 迈普通信技术股份有限公司 Server node configuration method and physical nodes
CN105912677A (en) * 2016-04-13 2016-08-31 北京思特奇信息技术股份有限公司 Method and system for implementing document transmission between FTP and HDFS based on OOZIE
CN105744004A (en) * 2016-04-29 2016-07-06 广东凯通软件开发有限公司 Distributed database file transmission method and system based on FTP
CN106372256A (en) * 2016-09-30 2017-02-01 浙江大学 Distributed storage method for massive Argo data
CN106789324A (en) * 2017-01-09 2017-05-31 上海轻维软件有限公司 FTP distributed acquisition methods based on MapReduce

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020042612A1 (en) * 2018-08-31 2020-03-05 华为技术有限公司 Method and device for storing and reading a message, server, and storage medium
CN109271106A (en) * 2018-08-31 2019-01-25 华为技术有限公司 Message storage, read method and device, server, storage medium
CN111225003A (en) * 2018-11-23 2020-06-02 北京京东金融科技控股有限公司 NFS node configuration method and device
CN111225003B (en) * 2018-11-23 2022-12-27 京东科技控股股份有限公司 NFS node configuration method and device
CN109992531A (en) * 2019-04-15 2019-07-09 成都四方伟业软件股份有限公司 Date storage method and device
CN110266761B (en) * 2019-05-17 2022-04-19 平安科技(深圳)有限公司 Load balancing application creation method and device, computer equipment and storage medium
CN110266761A (en) * 2019-05-17 2019-09-20 平安科技(深圳)有限公司 Load balancing application creation method, device, computer equipment and storage medium
CN111131492A (en) * 2019-12-31 2020-05-08 中国联合网络通信集团有限公司 Node access method and system
CN111431980A (en) * 2020-03-17 2020-07-17 星辰天合(北京)数据科技有限公司 Distributed storage system and path switching method thereof
CN111431980B (en) * 2020-03-17 2021-12-17 星辰天合(北京)数据科技有限公司 Distributed storage system and path switching method thereof
CN113722084A (en) * 2020-05-25 2021-11-30 中移(苏州)软件技术有限公司 Data processing method and device, electronic equipment and computer storage medium
CN113238893A (en) * 2021-05-11 2021-08-10 鸬鹚科技(深圳)有限公司 Disaster recovery system, method, computer device and medium for multiple data centers
CN113824812A (en) * 2021-08-27 2021-12-21 济南浪潮数据技术有限公司 Method, device and storage medium for HDFS service to acquire service node IP
CN113824812B (en) * 2021-08-27 2023-02-28 济南浪潮数据技术有限公司 Method, device and storage medium for HDFS service to acquire service node IP
CN115051982A (en) * 2022-06-14 2022-09-13 北京天融信网络安全技术有限公司 Information processing method, system and storage medium based on FTP protocol
CN115051982B (en) * 2022-06-14 2023-12-01 北京天融信网络安全技术有限公司 Information processing method, system and storage medium based on FTP protocol

Also Published As

Publication number Publication date
CN108023953B (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN108023953A (en) The high availability implementation method and device of FTP service
CN110417842B (en) Fault processing method and device for gateway server
US11734611B2 (en) Artificial intelligence delivery edge network
US9525725B1 (en) Client-initiated leader election in distributed client-server systems
CN109213724B (en) Method and system for updating files or storing and updating data and storage
EP2899947A1 (en) Component oriented hybrid cloud operating system architecture and communication method thereof
CN103607424B (en) Server connection method and server system
CN109586969A (en) Content distributing network disaster recovery method, device, computer equipment and storage medium
CN113783922A (en) Load balancing method, system and device
CN109542862B (en) Method, device and system for controlling mounting of file system
US20040034687A1 (en) Extensible instant messaging service
JP6279744B2 (en) How to queue email web client notifications
CN108696581A (en) Caching method, device, computer equipment and the storage medium of distributed information
US8543680B2 (en) Migrating device management between object managers
US20100332532A1 (en) Distributed directory environment using clustered ldap servers
CN113645071A (en) Cluster deployment method, system, medium and electronic terminal
US11025688B1 (en) Automated streaming data platform
CN106921721A (en) A kind of server, conversation managing method and system
CN110765443A (en) Single sign-on method and device, computer equipment and storage medium
CN107818027B (en) Method and device for switching main name node and standby name node and distributed system
CN114296953A (en) Multi-cloud heterogeneous system and task processing method
CN111770176B (en) Traffic scheduling method and device
US11381665B2 (en) Tracking client sessions in publish and subscribe systems using a shared repository
CN112738153B (en) Gateway selection method, system, device, server and medium in service system
US11290318B2 (en) Disaster recovery of cloud resources

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 202, 2 floors, 1-3 floors, No. 11 Shangdi Information Road, Haidian District, Beijing 100085

Applicant after: Beijing Xingxuan Technology Co.,Ltd.

Address before: Room 202, 2 floors, 1-3 floors, No. 11 Shangdi Information Road, Haidian District, Beijing 100085

Applicant before: Beijing Xiaodu Information Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant