Percona Server Documentation Release 8.0.18-9
Total Page:16
File Type:pdf, Size:1020Kb
Percona Server Documentation Release 8.0.18-9 Percona LLC and/or its affiliates 2009-2019 Dec 11, 2019 CONTENTS I Introduction2 II Installation 12 III Scalability Improvements 36 IV Performance Improvements 39 V Flexibility Improvements 52 VI Reliability Improvements 77 VII Management Improvements 81 VIII Security Improvements 115 IX Diagnostics Improvements 151 X TokuDB 183 XI Percona MyRocks 294 XII Reference 352 i Percona Server Documentation, Release 8.0.18-9 Percona Server for MySQL is an enhanced drop-in replacement for MySQL. With Percona Server for MySQL, • Your queries will run faster and more consistently. • You will consolidate servers on powerful hardware. • You will delay sharding, or avoid it entirely. • You will save money on hosting fees and power. • You will spend less time tuning and administering. • You will achieve higher uptime. • You will troubleshoot without guesswork. Does this sound too good to be true? It’s not. Percona Server for MySQL offers breakthrough performance, scalability, features, and instrumentation. Its self-tuning algorithms and support for extremely high-performance hardware make it the clear choice for companies who demand the utmost performance and reliability from their database server. CONTENTS 1 Part I Introduction 2 CHAPTER ONE THE PERCONA XTRADB STORAGE ENGINE Percona XtraDB is an enhanced version of the InnoDB storage engine, designed to better scale on modern hardware. It also includes a variety of other features useful in high-performance environments. It is fully backwards compatible, and so can be used as a drop-in replacement for standard InnoDB. Percona XtraDB includes all of InnoDB ‘s robust, reliable ACID-compliant design and advanced MVCC architecture, and builds on that solid foundation with more features, more tunability, more metrics, and more scalability. In particu- lar, it is designed to scale better on many cores, to use memory more efficiently, and to be more convenient and useful. The new features are especially designed to alleviate some of InnoDB‘s limitations. We choose features and fixes based on customer requests and on our best judgment of real-world needs as a high-performance consulting company. Percona XtraDB engine will not have further binary releases, it is distributed as part of Percona Server for MySQL. 3 CHAPTER TWO LIST OF FEATURES AVAILABLE IN PERCONA SERVER FOR MYSQL RELEASES Percona Server for MySQL 5.6 Percona Server for MySQL 5.7 Percona Server for MySQL 8.0 Improved Buffer Pool Scalability Improved Buffer Pool Scalability Improved Buffer Pool Scalability Improved InnoDB I/O Scalability Improved InnoDB I/O Scalability Improved InnoDB I/O Scalability Multiple Adaptive Hash Search Multiple Adaptive Hash Search Multiple Adaptive Hash Search Partitions Partitions Partitions Atomic write support for Fusion-io Atomic write support for Fusion-io Atomic write support for Fusion-io devices devices devices Query Cache Enhancements Query Cache Enhancements Feature not implemented Improved NUMA support Improved NUMA support Feature not implemented Thread Pool Thread Pool Thread Pool Suppress Warning Messages Suppress Warning Messages Suppress Warning Messages Ability to change database for Ability to change database for Ability to change database for mysqlbinlog mysqlbinlog mysqlbinlog Fixed Size for the Read Ahead Area Fixed Size for the Read Ahead Area Fixed Size for the Read Ahead Area Improved MEMORY Storage En- Improved MEMORY Storage En- Improved MEMORY Storage En- gine gine gine Restricting the number of binlog Restricting the number of binlog Restricting the number of binlog files files files Ignoring missing tables in mysql- Ignoring missing tables in mysql- Ignoring missing tables in mysql- dump dump dump Too Many Connections Warning Too Many Connections Warning Too Many Connections Warning Handle Corrupted Tables Handle Corrupted Tables Handle Corrupted Tables Lock-Free SHOW SLAVE STA- Lock-Free SHOW SLAVE STA- Lock-Free SHOW SLAVE STA- TUS TUS TUS Expanded Fast Index Creation Expanded Fast Index Creation Expanded Fast Index Creation Percona Toolkit UDFs Percona Toolkit UDFs Percona Toolkit UDFs Support for Fake Changes Support for Fake Changes Support for Fake Changes Kill Idle Transactions Kill Idle Transactions Kill Idle Transactions XtraDB changed page tracking XtraDB changed page tracking XtraDB changed page tracking Enforcing Storage Engine Enforcing Storage Engine Replaced with upstream implemen- tation Utility user Utility user Feature not implemented Extending the secure-file-priv Extending the secure-file-priv Extending the secure-file-priv server option server option server option Expanded Program Option Modi- Expanded Program Option Modi- Feature not implemented fiers fiers PAM Authentication Plugin PAM Authentication Plugin PAM Authentication Plugin Continued on next page 4 Percona Server Documentation, Release 8.0.18-9 Table 2.1 – continued from previous page Percona Server for MySQL 5.6 Percona Server for MySQL 5.7 Percona Server for MySQL 8.0 Log Archiving for XtraDB Log Archiving for XtraDB Log Archiving for XtraDB User Statistics User Statistics User Statistics Slow Query Log Slow Query Log Slow Query Log Count InnoDB Deadlocks Count InnoDB Deadlocks Count InnoDB Deadlocks Log All Client Commands (syslog) Log All Client Commands (syslog) Log All Client Commands (syslog) Response Time Distribution Response Time Distribution Feature not implemented Show Storage Engines Show Storage Engines Show Storage Engines Show Lock Names Show Lock Names Show Lock Names Process List Process List Process List Misc. INFORMATION_SCHEMA Misc. INFORMATION_SCHEMA Misc. INFORMATION_SCHEMA Tables Tables Tables Extended Show Engine InnoDB Extended Show Engine InnoDB Extended Show Engine InnoDB Status Status Status Thread Based Profiling Thread Based Profiling Thread Based Profiling XtraDB Performance Improve- XtraDB Performance Improve- XtraDB Performance Improve- ments for I/O-Bound Highly- ments for I/O-Bound Highly- ments for I/O-Bound Highly- Concurrent Workloads Concurrent Workloads Concurrent Workloads Page cleaner thread tuning Page cleaner thread tuning Page cleaner thread tuning Statement Timeout Statement Timeout Statement Timeout Extended SELECT INTO OUT- Extended SELECT INTO OUT- Extended SELECT INTO OUT- FILE/DUMPFILE FILE/DUMPFILE FILE/DUMPFILE Per-query variable statement Per-query variable statement Per-query variable statement Extended mysqlbinlog Extended mysqlbinlog Extended mysqlbinlog Slow Query Log Rotation and Ex- Slow Query Log Rotation and Ex- Slow Query Log Rotation and Ex- piration piration piration Metrics for scalability measure- Metrics for scalability measure- Feature not implemented ment ment Audit Log Audit Log Audit Log Backup Locks Backup Locks Backup Locks CSV engine mode for standard- CSV engine mode for standard- CSV engine mode for standard- compliant quote and comma pars- compliant quote and comma pars- compliant quote and comma pars- ing ing ing Super read-only Super read-only Super read-only Other Reading • Changed in Percona Server 5.6 • Percona Server for MySQL In-Place Upgrading Guide: From 5.7 to 8.0 • What Is New in MySQL 5.5 • What Is New in MySQL 5.6 2.1. Other Reading 5 CHAPTER THREE PERCONA SERVER FOR MYSQL FEATURE COMPARISON Percona Server for MySQL is an enhanced drop-in replacement for MySQL. With Percona Server for MySQL, • Your queries will run faster and more consistently. • You will consolidate servers on powerful hardware. • You will delay sharding, or avoid it entirely. • You will save money on hosting fees and power. • You will spend less time tuning and administering. • You will achieve higher uptime. • You will troubleshoot without guesswork. We provide these benefits by significantly enhancing Percona Server for MySQL as compared to the standard MySQL database server: Features Percona Server for MySQL 8.0.13 MySQL 8.0.13 Open source Yes Yes ACID Compliance Yes Yes Multi-Version Concurrency Control Yes Yes Row-Level Locking Yes Yes Automatic Crash Recovery Yes Yes Table Partitioning Yes Yes Views Yes Yes Subqueries Yes Yes Triggers Yes Yes Stored Procedures Yes Yes Foreign Keys Yes Yes Window Functions Yes Yes Common Table Expressions Yes Yes Geospatial Features (GIS, SPRS) Yes Yes GTID Replication Yes Yes Group Replication Yes Yes MyRocks Storage Engine Yes No TokuDB Storage Engine Yes No 6 Percona Server Documentation, Release 8.0.18-9 Improvements for Developers Feature Percona Server for MySQL 8.0.13 MySQL 8.0.13 NoSQL Socket-Level Interface Yes Yes X API Support Yes Yes JSON Functions Yes Yes InnoDB Full-Text Search Improvements Yes No Extra Hash/Digest Functions Yes No Extra Diagnostic Features Feature Percona Server for MySQL 8.0.13 MySQL 8.0.13 INFORMATION_SCHEMA Tables 95 65 Global Performance and Status Counters 853 434 Optimizer Histograms Yes Yes Per-Table Performance Counters Yes No Per-Index Performance Counters Yes No Per-User Performance Counters Yes No Per-Client Performance Counters Yes No Per-Thread Performance Counters Yes No Enhanced SHOW ENGINE INNODB STATUS Yes No Temporary tables Information Yes No Extended Slow Query Logging Yes No User Statistics Yes No Performance & Scalability Enhancements Feature Percona Server for MySQL MySQL 8.0.13 8.0.13 InnoDB Resource Groups Yes Yes Configurable Page Sizes Yes Yes Contention-Aware Transaction Scheduling Yes Yes Improved Scalability by Splitting Mutexes Yes Yes Improved MEMORY Storage Engine Yes No Improved Flushing Yes No Parallel Doublewrite Buffer Yes No Configurable Fast Index Creation Yes No Per-Column Compression for VARCHAR/BLOB