380 likes | 555 Views
Boost Oracle Performance with Virident FlashMAX. Mel Shum Senior Systems Engineer. Overview. Performance disparity in the datacenter Virident FlashMAX II PCIe enterprise f lash s torage Using enterprise f lash storage for Oracle Server side vs. s torage array flash
E N D
Boost Oracle Performance with Virident FlashMAX Mel Shum Senior Systems Engineer
Overview • Performance disparity in the datacenter • Virident FlashMAX II PCIe enterprise flash storage • Using enterprise flash storage for Oracle • Server side vs. storage array flash • FlashMAX Connect • vCache – Bridging legacy storage with flash • vShare- Flash with Oracle RAC • vHA – Flash in an HA environment
Widening Gap CPU vs. HDDs 200 180 160 140 120 100 80 60 40 20 0 Multi-Core CPU Performance Multicore CPU Disk Widening Performance Gap Single-Core CPU Performance HDD 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009
Solving the Data Delivery ProblemFlash Storage Fill the Performance Gap Ops / Second • Data closer to CPU provides low latency • Delivers the full power of Flash performance CPU 1,000,000,000’s • Standard drive form factor • Delivers limited performance DRAM 100,000,000’s Virident FlashMAX 100,000’s SATA Flash HDD 100’s Picoseconds Nanoseconds Microseconds Milliseconds Seconds Latency 4
Virident FlashMAXServer Attached PCIe Flash Storage • Key differentiators • Steady, predictable application performance (vs. peak) • Highest capacity in low-profile form factor • Enterprise class availability with Flash-aware hardware RAID • Highest VDI Density • Linear Scaling of OLTP and OLAP workloads • 0.5 TB to 33 TB of flash per server, up to 15 PCIe flash cards per server
It takes about 7 full racks of 15k rpm Hard Drives to achieve the same IOPS as 1 of our PCIe cards. Better Performance OR Lower Power & Cooling Costs Lower Replacement Costs
Entire Oracle Database on FlashMAX • Configuration • Place entire Oracle database on FlashMAX • Use FlashMAX instead of hard drives • Advantages • High performance in IOPS, throughput and lower latency • Much lower costs in hardware expenses, operations, power and cooling • Simpler installation and maintenance Oracle Database Ideal when entire database size fits into one or more FlashMAX
Partial Oracle Database on FlashMAX • Configuration • Place hot files on FlashMAX • Data files, redo logs, archive logs, temp tablespace, undo tablespace • Advantages • Significant increase in the number of transactions per second • Much lower costs in storage hardware expenses due to reduced over-provisioning • Simple deployment and extension of existing infrastructure Cold Data Hot Data Oracle Database SAN Ideal when entire database size does NOT fit into one or more FlashMAX devices
Database Creation • OLTP Order Management database with 50 Million orders, 100 Million order lines, and 50 Million customers. . • The Oracle database data insert and index creation time went down from approximately 5 hours to 1 hour, a 5X improvement over a networked storage, which has significant impact on the bring-up times for databases. • Autoextending files on the Oracle DB as well as creating new database files was 10,000% faster on the FlashMAXdevice.
Virident FlasMAX as Tier-0 storage • An OLTP workload was carried out with database files on (1) a midrange networked storage system, (2) a Direct Attached Storage (DAS) system, and (3) a Virident FlashMAX device. Oracle ASM was the data store for all files in all scenarios. • Sustainable transactions per second • 17X better than a networked storage system • 14X better than a DAS system • Average response time • 19X lower than a networked storage system and • 17X lower than a DAS system
Oracle Smart Flash Cache on FlashMAX • Configuration • Oracle’s Smart Flash Cache (optional component in Oracle 11gR2, Oracle Enterprise Linux) • 3rd party Caching engine for Linux or Windows based Oracle deployments • Advantages • Higher transactions per second • No disruption to existing infrastructure architecture • Lower infrastructure costs • Extends the life of legacy storage infrastructure SAN Shared Database Caching Software to place hot files automatically on FlashMAX devices
Oracle Smart Flash Cache on FlashMAX • Queries ran between 5X to almost 60X faster with the presence of FlashMAX • The number of physical reads dropped by 40% when using Flash Cache
Oracle Smart Flash Cache on FlashMAX When to use FlashMAX for Flash Cache • Consider adding the Flash Cache when the following are true: • The Buffer Pool Advisory section of your Automatic Workload Repository (AWR) report or STATSPACK report indicates that increasing the size of the buffer cache would be beneficial • DB file sequential read is a top wait event • I/O subsystem is the bottleneck • Certain key objects are accessed by queries most often • DBWR and foregrounds are I/O bottlenecked
Datacenter Storage Challenge Servers Accessing SAN Server-Side Flash vs. • Shared access • High availability • High latency • Low IOPS • Network bandwidth bottleneck • High costs • No shared access • No built-in high availability • Low latency with PCIe flash • High IOPS • Scalable aggregate bandwidth • Lower costs FlashMAX Connect closes the gap,adds shared access with vShare and HA to server-side flash
FlashMAX Connect FlashMAX Connect closes the gap with: • vCache to tier data from existing storage • vShare to share block device across multiple servers • vHA to synchronously replicate flash device to a separate server to eliminate Single Point of Failure
Virident FlashMAX Connect Key Value Differentiation Virident FlashMAX Connect • Key characteristics • Solid state • High performance • Read/Write asymmetry • Limited Endurance • Flash management overhead • hardware RAID • Key characteristics • Flash-aware software • Integrated with the vFAS flash-translation layer • Understands endurance and asymmetry characteristics of flash • What this means? • Any storage software layer designed needs to be flash aware • Else, will negatively impact flash performance and endurance • What this means? • Works in conjunction with vFAS software layer • Does not impact the flash performance and endurance Flash Storage
vCache - Accelerating Single Instance Oracle Database vCache • Key Benefits • Accelerate different kinds of database workloads • Improve the performance of legacy SAN storage with no change to storage architecture • Works with any major Linux distribution • Supports both write-through, write-back and write-around caching modes for OLTP applications SAN vCache places hot active data automatically
Database – vCache Local Architecture • Absorbs writes from Oracle, flushes to slower HDDs • Caches hot read indexes and data. Oracle Oracle Oracle
vCache – Enhanced performance for SAN/NAS/DAS Caching done at the vFAS layer Application Application Application Write Read Write Read Write Read SAN/NAS/DAS SAN/NAS/DAS SAN/NAS/DAS Write Back: Write Around: Write Through: • Writes directly to Flash, lazy writes to backend • Reads from Flash, unless read-miss • Writes only to backend storage, optimizing cache for reads • Reads from Flash, unless read-miss • Writes go to both Flash and backend storage • Reads from Flash unless read-miss
vCache comparison 250GB database, 64GB buffer pool, Dell R720, 2xE2667, HDD = RAID-0 of 4x10K 2.5” HDDs WB mode, with FlashMAX 550
vShare – High Speed Storage Networking Building Block NS3 NS2 NS1 • Allows for pooling of flash devices in a central high capacity server • Ability to share flash devices across multiple servers
Oracle RAC with Virident FlashMAXConnect • Highest performance all-flash storage for Oracle RAC • Lowest latency with PCIe flash and Remote Direct Memory Access over Infiniband • Proven Oracle Automatic Storage Management capabilities for data mirroring and management • 0.5 TB to 33 TB of flash per server, up to 15 PCIe flash cards per server • Linear scaling of storage performance when adding servers, up to 64 servers Active-Active Server Cluster with FlashMAX II and vShare Shared Flash Storage
Low-Latency PCIe Flash Storage for Oracle RAC with Virident FlashMAX Connect Network Topology App Server App Server App Server Ethernet RAC Node 1 RAC Node 2 RAC Node 3 vShare and Oracle private network InfiniBand
Low-Latency PCIe Flash Storage for Oracle RAC with Virident FlashMAX Connect Architecture Node 2 Node 1 Node 3 Database instances Database instances Database instances Oracle ASMNormal Redundancy (2-way mirroring) or High Redundancy (3-way mirroring) vShareLUN1 vShareLUN2 vSharevol. 1A vShareLUN1 vShareLUN2 vShareLUN1 vShareLUN2 vSharevol. 1A vShareLUN3 vShareLUN3 vShareLUN3 Card 1 Card 2 Card 3
Low-Latency PCIe Flash Storage for Oracle RAC with Virident FlashMAX Connect Performance Advantage • Highest performance for transactions and queries • Lowest latency with PCIe flash and Remote Direct Memory Access over Infiniband • Linear scaling of storage performance when adding servers, up to 64 servers • Uniformly high performance with all data on flash • No need to worry about cache sizing, data locality, cache warm-up period • Example of clustered database performance reported by Oracle CALIBRATE_IO: • 3-node RAC cluster • Two FlashMAX II 2200GB cards per node • CPU: Dual Xeon E5-2690 • max_iops = 1434268 • latency = 0 • max_mbps = 12310 Highest performance all-flash solution for Oracle RAC
vHA – Low Latency Synchronous Replication Primary Application Primary Application Fail-Over Node Infiniband Switch Synchronous Replication Acknowledgement Microsecond Fail-over
vHA – Low Latency High Availability Solution • High availability for server based FlashMAX PCIe flash storage • Data availability with no compromises to performance and latency • 2-way active/warm-spare config with back-to-back replication Customer Benefits Primary Secondary R W vHA vHA • High performance synchonous replication optimized for server based flash • Writes over low-latency RDMA capable connection • Full as well as incremental sync capabilities • Integration with Cluster managers vHA Features Sync Replication
vHA – Block level Synchronous Replication vHA Features Application • Synchronous replication at microsecond latencies over an RDMA network • Integration with standard cluster management tools • Performance indistinguishable from local FlashMAX II device • Automatic failover for service continuity • Support for multiple FlashMAX II devices and replicated stores in a single server Filesystem High Speed, Low-latency Sync Replication FlashMAX vFAS Flash Translation Layer
vHA Integration with Cluster Management Service Database Instance Highly available Database Instance Virident FlashMAX Connect vHA High speed, synchronous data replication Pacemaker Heartbeat CoroSync Cluster resource manager Linux Operating system, filesystems, etc.
vHA vs. Application Based Replication • Application based replication is typically asynchronous replication not suitable for high data availability • Should a server fail, there of often no guarantee that all transactions would have been replicated to the backup server • Negatively impacts application performance due to the significant overhead • Solutions like DRBD provide low performing synchronous replication • Has not been optimized for high IOPS and low latency devices such as Virident FlashMAX storage • vHA provides low-overhead, high performing synch replication • All writes are synchronously replicated between the master and warm standby with delays on the order of 5 to 10 microseconds vs. milliseconds with other solutions • When primary goes down, automatic failover time is on the order of few seconds
vHA vs. DRBD Performance Comparison Time in Seconds All replication was performed over the Infiniband connection between the two nodes. Dataset size was 2500W, and buffer pool was set to 65GB.
High Availability Oracle Database with vHAImplementation Details
Summary • FlashMAX II can eliminate the performance disparity in your datacenter while providing enterprise class flash storage. • Provide highest throughput and lowest latency by residing closest to the CPU and memory • FlashMAXConnect provides the software needed to transform FlashMAX II into a redundant shared SAN environment. • vCache – Bridging legacy storage with flash • vShare- Enabling flash with Oracle RAC • vHA – Enabling flash in an HA environment