MariaDB High Performance
eBook - ePub

MariaDB High Performance

  1. 298 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

MariaDB High Performance

Book details
Book preview
Table of contents
Citations

About This Book

Designing and maintaining a huge amount of data in production is not an easy task. Understanding how solutions work, what kind of differences exist between them, and how to get them working is necessary before designing a solution for production. MariaDB High Performance will help you avoid mistakes, bad designs, and wrong strategic choices.

This book will throw light on important and crucial subjects such as which hardware should be used in which situation and what the bottlenecks generally are. You will get acquainted with the latest addition to the MariaDB family, known as Spider, and you will get to know how data sharding is carried out across several MariaDB servers using Spider.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access MariaDB High Performance by Pierre MAVRO in PDF and/or ePUB format, as well as other popular books in Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.

Information

Year
2014
ISBN
9781783981601
Edition
1

MariaDB High Performance


Table of Contents

MariaDB High Performance
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Performance Introduction
MariaDB history
Choosing the appropriate hardware
Disks
SATA magnetic drives
SAS magnetic drives
Hybrid drives
SSDs
RAID and acceleration cards
RAID cards and levels
Fusion-io direct acceleration cards
Disk arrays
RAM
CPU
Architecture types and performances
BIOS power management optimization
C-States
P-States
Constructor name options
Power management optimization
cpufreq
cpuidle
Disk and filesystem optimization
Kernel disks' I/O schedulers
Partition alignment
SSD optimization
Filesystem options
SWAP
Dedicating hardware with cgroups
Manual solution
Automatic solution using the cgconfig daemon
Dedicating hardware optimization with NUMA
Migrating from MySQL to MariaDB
Introduction to MariaDB engines
Summary
2. Performance Analysis
Slow queries
The explain command
Slow query logs
The show explain command
Profiling
Performance schema
User statistics
Sysbench
Percona Toolkits
pt-query-digest
pt-stalk
pt-summary
pt-mysql-summary
pt-duplicate-key-checker
pt-index-usage
Process list progression
mytop
innotop
mysqlsla
Summary
3. Performance Optimizations
Resetting statistics
Global statistics
DNS connections
The DNS cache server
Maximum connections
The binlogs cache
Binlogs for transactional caches
Binlogs for nontransactional caches
Temporary tables
Open tables
The query cache
Understanding the query cache
Modifying the query cache
Optimizing storage engines
Summarizing your databases
InnoDB/XtraDB
Pool size and statistics
Redo logs
Transaction commits and logs
Buffer pool instances
The flush method
TokuDB
Installation
The flush method
Cache size
Transaction commits and logs
Temporary directory
Compression
MyISAM
Key buffer
Index
Engines
Types
mysqltuner
Summary
4. MariaDB Replication
How replication works
Configuring the master node
Preparing the master node
Configuring the slave node
Creating a slave
Using mysqldump
Using Xtrabackup
Checking the slave status
GTID replication
What is GTID
Configuring the master node
Preparing the master node
Configuring a GTID slave node
Creating a slave
Starting the slave
Checking the slave status
Migrating from classical to GTID replication
Parallel replication
Load balancing read transactions
Installing HAProxy
Configuring HAProxy
Checking health
Testing the configuration
Use cases and troubleshooting
SQL errors
Analyzing binlogs
GTID – switching a slave to master and recovering
Summary
5. WAN Slave Architectures
Cascade slaves
Speeding up replication performance for middle slaves
Restricting replications
Designing slave in multiple continents
SSL replication
Generating certificates
Building your own CA
Building your server certificate
Building your client certificates
Checking your certificates
Configuring MariaDB for SSL
Master SSL
Client SSL
Compression options
Summary
6. Building a Dual Master Replication
Dual master replication and risks
Installing and configuring a dual master
Automatic management
HAProxy
Learning about the maintenance mode
Using Unix Socket
Using HATop
Using the configuration file
Keepalived
Pacemaker or Percona Replication Manager
DRBD
How to repair a dual master replication
Summary
7. MariaDB Multimaster Slaves
Multimaster slave replication
Setting up a multisource replication
Other options
Summary
8. Galera Cluster – Multimaster Replication
How Galera Cluster works
Galera Cluster limitations
The basics of installation and configuration
Installation
Configuration files
MariaDB configuration
Galera configuration
First boot
Usages and understandings
Transfer methods
Using mysqldump
Using Xtrabackup
Using rsync
Dedicating a donor node
Starting after a complete blackout
Consensus clustering and maintenance
Garb – the quorum solution
Performance tuning
Parallel slave threads
Gcache size
Designing redundant architectures
Read and write nodes
Load balanced architecture
WAN replication
Disaster recovery
Tests and issues
Paused replication
Break Galera
Split-brain
Summary
9. Spider – Sharding Your Data
Configuring Spider
Creating your first shard
Sharding replication
Creating replicated shards
Spider HA monitoring
Recovering data after server failure
Performance tuning
Spider parameters
The bgs mode
The connection recycle mode
Statistics tables
Remote SQL logs
Number of shards
Summary
10. Monitoring
Single instance
Replication
Galera Cluster
Other monitoring solutions
Graphs
Logs
Summary
11. Backups
Using mysqldump
Compression
...

Table of contents

  1. MariaDB High Performance