What is the role of GFS master during read and write operations?

In summary: However, in summary, the Google File System (GFS) has a master that handles all requests and returns the location of the data. The actual reading and writing of data is done by the chunk servers, which may take longer. GFS also uses a queuing strategy, similar to a checkout line at a store, to process requests efficiently.
  • #1
shivajikobardan
674
54
Homework Statement
role of GFS master in reading and writing is minimal but what is the role? what to write here in exam?
Relevant Equations
none
I am really confused by this question as there are multiple possible answers of this question, so I am asking this.
There is very minimum role of GFS master in writing and reading operations..
You can either go through these or just tell me what is the correct answer if you are bored to go through all of these.

https://static.googleusercontent.com/media/research.google.com/en//archive/gfs-sosp2003.pdf

1) My try-: https://we.tl/t-DG1QxAFMFJ

2) https://www.uio.no/studier/emner/matnat/ifi/INF5100/h10/undervisningsmateriale/gfs.pdf



3) https://ameyashanbhag.gitbooks.io/p...lytics/content/hadoop/google-file-system.html

read and write operations on GFS

4)https://courses.cs.washington.edu/courses/cse550/14au/notes/lect13.pdf



5)

6)


http://wwwusers.di.uniroma1.it/~ste...s_18-19/Schedule_files/Google File System.pdf

7) https://cs.stanford.edu/~matei/courses/2015/6.S897/slides/gfs.pdf slide 17

8)
https://wiki.ubc.ca/images/8/81/GFS.pdf

9)https://imgur.com/a/GM3ZUpX10) https://imgur.com/a/BOOGoSa
 
Physics news on Phys.org
  • #2
Every request goes through the master. It returns the location of the data, a very short message. The chunk servers then take the much greater time to return the data to the client.

It‘s a queueing strategy where you get in a single file checkout line at a store and a master clerk tells you to go to cash register 5. The following customer is told to go to cash register 7 because register 6 is still processing a customers purchase. It takes the master clerk a second or so to find a free register for the next person in line but it takes the cash register clerk a few minutes to process your purchase.
 
  • Like
Likes jim mcnamara and shivajikobardan
  • #3
shivajikobardan said:
You can either go through these or just tell me what is the correct answer if you are bored to go through all of these.
You know that we do not provide answers to homework here. Now that you have the hints from @jedishrfu what are *your* answers to the questions that you listed...
 
  • #4
jedishrfu said:
It‘s a queueing strategy where you get in a single file checkout line at a store and a master clerk tells you to go to cash register 5. The following customer is told to go to cash register 7 because register 6 is still processing a customers purchase. It takes the master clerk a second or so to find a free register for the next person in line but it takes the cash register clerk a few minutes to process your purchase.
This example wasn't very clear to me as I am from different culture and traditions probably.
 
  • #5
1641997761313.png

1641997780854.png

1641997798087.png
 

1. What is a GFS master?

A GFS master is the central control node in a Google File System (GFS) that manages the metadata and coordinates access to the data stored on multiple machines in a distributed file system.

2. What is the role of a GFS master during read operations?

During read operations, the GFS master is responsible for receiving read requests from clients and determining the location of the requested data. It then communicates with the appropriate data chunkservers to retrieve the data and sends it back to the client.

3. What is the role of a GFS master during write operations?

During write operations, the GFS master is responsible for coordinating the creation and replication of data chunks across multiple chunkservers. It also manages the metadata associated with the newly created data and ensures data consistency and availability.

4. How does a GFS master handle failures?

A GFS master is designed to handle failures by regularly creating and maintaining replicas of data chunks on different chunkservers. In the event of a failure, the master can retrieve the data from a replica and restore it to its original state.

5. Can there be multiple GFS masters in a system?

Yes, a GFS system can have multiple masters for scalability and fault tolerance. However, only one master is active at a time, while the others serve as backups. If the active master fails, one of the backups will take over as the new active master.

Similar threads

  • Programming and Computer Science
Replies
1
Views
552
Back
Top