Content deleted Content added
Update latest release |
|||
(37 intermediate revisions by 16 users not shown) | |||
Line 3:
{{Use American English|date=January 2019}}
{{primary sources|date=December 2012}}
{{Infobox software
| name = MySQL Cluster
Line 8 ⟶ 9:
| developer = [[Oracle Corporation|Oracle]]
| released = November 2004
| latest release version = 8.
| latest release date = {{Start date and age|
| operating system = [[Cross-platform]]{{which
| language = English
| genre = [[Relational database management system|RDBMS]]
| license = [[GNU General Public License]] (version 2, with [[GPL linking exception|linking exception]]) or commercial [[EULA]]
| website =
}}
'''MySQL Cluster''' , also known as MySQL Ndb Cluster is a technology providing [[Shared nothing architecture|shared-nothing]] clustering and auto-sharding for the [[MySQL]] [[database management system]]. It is designed to provide high availability and high throughput with low latency, while allowing for near linear scalability.<ref>{{cite web|last=Oracle Corporation|title=MySQL Cluster Benchmarks: Oracle and Intel Achieve 1 Billion Writes per Minute|url=http://www.mysql.com/why-mysql/white-papers/mysql-cluster-benchmarks-1-billion-writes-per-minute/|work=mysql.com|accessdate=24 June 2013}}</ref> MySQL Cluster is implemented through the [[NDB Cluster|NDB]] or NDBCLUSTER storage engine for MySQL ("NDB" stands for '''N'''etwork '''D'''ata'''b'''ase).
==Architecture==
MySQL Cluster is designed around a distributed, multi-master [[ACID]] compliant architecture with no [[single point of failure]]. MySQL Cluster uses automatic [[sharding]] (partitioning) to scale out read and write operations on commodity hardware and can be accessed via SQL and Non-SQL (NoSQL) [[API]]s.
===Replication===
Internally MySQL Cluster uses [[synchronous replication]] through a [[two-phase commit]] mechanism in order to guarantee that data is written to multiple nodes upon committing the data.
It is also possible to replicate asynchronously between clusters; this is sometimes referred to as "MySQL Cluster Replication" or "geographical replication". This is typically used to replicate clusters between data centers for [[IT disaster recovery]] or to reduce the effects of network latency by locating data physically closer to a set of users. Unlike standard MySQL replication, MySQL Cluster's geographic replication uses [[optimistic concurrency control]] and the concept of Epochs to provide a mechanism for conflict detection and resolution,<ref>[http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster-replication-conflict-resolution.html MySQL :: MySQL 5.6 Reference Manual :: 17.6.11 MySQL Cluster Replication Conflict Resolution]. Dev.mysql.com. Retrieved on 2013-09-18.</ref> enabling active/active clustering between data centers.
Starting with MySQL Cluster 7.2, support for synchronous replication between data centers was supported with the Multi-Site Clustering feature.<ref>[https://blogs.oracle.com/MySQL/entry/synchronously_replicating_databases_across_data Synchronously Replicating Databases Across Data Centers – Are you Insane? (Oracle's MySQL Blog)]. Blogs.oracle.com (2011-10-03). Retrieved on 2013-09-18.</ref>
Line 60 ⟶ 62:
===MySQL Cluster Manager===
Part of the commercial MySQL Cluster CGE, MySQL Cluster Manager is a tool designed to simplify the creation and administration of the MySQL Cluster CGE database by automating common management tasks, including on-line scaling, upgrades, backup/restore and reconfiguration. MySQL Cluster Manager also monitors and automatically recovers MySQL Server application nodes and management nodes, as well as the MySQL Cluster data nodes.
===MySQL Ndb Operator===
The open source [https://github.com/mysql/mysql-ndb-operator MySQL Ndb Operator] simplifies the deployment and operation of MySQL Cluster on a [[Kubernetes]] cluster. Ndb Operator deploys containerized MySQL Cluster Data, Management and SQL nodes in a number of StatefulSets with data stored in Persistent Volumes.
Kubernetes mechanisms extend the high availability features of MySQL Cluster, for example automatically restoring HA redundancy after hardware failures by migrating pods to new hardware.
Operating MySQL Cluster on Kubernetes allows a full stack of cloud native software to be operated in the same way on private or public clouds.
===NDB Cluster===
'''NDB Cluster''' is the distributed [[database]] system underlying MySQL Cluster. It can be used independently of a [[MySQL]] Server with users accessing the Cluster via the NDB API (C++). "NDB" stands for '''N'''etwork '''D'''ata'''b'''ase.
From the MySQL Server perspective the NDB Cluster is a [[Database engine|Storage engine]] for storing [[Table (database)|tables]] of [[Record (database)|rows]].
From the NDB Cluster perspective, a MySQL Server [[Instance (computer science)|instance]] is an [[Application programming interface|API]] process connected to the Cluster. NDB Cluster can concurrently support access from other types of API processes including Memcached, JavaScript/Node.JS, Java, JPA and HTTP/REST. All API processes can operate on the same tables and data stored in the NDB Cluster.
MySQL Cluster uses the [[MySQL]] Server to provide the following capabilities on top of Ndb Cluster:
* [[SQL]] parsing / optimising / execution capability
** Connectors to applications via [[JDBC]], [[ODBC]] etc.
* Cross-table [[Join (SQL)|join]] mechanism
* User authentication and authorisation
* Asynchronous data replication to other systems
All API processes including the MySQL Server use the NDBAPI<ref name="NdbApiDocs">[http://dev.mysql.com/doc/ndbapi/en/index.html] The MySQL Cluster API Developer Guide</ref> [[C++]] client library to connect to the NDB Cluster and perform operations.
==Implementation==
Line 70 ⟶ 94:
== Versions ==
From the 8.0 release onwards, MySQL Cluster is based directly on the corresponding
Higher versions of MySQL Cluster include all of the features of lower versions, plus some new features.
Currently available versions:▼
:Add support for TLS on cluster internal connections
:Increase in max row size to 30kB, Support for up to 144 data nodes, Improved distributed filtering and joining, Support for parallel outer joins and semi joins, Improved schema and ACL handling, Online column rename, Simplified configuration, Multithreaded parallel backup and restore, Disk data performance improvements, Enhanced support for 3 and 4 replica configurations, Support for multi socket mesh networking, Support for restore transformations, Improved Blob write performance, Backup encryption, Support for IPv6, Threading autoconfiguration, Improved recovery performance, Improved query multithreading.
:Improved restart and recovery times, reduced disk space usage, improved join performance, new import tool, shared memory communication, improved topology awareness for cloud.<ref>[https://blogs.oracle.com/mysql/mysql-cluster-76-is-now-generally-available MySQL Cluster 7.6 is now Generally Available], Oracle's MySQL Blog, 1 June 2018</ref>
Older versions (no longer in development):
*
* MySQL Cluster
:First 'telco' or 'carrier grade edition' release. Supports 255 nodes, online table alter, replication latency and throughput enhancements etc.▼
▲* MySQL Cluster 6.3 based on MySQL 5.1.B
:Includes compressed backup + LCP, circular replication support, conflict detection/resolution, table optimization etc.▼
▲* MySQL Cluster 7.0 based on MySQL 5.1.C
:Includes multi-threaded data nodes (ndbmtd), Transactional DDL, Windows support.▼
* MySQL Cluster 7.1 based on MySQL 5.1.D▼
:Includes ClusterJ and ClusterJPA connectors▼
▲Currently available versions:
▲* MySQL Cluster 7.2 based on MySQL 5.5
:Includes Adaptive Query Localization (pushes JOIN operations down to the data nodes), Memcached API, simplified Active/Active Geographic replication, multi-site clustering, data node scalability enhancements, consolidated user privileges.<ref>[http://dev.mysql.com/tech-resources/articles/mysql-cluster-7.2-ga.html New features of MySQL Cluster 7.2], MySQL Developer Zone</ref>▼
▲* MySQL Cluster 7.3 based on MySQL 5.6
:Includes support for [[foreign key]] constraints, [[Node.js]] / [[JavaScript]] API and an auto-installer.<ref>[http://www.clusterdb.com/mysql-cluster/mysql-cluster-7-3-is-now-ga/ MySQL Cluster 7.3 is now Generally Available – an overview], MySQL Cluster 7.3 Summary</ref>▼
▲* MySQL Cluster 7.4 based on MySQL 5.6
* MySQL Cluster 7.5 based on MySQL 5.7
:Includes support for bigger datasets(more than 128TB per node), improved read scalability through read optimized tables, improved SQL support.<ref>[https://blogs.oracle.com/MySQL/entry/mysql_cluster_7_5_is MySQL Cluster 7.5 Is Now GA!], Oracle's MySQL Blog, 18 October 2016</ref>
* MySQL Cluster 7.
:
* MySQL Cluster
▲:Includes support for [[foreign key]] constraints, [[Node.js]] / [[JavaScript]] API and an auto-installer.<ref>[http://www.clusterdb.com/mysql-cluster/mysql-cluster-7-3-is-now-ga/ MySQL Cluster 7.3 is now Generally Available – an overview], MySQL Cluster 7.3 Summary</ref>
▲:Increase in max row size to 30kB, Support for up to 144 data nodes, Improved distributed filtering and joining, Support for parallel outer joins and semi joins, Improved schema and ACL handling, Online column rename, Simplified configuration, Multithreaded parallel backup and restore, Disk data performance improvements, Enhanced support for 3 and 4 replica configurations, Support for multi socket mesh networking, Support for restore transformations, Improved Blob write performance, Backup encryption, Support for IPv6, Threading autoconfiguration, Improved recovery performance, Improved query multithreading. <ref>{{Cite web|url=https://dev.mysql.com/doc/refman/8.0/en/mysql-cluster-what-is-new.html|title=MySQL :: MySQL 8.0 Reference Manual :: 22.1.4 What is New in NDB Cluster|website=dev.mysql.com}}</ref>
* MySQL Cluster 7.2 based on MySQL 5.5
▲:Includes Adaptive Query Localization (pushes JOIN operations down to the data nodes), Memcached API, simplified Active/Active Geographic replication, multi-site clustering, data node scalability enhancements, consolidated user privileges.<ref>[http://dev.mysql.com/tech-resources/articles/mysql-cluster-7.2-ga.html New features of MySQL Cluster 7.2], MySQL Developer Zone</ref>
▲* MySQL Cluster 7.1 based on MySQL 5.1.D
▲:Includes ClusterJ and ClusterJPA connectors
* MySQL Cluster 7.0 based on MySQL 5.1.C
▲:Includes multi-threaded data nodes (ndbmtd), Transactional DDL, Windows support.
* MySQL Cluster 6.3 based on MySQL 5.1.B
▲:Includes compressed backup + LCP, circular replication support, conflict detection/resolution, table optimization etc.
* MySQL Cluster 6.2 based on MySQL 5.1.A
▲:First 'telco' or 'carrier grade edition' release. Supports 255 nodes, online table alter, replication latency and throughput enhancements etc.
* Ndb included in MySQL 5.1.X source tree
==Requirements==
Line 120 ⟶ 150:
MySQL Cluster based on the NDB storage engine has since been integrated into the [[MySQL]] product, with its first release being in MySQL 4.1.
==Books==
MySQL Cluster 7.5 inside and out.<ref>{{cite web|author=Mikael Ronström|url=https://www.bod.se/bokshop/mysql-cluster-7-5-inside-and-out-mikael-ronstroem-9789176998144"|title=MySQL Cluster 7.5 inside and out|publisher=bod.se|date=2018-02-12|accessdate=2022-08-01}}</ref> Book written by Mikael Ronström, the founder of the NDB technology.
Pro MySQL NDB Cluster.<ref>{{cite book|author=Jesper Wisborg Krogh, Mikiya Okuno|url=https://link.springer.com/book/10.1007/978-1-4842-2982-8|title=Pro MySQL NDB Cluster|publisher=apress.com|date=2017|doi=10.1007/978-1-4842-2982-8 |isbn=978-1-4842-2981-1 |s2cid=10326666 |accessdate=2022-08-01}}</ref> Book written by Jesper Wisborg Krogh and Mikiya Okuno, support engineers of MySQL.
==Support==
Line 125 ⟶ 160:
== See also ==
* Galera Cluster,<ref>[
* [[Percona Server for MySQL]] XtraDB Cluster, also is a combination of Galera replication library and MySQL supporting multi master.
* RonDB,<ref>{{cite web|title=RonDB Announcement|url=https://www.logicalclocks.com/blog/comparing-rondb-on-aws-azure-and-gcp-using-sysbench|accessdate=2022-08-01}}</ref> a fork of MySQL Cluster maintained by Hopsworks.
== References ==
Line 155 ⟶ 191:
*[http://www.mysql.com/products/cluster/faq.html MySQL Cluster FAQ]
*[https://www.youtube.com/watch?v=nYiIwgjcRWI MySQL Cluster Auto-Installer Tutorial]
*[http://www.mysql.com/products/cluster/start.html#getting_started Getting Started with MySQL Cluster]
*[http://www.mysql.com/why-mysql/white-papers/#en-22-28 MySQL Cluster Whitepapers and Guides]
|