Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

8 . In Bigtable, how does the Primary / Master discover the current tablet assignment when it starts? Data discovery and assignment of tablets Each

8. In Bigtable, how does the Primary/Master discover the current tablet assignment when it starts?
Data discovery and assignment of tablets
Each client uses the BigTable library. There is one master and then there are many tablet servers. Each tablet server is assigned ownership of certain tablets by the master. Master is also doing load balancing and then assigning unassigned tablets to available tablet servers. Lets dive into that a bit.
When operations on some rows(tablets) is needed, master checks to see if those tablets are being served by some tablet-server. Master looks this up in two-level index(METADATA tables) which contains information of tablet assignments. This location information is handled out the clients and then clients can directly communicate with tablet servers and thus eliminating load from the master. This two level hierarchy allows for pretty large table sizes of upto 2 MB (^2*^2*200MB)(You can refer to the paper for further details on to arrive at this number)
Discovery of tablets
Master assigns a tablet to a tablet server. When a tablet server has capacity, master can send the load tablet to the tablet server. The master knows about functioning and available tablet server because when a tablet server comes up, it takes an exclusive lock on chubby file. When the tablet server dies, it releases the lock on the chubby file. Master is obviously monitoring these chubby directory namespace and files. So when a tablet server dies, the master can reassign the tablet to another tablet server. Paraphrase this answer

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Outlook 2023

Authors: James Holler

1st Edition

B0BP9P1VWJ, 979-8367217322

More Books

Students also viewed these Databases questions