0% found this document useful (0 votes)
44 views12 pages

Mysql Scaling: Presenters: Chris Schneider and Kevin Knapp

This document summarizes a presentation on scaling MySQL databases. It discusses different consolidation methodologies including local vs shared storage and various file systems. It also covers Innodb performance, sharding, and benchmarking tools. Several hardware systems are compared for hosting MySQL instances, including their CPU, memory, number of systems required, and total datacenter space needed. Performance topics discussed include optimizations for memory, SQL, normalization, storage engines, backup schedules, and recoverability.

Uploaded by

sadadasdsa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views12 pages

Mysql Scaling: Presenters: Chris Schneider and Kevin Knapp

This document summarizes a presentation on scaling MySQL databases. It discusses different consolidation methodologies including local vs shared storage and various file systems. It also covers Innodb performance, sharding, and benchmarking tools. Several hardware systems are compared for hosting MySQL instances, including their CPU, memory, number of systems required, and total datacenter space needed. Performance topics discussed include optimizations for memory, SQL, normalization, storage engines, backup schedules, and recoverability.

Uploaded by

sadadasdsa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 12

MySql Scaling

Presenters:
Chris Schneider
And Kevin Knapp
Intro

 Consolidation methodologies
 Local vs Shared
 Local storage, NFS, iSCSI, Fiber
 File systems
 EXT3, XFS, VXFS and ZFS
 Sun hardware
 Innodb Performance
 Sharding
Local vs. SAN
 Considerations
 Partitioning
 Type of disk and setup
 Backups
 LVM, mysqldump, parallel, rdiff, innodb hot
backup
 The key is to Benchmark
 Sysbench
 Supersmack

 Home grown
Test on different file systems
 EXT3
 Traditional and widely used
 XFS
 Has been great to work with in my
experience
 Show best performance in in my
benchmarks
 ZFS
 Snapshots with no penalties
The Tortus and the Hare

 Waterfalls
 Seven Falls
 Niagra

 The case study:


 Shared hosting environment
 Hundreds of thousands of users
 Users with almost full autonomy

 MySql 4.0, 4.1 and 5.0


Comparison Breakdown

Dell 2950 Sun T2000 Sun T5220 Sun T5240 SB6000/6300 SB6000/6320
RU 2 RU 2 RU 2 RU 2 RU 10 RU 10 RU

CPU Xeon 5148 T1 T2 T2 Plus T1 T2


Speed 2.33 GHz 1.20 GHz 1.20 GHz 1.20 GHz 1.20 GHz 1.20 GHz
Cache 4 MB 3 MB 4 MB 4 MB 3 MB 4 MB
CPU Count 2 1 1 2 10 10
# Cores/CPU 2 8 8 8 8 8
Total Cores/Server 4 8 8 16 8 8
HW Threads per Core 1 4 8 8 40 80
HW Threads/Server 4 32 64 128 320 640
MySql Instances Focus

Dell 2950 Sun T2000 Sun T5220 Sun T5240 SB6000/6300 SB6000/6320

CPU Xeon 5148 T1 T2 T2 Plus T1 T2


HW Threads/Server 4 32 64 128 320 640

Instances of mySQL 4 8 16 32 80 160

Total Instances 752 Instances 752 Instances 752 Instances 752 Instances 752 Instances 752 Instances
Total Systems 188 Systems 94 Systems 47 Systems 24 Systems 9 Systems 5 Systems
Total Rack Units 376 RU 188 RU 94 RU 48 RU 90 RU 50 RU
Total Racks 10 Rack 5 Rack 3 Rack 2 Rack 3 Rack 2 Rack
Systems Focus

Dell 2950 Sun T2000 Sun T5220 Sun T5240 SB6000/6300 SB6000/6320

CPU Xeon 5148 T1 T2 T2 Plus T1 T2


HW Threads/Server 4 32 64 128 320 640

Instances of mySQL 4 8 16 32 80 160

Total Instances 752 Instances 752 Instances 752 Instances 752 Instances 752 Instances 752 Instances
Total Systems 188 Systems 94 Systems 47 Systems 24 Systems 9 Systems 5 Systems
Total Rack Units 376 RU 188 RU 94 RU 48 RU 90 RU 50 RU
Total Racks 10 Rack 5 Rack 3 Rack 2 Rack 3 Rack 2 Rack
Number of Systems

Number of Systems Required

200

150

100

50

0
Dell 2950 Sun T2000 Sun T5220 Sun T5240 SB6000/6300 SB6000/6320
Datacenter Space

Total Rack Units Required

400

300

200

100

0
Dell 2950 Sun T2000 Sun T5220 Sun T5240 SB6000/6300 SB6000/6320
Performance
 Memory Allocations
 Optimized SQL
 Normalize till it hurts denormalize till it works
 Innodb vs MyISAM
 Transactions and concurrent inserts
 Timing and location of script and backup
execution
 Recoverability
 Point in time
Q&A

 Questions

You might also like