Choosing Hardware and Operating Systems for MySQL. Apr 15, 2009 O'Reilly MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc

Similar documents
Choosing Storage for MySQL. Peter Zaitsev CEO, Percona Inc Percona Live, Washington,DC 11 January 2012

Best Practices for MySQL Scalability. Peter Zaitsev, CEO, Percona Percona Technical Webinars May 1, 2013

SSD/Flash for Modern Databases. Peter Zaitsev, CEO, Percona November 1, 2014 Highload Moscow,Russia

SSD/Flash for Modern Databases. Peter Zaitsev, CEO, Percona October 08, 2014 Percona Technical Webinars

Practical MySQL Performance Optimization. Peter Zaitsev, CEO, Percona July 02, 2015 Percona Technical Webinars

Innodb Performance Optimization

InnoDB Scalability Limits. Peter Zaitsev, Vadim Tkachenko Percona Inc MySQL Users Conference 2008 April 14-17, 2008

Practical MySQL Performance Optimization. Peter Zaitsev, CEO, Percona July 20 th, 2016 Percona Technical Webinars

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Upgrading MySQL Best Practices. Apr 11-14, 2011 MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc

Linux Internals For MySQL DBAs. Ryan Lowe Marcos Albe Chris Giard Daniel Nichter Syam Purnam Emily Slocombe Le Peter Boros

Running MySQL on AWS. Michael Coburn Wednesday, April 15th, 2015

What is QES 2.1? Agenda. Supported Model. Live demo

How to Pick SQL Server Hardware

MySQL Performance Improvements

The Care and Feeding of a MySQL Database for Linux Adminstrators. Dave Stokes MySQL Community Manager

Virtualization and Performance

Performance improvements in MySQL 5.5

MySQL and SSD: Usage Patterns

Validating the NetApp Virtual Storage Tier in the Oracle Database Environment to Achieve Next-Generation Converged Infrastructures

Deploy a High-Performance Database Solution: Cisco UCS B420 M4 Blade Server with Fusion iomemory PX600 Using Oracle Database 12c

Optimizing MySQL performance with ZFS. Neelakanth Nadgir Allan Packer Sun Microsystems

Exadata Implementation Strategy

Database Hardware Selection Guidelines

The Role of Database Aware Flash Technologies in Accelerating Mission- Critical Databases

Storage Optimization with Oracle Database 11g

Storage Technologies - 3

Dell Fluid Data solutions. Powerful self-optimized enterprise storage. Dell Compellent Storage Center: Designed for business results

B. Using Data Guard Physical Standby to migrate from an 11.1 database to Exadata is beneficial because it allows you to adopt HCC during migration.

The Failure of SSDs. Adam Leventhal Senior Staff Engineer Sun Microsystems / Fishworks

Building a High IOPS Flash Array: A Software-Defined Approach

Feedback on BeeGFS. A Parallel File System for High Performance Computing

ZFS and MySQL on Linux, the Sweet Spots

Architecture and Design of MySQL Powered Applications. Peter Zaitsev CEO, Percona Highload Moscow, Russia 31 Oct 2014

Oracle Exadata X7. Uwe Kirchhoff Oracle ACS - Delivery Senior Principal Service Delivery Engineer

Hewlett Packard Enterprise HPE GEN10 PERSISTENT MEMORY PERFORMANCE THROUGH PERSISTENCE

MySQL In the Cloud. Migration, Best Practices, High Availability, Scaling. Peter Zaitsev CEO Los Angeles MySQL Meetup June 12 th, 2017.

Creating the Fastest Possible Backups Using VMware Consolidated Backup. A Design Blueprint

MySQL Performance Optimization and Troubleshooting with PMM. Peter Zaitsev, CEO, Percona

IST346. Data Storage

The Oracle Database Appliance I/O and Performance Architecture

Cisco Prime Home 6.X Minimum System Requirements: Standalone and High Availability

Cloud Storage with AWS: EFS vs EBS vs S3 AHMAD KARAWASH

HPC File Systems and Storage. Irena Johnson University of Notre Dame Center for Research Computing

Switching to Innodb from MyISAM. Matt Yonkovit Percona

Evaluating Cloud Storage Strategies. James Bottomley; CTO, Server Virtualization

Accelerating Microsoft SQL Server Performance With NVDIMM-N on Dell EMC PowerEdge R740

Memory-Based Cloud Architectures

MySQL Performance Optimization and Troubleshooting with PMM. Peter Zaitsev, CEO, Percona Percona Technical Webinars 9 May 2018

Design and Architecture of Dell Acceleration Appliances for Database (DAAD): A Practical Approach with High Availability Guaranteed

Compression in Open Source Databases. Peter Zaitsev April 20, 2016

Oracle Database 11g Direct NFS Client Oracle Open World - November 2007

Virtual Memory. Reading. Sections 5.4, 5.5, 5.6, 5.8, 5.10 (2) Lecture notes from MKP and S. Yalamanchili

Flash In the Data Center

Dell PowerEdge R910 SQL OLTP Virtualization Study Measuring Performance and Power Improvements of New Intel Xeon E7 Processors and Low-Voltage Memory

Intel Solid State Drive Data Center Family for PCIe* in Baidu s Data Center Environment

The Impact of SSD Selection on SQL Server Performance. Solution Brief. Understanding the differences in NVMe and SATA SSD throughput

The Btrfs Filesystem. Chris Mason

Implementing SQL Server 2016 with Microsoft Storage Spaces Direct on Dell EMC PowerEdge R730xd

NetApp AFF A300 Review

<Insert Picture Here> MySQL Web Reference Architectures Building Massively Scalable Web Infrastructure

Effective Use of CSAIL Storage

Optimizing the Data Center with an End to End Solutions Approach

THE SUMMARY. CLUSTER SERIES - pg. 3. ULTRA SERIES - pg. 5. EXTREME SERIES - pg. 9

Oracle Performance on M5000 with F20 Flash Cache. Benchmark Report September 2011

Chapter 10: Mass-Storage Systems

Advanced Architectures for Oracle Database on Amazon EC2

HIGH PERFORMANCE SANLESS CLUSTERING THE POWER OF FUSION-IO THE PROTECTION OF SIOS

Accelerating OLTP performance with NVMe SSDs Veronica Lagrange Changho Choi Vijay Balakrishnan

A Batch of Commit Batching Peter Geoghegan and Greg Smith 2ndQuadrant

All-Flash High-Performance SAN/NAS Solutions for Virtualization & OLTP

Chapter 10: Mass-Storage Systems. Operating System Concepts 9 th Edition

MySQL Database Scalability

1Z0-433

Copyright 2012 EMC Corporation. All rights reserved.

HP solutions for mission critical SQL Server Data Management environments

IBM FlashSystem. IBM FLiP Tool Wie viel schneller kann Ihr IBM i Power Server mit IBM FlashSystem 900 / V9000 Storage sein?

Database Architecture 2 & Storage. Instructor: Matei Zaharia cs245.stanford.edu

Forensic Toolkit System Specifications Guide

Deploying MySQL in Production Daniel Kowalewski Senior Technical Operations Engineer, Percona

Accelerate MySQL for Demanding OLAP and OLTP Use Case with Apache Ignite December 7, 2016

Using Synology SSD Technology to Enhance System Performance Synology Inc.

Resolving and Preventing MySQL Downtime

Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

Scaling Applications with Caching Sharding and Replication

Scaling Without Sharding. Baron Schwartz Percona Inc Surge 2010

Secrets of PostgreSQL Performance. Frank Wiles Revolution Systems

Aurora, RDS, or On-Prem, Which is right for you

NVMFS: A New File System Designed Specifically to Take Advantage of Nonvolatile Memory

Performance comparisons and trade-offs for various MySQL replication schemes

IBM Storwize V7000 Unified

Next-Generation Cloud Platform

Solaris Engineered Systems

Red Hat Enterprise 7 Beta File Systems

Storage. Hwansoo Han

Copyright 2012 EMC Corporation. All rights reserved.

HPE ProLiant Gen10. Franz Weberberger Presales Consultant Server

Accelerate Applications Using EqualLogic Arrays with directcache

Deploying MySQL in Production

Making Storage Smarter Jim Williams Martin K. Petersen

Transcription:

Choosing Hardware and Operating Systems for MySQL Apr 15, 2009 O'Reilly MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc

-2- We will speak about Choosing Hardware Choosing Operating System File System and Operating System tuning

-3- Hardware Platform CPU Memory Storage Network

-4- How to Chose Hardware Evaluation Available to larger customer Requires engineering effort and systematic testing Way to go for large hardware purchases Expert Advice Based Based on best practices and common sense Will not offer perfect fit but get close Something to do for smaller purchases

-5- General Considerations Avoid Hardware zoo Standardize on limited number of configurations Beware of Hardware Bugs Every server in your large order may be affected Do stress testing before putting in production Gradual hardware upgrade often good idea Your Team Experience Matters Hardware is typically commodity Details Support, Drivers, BIOS settings are different Consider both experience and bias

-6- Many Special Considerations Remote Management Support Space and Power usage Reliability Extensibility Equipment life time Requirements differ depending on your application

-7- Platform Choice X86-64 based all around Intel leading, though some AMD use Number and type of CPU support Type and Amount of Supported memory 18 slots (3*6 min) Large memory modules are very expensive Check how many of them can be used at the time CISCO Servers 48 Slots 384GB using 8GB DIMM slots. 2 Socket systems typically good enough.

-8- CPU Choice Workload Dependent CPU single core performance is very important Response time for your queries Replication is single thread Number of cores depends on workload MySQL Scalability Also varries Nehalem based CPUs Up to 6 cores, 12 threads (Westmere) Cache Size Idle cores are typical in CPU bound workloads

-9- Memory A lot of Performance problem is solved if data fits in memory. Many applications look to fit all data/working set in memory More Memory is More than saving IO A lot of CPU Is saved when data is in memory too How much cheap memory the box supports? Tradeoff Memory vs Fast Storage

-10- Storage Choices Directly Attach Storage Flash SAN NAS

-11- Hard Disk Basics Slow and Large 3.5 7200RPM SATA - 2TB+ Optimized for storage volume Fast and Small 2.5 10-15K RPM 300-600GB Optimized for IOPS OLTP databases mainly need IOPS Large Slow hard drives for Data Analytics; Archiving

-12- RAID Basics RAID0 Stripping typically bad idea RAID1 Mirroring. OS; Log Files RAID10 Good General choice RAID5 Read mostly workload. Beware recovery time' RAID6, RAID50, RAID-Z Being creatinve

-13- Directly Attached Storage Classical Choice for MySQL Simple and Inexpensive Good Latency for Hard Drives Drives as close to CPU as it gets Inexpensive RAID BBU Battery backed up Cache Very important for Transactional Performance Can have 24drives (more with shelfs) Typically more than enough for MySQL

-14- Flash SSD SATA/SAS Interface. 64-160G in Size 35K read Iops; 3.5K write IOPs less than 100µs latency PCI Express Card (Fusion IO) 320GB per card; 100K IOPS less than 50µs latency Often provides more IO than MySQL Can handle Space typically the issue Integrational Challenges Durability; Lifetime; OS&Database optimization

-15- SAN Enterprise Approach from Big Databases Fiber Channel and iscsi Data management issues High Availability Scenarios Expensive per size and IOS Can offer many IOs Though rarely as much as Flash Higher Latency than Directly Attached Storage Rarely a Performance Solution

-16- NAS Filesystem level mount NFS is typical Rare choice for Primary Database Can be used for Backup storage etc.

-17- Network 1Gb is the common baseline Beware of 100Mb cross connect in hosted envinronments Trunking/Bonding Improved Throughput and High Availability 10Gb Even better latency Can be pushing throughput in some cases Beware Operations bottleneck What if you need to restore 10 slaves from backup at the same time?

-18- Operating System Operating System, File System, IO Scheduler

-19- Operating System Choice Linux The most popular de facto standard. Solaris Picked up pace with Sun. ZFS with SSDs Windows Typical platform for web development Is NOT typical platform for large scale deployment FreeBSD etc Rarely used. Less experience, higher problem potential

-20- Linux Distribution CentOS/RHEL The Most popular May want to upgrade MySQL to recent version Ubunto/Debian A lot of successful experience too Fedora Be careful in production. Too frequent updates

-21-32bit or 64bit 32bit is Dead! At least on server side 64bit capable CPU Plus 64bit OS Plus 64bit Binaries Must have all 3 to enjoy 64bit advantages

-22- LVM Great choice on Linux Get some SAN features on Direct Attach Storage Online Backups for All Storage Engines Online Storage Extension Beware of snapshot overhead for write performance

-23- Filesystems EXT3 is common default Has inode level locking; slow deletes EXT4 Rather new. Does not scale too well XFS Good Choice on Linux ZFS Good for use with SSDs/Flash. Allows using Flash as a cache.

-24- IO Scheduler Performance is rather workload specific cat /sys/block/hda/queue/scheduler Names are not everything There are significant differences in schedulers over time beware of cfq Can cause serialization in certain workloads Noop Good choice with SSDs, Smart RAID Deadline Can be decent choice

-25- Mount Options Defaults are usually pretty good Changes for specific workloads Noatime Helps when there are a lot of tables, especially MyISAM

-26- Other Tunings Avoid running out of memory Having swap file is good. Swapping is bad echo 0 > /proc/sys/vm/swappiness innodb_flush_method=o_direct Avoid double buffering and IO pressure SELinux has performance impact Consider disabling it

-27- Thanks for Coming Questions? Followup? pz@percona.com Yes, we do MySQL and Web Scaling Consulting http://www.percona.com Check out our book Complete rewrite of 1 st edition Chosing Hardware and Operating System for MySQL