Software:Bigtable

From HandWiki
Revision as of 16:08, 9 February 2024 by Rjetedi (talk | contribs) (linkage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Cloud-based NoSQL database service
Google Bigtable
Developer(s)Google
Initial releaseFebruary 2005; 19 years ago (2005-02)
Written in
C++ (core), Java, Python, Go, Ruby
PlatformGoogle Cloud Platform
TypeCloud Storage
LicenseProprietary
Websitecloud.google.com/bigtable/

Bigtable is a fully managed wide-column and key-value NoSQL database service for large analytical and operational workloads as part of the Google Cloud portfolio.

History

Bigtable development began in 2004.[1] It is now used by a number of Google applications, such as Google Analytics,[2] web indexing,[3] MapReduce, which is often used for generating and modifying data stored in Bigtable,[4] Google Maps,[5] Google Books search, "My Search History", Google Earth, Blogger.com, Google Code hosting, YouTube,[6] and Gmail.[7] Google's reasons for developing its own database include scalability and better control of performance characteristics.[8]

Google's Spanner RDBMS is layered on an implementation of Bigtable with a Paxos group for two-phase commits to each table. Google F1 was built using Spanner to replace an implementation based on MySQL.[9]

Apache HBase and Cassandra are some of the best known open source projects that were modeled after Bigtable.

On May 6, 2015, a public version of Bigtable was made available as a part of Google Cloud under the name Cloud Bigtable.[2]

As of January 2022, Bigtable manages over 10 Exabytes of data and serves more than 5 billion requests per second.[10] On January 27, 2022, Google announced a number of updates to Bigtable, including automated scalability.[11]

Design

Bigtable is one of the prototypical examples of a wide-column store. It maps two arbitrary string values (row key and column key) and timestamp (hence three-dimensional mapping) into an associated arbitrary byte array. It is not a relational database and can be better defined as a sparse, distributed multi-dimensional sorted map.[3]:1 It is built on Colossus (Google File System), Chubby Lock Service, SSTable (log-structured storage like LevelDB) and a few other Google technologies. Bigtable is designed to scale into the petabyte range across "hundreds or thousands of machines, and to make it easy to add more machines [to] the system and automatically start taking advantage of those resources without any reconfiguration".[12] For example, Google's copy of the web can be stored in a bigtable where the row key is a domain-reversed URL, and columns describe various properties of a web page, with one particular column holding the page itself. The page column can have several timestamped versions describing different copies of the web page timestamped by when they were fetched. Each cell of a bigtable can have zero or more timestamped versions of the data. Another function of the timestamp is to allow for both versioning and garbage collection of expired data.

Tables are split into multiple tablets – segments of the table are split at certain row keys so that each tablet is a few hundred megabytes or a few gigabytes in size. A bigtable is somewhat like a mapreduce worker pool in that thousands to hundreds of thousands of tablet shards may be served by hundreds to thousands of BigTable servers. When Table size threaten to grow beyond a specified limit, the tablets may be compressed using the algorithm BMDiff[13][14] and the Zippy compression algorithm[15] publicly known and open-sourced as Snappy,[16] which is a less space-optimal variation of LZ77 but more efficient in terms of computing time. The locations in the GFS of tablets are recorded as database entries in multiple special tablets, which are called "META1" tablets. META1 tablets are found by querying the single "META0" tablet, which typically resides on a server of its own since it is often queried by clients as to the location of the "META1" tablet which itself has the answer to the question of where the actual data is located. Like GFS's master server, the META0 server is not generally a bottleneck since the processor time and bandwidth necessary to discover and transmit META1 locations is minimal and clients aggressively cache locations to minimize queries.

References

  1. Hitchcock, Andrew, Google's Bigtable, https://andrewhitchcock.org/2005/bigtable.html, retrieved 29 July 2007, "First an overview. Bigtable has been in development since early 2004 and has been in active use for about eight months (about February 2005)." .
  2. 2.0 2.1 "Announcing Google Cloud Bigtable: The same database that powers Google Search, Gmail and Analytics is now available on Google Cloud Platform". Google Blog. May 6, 2015. http://googlecloudplatform.blogspot.com/2015/05/introducing-Google-Cloud-Bigtable.html. 
  3. 3.0 3.1 Chang et al. 2006.
  4. Chang et al. 2006, p. 3: 'Bigtable can be used with MapReduce, a framework for running large-scale parallel computations developed at Google. We have written a set of wrappers that allow a Bigtable to be used both as an input source and as an output target for MapReduce jobs'
  5. Hitchcock, Andrew, Google's Bigtable, https://andrewhitchcock.org/2005/bigtable.html, retrieved 29 July 2007, "There are currently around 100 cells for services such as Print, Search History, Maps, and Orkut" .
  6. Cordes, Kyle (2007-07-12) (talk), YouTube Scalability, https://kylecordes.com/2007/youtube-scalability, "Their new solution for thumbnails is to use Google's Bigtable, which provides high performance for a large number of rows, fault tolerance, caching, etc. This is a nice (and rare?) example of actual synergy in an acquisition." .
  7. "How Entities and Indexes are Stored", Google App Engine, Google Code, https://code.google.com/intl/pl/appengine/articles/storage_breakdown.html#anc-background, retrieved 17 April 2014 .
  8. Chang et al. 2006, Conclusion: 'We have described Bigtable, a distributed system for storing structured data at Google... Our users like the performance and high availability provided by the Bigtable implementation, and that they can scale the capacity of their clusters by simply adding more machines to the system as their resource demands change over time... Finally, we have found that there are significant advantages to building our own storage solution at Google. We have gotten a substantial amount of flexibility from designing our own data model for Bigtable.'
  9. Shute, Jeffrey 'Jeff'; Oancea, Mircea; Ellner, Stephan; Handy, Benjamin 'Ben'; Rollins, Eric; Samwel, Bart; Vingralek, Radek; Whipkey, Chad et al. (2012), "Summary; F1 — the Fault-Tolerant Distributed RDBMS Supporting Google's Ad Business" (presentation), Research, Sigmod, p. 19, http://research.google.com/pubs/pub38125.html, "We've moved a large and critical application suite from MySQL to F1" .
  10. "Cloud Bigtable now even easier to manage with autoscaling". https://cloud.google.com/blog/products/databases/cloud-bigtable-now-even-easier-to-manage-with-autoscaling. 
  11. Kerner, Sean Michael (2022-01-27). "Google scales up Cloud Bigtable NoSQL database" (in en). https://www.techtarget.com/searchdatamanagement/news/252512583/Google-scales-up-Cloud-Bigtable-NoSQL-database. 
  12. "Google File System and Bigtable" (World Wide Web log), Radar, Database War Stories, O'Reilly, May 2006, http://radar.oreilly.com/2006/05/database-war-stories-7-google.html .
  13. "Google Bigtable, Compression, Zippy and BMDiff". 2008-10-12. http://feedblog.org/2008/10/12/google-bigtable-compression-zippy-and-bmdiff. .
  14. Bentley, Jon; McIlroy, Douglas (1999). "Data compression using long common strings". DCC '99: Proceedings of the Conference on Data Compression. IEEE Computer Society. doi:10.1109/DCC.1999.755678. 
  15. "Google's Bigtable" (Weblog), Outer court, 2005-10-23, http://blogoscoped.com/archive/2005-10-23-n61.html .
  16. (project) Snappy, http://google.github.io/snappy/ .

Bibliography

External links