《人人网.刘启荣-MySQL运维感悟.pdf》由会员分享,可在线阅读,更多相关《人人网.刘启荣-MySQL运维感悟.pdf(25页珍藏版)》请在三一文库上搜索。
1、MySQL? ? ? ? MySQL DBA ? ( http:/ ) ? ? 1 Instance httpd/ftpd/mysqld slave binlog index root password default f connection_str = “jdbc:mysql:/localhost/.” ? ? ? ? ? delete from tb_b where id = id ? ? ?1? -log_bin = on mysqldump -single-transaction -master-data=1 fi le slave mysql -u root -ppassword
2、? 2+ Instances 1 maser / 1+ slaves 1+ masters / 1 slave user: rep/dev/readonly web.xml/conn.conf ? ? ? ? ? ?binlog? ? ? ? ? mysqld disk sql_thread io_thread seconds_behind_master table checksum(pt-table-checksum) backup slave?snapshot? ? 10+ instances 10+ masters / 10+ slave 1,000,000 DAU T? DBA ? ?
3、 Write? Read? Write? Read? Write? Read? Write? Read? Write? Read? Write? Read? Write? Read? Write? Read? Write? Read? Write? Read? ? ? ? ? innodb recovery ? ? shard proxy xtrabackup ? 100+ instances P? ? DBA Team ? Shard? HA? ?99.9% 100? 99.9%*100 = 90.5% ? ? proxy cluster ha backup online ddl(?) ?
4、1000+ instances ? ? DBA? ? ? ? ? ? ? ? ? ? ? 10000 instances ? ? ? ? ? ? EoF ? 关注我们:t.baidu- 资料下载和详细介绍: InfoQ 策划组织实施 关注我们: “畅想交流争鸣聚会”是百度技术沙龙的宗旨。 百度技术沙龙是由百度与InfoQ中文站定期组织的线下技术交流活动。目 的是让中高端技术人员有一个相对自由的思想交流和交友沟通的的平台。主要分讲师分享和OpenSpace两个关键环节,每期 只关注一个焦点话题。 讲师分享和现场Q&A让大家了解百度和其他知名网站技术支持的先进实践经验,OpenSpace环节是百度技术沙龙主题的升华 和展开,提供一个自由交流的平台。针对当期主题,参与者人人都可以发起话题,展开讨论。