MySQL administration in Amazon RDS
Upcoming SlideShare
Loading in...5
×
 

MySQL administration in Amazon RDS

on

  • 2,552 views

This is a great session for those new to this this tooll. PalominoDB's Ben Black will cover common tasks in RDS and gotchas for DBA's that are new to RDS.

This is a great session for those new to this this tooll. PalominoDB's Ben Black will cover common tasks in RDS and gotchas for DBA's that are new to RDS.

Statistics

Views

Total Views
2,552
Views on SlideShare
2,552
Embed Views
0

Actions

Likes
1
Downloads
17
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    MySQL administration in Amazon RDS MySQL administration in Amazon RDS Presentation Transcript

    • MySQL administration inAmazon RDSPALOMINODBOPERATIONAL EXCELLENCEFOR DATABASESBen Blackwww.palominodb.com
    • What is RDS"Amazon Relational Database Service is aweb service that makes it easy to set up,operate, and scale a relational database inthe cloud."
    • Why use RDS1) Easy to set up2) Flexibility/Scalability/Pay as you go3) Easy to create replicas4) Multiple AZ5) Easy Admin/backups
    • Create an RDS instance
    • Create an RDS instance
    • Create an RDS instance
    • Security Group setup
    • Parameter Group Setup
    • Parameter Group Setup
    • Parameter Group Setup
    • Anyone have pointyclicky rage yet?
    • rds-cliDownload rds cli tools from amazon, unzip, and create asymlinkvi /home/bblack/rdscredsAWSAccessKeyId=<DELETED>AWSSecretKey=<DELETED>chmod 600 /home/bblack/rdscredsAdd to .bashrcexport AWS_RDS_HOME=/home/bblack/RDSCliexport AWS_CREDENTIAL_FILE=/home/bblack/rdscreds
    • rds-clirds-create-db-instancerds-create-db-instance-read-replicards-modify-db-instancerds-modify-db-parameter-grouprds-describe-db-instancesrds-reboot-db-instance
    • rds-clirds-modify-db-parameter-group dev-pg --parameters="name=sql_mode,value=STRICT_TRANS_TABLES,method=immediate""{TrueIfReplica}"
    • Limitationssync_binlog=1Broken replication/rebuilding replicas/failover
    • Things to setlog_bin_trust_function_creatorsmax_connect_errorsslow query loggingsync_binlogquery cache
    • LimitationsSlow Query Logs (blog on how to do it)http://www.palominodb.com/blog/2011/10/20/exporting-mysqlslowlog-table-slow-query-log-formatMySQL upgradesSchema changesReplication out of RDS
    • LimitationsForced MaintenanceChanging the size of disk with replicasHow to dump/load data and usersCant dump mysql schema--routines
    • Dumping Userspt-show-grants -OR-mysql --host=olddatabasehost -BNe "selectconcat(,user,@,host,) from mysql.user where usernot like rds% and user != master" | while read uh; do mysql --host=olddatabasehost -BNe"show grants for $uh" | sed s/$/;/; s///g; done >user_grants.sqlhttp://www.villescorner.com/2012/11/mysqldump-from-amazon-rds-headaches-of.html
    • LimitationsSingle region replicas/Multi-AZWhat happens when an AZ or region goesdown?"...as if millions of voices suddenly criedout in terror and were suddenlysilenced."
    • DDLNo option to alter slave and swap with masterBlocking DDLOSC tools (no OS access)show table status like %blah%;Lots more on OSC tomorrow (B @ 2pm)
    • DDLWhat do you do if you really break replication?CALL mysql.rds_skip_repl_error;Recreate replica(s)one at a timepossible to rename
    • RDS vs EC2
    • Cost considerationsInstance typeMulti-AZ => 2xPIOPSReplicasDisk size
    • QuestionsBen Blackben@palominodb.comwww.palominodb.com