Your SlideShare is downloading. ×
0
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Server modeling with mysql
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Server modeling with mysql

423

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
423
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Server Modeling with Mysql charsyam@naver.com
  • 2. Never Ending Problem
  • 3. ScalabilityConsistency
  • 4. Scalability
  • 5. Problem Client GroupWeb Server Web Server Data Layer
  • 6. Easy Problem Client Group bottleneckWeb Server Web Server Data Layer
  • 7. Solution Client GroupWeb Server Web Server Web Server Web Server Scale up Data Layer Scale out Just Add Server
  • 8. Hard Problem Client GroupWeb Server Web Server bottleneck Data Layer
  • 9. Incorrect Solution Client GroupWeb Server Web Server Web Server Web Server Bottleneck Harder! Data Layer
  • 10. Scale up - Solution Client GroupWeb Server Web Server Need Money Data Layer
  • 11. Scale Out - Solution Client GroupWeb Server Web Server Partitioning Data Layer Data Layer
  • 12. How to Find Bottleneck
  • 13. Cpu load Iowait Lognetstat
  • 14. TestTestTestTest
  • 15. Consistency
  • 16. Master-Slave
  • 17. One Thing
  • 18. Need 4 Servers for disater Master DBSlave Slave Slave
  • 19. Need 4 Servers for diaster Master DBService Service Fail Slave Slave Slave
  • 20. Need 4 Servers for diaster Master DBService Dump New Slave Slave Slave Copy
  • 21. Need 4 Servers for disater Master DBSlave Slave Slave
  • 22. Many Person KnowsThis Model
  • 23. 1 MasterN Slaves
  • 24. Many Read, Small Write, and No Consistency Write Master DB Async Replication Read Read Slave
  • 25. Many Read, Small Write, and No Consistency Write ‘Data’ Master DB Before Replication Read’Data’ SlaveRead Past Data
  • 26. Many Read, Small Write, and No Consistency Write Master DB Read Read Slave
  • 27. How to Support Consistency?
  • 28. DistributionTransaction Processing
  • 29. 2 Phase Commit
  • 30. Prepare Phase Master DBWriteWrite Slave
  • 31. Prepare Master DBWriteWrite Slave Commit Master DBCommitCommit Slave
  • 32. Semi-SyncWith Mysql
  • 33. Semi-Sync: Send ACK after sending log Write OK Master DB Ack Async Replication Slave
  • 34. Mysql Cluster
  • 35. Old Version < 7.1Just Use In-Memory
  • 36. Over 7.1Use In-Memory Index And Disk Data
  • 37. Thank you!

×