As the cloud continues to grow, organizations need IT talent with cloud skills. AWS Certifications validate cloud knowledge with an industry-recognized credential that can help advance your career.
Join this webinar to learn more about why AWS Certifications matter and to hear tips from an AWS expert about how to prepare for certification exams. During this webinar, you’ll hear about the AWS training, self-paced labs, and online resources that can help you on your path toward preparing for any one of our Associate exams including: Solutions Architect, Developer, and SysOps Administrator. We’ll also walk you through sample questions and study tips so you can learn how to think through typical associate-level exam questions. Finally, you’ll have the chance to have your questions answered live by an AWS expert.
Learning Objectives:
• Hear about a recommended preparation path for the career-enhancing AWS associate certification exams
• Learn more about how AWS Training can help you prepare to take the exam
• Hear study tips, work through a practice question, and have your questions answered live
2. Agenda
• MySQL Deployment Options on AWS
• Why use Elastic Block Store (EBS)?
• Optimizing MySQL with EBS
• Testing for Performance
• Best Practices
4. RDS and MySQL on EC2
MySQL on
EC2 instance
• Flexible
• Deployment Options
- Infrastructure
- Storage
• Access to the OS
• MySQL plugins support
RDS for MySQL
• No Infrastructure Management
• Instant provisioning
• Application Compatibility
• HA and Read Replica
• Managed Patching, Maintenance,
Backup and Restore
6. Durability and Monitoring
Monitoring
CloudWatch
• 5 min or 1 min polling interval
• Setup alarms and actions
• Integrate with MySQL Monitoring
Tools
Durability
• Data Persistence vs. Instance
Store
• Decouple Storage from Compute
• Redundancy within the AZ
7. Provisioned IOPS SSD
Highest Performance
Volume Size: 4 GiB to 16 TiB
Max IOPS/Volume: 20,000
Max Throughput/Volume: 320 MiB/s
General Purpose SSD
Price and Performance
Volume Size: 1 GiB to 16 TiB
Max IOPS/Volume: 10,000
Max Throughput/Volume: 160 MiB/s
Primer - Storage Options
8. Snapshots and Security
Security
• IAM Resource Level Permissions
• Data at Rest Encryption
Snapshots
• Entire MySQL Database Backup
• Scheduled snapshots using
CloudWatch Events
• Use for DR, Storage Resize,
Sharing Environment
14. Monitor your Burst usage
Typically, Burst IOPS are consumed by:
Performing MySQL Backups
Restarting MySQL or EC2
Large import and export of MySQL data
Additional traffic to the MySQL database
coming from the application
15. Making the most out of io1
EBS Optimized Instances
• Dedicated Bandwidth to EBS 500 Mbps to 12,000 Mbps
• Increase Throughput and IOPS
17. Need more IOPS and Throughput?
RAID 0 - Considerations
• Use EBS optimized instance
• Fault tolerance, MySQL Slave
• Use the same EBS volume type
and size
• Ensure all volumes are quiesced
when performing EBS snapshots
19. MySQL Configuration
Parameters Default Tuned* Description
innodb_buffer_pool_size 128MB 70-80% % of Memory or large enough for “Hot” data
set
innodb_flush_neighbors 1 0 Spreads write operations over your EBS
volumes
innodb_log_file_size 50MB * Large enough to spread-out the checkpoint
flush activity
* Based on your write workloads
21. Switching from a Physical Server to EC2
sync_binlog
sync_master_info
sync_relay_log
sync_relay_log_info
22. Improve IO and Throughput
• Separate the logs and data files
into different EBS volumes
• Use io1 for bin and relay logs
• RAID 0 – Stripe EBS Volumes
• Extreme cases – use local SSD
for Slave or read replica
25. EBS Snapshots – best practices
1. Quiesce data before taking snapshots
flush tables with read lock
sync and fsfreeze
2. Warm up data during the restore
Parallel dd, fio, robocopy
Scan largest table
3. Automate and Manage Snapshots
http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/TakeScheduledSnapshot.html
https://github.com/awslabs/aws-ebs-custodian
29. Benchmarking Tools
• Tools from MySQL such as
MySQL Enterprise Monitor
MySQL Workbench Performance
MySQL Query Analyzer
• MySQL Monitoring tools at the AWS Marketplace
• Amazon CloudWatch
• MySQL performance Schema
32. Best Practices
• Evaluate use case for Amazon RDS or MySQL on EC2
• Monitor burst metrics for gp2
• Use EBS optimized EC2 instances for io1
• Use EC2 placement groups for replication
• Test your MySQL workloads
• Verify MySQL parameters
• Monitor service limits