MySQL新技术研究与实践<br />周振兴@TaobaoDBA<br />iData Forum<br />2010-12-06<br />1<br />
关于主题<br />Performance / Flashcache ...<br />Hardware<br />Software<br />Patches<br />InnoDB-SSD Online file added ......<b...
Performance<br />is about the Capacity<br />30,0000 / s<br />Cache Miss<br />1,0000 / s<br />Capacity20%===  1亿用户<br />is ...
Hardware<br />Disk / Memory<br />Memory<br />
Why Flashcache<br />SSD vs PCIe-SSD<br />Winner: PCIe-ssd<br />
PICe SSD<br />FusionIO<br />virident<br /><ul><li>特点
高 IOPS
容量较小</li></li></ul><li>Why Flashcache<br />Some System requirement: 3,0000iops 6TB<br />From SSD Performance Blog<br />
Flashcache原理<br />VFS<br />File System<br />/dev/mapper/cachedev<br />这就是Flashcache:<br />将两个块设备,虚拟成一个带缓存的块设备<br />/dev/sd...
Flashcache<br />
安装<br />./flashcache_create cachedev/dev/fio/dev/sda12<br />mount /dev/mapper/cachedev/u01<br />参考 Flashcache README<br />
WB vs WT<br />Write back<br />High performance<br />main version of flashcache<br />Write through<br />more safe<br />Less...
Another side<br />Hot data distribution<br />Sample 1.5TB SAS +  320GB Fio<br />Keep is simple , stupid<br />Maybe your ar...
A fixed bug<br />MySQL hungs with Flashcache<br />iostat  1<br />sda12          0    0   0   0  0   0    0     0    0   0 ...
MySQL Version<br />
压缩特性<br />SamplePage<br />
压缩特性<br />空间节约<br />788M  sns_info.ibd<br />376M  sns_info.ibd<br />性能<br />BP can hold more data<br />
OtherFeature<br />Buffer Pool<br /><ul><li>Faster recovery  |Faster index create ...</li></li></ul><li>Patch From Taobao<b...
Why patch<br />Should we change something?<br />
Main Contributor<br />林晓斌 From Taobao.com<br />
Patch.1SSD<br />Write Through<br />读优化<br />
Patch.2 No more connection<br />Close the door<br />Why not <br />max_connection<br />
Patch.3 Online data added<br />InnoDBshare table space<br />You must restart your Database<br />我们不想因此而降低可用性<br />
Patch 4 Table dml<br />开发中...<br />It’s cool<br />
Q  &  A<br />
MySQL新技术研究与实践
Upcoming SlideShare
Loading in …5
×

MySQL新技术研究与实践

3,951 views

Published on

0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,951
On SlideShare
0
From Embeds
0
Number of Embeds
1,668
Actions
Shares
0
Downloads
123
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

MySQL新技术研究与实践

  1. 1. MySQL新技术研究与实践<br />周振兴@TaobaoDBA<br />iData Forum<br />2010-12-06<br />1<br />
  2. 2. 关于主题<br />Performance / Flashcache ...<br />Hardware<br />Software<br />Patches<br />InnoDB-SSD Online file added ......<br />OSC from FB<br />
  3. 3. Performance<br />is about the Capacity<br />30,0000 / s<br />Cache Miss<br />1,0000 / s<br />Capacity20%=== 1亿用户<br />is also about the Cost&&Technology<br />
  4. 4. Hardware<br />Disk / Memory<br />Memory<br />
  5. 5. Why Flashcache<br />SSD vs PCIe-SSD<br />Winner: PCIe-ssd<br />
  6. 6. PICe SSD<br />FusionIO<br />virident<br /><ul><li>特点
  7. 7. 高 IOPS
  8. 8. 容量较小</li></li></ul><li>Why Flashcache<br />Some System requirement: 3,0000iops 6TB<br />From SSD Performance Blog<br />
  9. 9. Flashcache原理<br />VFS<br />File System<br />/dev/mapper/cachedev<br />这就是Flashcache:<br />将两个块设备,虚拟成一个带缓存的块设备<br />/dev/sdb<br />/dev/sda<br />http://orczhou.com<br />Sample 1.5TB SAS + 320GB Fio<br />
  10. 10. Flashcache<br />
  11. 11. 安装<br />./flashcache_create cachedev/dev/fio/dev/sda12<br />mount /dev/mapper/cachedev/u01<br />参考 Flashcache README<br />
  12. 12. WB vs WT<br />Write back<br />High performance<br />main version of flashcache<br />Write through<br />more safe<br />Less performance<br />
  13. 13. Another side<br />Hot data distribution<br />Sample 1.5TB SAS + 320GB Fio<br />Keep is simple , stupid<br />Maybe your are rich<br />
  14. 14. A fixed bug<br />MySQL hungs with Flashcache<br />iostat 1<br />sda12 0 0 0 0 0 0 0 0 0 0 0<br />fio 0 0 0 0 0 0 0 0 0 0 0<br />dm-0 0 0 0 0 0 0 0 0 0 0 100<br /><ul><li>Latest version has fixed it</li></li></ul><li>InnoDB Plugin/Percona<br />Percona is Cool<br />InnoDB isFine<br />
  15. 15. MySQL Version<br />
  16. 16. 压缩特性<br />SamplePage<br />
  17. 17. 压缩特性<br />空间节约<br />788M sns_info.ibd<br />376M sns_info.ibd<br />性能<br />BP can hold more data<br />
  18. 18. OtherFeature<br />Buffer Pool<br /><ul><li>Faster recovery |Faster index create ...</li></li></ul><li>Patch From Taobao<br />InnoDB-SSD<br />No more connection<br />Online tablespace added<br />... Table DML statistics ...<br />
  19. 19. Why patch<br />Should we change something?<br />
  20. 20. Main Contributor<br />林晓斌 From Taobao.com<br />
  21. 21. Patch.1SSD<br />Write Through<br />读优化<br />
  22. 22. Patch.2 No more connection<br />Close the door<br />Why not <br />max_connection<br />
  23. 23. Patch.3 Online data added<br />InnoDBshare table space<br />You must restart your Database<br />我们不想因此而降低可用性<br />
  24. 24. Patch 4 Table dml<br />开发中...<br />It’s cool<br />
  25. 25. Q & A<br />

×