7. Test Setup
• MySQL
• Two data sets:
• Increase instance size
• Increase EBS size
• Different days and periods
• 5.5.20
• max_connections parameter
8. Test Setup
• Ubuntu 12.04 LTS AMI Ubuntu 12.04 LTS
AMI ami-a29943cb
• mysqlslap from Ubuntu MySQL repository
• EC2 High-CPU Medium c1.medium
• Disk I/O bound:
✓ insert and commit
18. Guerrilla Capacity
planning
N
C(N ) =
1 + ↵(N 1) + N (N 1)
• Universal Scalability Law (USL)
• http://www.perfdynamics.com/Manifesto/USLscalability.html
• Guerrilla Mantra 1.16: Data are not divine. Data comes from
the Devil, only models come from God.
• Guerrilla Mantra 2.25: All measurements are wrong by
definition.
• R using nls() http://www.perfdynamics.com/Classes/Materials/USLcalc.r
25. N Max X Max
small 59.48 1660.29
large 88.46 3859.50
xlarge 134.40 6068.01
2xlarge 204.00 7228.87
4xlarge 217.55 8172.99
26. N Max X Max N X
small 59.48 1660.29 1.00 1.00
large 88.46 3859.50 1.49 2.32
xlarge 134.40 6068.01 2.26 3.65
2xlarge 204.00 7228.87 3.43 4.35
4xlarge 217.55 8172.99 3.66 4.92
38. EC2 Price/
Compute Memory α N Max X Max
Unit
Hour
small 1.0 1.0 1.00 1.00 1.00 1.0
large 4.0 4.4 0.99 1.49 2.32 4.0
xlarge 8.0 8.8 0.79 2.26 3.65 7.9
2xlarge 13.0 20.0 0.68 3.43 4.35 11.1
4xlarge 26.0 40.0 0.61 3.66 4.92 22.3
39. Conclusion
• EBS size has no effect on I/O performance
• Small instances are more affected by other
instances on the same server
• Larger instances have a greater share of the
physical resources, more network
throughput translates to more EBS I/O
40. Conclusion
• More instances on the same server, more
concurrency. α increases
• Small decrease in α increases the
throughput by a large amount
• EBS are not created equal