Database Hardware Selection Guidelines

Similar documents
Audit & Tune Deliverables

How To Run A Standby On Postgres (Postgres) On A Slave Server On A Standby Server On Your Computer (Mysql) On Your Server (Myscientific) (Mysberry) (

Maximizing SQL Server Virtualization Performance

Flash for Databases. September 22, 2015 Peter Zaitsev Percona

The Use of Flash in Large-Scale Storage Systems.

A Close Look at PCI Express SSDs. Shirish Jamthe Director of System Engineering Virident Systems, Inc. August 2011

Accelerating Server Storage Performance on Lenovo ThinkServer

Why Computers Are Getting Slower (and what we can do about it) Rik van Riel Sr. Software Engineer, Red Hat

Best Practices for Optimizing SQL Server Database Performance with the LSI WarpDrive Acceleration Card

Flash Performance in Storage Systems. Bill Moore Chief Engineer, Storage Systems Sun Microsystems

Outline. Failure Types

MySQL performance in a cloud. Mark Callaghan

An Overview of Flash Storage for Databases

NV-DIMM: Fastest Tier in Your Storage Strategy

OCZ s NVMe SSDs provide Lower Latency and Faster, more Consistent Performance

Taking Linux File and Storage Systems into the Future. Ric Wheeler Director Kernel File and Storage Team Red Hat, Incorporated

Benchmarking filesystems and PostgreSQL shared buffers

MAGENTO HOSTING Progressive Server Performance Improvements

PostgreSQL Backup Strategies

How To Test For Speed On Postgres (Postgres) On A Microsoft Powerbook On A 2.2 Computer (For Microsoft) On An 8Gb Hard Drive (For

Intel RAID Controllers

Using Synology SSD Technology to Enhance System Performance Synology Inc.

Storage Architectures for Big Data in the Cloud

DIABLO TECHNOLOGIES MEMORY CHANNEL STORAGE AND VMWARE VIRTUAL SAN : VDI ACCELERATION

Performance Report Modular RAID for PRIMERGY

Choosing Storage Systems

Maximizing Your Server Memory and Storage Investments with Windows Server 2012 R2

The Data Placement Challenge

Using Synology SSD Technology to Enhance System Performance. Based on DSM 5.2

Analysis of VDI Storage Performance During Bootstorm

Microsoft Exchange Server 2003 Deployment Considerations

How To Scale Myroster With Flash Memory From Hgst On A Flash Flash Flash Memory On A Slave Server

Agenda. Enterprise Application Performance Factors. Current form of Enterprise Applications. Factors to Application Performance.

LSI MegaRAID CacheCade Performance Evaluation in a Web Server Environment

FlashSoft Software from SanDisk : Accelerating Virtual Infrastructures

AirWave 7.7. Server Sizing Guide

The team that wrote this redbook Comments welcome Introduction p. 1 Three phases p. 1 Netfinity Performance Lab p. 2 IBM Center for Microsoft

The Technologies & Architectures. President, Demartek

Software-defined Storage Architecture for Analytics Computing

Memory Channel Storage ( M C S ) Demystified. Jerome McFarland

Performance Characteristics of VMFS and RDM VMware ESX Server 3.0.1

Parallel Replication for MySQL in 5 Minutes or Less

Cisco Prime Home 5.0 Minimum System Requirements (Standalone and High Availability)

Configuring Apache Derby for Performance and Durability Olav Sandstå

Amadeus SAS Specialists Prove Fusion iomemory a Superior Analysis Accelerator

Accelerating Enterprise Applications and Reducing TCO with SanDisk ZetaScale Software

Optimizing SQL Server Storage Performance with the PowerEdge R720

Using Synology SSD Technology to Enhance System Performance Synology Inc.

Enabling Technologies for Distributed Computing

Accelerate SQL Server 2014 AlwaysOn Availability Groups with Seagate. Nytro Flash Accelerator Cards

Solid State Storage in Massive Data Environments Erik Eyberg

Boost SQL Server Performance Buffer Pool Extensions & Delayed Durability

An Affordable Commodity Network Attached Storage Solution for Biological Research Environments.

SSD Performance Tips: Avoid The Write Cliff

Removing Performance Bottlenecks in Databases with Red Hat Enterprise Linux and Violin Memory Flash Storage Arrays. Red Hat Performance Engineering

Database Virtualization

AIX NFS Client Performance Improvements for Databases on NAS

HP Smart Array Controllers and basic RAID performance factors

Hardware/Software Guidelines

High-Performance SSD-Based RAID Storage. Madhukar Gunjan Chakhaiyar Product Test Architect

Advantages of Intel SSDs for Data Centres

POWER ALL GLOBAL FILE SYSTEM (PGFS)

Linux flash file systems JFFS2 vs UBIFS

ioscale: The Holy Grail for Hyperscale

Software-defined Storage at the Speed of Flash

NetApp FAS Hybrid Array Flash Efficiency. Silverton Consulting, Inc. StorInt Briefing

VMware Virtual SAN Hardware Guidance. TECHNICAL MARKETING DOCUMENTATION v 1.0

Outline. Database Management and Tuning. Overview. Hardware Tuning. Johann Gamper. Unit 12

Running Highly Available, High Performance Databases in a SAN-Free Environment

Performance Beyond PCI Express: Moving Storage to The Memory Bus A Technical Whitepaper

Oracle Database Scalability in VMware ESX VMware ESX 3.5

Enabling Technologies for Distributed and Cloud Computing

Filesystems Performance in GNU/Linux Multi-Disk Data Storage

FUSION iocontrol HYBRID STORAGE ARCHITECTURE 1

DEPLOYING HYBRID STORAGE POOLS With Sun Flash Technology and the Solaris ZFS File System. Roger Bitar, Sun Microsystems. Sun BluePrints Online

Disks and RAID. Profs. Bracy and Van Renesse. based on slides by Prof. Sirer

IOmark- VDI. HP HP ConvergedSystem 242- HC StoreVirtual Test Report: VDI- HC b Test Report Date: 27, April

Benchmarking FreeBSD. Ivan Voras

Outline. CS 245: Database System Principles. Notes 02: Hardware. Hardware DBMS Data Storage

Best Practices for Deploying SSDs in a Microsoft SQL Server 2008 OLTP Environment with Dell EqualLogic PS-Series Arrays

Oracle Database In-Memory The Next Big Thing

How to Choose your Red Hat Enterprise Linux Filesystem

Memory and SSD Optimization In Windows Server 2012 and SQL Server 2012

Price/performance Modern Memory Hierarchy

SSDs: Practical Ways to Accelerate Virtual Servers

Storage benchmarking cookbook

WITH A FUSION POWERED SQL SERVER 2014 IN-MEMORY OLTP DATABASE

Technology Insight Series

Non-Volatile Memory. Non-Volatile Memory & its use in Enterprise Applications. Contents

An Oracle White Paper May Exadata Smart Flash Cache and the Oracle Exadata Database Machine

All-Flash Storage Solution for SAP HANA:

3 Red Hat Enterprise Linux 6 Consolidation

Virtuoso and Database Scalability

DataStax Enterprise, powered by Apache Cassandra (TM)

SSDs: Practical Ways to Accelerate Virtual Servers

Transcription:

Database Hardware Selection Guidelines BRUCE MOMJIAN Database servers have hardware requirements different from other infrastructure software, specifically unique demands on I/O and memory. This presentation covers these differences and various I/O options and their benefits. Creative Commons Attribution License http://momjian.us/presentations Last updated: September, 2015 1 / 26

Outline CPU Multi-threading GHz Pipelining SMP NUMA Database Hardware, Selection Guidelines 2 / 26

Nope! CPU Multi-threading GHz Pipelining SMP NUMA Database Hardware, Selection Guidelines 3 / 26

Normal Server Priorities CPU Memory I/O Database Hardware, Selection Guidelines 4 / 26

Database Server Priorities CPU Memory I/O Database Hardware, Selection Guidelines 5 / 26

Why the Difference? Traditional servers are often CPU constrained because of: Network overhead (http) Text processing (email) Virtual machines (application servers) Application code Database Hardware, Selection Guidelines 6 / 26

Database Server s Unique Requirements Sequential scans of large tables Index scans causing random I/O Unpredictable query requirements Reporting These do not require major CPU resources. Database Hardware, Selection Guidelines 7 / 26

Durability Adds Even More I/O Requirements ACID (D = durability) requires committed transactions to be stored permanently. Few other server facilities must honor this requirement. Postgres Backend Postgres Backend Postgres Backend Recovery Query and Checkpoint Operations Transaction Durability PostgreSQL Shared Buffer Cache Write Ahead Log fsync Kernel Disk Buffer Cache fsync Disk Blocks Database Hardware, Selection Guidelines 8 / 26

Magnetic Disk I/O Stack PostgreSQL Shared Buffer Cache Write Ahead Log fsync Kernel Disk Buffer Cache fsync HBA/RAID Cache write back Disk Cache write through Magnetic Disk Database Hardware, Selection Guidelines 9 / 26

Magnetic Disk I/O Stack With BBU PostgreSQL Shared Buffer Cache Write Ahead Log fsync Kernel Disk Buffer Cache fsync write back B A T T HBA/RAID Cache Disk Cache Magnetic Disk Database Hardware, Selection Guidelines 10 / 26

Flash / NAND Storage I/O Stack PostgreSQL Shared Buffer Cache Write Ahead Log fsync Kernel Disk Buffer Cache fsync B A T T? HBA/RAID Cache write back B A T T? Disk Staging Cache Flash (NAND) Solid State Disk (SSD) Database Hardware, Selection Guidelines 11 / 26

DRAM Storage I/O Stack PostgreSQL Shared Buffer Cache Write Ahead Log fsync Kernel Disk Buffer Cache fsync B A T T? HBA/RAID Cache B A T T DRAM Solid State Disk (SSD) Database Hardware, Selection Guidelines 12 / 26

Write-Back vs. Write-Through Caching Write-back caching returns write success before passing data to lower storage layers Write-through caching waits for write acknowledgement from lower storage layers before returning success Database Hardware, Selection Guidelines 13 / 26

Caching Layers HBA/RAID cache behavior is usually controlled by the HBA/RAID firmware, often conditionally based on the health of the BBU Storage drive cache behavior can be set by utility commands or by using certain operating system calls Enterprise/SAS storage devices usually default to write-through, while consumer/sata devices usually default to write-back Database Hardware, Selection Guidelines 14 / 26

HBA/RAID CACHING HBA/RAID controllers often set storage drive caching mode to write-through With an HBA/RAID non-volatile cache, there is little advantage to using write-back mode on storage drives Database Hardware, Selection Guidelines 15 / 26

Magnetic Disk Selection More small spindles is better than fewer large spindles RAID 5/6 is too slow for database writes RAID 10 is popular make sure SMART reporting is fully supported SAS/SCSI disks are usually designed for enterprise workloads, unlike SATA/ATA reliability error reporting 24-hour operation heat vibration http://www.intel.com/support/motherboards/server/sb/cs-031831.htm Database Hardware, Selection Guidelines 16 / 26

SSDs Flash/NAND vs. DRAM Write staging area it is not just cache Running a NAND SSD in write-through mode can reduce its usable life because of increased write cycles Best for WAL and random I/O, e.g. indexes Set random_page_cost = 1.1 Set effective_io_concurrency = 256 Intel SSD 320 Series: http://blog.2ndquadrant.com/en/2011/04/intel-ssd-now-off-the-sherr-sh.html Database Hardware, Selection Guidelines 17 / 26

Filesystem Options xfs or ext4 over ext3 reduce file system logging, particularly for /pg_xlog directory disable access (atime) recording Database Hardware, Selection Guidelines 18 / 26

Battery-Backed Unit (BBU) Verify battery or super-capacitor (supercap) existence visually Typically lasts for 48-72 hours Some write the cache to local flash memory on power failure Detected battery/super-capacitor failure can disable write-back cache mode Requires failure monitoring Requires replacement Database Hardware, Selection Guidelines 19 / 26

Battery-Backed Unit (BBU) http://myauctionpics.com/sata-sas-raid-card-adaptec-4805-256-mb-cache-with-battery/gallery/634260433994368750/1 Database Hardware, Selection Guidelines 20 / 26

Battery-Backed Unit (BBU) Database Hardware, Selection Guidelines 21 / 26

Shared Storage SAN and NAS replace direct-attached storage (DAS) with shared storage Often used for easier storage management Shared I/O resource Databases often wait for I/O completion, meaning they have to contend with shared resource contention SAN serves block devices, NAS serves file systems Database Hardware, Selection Guidelines 22 / 26

RAM The more RAM, the better; this reduces I/O requirements Ideally, five minutes of your working set The more RAM, the more possibility of RAM failure Use ECC (Error Correction Codes) RAM detect errors correct errors report faulty memory cosmic radiation Database Hardware, Selection Guidelines 23 / 26

CPUs Parallel query allows a single session to use multiple CPUs Postgres does not support this Heavy use of server-side functions might generate significant CPU load CPUs can become a bottleneck if the entire database fits in RAM and the workload is read-only Database Hardware, Selection Guidelines 24 / 26

Not the Same Just because something has the same interface doesn t mean has the same capabilities. Compatible computer hardware is not all the same. Database Hardware, Selection Guidelines 25 / 26

Conclusion CPU Memory I/O http://momjian.us/presentations Database Hardware, Selection Guidelines 26 / 26