In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Preface
FastDFS is an open source lightweight distributed file system written in c language. It manages file processes. Its functions include file storage, file synchronization, file access (file upload, file download), etc., which solves the problems of mass storage and load balancing. It is especially suitable for online services based on files, such as photo albums, video sites, etc. FastDFS is tailored for the Internet. Taking full account of redundant backup, load balancing, current capacity expansion, and paying attention to high availability, high performance and other indicators, it is easy to build a high-performance file server cluster to provide file upload and download services using FastDFS.
Blog outline:
I. detailed explanation of the principle and architecture of FastDFS
II. Deploy the Fast DFS architecture
1. Detailed explanation of the principle and architecture of FastDFS. 1. FastDFS architecture
FastDFS architecture includes Tracker server and Storage server,client requesting Tracker server to upload and download files, and Storage server finally completes file uploads and downloads through Tracker server scheduling.
Tracker server: responsible for scheduling and load balancing. Through Tracker server, when uploading files, you can find Storage server to provide upload services according to some policies. Tracker can be called a tracking server or a scheduling server. Storage server: responsible for the final storage of files, the files uploaded by the client are finally stored on the storage server. Storage server does not implement its own file system, but uses the file system of the operating system to manage files. Storage can be called a storage server.
2. The role of Fast DFS system
The Fast DFS system has three roles: tracking server (Tracker Server), storage server (Storage Server), and client (Client).
Tracker Server: tracking server, mainly doing scheduling work, plays a balanced role; responsible for managing all Storage server and group, each storage will connect to Tracker after startup, inform itself of group and other information, and maintain a periodic heartbeat. Storage Server: storage server, which mainly provides capacity and backup services. In group units, there can be multiple storage server within each group, and the data can be backed up each other. Client: the client, the server for uploading and downloading data, that is, the server on which our own project is deployed. 3. Fast DFS principle
About the module: both the tracking server and the storage node can be composed of one or more servers, and the tracking server and storage node can be added or offline at any time without affecting the online service, in which all the servers in the tracking server are peer-to-peer and can be increased or decreased at any time according to the pressure on the server.
4. File upload process
Storage server will connect to all Tracker server in the cluster and report its status to them regularly, including statistics such as disk free space, file synchronization status, number of file uploads and downloads, and so on.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.