万本电子书0元读

万本电子书0元读

顶部广告

MariaDB High Performance电子书

售       价:¥

45人正在读 | 0人评论 9.8

作       者:Pierre MAVRO

出  版  社:Packt Publishing

出版时间:2014-09-23

字       数:208.1万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book is aimed at system administrators/architects or DBAs who want to learn more about how to grow their current infrastructure to support larger traffic. Before beginning with this book, we expect you to be well-practiced with MySQL/MariaDB for common usage. You will be able to get a grasp quickly if you are comfortable with learning and building large infrastructures for MariaDB using Linux.
目录展开

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

Using mysqlhotcopy

LVM

Snapshot

Removing snapshots

Rollback

Backup

Xtrabackup

Full backup

Incremental backup

Restoring from a full backup

Restoring from an incremental backup

Galera backup

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部