Fastdfs installation and configuration of Distributed file system under Linux

Source: Internet
Author: User

1.fastdfs Distributed File System, the main functions of the file management, including file storage, file synchronization, file access (file upload and download), etc.

Solves the problem of mass storage and load balancing.

The two cores of the 2.fastdfs are Trackers (tracker) and storage nodes (storage), where Tracker's main function is to complete scheduling and load balancing,

The main function of storage is to store data.

3.fastdfs file distribution system to implement the principle of file upload and download:

Upload:

1) Client (client) is uploading files to storage server (storage) through Tracker server (tracking server).

2) Tracker server returns the IP address and port number of an available storage server to the client.

3) The client establishes a connection to one of the storage servers and uploads the file directly via the IP address and port returned by tracker server.

4) Upload complete, Storage server returns client a file id, file upload end.

Download:

1) Client downloads a file on a storage server in the specified storage group via tracker server (the file name includes the storage group name).

2) Tracker server returns the IP address and port number of an available storage server to the client.

3) The client establishes a connection to one of the storage servers and downloads files directly from the IP address and port returned by tracker server.

4. Install Nginx on the storage Storage server, which is to provide HTTP access service while resolving the storage server synchronization latency problem in the cluster.

Install Nginx on Tracker, which is to provide HTTP access to the reverse proxy to complete load balancing and caching services.

5. The so-called HTTP proxy and reverse proxy, the LAN inside the machine to access the site outside the LAN for security reasons must be accessed through a proxy server, in turn, if

Outside the network to access the intranet site also needs to be accessed through a proxy server, known as the reverse proxy.


This article from the "13117107" blog, reproduced please contact the author!

Fastdfs installation and configuration of Distributed file system under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.