- Wydawnictwo: O'Reilly Media
- Data wydania: 18 czerwca 2008
- Liczba stron: 712
- Baron Schwartz
- Peter Zaitsev
- Vadim Tkachenko
- Jeremy D. Zawodny
- Arjen Lentz
- Derek J. Balling
High Performance MySQL is the definitive guide to building fast, reliable systems with MySQL. Written by noted experts with years of real-world experience building very large systems, this book covers every aspect of MySQL performance in detail, and focuses on robustness, security, and data integrity.
High Performance MySQL teaches you advanced techniques in depth so you can bring out MySQL's full power. Learn how to design schemas, indexes, queries and advanced MySQL features for maximum performance, and get detailed guidance for tuning your MySQL server, operating system, and hardware to their fullest potential. You'll also learn practical, safe, high-performance ways to scale your applications with replication, load balancing, high availability, and failover.
This second edition is completely revised and greatly expanded, with deeper coverage in all areas. Major additions include:
- Emphasis throughout on both performance and reliability
- Thorough coverage of storage engines, including in-depth tuning and optimizations for the InnoDB storage engine
- Effects of new features in MySQL 5.0 and 5.1, including stored procedures, partitioned databases, triggers, and views
- A detailed discussion on how to build very large, highly scalable systems with MySQL
- New options for backups and replication
- Optimization of advanced querying features, such as full-text searches
- Four new appendices
The book also includes chapters on benchmarking, profiling, backups, security, and tools and techniques to help you measure, monitor, and manage your MySQL installations.
Baron Schwartz is a software engineer who lives in Charlottesville, Virginia and goes by the online handle of "Xaprb," which is his first name typed in QWERTY on a Dvorak keyboard. When he's not busy solving a fun programming challenge, he relaxes with his wife Lynn and dog Carbon. He blogs about software engineering athttp://www.xaprb.com/blog/.
View Baron Schwartz's full profile page.
A former manager of the High Performace Group at MySQL AB, Peter Zaitsev now runs the mysqlperformanceblog.com site. He specializes in helping administrators fix issues with Web sites handling millions of visitors a day, dealing with terabytes of data using hundreds of servers. He is used to making changes and upgrades both to hardware to software (such as query optimization) in order to find solutions. He also speaks frequently at conferences.
View Peter Zaitsev's full profile page.
Vadim Tkachenko was a Performance Engineer in at MySQL AB. As an expert in multithreaded programming and synchronization, his primary tasks were benchmarks, profiling, and finding bottlenecks.He also worked on a number of features for performance monitoring and tuning, and getting MySQL to scale well on multiple CPUs.
View Vadim Tkachenko's full profile page.
Jeremy D. Zawodny
Jeremy Zawodny and his two cats moved from Northwest Ohio to Silicon Valley in late 1999 so he could work for Yahoo!--just in time to witness the .com bubble bursting first-hand. He's been at Yahoo!® ever since, helping to put MySQL and other Open Source technologies to use in fun, interesting, and often very big ways. Starting with the popular and high-traffic Yahoo! Finance site, he worked to make MySQL part of the site's core infrastructure in large batch operations as well as real-time feed processing and serving content directly on the site. He then helped to spread "the MySQL religion" to numerous other groups within Yahoo!, including News, Personals, Sports, and Shopping. Nowadays he acts as Yahoo!'s MySQL guru, working with Yahoo!'s many engineering groups to get the most out of their MySQL deployments.
In 2000, he began writing for Linux Magazine and continues to do so today as a columnist and contributing editor. After over a year of active participation on the MySQL mailing list, he got the idea to write a book about MySQL. (How hard could it be, really?) You can still find him answering questions on the list today. Since 2001, Jeremy has been speaking about MySQL at various conferences (O'Reilly's Open Source Conference, PHPCon, The MySQL User Conference, etc.) and user groups in locations as far away as Bangalore, India. His favorite topics are performance tuning, replication, clustering, and backup/recovery. In more recent times, he's rediscovered his love of aviation, earning a Private Pilot Glider license in early 2003. Since then he's spent far too much of his free time flying gliders out of Hollister, California and Truckee, near Lake Tahoe. He hopes to soon earn his Commercial Pilot license and then go on to become a certified flight instructor someday. Occasional MySQL consulting also helps to pay for his flying addiction.
Jeremy rambles almost daily about technology and life in general on his weblog: www.jeremy.zawodny.com/blog/
View Jeremy D. Zawodny's full profile page.
Arjen Lentz was born in Amsterdam but has lived in Queensland Australia since the turn of the millennium, sharing his life these days with his beautiful daughter Phoebe and black cat Figaro. Originally a Cprogrammer, Arjen was employee #25 at MySQL AB (2001-2007). After abrief break in 2007, Arjen founded Open Query (http://openquery.com.au), which develops and provides its own data management training and consulting services in the Asia Pacific region and beyond. Arjen also regularly speaks at conferences and user groups. In his abundant spare time Arjen indulges in cooking, gardening, reading, camping, and exploring the RepRap. Arjen's weblog is athttp://arjen-lentz.livejournal.com/
View Arjen Lentz's full profile page.
Derek J. Balling
Derek J. Balling has been a Linux system administrator since 1996. Hehas helped build and maintain server infrastructure for companies likeYahoo, and institutions like Vassar College. He has also writtenarticles for The Perl Journal and a number of online magazines, and ison the Program Committee for the 2008 LISA Conference. He is currentlyemployed as the Data Center Manager for Answers.com.
When not working on computer-related issues, Derek enjoys spendingtime with his wife Debbie, and their posse of animals (4 cats and adog). He also makes his opinion known on current events or whatever isannoying him lately on his blog athttp://blog.megacity.org/.
View Derek J. Balling's full profile page.
Zawartość (spis treści):
Chapter 1 MySQL Architecture
- MySQL's Logical Architecture
- Concurrency Control
- Multiversion Concurrency Control
- MySQL's Storage Engines
Chapter 2 Finding Bottlenecks: Benchmarking and Profiling
- Why Benchmark?
- Benchmarking Strategies
- Benchmarking Tactics
- Benchmarking Tools
- Benchmarking Examples
- Operating System Profiling
Chapter 3 Schema Optimization and Indexing
- Choosing Optimal Data Types
- Indexing Basics
- Indexing Strategies for High Performance
- An Indexing Case Study
- Index and Table Maintenance
- Normalization and Denormalization
- Speeding Up ALTER TABLE
- Notes on Storage Engines
Chapter 4 Query Performance Optimization
- Slow Query Basics: Optimize Data Access
- Ways to Restructure Queries
- Query Execution Basics
- Limitations of the MySQL Query Optimizer
- Optimizing Specific Types of Queries
- Query Optimizer Hints
- User-Defined Variables
Chapter 5 Advanced MySQL Features
- The MySQL Query Cache
- Storing Code Inside MySQL
- Prepared Statements
- User-Defined Functions
- Character Sets and Collations
- Full-Text Searching
- Foreign Key Constraints
- Merge Tables and Partitioning
- Distributed (XA) Transactions
Chapter 6 Optimizing Server Settings
- Configuration Basics
- General Tuning
- Tuning MySQL's I/O Behavior
- Tuning MySQL Concurrency
- Workload-Based Tuning
- Tuning Per-Connection Settings
Chapter 7 Operating System and Hardware Optimization
- What Limits MySQL's Performance?
- How to Select CPUs for MySQL
- Balancing Memory and Disk Resources
- Choosing Hardware for a Slave
- RAID Performance Optimization
- Storage Area Networks and Network-Attached Storage
- Using Multiple Disk Volumes
- Network Configuration
- Choosing an Operating System
- Choosing a Filesystem
- Operating System Status
Chapter 8 Replication
- Replication Overview
- Setting Up Replication
- Replication Under the Hood
- Replication Topologies
- Replication and Capacity Planning
- Replication Administration and Maintenance
- Replication Problems and Solutions
- How Fast Is Replication?
- The Future of MySQL Replication
Chapter 9 Scaling and High Availability
- Scaling MySQL
- Load Balancing
- High Availability
Chapter 10 Application-Level Optimization
- Application Performance Overview
- Web Server Issues
- Extending MySQL
- Alternatives to MySQL
Chapter 11 Backup and Recovery
- Considerations and Tradeoffs
- Managing and Backing Up Binary Logs
- Backing Up Data
- Recovering from a Backup
- Backup and Recovery Speed
- Backup Tools
- Scripting Backups
Chapter 12 Security
- Account Basics
- Operating System Security
- Network Security
- Data Encryption
- MySQL in a chrooted Environment
Chapter 13 MySQL Server Status
- System Variables
- SHOW STATUS
- SHOW INNODB STATUS
- SHOW PROCESSLIST
- SHOW MUTEX STATUS
- Replication Status
Chapter 14 Tools for High Performance
- Interface Tools
- Monitoring Tools
- Analysis Tools
- MySQL Utilities
- Sources of Further Information
AppendixTransferring Large Files
- Copying Files
- File Copy Benchmarks
- Invoking EXPLAIN
- The Columns in EXPLAIN
- Visual EXPLAIN
AppendixUsing Sphinx with MySQL
- Overview: A Typical Sphinx Search
- Why Use Sphinx?
- Architectural Overview
- Special Features
- Practical Implementation Examples
- Lock Waits at the Server Level
- Lock Waits in Storage Engines