Mysql NDB Cluster 7.3, Mysql NDB Cluster 7.4 Abstract
Total Page:16
File Type:pdf, Size:1020Kb
MySQL NDB Cluster 7.3, MySQL NDB Cluster 7.4 Abstract This is the MySQL NDB Cluster 7.3 and MySQL NDB Cluster 7.4 extract from the MySQL 8.0 Reference Manual. For legal information, see the Legal Notices. For help with using MySQL, please visit the MySQL Forums, where you can discuss your issues with other MySQL users. Document generated on: 2021-09-24 (revision: 70892) Table of Contents Preface and Legal Notices ........................................................................................................... vii 1 General Information ................................................................................................................... 1 2 NDB Cluster Overview ............................................................................................................... 3 2.1 NDB Cluster Core Concepts ............................................................................................ 5 2.2 NDB Cluster Nodes, Node Groups, Fragment Replicas, and Partitions ............................... 7 2.3 NDB Cluster Hardware, Software, and Networking Requirements .................................... 10 2.4 What is New in MySQL NDB Cluster ............................................................................. 11 2.4.1 What is New in NDB Cluster 7.3 ......................................................................... 12 2.4.2 What is New in NDB Cluster 7.4 ......................................................................... 13 2.5 NDB: Added, Deprecated, and Removed Options, Variables, and Parameters .................. 16 2.5.1 Options, Variables, and Parameters Added, Deprecated or Removed in NDB 7.3 ... 16 2.5.2 Options, Variables, and Parameters Added, Deprecated or Removed in NDB 7.4 ... 18 2.6 MySQL Server Using InnoDB Compared with NDB Cluster ............................................. 20 2.6.1 Differences Between the NDB and InnoDB Storage Engines ................................. 21 2.6.2 NDB and InnoDB Workloads .............................................................................. 22 2.6.3 NDB and InnoDB Feature Usage Summary ......................................................... 23 2.7 Known Limitations of NDB Cluster ................................................................................. 23 2.7.1 Noncompliance with SQL Syntax in NDB Cluster ................................................. 24 2.7.2 Limits and Differences of NDB Cluster from Standard MySQL Limits ..................... 26 2.7.3 Limits Relating to Transaction Handling in NDB Cluster ........................................ 27 2.7.4 NDB Cluster Error Handling ................................................................................ 30 2.7.5 Limits Associated with Database Objects in NDB Cluster ...................................... 30 2.7.6 Unsupported or Missing Features in NDB Cluster ................................................ 31 2.7.7 Limitations Relating to Performance in NDB Cluster ............................................. 31 2.7.8 Issues Exclusive to NDB Cluster ......................................................................... 32 2.7.9 Limitations Relating to NDB Cluster Disk Data Storage ......................................... 33 2.7.10 Limitations Relating to Multiple NDB Cluster Nodes ............................................ 33 2.7.11 Previous NDB Cluster Issues Resolved in NDB Cluster 7.3 ................................. 34 3 NDB Cluster Installation ........................................................................................................... 35 3.1 Installation of NDB Cluster on Linux .............................................................................. 37 3.1.1 Installing an NDB Cluster Binary Release on Linux .............................................. 38 3.1.2 Installing NDB Cluster from RPM ........................................................................ 40 3.1.3 Installing NDB Cluster Using .deb Files ............................................................... 41 3.1.4 Building NDB Cluster from Source on Linux ......................................................... 42 3.2 Installing NDB Cluster on Windows ................................................................................ 43 3.2.1 Installing NDB Cluster on Windows from a Binary Release ................................... 43 3.2.2 Compiling and Installing NDB Cluster from Source on Windows ............................ 47 3.2.3 Initial Startup of NDB Cluster on Windows ........................................................... 47 3.2.4 Installing NDB Cluster Processes as Windows Services ....................................... 50 3.3 Initial Configuration of NDB Cluster ................................................................................ 51 3.4 Initial Startup of NDB Cluster ......................................................................................... 53 3.5 NDB Cluster Example with Tables and Data .................................................................. 54 3.6 Safe Shutdown and Restart of NDB Cluster ................................................................... 57 3.7 Upgrading and Downgrading NDB Cluster ...................................................................... 58 3.8 The NDB Cluster Auto-Installer (No longer supported) .................................................... 61 3.8.1 NDB Cluster Auto-Installer Requirements ............................................................ 61 3.8.2 Using the NDB Cluster Auto-Installer ................................................................... 62 4 Configuration of NDB Cluster ................................................................................................... 73 4.1 Quick Test Setup of NDB Cluster .................................................................................. 73 4.2 Overview of NDB Cluster Configuration Parameters, Options, and Variables ..................... 75 4.2.1 NDB Cluster Data Node Configuration Parameters ............................................... 76 4.2.2 NDB Cluster Management Node Configuration Parameters .................................. 82 4.2.3 NDB Cluster SQL Node and API Node Configuration Parameters ......................... 83 4.2.4 Other NDB Cluster Configuration Parameters ...................................................... 84 4.2.5 NDB Cluster mysqld Option and Variable Reference ............................................ 85 iii MySQL NDB Cluster 7.3, MySQL NDB Cluster 7.4 4.3 NDB Cluster Configuration Files .................................................................................... 93 4.3.1 NDB Cluster Configuration: Basic Example .......................................................... 94 4.3.2 Recommended Starting Configuration for NDB Cluster ......................................... 97 4.3.3 NDB Cluster Connection Strings ....................................................................... 100 4.3.4 Defining Computers in an NDB Cluster .............................................................. 101 4.3.5 Defining an NDB Cluster Management Server ................................................... 102 4.3.6 Defining NDB Cluster Data Nodes ..................................................................... 109 4.3.7 Defining SQL and Other API Nodes in an NDB Cluster ....................................... 172 4.3.8 MySQL Server Options and Variables for NDB Cluster ....................................... 179 4.3.9 NDB Cluster TCP/IP Connections ..................................................................... 222 4.3.10 NDB Cluster TCP/IP Connections Using Direct Connections ............................. 226 4.3.11 NDB Cluster Shared-Memory Connections ....................................................... 227 4.3.12 Configuring NDB Cluster Send Buffer Parameters ............................................ 231 4.4 Using High-Speed Interconnects with NDB Cluster ....................................................... 232 5 NDB Cluster Programs ........................................................................................................... 235 5.1 ndbd — The NDB Cluster Data Node Daemon ............................................................. 236 5.2 ndbinfo_select_all — Select From ndbinfo Tables ......................................................... 245 5.3 ndbmtd — The NDB Cluster Data Node Daemon (Multi-Threaded) ................................ 250 5.4 ndb_mgmd — The NDB Cluster Management Server Daemon ...................................... 251 5.5 ndb_mgm — The NDB Cluster Management Client ...................................................... 263 5.6 ndb_blob_tool — Check and Repair BLOB and TEXT columns of NDB Cluster Tables ..... 267 5.7 ndb_config — Extract NDB Cluster Configuration Information ........................................ 273 5.8 ndb_cpcd — Automate Testing for NDB Development .................................................. 285 5.9 ndb_delete_all — Delete All Rows from an NDB Table ................................................. 285 5.10 ndb_desc — Describe NDB Tables ............................................................................ 289 5.11 ndb_drop_index — Drop Index from an NDB Table ..................................................... 297 5.12 ndb_drop_table — Drop an NDB Table ...................................................................... 302 5.13 ndb_error_reporter — NDB Error-Reporting Utility ....................................................... 306 5.14 ndb_index_stat