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