Skip to content
SEE Exam Prep

Question 7 of 11 · CIE-2 QB · Set 2 · 6 marks

Open in ChatGPT

Explain the major design goals of distributed file systems and analyze the role of transparency, scalability, and fault tolerance.


Introduction

A distributed file system (DFS) serves files from several machines but presents one namespace to the client. Its design is a set of trade-offs, and the goals it is judged by are transparency, scalability and fault tolerance.

Access and location transparency

  • Access transparency: the same calls (open, read, write, close) work whether the file is local or remote. NFS achieves this through the VFS layer.
  • Location transparency: the path does not contain the server. /home/student/notes resolves through the mount table, so a file can move between servers without changing its name.
  • The cost is indirection: a name lookup, a mount, or a redirect before the first byte arrives.

Scalability

  • Client caching reduces server load: most reads are served from the client's own cache.
  • Replication spreads read traffic over copies, and partitions the namespace so one server does not hold every file's metadata.
  • Statelessness in the server (NFS) means the server holds no per-client state, so clients can be many and can recover by retrying.
  • A single metadata server is the usual bottleneck; HDFS's single name node and AFS's volumes both hit this limit.

Fault tolerance

  • Replication: each block is stored on more than one data node, and reads fail over to a replica.
  • Recovery: with a stateless server, a restarted server simply serves the next request; a stateful server needs its state rebuilt from logs or checkpoints.
  • Consistency after failure: a client cache may hold a stale block, so the cache must be revalidated (close-to-open in NFS, callbacks in AFS).

Conclusion

The three goals pull against each other: caching buys scalability and costs consistency, statelessness buys recovery and costs per-request work, replication buys fault tolerance and costs write bandwidth. A DFS is the particular balance its workload needs: close-to-open for a campus file share, write-once-and-replicate for a data lake.