SlideShare une entreprise Scribd logo
1  sur  28
Flexible transactional scale for the connected world.
Challenges to Scaling MySQL:
Scaling In and Down – The Costs
Dave A. Anselmi @AnselmiDave
Director of Product Management
Questions for Today
o Why and when is scaling down MySQL a good idea?
o What options are there to scale down MySQL?
o How do I figure out the costs of not scaling down?
o How does ClustrixDB scale-down differently than MySQL?
o How real is elastically scaling in ClustrixDB? What are the
catches?
PROPRIETARY & CONFIDENTIAL 2
MySQL Scaling is Usually 1-Way: Up/Out
The Typical Path to Scale…SCALE
(GROWTH/SUCCESS)
T I M E
LAMP Stack
AWS, Azure,
RAX, GCE, etc
Private Cloud
REACH LIMIT
App too slow;
Lost users
REACH LIMIT
(AGAIN)
App too slow;
Lost users
Migrate
to Bigger
Machine
• Read slaves, then
Sharding, etc:
• Add more hardware &
DBAs
• Refactor Code
/Hardwired App
 More Expensive
 Higher Risk
 Lost Revenue
ONGOING:
• Refactoring
Hardware
• Data Balancing
• Shard
Maintenance
REPEAT
Migrate
to Bigger
Machine
PROPRIETARY & CONFIDENTIAL 4
Why is Scaling Down/In Needed?
PROPRIETARY & CONFIDENTIAL 6
Scaling for Peak Workloads
Peak or Periodic Workloads Waste Resources
o Many workloads have some periodicity
o Maintaining capacity for peaks while undersubscribed
results in wasted resources
o This bugs the CFO… & affects DevOps budgets
PROPRIETARY & CONFIDENTIAL 7
Why Costs Should Matter to Tech People
o DevOps, DBAs, and data architects focus on product features and
technical feasibilities. “TCO ain’t our TLA” 
o However, at some point the ‘business side’ of your company has to
authorize purchase of the actual system(s).
o Whether it’s licensing, support, or cloud solutions (AWS, etc), all of
them have a price, and all of them have to be ‘justified.’
o Knowing how to frame your implementation recommendations into
pros/cons-based ‘business cases’ greatly affects your resources
requests:
– Either with your team lead/department head
– or the guys and gals in finance
PROPRIETARY & CONFIDENTIAL 8
Peak or Periodic Workloads by Sector
o E-Commerce
– Black Friday/Cyber Monday, Single’s Day, ‘Back to School,’
flash sales, etc
– 80% of Revenue in 2 months
– Provisioning > 3x capacity for 2 months
o Gaming
– New game released, new update
– Need ability to quickly scale either out (game servers
oversubscribed) or in (less gamers than estimated)
– Cannibalization: New game causes migration of previous
subscribed base from old game(s)
PROPRIETARY & CONFIDENTIAL 9
Peak or Periodic Workloads by Sector
o Social Media
– Some events are periodic/predictable (e.g. Awards Season,
movie releases, Hallmark holidays, TV shows)
– Some events much less so (current events, ‘hot trends,’ politics,
social outrage, etc)
o Sports
– Playoffs, Super Bowl, March Madness, etc
– Provisioning for these requires quickly available additional
resources
– After the main event, sports app utilization can fall severely,
leaving server arrays overprovisioned
PROPRIETARY & CONFIDENTIAL 10
How are MySQL workloads Scaled Down/In?
Scaling Down/In: The Work Required
Approach How Scale Up/Out Scale Down/In
Scale-Up Keep increasing the size
of the (single) database
server
• Console: Click for larger server, until
largest available
• EC2: Bring up larger (redundant)
server with backup, use replication to
catch up, then change application to
new DB endpoint
• Console: Click for smaller server. Works
well if max workload fits in DBaaS offering
• EC2: Bring up smaller (redundant) server
with backup, use replication to catch up,
then change application to new DB
endpoint
Console: DBaaS with shared storage. EC2: Instance, or bare metal
Scaling Down/In: The Work Required
Approach How Scale Up/Out Scale Down/In
Scale-Up Keep increasing the size
of the (single) database
server
• Console: Click for larger server, until
largest available
• EC2: Bring up larger (redundant)
server with backup, use replication to
catch up, then change application to
new DB endpoint
• Console: Click for smaller server. Works
well if max workload fits in DBaaS offering
• EC2: Bring up smaller (redundant) server
with backup, use replication to catch up,
then change application to new DB
endpoint
Read Slaves Add a ‘Slave’ read-
server(s) to ‘Master’
database server
• Console: Click to add ‘Read Replicas’
• EC2: Bring up redundant server(s)
with backup, & turn on replication
• Setup read/write fan-out in app or at
the proxy level
• Console: Click to remove ‘Read Replicas’
• EC2: Bring down read slave(s)
• Change read/write fan-out in app or at the
proxy level
Console: DBaaS with shared storage. EC2: Instance, or bare metal
Scaling Down/In: The Work Required
Approach How Scale Up/Out Scale Down/In
Scale-Up Keep increasing the size
of the (single) database
server
• Console: Click for larger server, until
largest available
• EC2: Bring up larger (redundant)
server with backup, use replication to
catch up, then change application to
new DB endpoint
• Console: Click for smaller server. Works
well if max workload fits in DBaaS offering
• EC2: Bring up smaller (redundant) server
with backup, use replication to catch up,
then change application to new DB
endpoint
Read Slaves Add a ‘Slave’ read-
server(s) to ‘Master’
database server
• Console: Click to add ‘Read Replicas’
• EC2: Bring up redundant server(s)
with backup, & turn on replication
• Setup read/write fan-out in app or at
the proxy level
• Console: Click to remove ‘Read Replicas’
• EC2: Bring down read slave(s)
• Change read/write fan-out in app or at the
proxy level
Master-Master Add additional
‘Master’(s) to ‘Master’
database server
• Console: No native support. Can
deploy larger instances, but must
setup master/master yourself
• EC2: Provision 2 new larger masters
via backup, use replication to catch
up, then change application to new
DB’s endpoints
• Console: No native support. Can deploy
smaller instances, but must setup
master/master yourself
• EC2: Provision 2 new smaller masters via
backup, use replication to catch up, then
change application to new DB’s endpoints
Console: DBaaS with shared storage. EC2: Instance, or bare metal
Scaling Down/In: The Work Required
Approach How Scale Up/Out Scale Down/In
Vertical
Sharding
Separating tables across
separate database
servers
• Console: No native support. Can
deploy additional instances, but must
setup table distribution yourself
• EC2: Provision additional instances via
backup, (manually) re-distribute tables
across shards, then change
application to include new shards
• Console: No native support. Can
deprovision instances, but must
consolidate tables yourself
• EC2: Consolidate tables from redundant
shards, deprovision redundant shards, and
change application/table mapping to match
new data distribution
Console: DBaaS with shared storage. EC2: Instance, or bare metal
Scaling Down/In: The Work Required
Approach How Scale Up/Out Scale Down/In
Vertical
Sharding
Separating tables across
separate database
servers
• Console: No native support. Can
deploy additional instances, but must
setup table distribution yourself
• EC2: Provision additional instances via
backup, (manually) re-distribute tables
across shards, then change
application to include new shards
• Console: No native support. Can
deprovision instances, but must
consolidate tables yourself
• EC2: Consolidate tables from redundant
shards, deprovision redundant shards, and
change application/table mapping to match
new data distribution
Horizontal
Sharding
Partitioning tables across
separate database
servers
• Console: No native support. Can
deploy additional instances, but must
setup partition distribution yourself
• EC2: Provision additional instances via
backup, (manually) re-distribute
partitions across shards, then change
application to include new shards
• Console: No native support. Can deploy
smaller instances, but must consolidate
partitions yourself
• EC2: Consolidate tables from redundant
shards, deprovision redundant shards, and
change application/table mapping to match
new data distribution
Console: DBaaS with shared storage. EC2: Instance, or bare metal
What are the Costs of NOT Scaling Down/In
o Idle Server/Overcapacity cost
– CAPEX budget wasted on unused resources
– OPEX budget probably OK: idle servers need less DevOps
o Low Overall Impact to DevOps Infra:
– “Everything’s Working” / “Not broken; Don’t Fix it”
– Low CAPEX budget means low budgets for replacements; so instead
cannibalize underutilized infra. “No Problem”
PROPRIETARY & CONFIDENTIAL 18
DevOps Impact #1 from Overprovisioning
1. 1-way scaling to handle peaks =>> Idle resources at non-peak,
often most of the time
2. Idle resources =>> Blown/Shrunk DevOps Budgets
1. Both CAPEX and OPEX
2. Finance team pays attention!
3. Blown/Shrunk DevOps Budgets =>> Hard to get Approval for
further capacity
4. No Budget =>> Can’t Scale for Growing Peaks
5. Higher risk of site slowdowns or outages at next peak(s)
PROPRIETARY & CONFIDENTIAL 19
DevOps Impact #2 from Overprovisioning
Black Friday/Cyber Monday Outage Highlights
o 2011: PC Mall, Newegg, Toys R’Us, Avon: 30+min outages. Walmart:
3hr outage
o 2012: Kohl’s: repeated multi-hour outages
o 2013: Urban Outfitters, Motorola: offline most of Cyber Monday
o 2014: Best Buy: 2hrs+ total outages. HP, Nike: site crashes
o 2015: Neiman Marcus: 4hr+ outage
o 2016: Old Navy, Macy’s: multi-hour outages
2016 Black Friday/Cyber Monday
Total Online Sales: $5.27B, 21.6% increase over 2015
PROPRIETARY & CONFIDENTIAL 20
Even Larger Business Impact of Outages
o Opportunity cost
– Each missed visitor was potentially a customer or referral
o Single Sale cost
– Each missed sale is a tangible missed $-value
o Customer Lifetime cost
– Unhappy customers who find sites they like better, won’t return
o Market/Brand cost
– All customers use social media: communication ‘force multiplier’
– “If you make customers unhappy in the physical world, they might each tell six
friends. If you make customers unhappy on the internet, they can each tell 6,000”. –
Jeff Bezos
– W. Edwards Deming said “5” and “20”…
– Call it “Customer Satisfaction at Web-Scale”
PROPRIETARY & CONFIDENTIAL 21
How ClustrixDB Scales-In
ClustrixDB:
PROPRIETARY & CONFIDENTIAL 23
ClustrixDB
ACID Compliant
Transactions & Joins
Optimized for OLTP
Built-In Fault Tolerance
Flex-Up and Flex-Down
Minimal DB Admin
• Write + Read Linear Scale-Out
• Click to Elastically Add/Remove Servers
• MySQL-Compatible
PROPRIETARY & CONFIDENTIAL 24
Adding + Removing Nodes: Scaling Out + In
o Easy and simple Flex Up (or Flex Down)
– Single minimal ‘database pause’
o All servers handle writes and reads
– Workload is spread across more servers
after Flex Up
o Data is automatically rebalanced across
the cluster
– Tables are online for reads and writes
– MVCC for lockless reads while writing
S1
S2
S3
S3
S4
S4
S5
S1
ClustrixDB
S2
S5
Review: Questions for Today
o Why and When is scaling down MySQL a good idea?
– Periodic workloads, Flash Sales, new Releases, etc
o What options are there to scale down MySQL?
– Single Node: Shrink single node
– Master/Slave: Remove read slaves, shrink master
– Master/Master: Drop and/or shrink a master
– Sharding: Drop and combine shards
o How do I figure out the costs of not scaling down?
– Cost 1: Undersubscribed resources
– Cost 2: Budget impact to ability to scale for peaks
PROPRIETARY & CONFIDENTIAL 25
Review: Questions for Today
o How does ClustrixDB scale-down differently than MySQL?
– Shared-nothing scale-out RDBMS clustered database
– Simply add or drop nodes to scale-out or scale-in
o How real is elastically scaling in ClustrixDB? What are the
catches?
– Add nodes via IP. Add IP to Load Balancer. No app changes.
– Remove nodes via IP. Remove IP from Load Balancer. No app
changes.
– Minor ‘database pause’ for multi-node ‘group change’
PROPRIETARY & CONFIDENTIAL 26
QUESTIONS?
THANK YOU!

Contenu connexe

Tendances

Writing Scalable Software in Java
Writing Scalable Software in JavaWriting Scalable Software in Java
Writing Scalable Software in JavaRuben Badaró
 
Scaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL ServersScaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL Serversheraflux
 
High Availability with MariaDB Enterprise
High Availability with MariaDB EnterpriseHigh Availability with MariaDB Enterprise
High Availability with MariaDB EnterpriseMariaDB Corporation
 
Multi-Cluster and Failover for Apache Kafka - Kafka Summit SF 17
Multi-Cluster and Failover for Apache Kafka - Kafka Summit SF 17Multi-Cluster and Failover for Apache Kafka - Kafka Summit SF 17
Multi-Cluster and Failover for Apache Kafka - Kafka Summit SF 17Gwen (Chen) Shapira
 
MariaDB on Docker
MariaDB on DockerMariaDB on Docker
MariaDB on DockerMariaDB plc
 
Scaling RDBMS on AWS- ClustrixDB @AWS Meetup 20160711
Scaling RDBMS on AWS- ClustrixDB @AWS Meetup 20160711Scaling RDBMS on AWS- ClustrixDB @AWS Meetup 20160711
Scaling RDBMS on AWS- ClustrixDB @AWS Meetup 20160711Dave Anselmi
 
Running MariaDB in multiple data centers
Running MariaDB in multiple data centersRunning MariaDB in multiple data centers
Running MariaDB in multiple data centersMariaDB plc
 
Aceleracion de aplicacione 2
Aceleracion de aplicacione 2Aceleracion de aplicacione 2
Aceleracion de aplicacione 2jfth
 
Building Event-Driven Systems with Apache Kafka
Building Event-Driven Systems with Apache KafkaBuilding Event-Driven Systems with Apache Kafka
Building Event-Driven Systems with Apache KafkaBrian Ritchie
 
Introduction to Apache Kafka
Introduction to Apache KafkaIntroduction to Apache Kafka
Introduction to Apache KafkaJeff Holoman
 
Webinar slides: Managing MySQL Replication for High Availability
Webinar slides: Managing MySQL Replication for High AvailabilityWebinar slides: Managing MySQL Replication for High Availability
Webinar slides: Managing MySQL Replication for High AvailabilitySeveralnines
 
Right-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual MachineRight-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual Machineheraflux
 
Client Drivers and Cassandra, the Right Way
Client Drivers and Cassandra, the Right WayClient Drivers and Cassandra, the Right Way
Client Drivers and Cassandra, the Right WayDataStax Academy
 
Become a MySQL DBA: performing live database upgrades - webinar slides
Become a MySQL DBA: performing live database upgrades - webinar slidesBecome a MySQL DBA: performing live database upgrades - webinar slides
Become a MySQL DBA: performing live database upgrades - webinar slidesSeveralnines
 
2015 GHC Presentation - High Availability and High Frequency Big Data Analytics
2015 GHC Presentation - High Availability and High Frequency Big Data Analytics2015 GHC Presentation - High Availability and High Frequency Big Data Analytics
2015 GHC Presentation - High Availability and High Frequency Big Data AnalyticsEsther Kundin
 
NoSQL A brief look at Apache Cassandra Distributed Database
NoSQL A brief look at Apache Cassandra Distributed DatabaseNoSQL A brief look at Apache Cassandra Distributed Database
NoSQL A brief look at Apache Cassandra Distributed DatabaseJoe Alex
 
2015 deploying flash in the data center
2015 deploying flash in the data center2015 deploying flash in the data center
2015 deploying flash in the data centerHoward Marks
 
Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...
Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...
Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...Continuent
 
Introduction to Kafka and Zookeeper
Introduction to Kafka and ZookeeperIntroduction to Kafka and Zookeeper
Introduction to Kafka and ZookeeperRahul Jain
 
Real time Messages at Scale with Apache Kafka and Couchbase
Real time Messages at Scale with Apache Kafka and CouchbaseReal time Messages at Scale with Apache Kafka and Couchbase
Real time Messages at Scale with Apache Kafka and CouchbaseWill Gardella
 

Tendances (20)

Writing Scalable Software in Java
Writing Scalable Software in JavaWriting Scalable Software in Java
Writing Scalable Software in Java
 
Scaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL ServersScaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL Servers
 
High Availability with MariaDB Enterprise
High Availability with MariaDB EnterpriseHigh Availability with MariaDB Enterprise
High Availability with MariaDB Enterprise
 
Multi-Cluster and Failover for Apache Kafka - Kafka Summit SF 17
Multi-Cluster and Failover for Apache Kafka - Kafka Summit SF 17Multi-Cluster and Failover for Apache Kafka - Kafka Summit SF 17
Multi-Cluster and Failover for Apache Kafka - Kafka Summit SF 17
 
MariaDB on Docker
MariaDB on DockerMariaDB on Docker
MariaDB on Docker
 
Scaling RDBMS on AWS- ClustrixDB @AWS Meetup 20160711
Scaling RDBMS on AWS- ClustrixDB @AWS Meetup 20160711Scaling RDBMS on AWS- ClustrixDB @AWS Meetup 20160711
Scaling RDBMS on AWS- ClustrixDB @AWS Meetup 20160711
 
Running MariaDB in multiple data centers
Running MariaDB in multiple data centersRunning MariaDB in multiple data centers
Running MariaDB in multiple data centers
 
Aceleracion de aplicacione 2
Aceleracion de aplicacione 2Aceleracion de aplicacione 2
Aceleracion de aplicacione 2
 
Building Event-Driven Systems with Apache Kafka
Building Event-Driven Systems with Apache KafkaBuilding Event-Driven Systems with Apache Kafka
Building Event-Driven Systems with Apache Kafka
 
Introduction to Apache Kafka
Introduction to Apache KafkaIntroduction to Apache Kafka
Introduction to Apache Kafka
 
Webinar slides: Managing MySQL Replication for High Availability
Webinar slides: Managing MySQL Replication for High AvailabilityWebinar slides: Managing MySQL Replication for High Availability
Webinar slides: Managing MySQL Replication for High Availability
 
Right-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual MachineRight-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual Machine
 
Client Drivers and Cassandra, the Right Way
Client Drivers and Cassandra, the Right WayClient Drivers and Cassandra, the Right Way
Client Drivers and Cassandra, the Right Way
 
Become a MySQL DBA: performing live database upgrades - webinar slides
Become a MySQL DBA: performing live database upgrades - webinar slidesBecome a MySQL DBA: performing live database upgrades - webinar slides
Become a MySQL DBA: performing live database upgrades - webinar slides
 
2015 GHC Presentation - High Availability and High Frequency Big Data Analytics
2015 GHC Presentation - High Availability and High Frequency Big Data Analytics2015 GHC Presentation - High Availability and High Frequency Big Data Analytics
2015 GHC Presentation - High Availability and High Frequency Big Data Analytics
 
NoSQL A brief look at Apache Cassandra Distributed Database
NoSQL A brief look at Apache Cassandra Distributed DatabaseNoSQL A brief look at Apache Cassandra Distributed Database
NoSQL A brief look at Apache Cassandra Distributed Database
 
2015 deploying flash in the data center
2015 deploying flash in the data center2015 deploying flash in the data center
2015 deploying flash in the data center
 
Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...
Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...
Webinar Slides: High Noon at AWS — Amazon RDS vs. Tungsten Clustering with My...
 
Introduction to Kafka and Zookeeper
Introduction to Kafka and ZookeeperIntroduction to Kafka and Zookeeper
Introduction to Kafka and Zookeeper
 
Real time Messages at Scale with Apache Kafka and Couchbase
Real time Messages at Scale with Apache Kafka and CouchbaseReal time Messages at Scale with Apache Kafka and Couchbase
Real time Messages at Scale with Apache Kafka and Couchbase
 

Similaire à Tech Talk Series, Part 3: Why is your CFO right to demand you scale down MySQL?

Scaling Your Web Application
Scaling Your Web ApplicationScaling Your Web Application
Scaling Your Web ApplicationKetan Deshmukh
 
Idi2017 - Cloud DB: strengths and weaknesses
Idi2017 - Cloud DB: strengths and weaknessesIdi2017 - Cloud DB: strengths and weaknesses
Idi2017 - Cloud DB: strengths and weaknessesLinuxaria.com
 
Denver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierDenver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierKellyn Pot'Vin-Gorman
 
MySQL infra readiness-for-peak-sale-events - Kabilesh PR (Co-Founder of Mydbops)
MySQL infra readiness-for-peak-sale-events - Kabilesh PR (Co-Founder of Mydbops)MySQL infra readiness-for-peak-sale-events - Kabilesh PR (Co-Founder of Mydbops)
MySQL infra readiness-for-peak-sale-events - Kabilesh PR (Co-Founder of Mydbops)Mydbops
 
EEDC 2010. Scaling Web Applications
EEDC 2010. Scaling Web ApplicationsEEDC 2010. Scaling Web Applications
EEDC 2010. Scaling Web ApplicationsExpertos en TI
 
Vertical vs Horizontal Scaling
Vertical vs Horizontal Scaling Vertical vs Horizontal Scaling
Vertical vs Horizontal Scaling Mark Myers
 
Petabytes and Nanoseconds
Petabytes and NanosecondsPetabytes and Nanoseconds
Petabytes and NanosecondsRobert Greiner
 
Sample Solution Blueprint
Sample Solution BlueprintSample Solution Blueprint
Sample Solution BlueprintMike Alvarado
 
Scaling a SaaS backend with PostgreSQL - A case study
Scaling a SaaS backend with PostgreSQL - A case studyScaling a SaaS backend with PostgreSQL - A case study
Scaling a SaaS backend with PostgreSQL - A case studyOliver Seemann
 
Database Virtualization: The Next Wave of Big Data
Database Virtualization: The Next Wave of Big DataDatabase Virtualization: The Next Wave of Big Data
Database Virtualization: The Next Wave of Big Dataexponential-inc
 
Web20expo Scalable Web Arch
Web20expo Scalable Web ArchWeb20expo Scalable Web Arch
Web20expo Scalable Web Archroyans
 
Web20expo Scalable Web Arch
Web20expo Scalable Web ArchWeb20expo Scalable Web Arch
Web20expo Scalable Web Archguest18a0f1
 
Web20expo Scalable Web Arch
Web20expo Scalable Web ArchWeb20expo Scalable Web Arch
Web20expo Scalable Web Archmclee
 
Amazon Redshift in Action: Enterprise, Big Data, and SaaS Use Cases (DAT205) ...
Amazon Redshift in Action: Enterprise, Big Data, and SaaS Use Cases (DAT205) ...Amazon Redshift in Action: Enterprise, Big Data, and SaaS Use Cases (DAT205) ...
Amazon Redshift in Action: Enterprise, Big Data, and SaaS Use Cases (DAT205) ...Amazon Web Services
 
Database highload solutions
Database highload solutionsDatabase highload solutions
Database highload solutionslarest
 
Conquer Reporting by Scaling Out SQL Server
Conquer Reporting by Scaling Out SQL ServerConquer Reporting by Scaling Out SQL Server
Conquer Reporting by Scaling Out SQL Serverasammartino
 
Divide & Conquer Reporting By Scaling Out with Replication
Divide & Conquer Reporting By Scaling Out with ReplicationDivide & Conquer Reporting By Scaling Out with Replication
Divide & Conquer Reporting By Scaling Out with Replicationasammartino
 
Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...
Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...
Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...Andrew Miller
 
Database highload solutions
Database highload solutionsDatabase highload solutions
Database highload solutionslarest
 

Similaire à Tech Talk Series, Part 3: Why is your CFO right to demand you scale down MySQL? (20)

Scaling Your Web Application
Scaling Your Web ApplicationScaling Your Web Application
Scaling Your Web Application
 
SQL Saturday San Diego
SQL Saturday San DiegoSQL Saturday San Diego
SQL Saturday San Diego
 
Idi2017 - Cloud DB: strengths and weaknesses
Idi2017 - Cloud DB: strengths and weaknessesIdi2017 - Cloud DB: strengths and weaknesses
Idi2017 - Cloud DB: strengths and weaknesses
 
Denver SQL Saturday The Next Frontier
Denver SQL Saturday The Next FrontierDenver SQL Saturday The Next Frontier
Denver SQL Saturday The Next Frontier
 
MySQL infra readiness-for-peak-sale-events - Kabilesh PR (Co-Founder of Mydbops)
MySQL infra readiness-for-peak-sale-events - Kabilesh PR (Co-Founder of Mydbops)MySQL infra readiness-for-peak-sale-events - Kabilesh PR (Co-Founder of Mydbops)
MySQL infra readiness-for-peak-sale-events - Kabilesh PR (Co-Founder of Mydbops)
 
EEDC 2010. Scaling Web Applications
EEDC 2010. Scaling Web ApplicationsEEDC 2010. Scaling Web Applications
EEDC 2010. Scaling Web Applications
 
Vertical vs Horizontal Scaling
Vertical vs Horizontal Scaling Vertical vs Horizontal Scaling
Vertical vs Horizontal Scaling
 
Petabytes and Nanoseconds
Petabytes and NanosecondsPetabytes and Nanoseconds
Petabytes and Nanoseconds
 
Sample Solution Blueprint
Sample Solution BlueprintSample Solution Blueprint
Sample Solution Blueprint
 
Scaling a SaaS backend with PostgreSQL - A case study
Scaling a SaaS backend with PostgreSQL - A case studyScaling a SaaS backend with PostgreSQL - A case study
Scaling a SaaS backend with PostgreSQL - A case study
 
Database Virtualization: The Next Wave of Big Data
Database Virtualization: The Next Wave of Big DataDatabase Virtualization: The Next Wave of Big Data
Database Virtualization: The Next Wave of Big Data
 
Web20expo Scalable Web Arch
Web20expo Scalable Web ArchWeb20expo Scalable Web Arch
Web20expo Scalable Web Arch
 
Web20expo Scalable Web Arch
Web20expo Scalable Web ArchWeb20expo Scalable Web Arch
Web20expo Scalable Web Arch
 
Web20expo Scalable Web Arch
Web20expo Scalable Web ArchWeb20expo Scalable Web Arch
Web20expo Scalable Web Arch
 
Amazon Redshift in Action: Enterprise, Big Data, and SaaS Use Cases (DAT205) ...
Amazon Redshift in Action: Enterprise, Big Data, and SaaS Use Cases (DAT205) ...Amazon Redshift in Action: Enterprise, Big Data, and SaaS Use Cases (DAT205) ...
Amazon Redshift in Action: Enterprise, Big Data, and SaaS Use Cases (DAT205) ...
 
Database highload solutions
Database highload solutionsDatabase highload solutions
Database highload solutions
 
Conquer Reporting by Scaling Out SQL Server
Conquer Reporting by Scaling Out SQL ServerConquer Reporting by Scaling Out SQL Server
Conquer Reporting by Scaling Out SQL Server
 
Divide & Conquer Reporting By Scaling Out with Replication
Divide & Conquer Reporting By Scaling Out with ReplicationDivide & Conquer Reporting By Scaling Out with Replication
Divide & Conquer Reporting By Scaling Out with Replication
 
Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...
Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...
Varrow Q4 Lunch & Learn Presentation - Virtualizing Business Critical Applica...
 
Database highload solutions
Database highload solutionsDatabase highload solutions
Database highload solutions
 

Plus de Clustrix

Achieve new levels of performance for Magento e-commerce sites.
Achieve new levels of performance for Magento e-commerce sites.Achieve new levels of performance for Magento e-commerce sites.
Achieve new levels of performance for Magento e-commerce sites.Clustrix
 
ClustrixDB 7.5 Announcement
ClustrixDB 7.5 AnnouncementClustrixDB 7.5 Announcement
ClustrixDB 7.5 AnnouncementClustrix
 
Moving an E-commerce Site to AWS. A Case Study
Moving an  E-commerce Site to AWS. A Case StudyMoving an  E-commerce Site to AWS. A Case Study
Moving an E-commerce Site to AWS. A Case StudyClustrix
 
Beyond Aurora. Scale-out SQL databases for AWS
Beyond Aurora. Scale-out SQL databases for AWS Beyond Aurora. Scale-out SQL databases for AWS
Beyond Aurora. Scale-out SQL databases for AWS Clustrix
 
Benchmark Showdown: Which Relational Database is the Fastest on AWS?
Benchmark Showdown: Which Relational Database is the Fastest on AWS?Benchmark Showdown: Which Relational Database is the Fastest on AWS?
Benchmark Showdown: Which Relational Database is the Fastest on AWS?Clustrix
 
Benchmark: Beyond Aurora. Scale-out SQL databases for AWS.
Benchmark: Beyond Aurora. Scale-out SQL databases for AWS.Benchmark: Beyond Aurora. Scale-out SQL databases for AWS.
Benchmark: Beyond Aurora. Scale-out SQL databases for AWS.Clustrix
 
Database Architecture & Scaling Strategies, in the Cloud & on the Rack
Database Architecture & Scaling Strategies, in the Cloud & on the Rack Database Architecture & Scaling Strategies, in the Cloud & on the Rack
Database Architecture & Scaling Strategies, in the Cloud & on the Rack Clustrix
 
Scaling Techniques to Increase Magento Capacity
Scaling Techniques to Increase Magento CapacityScaling Techniques to Increase Magento Capacity
Scaling Techniques to Increase Magento CapacityClustrix
 
Supersizing Magento
Supersizing MagentoSupersizing Magento
Supersizing MagentoClustrix
 
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site GrowthWhy Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site GrowthClustrix
 
E-Commerce Success is a Balancing Act. Ensure Success with ClustrixDB.
E-Commerce Success is a Balancing Act. Ensure Success with ClustrixDB.E-Commerce Success is a Balancing Act. Ensure Success with ClustrixDB.
E-Commerce Success is a Balancing Act. Ensure Success with ClustrixDB.Clustrix
 
Clustrix Database Overview
Clustrix Database OverviewClustrix Database Overview
Clustrix Database OverviewClustrix
 
Clustrix Database Percona Ruby on Rails benchmark
Clustrix Database Percona Ruby on Rails benchmarkClustrix Database Percona Ruby on Rails benchmark
Clustrix Database Percona Ruby on Rails benchmarkClustrix
 

Plus de Clustrix (13)

Achieve new levels of performance for Magento e-commerce sites.
Achieve new levels of performance for Magento e-commerce sites.Achieve new levels of performance for Magento e-commerce sites.
Achieve new levels of performance for Magento e-commerce sites.
 
ClustrixDB 7.5 Announcement
ClustrixDB 7.5 AnnouncementClustrixDB 7.5 Announcement
ClustrixDB 7.5 Announcement
 
Moving an E-commerce Site to AWS. A Case Study
Moving an  E-commerce Site to AWS. A Case StudyMoving an  E-commerce Site to AWS. A Case Study
Moving an E-commerce Site to AWS. A Case Study
 
Beyond Aurora. Scale-out SQL databases for AWS
Beyond Aurora. Scale-out SQL databases for AWS Beyond Aurora. Scale-out SQL databases for AWS
Beyond Aurora. Scale-out SQL databases for AWS
 
Benchmark Showdown: Which Relational Database is the Fastest on AWS?
Benchmark Showdown: Which Relational Database is the Fastest on AWS?Benchmark Showdown: Which Relational Database is the Fastest on AWS?
Benchmark Showdown: Which Relational Database is the Fastest on AWS?
 
Benchmark: Beyond Aurora. Scale-out SQL databases for AWS.
Benchmark: Beyond Aurora. Scale-out SQL databases for AWS.Benchmark: Beyond Aurora. Scale-out SQL databases for AWS.
Benchmark: Beyond Aurora. Scale-out SQL databases for AWS.
 
Database Architecture & Scaling Strategies, in the Cloud & on the Rack
Database Architecture & Scaling Strategies, in the Cloud & on the Rack Database Architecture & Scaling Strategies, in the Cloud & on the Rack
Database Architecture & Scaling Strategies, in the Cloud & on the Rack
 
Scaling Techniques to Increase Magento Capacity
Scaling Techniques to Increase Magento CapacityScaling Techniques to Increase Magento Capacity
Scaling Techniques to Increase Magento Capacity
 
Supersizing Magento
Supersizing MagentoSupersizing Magento
Supersizing Magento
 
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site GrowthWhy Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
Why Traditional Databases Fail so Miserably to Scale with E-Commerce Site Growth
 
E-Commerce Success is a Balancing Act. Ensure Success with ClustrixDB.
E-Commerce Success is a Balancing Act. Ensure Success with ClustrixDB.E-Commerce Success is a Balancing Act. Ensure Success with ClustrixDB.
E-Commerce Success is a Balancing Act. Ensure Success with ClustrixDB.
 
Clustrix Database Overview
Clustrix Database OverviewClustrix Database Overview
Clustrix Database Overview
 
Clustrix Database Percona Ruby on Rails benchmark
Clustrix Database Percona Ruby on Rails benchmarkClustrix Database Percona Ruby on Rails benchmark
Clustrix Database Percona Ruby on Rails benchmark
 

Dernier

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 

Dernier (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

Tech Talk Series, Part 3: Why is your CFO right to demand you scale down MySQL?

  • 1. Flexible transactional scale for the connected world. Challenges to Scaling MySQL: Scaling In and Down – The Costs Dave A. Anselmi @AnselmiDave Director of Product Management
  • 2. Questions for Today o Why and when is scaling down MySQL a good idea? o What options are there to scale down MySQL? o How do I figure out the costs of not scaling down? o How does ClustrixDB scale-down differently than MySQL? o How real is elastically scaling in ClustrixDB? What are the catches? PROPRIETARY & CONFIDENTIAL 2
  • 3. MySQL Scaling is Usually 1-Way: Up/Out
  • 4. The Typical Path to Scale…SCALE (GROWTH/SUCCESS) T I M E LAMP Stack AWS, Azure, RAX, GCE, etc Private Cloud REACH LIMIT App too slow; Lost users REACH LIMIT (AGAIN) App too slow; Lost users Migrate to Bigger Machine • Read slaves, then Sharding, etc: • Add more hardware & DBAs • Refactor Code /Hardwired App  More Expensive  Higher Risk  Lost Revenue ONGOING: • Refactoring Hardware • Data Balancing • Shard Maintenance REPEAT Migrate to Bigger Machine PROPRIETARY & CONFIDENTIAL 4
  • 5. Why is Scaling Down/In Needed?
  • 6. PROPRIETARY & CONFIDENTIAL 6 Scaling for Peak Workloads
  • 7. Peak or Periodic Workloads Waste Resources o Many workloads have some periodicity o Maintaining capacity for peaks while undersubscribed results in wasted resources o This bugs the CFO… & affects DevOps budgets PROPRIETARY & CONFIDENTIAL 7
  • 8. Why Costs Should Matter to Tech People o DevOps, DBAs, and data architects focus on product features and technical feasibilities. “TCO ain’t our TLA”  o However, at some point the ‘business side’ of your company has to authorize purchase of the actual system(s). o Whether it’s licensing, support, or cloud solutions (AWS, etc), all of them have a price, and all of them have to be ‘justified.’ o Knowing how to frame your implementation recommendations into pros/cons-based ‘business cases’ greatly affects your resources requests: – Either with your team lead/department head – or the guys and gals in finance PROPRIETARY & CONFIDENTIAL 8
  • 9. Peak or Periodic Workloads by Sector o E-Commerce – Black Friday/Cyber Monday, Single’s Day, ‘Back to School,’ flash sales, etc – 80% of Revenue in 2 months – Provisioning > 3x capacity for 2 months o Gaming – New game released, new update – Need ability to quickly scale either out (game servers oversubscribed) or in (less gamers than estimated) – Cannibalization: New game causes migration of previous subscribed base from old game(s) PROPRIETARY & CONFIDENTIAL 9
  • 10. Peak or Periodic Workloads by Sector o Social Media – Some events are periodic/predictable (e.g. Awards Season, movie releases, Hallmark holidays, TV shows) – Some events much less so (current events, ‘hot trends,’ politics, social outrage, etc) o Sports – Playoffs, Super Bowl, March Madness, etc – Provisioning for these requires quickly available additional resources – After the main event, sports app utilization can fall severely, leaving server arrays overprovisioned PROPRIETARY & CONFIDENTIAL 10
  • 11. How are MySQL workloads Scaled Down/In?
  • 12. Scaling Down/In: The Work Required Approach How Scale Up/Out Scale Down/In Scale-Up Keep increasing the size of the (single) database server • Console: Click for larger server, until largest available • EC2: Bring up larger (redundant) server with backup, use replication to catch up, then change application to new DB endpoint • Console: Click for smaller server. Works well if max workload fits in DBaaS offering • EC2: Bring up smaller (redundant) server with backup, use replication to catch up, then change application to new DB endpoint Console: DBaaS with shared storage. EC2: Instance, or bare metal
  • 13. Scaling Down/In: The Work Required Approach How Scale Up/Out Scale Down/In Scale-Up Keep increasing the size of the (single) database server • Console: Click for larger server, until largest available • EC2: Bring up larger (redundant) server with backup, use replication to catch up, then change application to new DB endpoint • Console: Click for smaller server. Works well if max workload fits in DBaaS offering • EC2: Bring up smaller (redundant) server with backup, use replication to catch up, then change application to new DB endpoint Read Slaves Add a ‘Slave’ read- server(s) to ‘Master’ database server • Console: Click to add ‘Read Replicas’ • EC2: Bring up redundant server(s) with backup, & turn on replication • Setup read/write fan-out in app or at the proxy level • Console: Click to remove ‘Read Replicas’ • EC2: Bring down read slave(s) • Change read/write fan-out in app or at the proxy level Console: DBaaS with shared storage. EC2: Instance, or bare metal
  • 14. Scaling Down/In: The Work Required Approach How Scale Up/Out Scale Down/In Scale-Up Keep increasing the size of the (single) database server • Console: Click for larger server, until largest available • EC2: Bring up larger (redundant) server with backup, use replication to catch up, then change application to new DB endpoint • Console: Click for smaller server. Works well if max workload fits in DBaaS offering • EC2: Bring up smaller (redundant) server with backup, use replication to catch up, then change application to new DB endpoint Read Slaves Add a ‘Slave’ read- server(s) to ‘Master’ database server • Console: Click to add ‘Read Replicas’ • EC2: Bring up redundant server(s) with backup, & turn on replication • Setup read/write fan-out in app or at the proxy level • Console: Click to remove ‘Read Replicas’ • EC2: Bring down read slave(s) • Change read/write fan-out in app or at the proxy level Master-Master Add additional ‘Master’(s) to ‘Master’ database server • Console: No native support. Can deploy larger instances, but must setup master/master yourself • EC2: Provision 2 new larger masters via backup, use replication to catch up, then change application to new DB’s endpoints • Console: No native support. Can deploy smaller instances, but must setup master/master yourself • EC2: Provision 2 new smaller masters via backup, use replication to catch up, then change application to new DB’s endpoints Console: DBaaS with shared storage. EC2: Instance, or bare metal
  • 15. Scaling Down/In: The Work Required Approach How Scale Up/Out Scale Down/In Vertical Sharding Separating tables across separate database servers • Console: No native support. Can deploy additional instances, but must setup table distribution yourself • EC2: Provision additional instances via backup, (manually) re-distribute tables across shards, then change application to include new shards • Console: No native support. Can deprovision instances, but must consolidate tables yourself • EC2: Consolidate tables from redundant shards, deprovision redundant shards, and change application/table mapping to match new data distribution Console: DBaaS with shared storage. EC2: Instance, or bare metal
  • 16. Scaling Down/In: The Work Required Approach How Scale Up/Out Scale Down/In Vertical Sharding Separating tables across separate database servers • Console: No native support. Can deploy additional instances, but must setup table distribution yourself • EC2: Provision additional instances via backup, (manually) re-distribute tables across shards, then change application to include new shards • Console: No native support. Can deprovision instances, but must consolidate tables yourself • EC2: Consolidate tables from redundant shards, deprovision redundant shards, and change application/table mapping to match new data distribution Horizontal Sharding Partitioning tables across separate database servers • Console: No native support. Can deploy additional instances, but must setup partition distribution yourself • EC2: Provision additional instances via backup, (manually) re-distribute partitions across shards, then change application to include new shards • Console: No native support. Can deploy smaller instances, but must consolidate partitions yourself • EC2: Consolidate tables from redundant shards, deprovision redundant shards, and change application/table mapping to match new data distribution Console: DBaaS with shared storage. EC2: Instance, or bare metal
  • 17. What are the Costs of NOT Scaling Down/In
  • 18. o Idle Server/Overcapacity cost – CAPEX budget wasted on unused resources – OPEX budget probably OK: idle servers need less DevOps o Low Overall Impact to DevOps Infra: – “Everything’s Working” / “Not broken; Don’t Fix it” – Low CAPEX budget means low budgets for replacements; so instead cannibalize underutilized infra. “No Problem” PROPRIETARY & CONFIDENTIAL 18 DevOps Impact #1 from Overprovisioning
  • 19. 1. 1-way scaling to handle peaks =>> Idle resources at non-peak, often most of the time 2. Idle resources =>> Blown/Shrunk DevOps Budgets 1. Both CAPEX and OPEX 2. Finance team pays attention! 3. Blown/Shrunk DevOps Budgets =>> Hard to get Approval for further capacity 4. No Budget =>> Can’t Scale for Growing Peaks 5. Higher risk of site slowdowns or outages at next peak(s) PROPRIETARY & CONFIDENTIAL 19 DevOps Impact #2 from Overprovisioning
  • 20. Black Friday/Cyber Monday Outage Highlights o 2011: PC Mall, Newegg, Toys R’Us, Avon: 30+min outages. Walmart: 3hr outage o 2012: Kohl’s: repeated multi-hour outages o 2013: Urban Outfitters, Motorola: offline most of Cyber Monday o 2014: Best Buy: 2hrs+ total outages. HP, Nike: site crashes o 2015: Neiman Marcus: 4hr+ outage o 2016: Old Navy, Macy’s: multi-hour outages 2016 Black Friday/Cyber Monday Total Online Sales: $5.27B, 21.6% increase over 2015 PROPRIETARY & CONFIDENTIAL 20
  • 21. Even Larger Business Impact of Outages o Opportunity cost – Each missed visitor was potentially a customer or referral o Single Sale cost – Each missed sale is a tangible missed $-value o Customer Lifetime cost – Unhappy customers who find sites they like better, won’t return o Market/Brand cost – All customers use social media: communication ‘force multiplier’ – “If you make customers unhappy in the physical world, they might each tell six friends. If you make customers unhappy on the internet, they can each tell 6,000”. – Jeff Bezos – W. Edwards Deming said “5” and “20”… – Call it “Customer Satisfaction at Web-Scale” PROPRIETARY & CONFIDENTIAL 21
  • 23. ClustrixDB: PROPRIETARY & CONFIDENTIAL 23 ClustrixDB ACID Compliant Transactions & Joins Optimized for OLTP Built-In Fault Tolerance Flex-Up and Flex-Down Minimal DB Admin • Write + Read Linear Scale-Out • Click to Elastically Add/Remove Servers • MySQL-Compatible
  • 24. PROPRIETARY & CONFIDENTIAL 24 Adding + Removing Nodes: Scaling Out + In o Easy and simple Flex Up (or Flex Down) – Single minimal ‘database pause’ o All servers handle writes and reads – Workload is spread across more servers after Flex Up o Data is automatically rebalanced across the cluster – Tables are online for reads and writes – MVCC for lockless reads while writing S1 S2 S3 S3 S4 S4 S5 S1 ClustrixDB S2 S5
  • 25. Review: Questions for Today o Why and When is scaling down MySQL a good idea? – Periodic workloads, Flash Sales, new Releases, etc o What options are there to scale down MySQL? – Single Node: Shrink single node – Master/Slave: Remove read slaves, shrink master – Master/Master: Drop and/or shrink a master – Sharding: Drop and combine shards o How do I figure out the costs of not scaling down? – Cost 1: Undersubscribed resources – Cost 2: Budget impact to ability to scale for peaks PROPRIETARY & CONFIDENTIAL 25
  • 26. Review: Questions for Today o How does ClustrixDB scale-down differently than MySQL? – Shared-nothing scale-out RDBMS clustered database – Simply add or drop nodes to scale-out or scale-in o How real is elastically scaling in ClustrixDB? What are the catches? – Add nodes via IP. Add IP to Load Balancer. No app changes. – Remove nodes via IP. Remove IP from Load Balancer. No app changes. – Minor ‘database pause’ for multi-node ‘group change’ PROPRIETARY & CONFIDENTIAL 26