DBDB.io The Encyclopedia of Database Systems · Est. 2017
Database of Databases

Database Entry

ClearDB


ClearDB is a distributed, cloud-hosted, database-as-a-service version of MySQL. Its primary purpose is to eliminate the management cost of MySQL databases and provide automatic database replication and failover. To increase robustness, ClearDB adds software stacks on top of MySQL and leveraging geo-separated data clusters. ClearDB supports major commercial cloud which includes Amazon EC2 and Windows Azure and also support customized data centers or a hybrid of the two.[04][05]

Developer
Country of Origin
US
Start Year
2010 [30]
Acquired By
Project Type
Commercial
Written in
C++
Derived From
MySQL
Embeds / Uses
MySQL
Operating Systems
Linux, Windows
License
Proprietary
Twitter
@ClearDB[03]

Database Entry

ClearDB


ClearDB is a distributed, cloud-hosted, database-as-a-service version of MySQL. Its primary purpose is to eliminate the management cost of MySQL databases and provide automatic database replication and failover. To increase robustness, ClearDB adds software stacks on top of MySQL and leveraging geo-separated data clusters. ClearDB supports major commercial cloud which includes Amazon EC2 and Windows Azure and also support customized data centers or a hybrid of the two.[04][05]

Hosted Systems


History[06][07]


ClearDB was founded by Cashton Coleman in 2010 as a pioneer of MySQL DBaaS aimed to eliminate the pain of managing MySQL clusters and free developers from supporting database issues. According to RDX, ClearDB was the world's largest MySQL DBaaS provider. In 2019, ClearDb was acquired by RDX.

Checkpoints[08][09]


Same as MySQL

It uses both Fuzzy and Sharp checkpoint. It takes a sharp checkpoint when the database is performing shut down and uses fuzzy checkpoint during normal database operations. When taking a sharp checkpoint, the database flushes all dirty pages of committed transactions to disk and update the MasterRecord to be the lastest committed LSN. Checkpoint behaves the same way as MySQL and is not modified by ClearDB

Compression[10][11][12]


Same as MySQL

InnoDB supports multiple compression algorithms which include Zlib and LZ4. When writing a page to disk, data were first compressed and then written to disk. Then empty blocks will be released by hole punching mechanism, where the system reclaims unnecessary blocks at the end of the page. ClearDB's doesn't change compression from MySQL.

Concurrency Control[13][14]


Same as MySQL

ClearDB doesn't change concurrency control from MySQL. MySQL uses a combination of Multiversion Concurrency Control (MVCC) and row-level locking to achieve better concurrency. Old versions of rows are stored in a rollback segment which could later be used to rollback changes. Rollback segments are partitioned into the insert and update undo logs for different types of rollbacks.

Data Model[15]


Same as MySQL

ClearDB's underlying MySql database uses a relational data model that is not modified by ClearDB.

Foreign Keys[16]


Same as MySQL

The build-in MySQL natively supports foreign key constraints.

Indexes[17]


Same as MySQL

MySQL support multiple types of indexes. Most MySQL tables stored on disks use B-trees. Spatial data uses R-tree for indexes. MySQL also uses hash indexes for memory tables. ClearDB doesn't modify the behavior of indexes from MySQL.

Isolation Levels


Same as MySQL

Joins[18][19][20]


Same as MySQL

ClearDB's change from MySQL doesn't involve Join. MySQL employs both nested loop join as well as hash join algorithms. Nested loop joins are used by default and hash join was used when the join has an equi-join condition and no indexes were used. Block nested loop, as well as Batched Key Access Joins, are used to improve join performance.

Logging[04][21]


To ensure data durability, ClearDB leverages durable storage as well as MySQL transaction log.

Query Compilation


Same as MySQL

Query Execution[22]


Same as MySQL

MySQL follows an iterative processing mode and subqueries are optimized with materialization by storing subquery result in a temporary table. Query execution is not affected by ClearDB's change.

Query Interface[23]


SQL

Same as MySQL

ClearDB doesn't change the query interface of the underlying MySQL. MySQL natively supports SQL and stored procedures for query executions.

Storage Architecture[24][04]


Same as MySQL

On a higher level, ClearDB uses cloud-based durable storage. On a lower level, ClearDB MySQL uses InnoDB as the default storage engine and supports multiple other storage engines: MyISAM, Memory (Heap Engine), Merge, Archive, Federated, and NDB.

Storage Model[25][26]


Same as MySQL

InnoDB uses a row storage structure that supports 4 row formats: Redundant, Compact, Dynamic, Compressed. It is not affected by the change from MySQL to ClearDB.

Storage Organization


Same as MySQL

Stored Procedures


Same as MySQL

System Architecture[27][28][29]


ClearDB is a cloud-based database-as-a-service version of MySQL. It wraps multiple software stacks around MySQL 5.5 and runs multiple geo-separated database clusters to reduce the chance of total database failures. It uses shared-nothing architecture, master-master replication, and proprietary routing technology to achieve automatically handle failed nodes. Database replications are done in an asynchronous manner and are realtime. In the event of failure, the SQL routing algorithm will automatically redirect the query to the secondary master and bring the master back when the node recovers.

ClearDB performs daily backup where the backups are compressed and encrypted and will be replicated to master nodes.

ClearDB leveraged a secure configuration from MySQL, and SSL was used for network security .

Views


Same as MySQL

Citations

31 sources
  1. http://www.cleardb.com cleardb.com Dead — Check Archive
  2. http://w2.cleardb.net/developers cleardb.net Dead — Check Archive
  3. https://twitter.com/ClearDB twitter.com
  4. https://w2.cleardb.net/faqs cleardb.net Dead — Check Archive
  5. https://www.cleardb.com/developers/platform/overview cleardb.com Dead — Check Archive
  6. https://www.rdx.com/company/press-release/rdx-continues-strategic-expansion-cleardb-acquisition rdx.com Dead — Check Archive
  7. https://www.linkedin.com/in/cashtoncoleman linkedin.com
  8. https://www.xaprb.com/blog/2011/01/29/how-innodb-performs-a-checkpoint xaprb.com Dead — Check Archive
  9. Transaction Processing: Concepts and Techniques - Jim Gray, Andreas Reuter - Google Books google.com
  10. https://lwn.net/Articles/415889 lwn.net Spam — Check Archive
  11. https://dev.mysql.com/doc/refman/8.0/en/innodb-table-compression.html mysql.com
  12. https://dev.mysql.com/doc/refman/8.0/en/innodb-page-compression.html mysql.com
  13. https://dev.mysql.com/doc/refman/8.0/en/innodb-multi-versioning.html mysql.com
  14. 1. MySQL Architecture - High Performance MySQL, 2nd Edition [Book] oreilly.com
  15. MySQL - Wikipedia wikipedia.org
  16. https://dev.mysql.com/doc/refman/5.6/en/create-table-foreign-keys.html mysql.com
  17. https://dev.mysql.com/doc/refman/8.0/en/mysql-indexes.html mysql.com
  18. https://dev.mysql.com/doc/refman/8.0/en/hash-joins.html mysql.com
  19. https://dev.mysql.com/doc/refman/5.7/en/nested-loop-joins.html mysql.com
  20. https://dev.mysql.com/doc/refman/8.0/en/bnl-bka-optimization.html mysql.com
  21. https://dev.mysql.com/doc/refman/5.7/en/server-logs.html mysql.com
  22. https://dev.mysql.com/doc/refman/8.0/en/subquery-materialization.html mysql.com
  23. https://dev.mysql.com/doc/refman/8.0/en/sql-statements.html mysql.com
  24. https://dev.mysql.com/doc/refman/5.5/en/storage-engines.html mysql.com
  25. https://dev.mysql.com/doc/refman/5.7/en/innodb-introduction.html mysql.com
  26. https://dev.mysql.com/doc/refman/5.7/en/innodb-row-format.html mysql.com
  27. Welcome to ClearDB s81c.com
  28. https://w2.cleardb.net/faqs#general_0 cleardb.net Dead — Check Archive
  29. https://w2.cleardb.net/developers/resources/introduction-to-the-cleardb-platform cleardb.net Dead — Check Archive
  30. http://w2.cleardb.net/about-page cleardb.net Dead — Check Archive
  31. RDX Continues Strategic Expansion with ClearDB Acquisition prnewswire.com
Revision #24