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

Similar documents
MySQL Reference Architectures for Massively Scalable Web Infrastructure

MySQL & NoSQL: The Best of Both Worlds

MySQL Cluster for Real Time, HA Services

SharePoint 2010 Technical Case Study: Microsoft SharePoint Server 2010 Enterprise Intranet Collaboration Environment

Focus On: Oracle Database 11g Release 2

MySQL and Virtualization Guide

Building Highly Available and Scalable Real- Time Services with MySQL Cluster

Storage Optimization with Oracle Database 11g

Agenda. AWS Database Services Traditional vs AWS Data services model Amazon RDS Redshift DynamoDB ElastiCache

MySQL HA Solutions Selecting the best approach to protect access to your data

Achieving Horizontal Scalability. Alain Houf Sales Engineer

MySQL HA Solutions. Keeping it simple, kinda! By: Chris Schneider MySQL Architect Ning.com

<Insert Picture Here> MySQL Cluster What are we working on

SharePoint 2010 Technical Case Study: Microsoft SharePoint Server 2010 Social Environment

HCI: Hyper-Converged Infrastructure

Introduction to Database Services

Using MySQL in a Virtualized Environment. Scott Seighman Systems Engineer Sun Microsystems

Coherence & WebLogic Server integration with Coherence (Active Cache)

EMC Virtual Infrastructure for Microsoft Applications Data Center Solution

MariaDB MaxScale 2.0, basis for a Two-speed IT architecture

Private Cloud Database Consolidation Name, Title

<Insert Picture Here> Looking at Performance - What s new in MySQL Workbench 6.2

An Oracle Technical White Paper October Sizing Guide for Single Click Configurations of Oracle s MySQL on Sun Fire x86 Servers

Migrating to MySQL. Ted Wennmark, consultant and cluster specialist. Copyright 2014, Oracle and/or its its affiliates. All All rights reserved.

<Insert Picture Here> Oracle NoSQL Database A Distributed Key-Value Store

MySQL Cluster Web Scalability, % Availability. Andrew

<Insert Picture Here> Oracle Coherence & Extreme Transaction Processing (XTP)

MySQL CLUSTER. Low latency for a real-time user experience. 24 x 7 availability for continuous service uptime

2-4 April 2019 Taets Art and Event Park, Amsterdam CLICK TO KNOW MORE

MySQL CLUSTER. Low latency for a real-time user experience; 24 x 7 availability for continuous service uptime;

EMC Business Continuity for Microsoft Applications

<Insert Picture Here> Enterprise Data Management using Grid Technology

Performance comparisons and trade-offs for various MySQL replication schemes

Microsoft Office SharePoint Server 2007

MySQL High Availability. Michael Messina Senior Managing Consultant, Rolta-AdvizeX /

When, Where & Why to Use NoSQL?

Hitachi Converged Platform for Oracle

Whitepaper: Back Up SAP HANA and SUSE Linux Enterprise Server with SEP sesam. Copyright 2014 SEP

Implementing Oracle Database 12c s Heat Map and Automatic Data Optimization to optimize the database storage cost and performance

Welcome to Virtual Developer Day MySQL!

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

Jargons, Concepts, Scope and Systems. Key Value Stores, Document Stores, Extensible Record Stores. Overview of different scalable relational systems

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

SQL Server SQL Server 2008 and 2008 R2. SQL Server SQL Server 2014 Currently supporting all versions July 9, 2019 July 9, 2024

Netezza The Analytics Appliance

Oracle VM Template for MySQL Enterprise Edition

The Oracle Database Appliance I/O and Performance Architecture

Data Sheet: Storage Management Veritas Storage Foundation for Oracle RAC from Symantec Manageability and availability for Oracle RAC databases

WHITEPAPER. MemSQL Enterprise Feature List

EMC Celerra CNS with CLARiiON Storage

Improving Blade Economics with Virtualization

Building a Scalable Architecture for Web Apps - Part I (Lessons Directi)

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

<Insert Picture Here> Introducing Oracle WebLogic Server on Oracle Database Appliance

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

Drecom Accelerates Anytime, Anywhere Gaming

Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12

Veritas Storage Foundation from Symantec

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:

1 Dulcian, Inc., 2001 All rights reserved. Oracle9i Data Warehouse Review. Agenda

VEXATA FOR ORACLE. Digital Business Demands Performance and Scale. Solution Brief

1 Copyright 2011, Oracle and/or its affiliates. All rights reserved. reserved. Insert Information Protection Policy Classification from Slide 8

Scalability of web applications

Identifying Workloads for the Cloud

DATABASE SCALE WITHOUT LIMITS ON AWS

Accelerate Database Performance and Reduce Response Times in MongoDB Humongous Environments with the LSI Nytro MegaRAID Flash Accelerator Card

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

Isilon Scale Out NAS. Morten Petersen, Senior Systems Engineer, Isilon Division

CIB Session 12th NoSQL Databases Structures

Future-Proofing MySQL for the Worldwide Data Revolution

Design Patterns for Large- Scale Data Management. Robert Hodges OSCON 2013

10/29/2013. Program Agenda. The Database Trifecta: Simplified Management, Less Capacity, Better Performance

5 Fundamental Strategies for Building a Data-centered Data Center

MySQL for Database Administrators Ed 4

MySQL High Availability

Massive Scalability With InterSystems IRIS Data Platform

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

High Availability Overview Paper

EMC Backup and Recovery for Microsoft Exchange 2007

State of the Dolphin Developing new Apps in MySQL 8

IBM BigFix Lifecycle 9.5

IBM Information Server on Cloud

Unified Management for Virtual Storage

Principal Solutions Architect. Architecting in the Cloud

MySQL Architecture Design Patterns for Performance, Scalability, and Availability

DATA PROTECTION IN A ROBO ENVIRONMENT

VMware Virtual SAN. Technical Walkthrough. Massimiliano Moschini Brand Specialist VCI - vexpert VMware Inc. All rights reserved.

IBM TotalStorage Enterprise Storage Server Model 800

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

Veritas InfoScale Enterprise for Oracle Real Application Clusters (RAC)

Become a MongoDB Replica Set Expert in Under 5 Minutes:

MySQL in the Cloud: Creating a Market-Leading DBaaS

vsan Remote Office Deployment January 09, 2018

MySQL for Database Administrators Ed 3.1

MidoNet Scalability Report

Hybrid Backup & Disaster Recovery. Back Up SAP HANA and SUSE Linux Enterprise Server with SEP sesam

Life as a Service. Scalability and Other Aspects. Dino Esposito JetBrains ARCHITECT, TRAINER AND CONSULTANT

ScaleArc for SQL Server

Abstract. The Challenges. ESG Lab Review InterSystems IRIS Data Platform: A Unified, Efficient Data Platform for Fast Business Insight

Implementing Oracle database12c s Heat Map and Automatic Data Optimization to optimize the database storage cost and performance

Transcription:

<Insert Picture Here> MySQL Web Reference Architectures Building Massively Scalable Web Infrastructure Mario Beck (mario.beck@oracle.com) Principal Sales Consultant MySQL

Session Agenda Requirements for Innovating on the Web Reference Architectures Sizing & Topologies Enabling Technology Best Practices Server Sizing Value Added Components & Services Resources to Get Started <Insert Picture Here> 2

MySQL: The World s Leading On-Line Database Powering 9 of the top 10 most trafficked sites on the web* * http://www.alexa.com/topsites 3

Innovating on the Web Translating Business Requirements to Technology Implementation Top Challenges Fast Time to Market High availability High performance Cost-effectively scale to meet rapidly growing demands Open, customizable and repeatable Protection of customer data Low total cost of ownership Leverage Best Practices Accelerating Time to Market with greater agility Reducing cost, risk and complexity Eliminate expensive trial & error 4

MySQL Web Reference Architectures Repeatable best practices developed with leading web properties Recommended architectures & topologies 4 x Reference Architectures Small Medium Large Extra Large (Social Networking) 4 x common platform components User Authentication & Session Management Content Management ecommerce Analytics 5

Reference Architecture Sizing Social Network Small Medium Large Extra Large Queries/Second <500 <5,000 10,000+ 25,000+ Transactions/Second <100 <1,000 10,000+ 25,000+ Concurrent Read Users Concurrent Write Users <100 <5,000 10,000+ 25,000+ <10 <100 1,000+ 2,500+ Database Size Sessions <2 GB <10 GB 20+ GB 40+ GB ecommerce <2 GB <10 GB 20+ GB 40+ GB Analytics <10 GB <500 GB 1+ TB 2+ TB Content Management <10 GB <500 GB 1+ TB 2+ TB 6

Reference Architectures 7

Small: Web Reference Architecture Social Network Small Medium Large Extra Large Queries/Second <500 <5,000 10,000+ 25,000+ Transactions/Second <100 <1,000 10,000+ 25,000+ Concurrent Read Users Concurrent Write Users <100 <5,000 10,000+ 25,000+ <10 <100 1,000+ 2,500+ Database Size Sessions <2 GB <10 GB 20+ GB 40+ GB ecommerce <2 GB <10 GB 20+ GB 40+ GB Analytics <10 GB <500 GB 1+ TB 2+ TB Content Management <10 GB <500 GB 1+ TB 2+ TB 8

Small: Web Reference Architecture MySQL Master Single server supporting all workloads MySQL Enterprise Monitor MySQL Enterprise Backup Backup Slave 1 MySQL Replication Analytics Slave 2 Members/Authentication ecommerce Content Management Search Data replicated to slaves for back-up & analysis 1 st scaling step: move session management to dedicated MySQL Server Complex to tune Only deploy when future traffic growth is very limited 9

Medium: Web Reference Architecture Social Network Small Medium Large Extra Large Queries/Second <500 <5,000 10,000+ 25,000+ Transactions/Second <100 <1,000 10,000+ 25,000+ Concurrent Read Users Concurrent Write Users <100 <5,000 10,000+ 25,000+ <10 <100 1,000+ 2,500+ Database Size Sessions <2 GB <10 GB 20+ GB 40+ GB ecommerce <2 GB <10 GB 20+ GB 40+ GB Analytics <10 GB <500 GB 1+ TB 2+ TB Content Management <10 GB <500 GB 1+ TB 2+ TB 10

Medium: Web Reference Architecture Session Management Memcache / Application Servers ecommerce Content Management Memcache / Application Servers MySQL Master Heartbeat Mechanism MySQL Enterprise Monitor Analytics MySQL Master Slave 1 Slave 2 Slave 3 Slave N XOR MySQL Enterprise Backup Slave 1 Slave 2 Slave 3 11

Best Practices (1) Medium Web Reference Architecture Each component deployed onto dedicated server & storage infrastructure Deployed, managed and scaled independently Server ratio: 8 application servers to each MySQL Server More for PHP applications, less for Java Add more slaves as the application tier scales Memcached deployed in session & content management components Distributed memory caching layer Reads fulfilled from cache, relieving load on the source database servers 12

Best Practices (2) Medium Web Reference Architecture Content Management Each slave can handle around 3,000 concurrent users Each master can handle up to 30 slaves MySQL Replication for high availability Can include Heartbeat, depending on application failover requirements Meta-data & indexing of content assets managed by MySQL File System & physical storage manage content assets Distributed file system (i.e. MogileFS) High quality SAN (redundancy for HA) Distributed across local storage with OS level clustering for HA XOR 13

Best Practices (3) Medium Web Reference Architecture Session Management & ecommerce Both deployed onto InnoDB storage engine Session data maintained for up to 1 hour in a dedicated partition, rolling partitions used to delete aged data More users persist session data to provide greater personalization for repeat visitors Data is captured in Analytics Datababase MySQL Replication with Heartbeat for HA Configure semi-synchronous replication or OS-level DRBD for ecommerce If web traffic grows, move Session Management to MySQL Cluster HA and in-memory data management can reduce need for external HA mechanisms & memcached 14

Large: Web Reference Architecture Social Network Small Medium Large Extra Large Queries/Second <500 <5,000 10,000+ 25,000+ Transactions/Second <100 <1,000 10,000+ 25,000+ Concurrent Read Users Concurrent Write Users <100 <5,000 10,000+ 25,000+ <10 <100 1,000+ 2,500+ Database Size Sessions <2 GB <10 GB 20+ GB 40+ GB ecommerce <2 GB <10 GB 20+ GB 40+ GB Analytics <10 GB <500 GB 1+ TB 2+ TB Content Management <10 GB <500 GB 1+ TB 2+ TB 15

Large: Web Reference Architecture Session Management ecommerce Data Refinery Content Management Memcache / Application Servers MySQL Servers MySQL Servers MySQL Master Node Group 1 Node Group 2 Node Group 1 Node Group 2 Node 3 F1 F3 Node 3 F2 F4 Node 3 F1 F3 Node 3 F2 F4 Slave N Node 4 F1 F3 Node 4 F2 F4 Node 4 F1 F3 Node 4 F2 F4 Slave 6 Slave 7 Slave 8 Slave 9 Slave 10 MySQL Cluster Data Nodes MySQL Cluster Data Nodes Slave 1 Slave 2 Slave 3 Slave 4 Slave 5 MySQL Enterprise Monitor Analytics MySQL Master XOR MySQL Enterprise Backup Slave 1 Slave 2 Slave 3 Distributed Storage 16

Large: Web Reference Architecture Conceptual View Session Mgmt ecommerce Geographic Replication Session Mgmt Data Refinery ecommerce Content Mgmt Analytics Wien Data Center Data Refinery Sidney Data Center 17

Best Practices Large Web Reference Architecture Builds on best practices of Medium Web Ref Arch Dedicated infrastructure for each workload, MySQL Replication, Memcached, etc. Introduces Data Refinery Aggregate data across the web components Data cleansing Supports higher volume content management and analytics Builds Data Warehouse Dimensions Introduces MySQL Cluster Session Management and ecommerce 4 x Data Nodes support 6k page hits per second Each page hit generating 8 12 database operations 18

Extra Large: Social Network Reference Architecture Social Network Small Medium Large Extra Large Queries/Second <500 <5,000 10,000+ 25,000+ Transactions/Second <100 <1,000 10,000+ 25,000+ Concurrent Read Users Concurrent Write Users <100 <5,000 10,000+ 25,000+ <10 <100 1,000+ 2,500+ Database Size Sessions <2 GB <10 GB 20+ GB 40+ GB ecommerce <2 GB <10 GB 20+ GB 40+ GB Analytics <10 GB <500 GB 1+ TB 2+ TB Content Management <10 GB <500 GB 1+ TB 2+ TB 19

Extra Large: Social Network Central Databases Lookup App /Memcache Servers Shards Customers 1% 33% Data Refinery MySQL Enterprise Monitor MySQL Servers Node Group 1 Node Group 2 Node 3 Node 4 F1 F3 F1 F3 Node 3 Node 4 F2 F4 F2 F4 Slave 1 Slave 2 Customers 34% 66% Slave N Analytics MySQL Enterprise Backup MySQL Cluster Data Nodes MySQL Master Authentication MySQL Servers Slave 1 Slave 2 Slave N Node Group 1 Node Group 2 Customers 67% 100% Slave 1 Slave 2 Slave 3 Node 3 F1 F3 Node 3 F2 F4 Node 4 F1 F3 Node 4 F2 F4 MySQL Cluster Data Nodes Slave 1 Slave 2 Slave N 20

Best Practices Social Networking Reference Architecture Introduces Sharding Implemented at the application layer for scaling very high volume of writes Data divided into smaller sets, distributed across low-cost hardware Shards based on Hash of a single column ie. User ID Sharding is complex Recommend the Architecture and Design Consulting Engagement Sharding only used in a small percentage of workloads Most Web 2.0 workloads are still read-intensive, ie record is read before updates applied 21

Server Sizing 22

The Perfect MySQL Server MySQL 5.1: 4-8 Cores, MySQL 5.5: 16 24 cores for 5.5 x86_64-64 bit for more memory is important - Data/Memory ration 1/3 to 1/10 to good (rule of thumb) - The more the better Linux or Solaris best, Windows and Unix also fine. RAID 10 for most, RAID 5 OK if very read intensive Hardware RAID battery backed up cache critical! - More disks are always better! - 4+ recommended, 8-16 can increase IO performance if needed At least 2 x NICs for redundancy Slaves should be as powerful as the Master Oracle Sun X4170 for example 23

MySQL Cluster Hardware Selection - RAM & CPU Storage Layer (Data nodes) One data node can (7.0+) use 8 cores CPU: 2 x 4 core (Nehalem works really well). Faster CPU faster processing of messages. RAM: As much as you need RAM per Server = Data Size * Replicas * 1.25 / # Data Nodes (data redundancy + indexes drive overall memory requirement). Example: 10GB database * 2 replicas * 1.25 / 2 Data Nodes = 12.5GB of RAM per data node. SQL Layer (MySQL Servers) CPU: 2 16 cores RAM: Not as important 4GB enough (depends on connections and buffers) 24

Value-Added Components & Services 25

MySQL Commercial Editions Comprehensive offering of MySQL Database, Management tools, and Oracle Lifetime Support services Management MySQL Enterprise Backup MySQL Enterprise Monitor MySQL Cluster Manager Support Performance Monitoring/ Alerts Oracle Lifetime Support Query Analyzer Service packs MySQL Workbench Database Hot fixes 26

MySQL Services from Oracle MySQL Support Global, 24 x 7 support coverage MySQL Consulting Architecture and Design Performance Tuning High Availability Migration Remote DBAs MySQL Training DBAs & Developers of all levels Database and applications Developing Dynamic Web Applications 27

Summary Reference Architectures designed as a springboard to innovating on the web Based on insight from most successful web properties Best practices & repeatable technologies for Scale & HA Next Step: Engage with MySQL Consulting from Oracle 28

Resources MySQL Web Reference Architectures Whitepaper http://www.mysql.com/why-mysql/white-papers/mysql_wp_high-availability_webrefarchs.php Designing and Implementing Scalable Applications with MySQL & Memcached http://www.mysql.com/why-mysql/white-papers/mysql_wp_cluster_scalingwebservices.php MySQL Enterprise Whitepaper http://www.mysql.com/why-mysql/white-papers/mysql_wp_enterprise_ready.php MySQL Cluster for Web & ecommerce Applications, Whitepaper http://www.mysql.com/why-mysql/white-papers/mysql_wp_cluster_for_onlineapps.php 29

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