Beruflich Dokumente
Kultur Dokumente
Reporter:
Vadim Tkachenko
Co-founder, CTO,
Percona Inc
12-Apr-2011
In this talk
What is best setup of MySQL to get most benefit from
SSD / Flash
12-Apr-2011
Whats inside
MySQL and SSD: basics
MySQL and SSD: advanced schemas
12-Apr-2011
Types of SSD
SATA
PCI-E
SAN
12-Apr-2011
Types of SSD
SATA
200-500MB/sec
Intel X25-M/E, OCZ, Unigen
PCI-E
Over 1GB/sec, 70.000 req/sec, under 1ms response time
Virident, FusionIO
SAN
Violin memory
12-Apr-2011
12-Apr-2011
23670
20000
15000
NOTPM
10000
5000
3298
0
RAID
12-Apr-2011
tachIOn
Multiple threads
Percona Server or InnoDB-plugin or MySQL 5.5
12-Apr-2011
Can we do better ?
Single threaded sequential stuf
InnoDB transactional logs with fsyncs
Binary logs
Doublewrite bufer ( with whole ibdata)
35000.00
30000.00
25000.00
20000.00
NOTPM
15000.00
10000.00
5000.00
0.00
logs on RAID
12-Apr-2011
logs on tachIOn
innodb_doublewrite_file
Innodb_adaptive_checkpoint=keep_average
innodb_log_file_size > 4GB
12-Apr-2011
What if ?
Data is too large
Or SSD too small
12-Apr-2011
Naive solution
Most data on regular disks
Put hot ibd files on SSD
Symlinks from data directory
12-Apr-2011
Naive solution
It works
But pain to manage and till first ALTER TABLE
Facebook has patch for it
12-Apr-2011
Flashcache
Open source
Developed and maintained by Facebook, deployed in
production
DirectCache
Proprietary solution from FusionIO
12-Apr-2011
FlashCache
Shows good results
Stable work in production deployments
Not much user friendly
12-Apr-2011
FlashCache details
12-Apr-2011
ZFS
ZFS supports SSD caching mode
Linux native port available
12-Apr-2011
Interesting trick
For temporary tables on disks
--tmpdir=/mnt/ssd
12-Apr-2011
12-Apr-2011
Combining cards
SATA
Choice good RAID controller, maybe challenge
PCI-E
Software RAID
Usually comes as stripping ( RAID0 )
Reliability ?
Mirroring does not work really well
12-Apr-2011
12-Apr-2011
Several instances
Solution obvious:
Several instances
12-Apr-2011
Experiment
12-Apr-2011
Experiment
12-Apr-2011
Results
12-Apr-2011
Results conclusions
With 120GB memory single instance result
worse then with 26GB
InnoDB contentions problems again
12-Apr-2011
Multi-instance
I do not like it
Management complexity
Good scripts solve it
12-Apr-2011
The end
Slides will be online.
http://www.percona.com/about-us/presentation
s/
vadim@percona.com
Your questions ?
We are hiring!
12-Apr-2011