- Design Distributed File System
- GFS (Google File System)
- Client -> Web Server -> Database Server -> GFS
- HDFS (Hadoop Distributed File System)
- GFS (Google File System)
- Scenario
- Read / Write Files.
- For example 1000T
- Store on multiple machines
- 100K machines
- Read / Write Files.
- Service
- Client (Web Server / Database Server)
- Server
- Peer to Peer
Client talks to one server. All servers are equal.- Pro: Fault tolerance.
- Cons: Synchronization.
- Master and Slave
Client talks to the master. Master manage slaves. Master doesn’t store data. Slaves partition data.- Pro: Synchronization.
- Cons: Fault tolerance.
- Peer to Peer
Leave a comment