Fork me on GitHub

10 2016 档案

摘要:MySQL 使用SELECT ... FOR UPDATE 做事务写入前的确认 以MySQL 的InnoDB 为例,预设的Tansaction isolation level 为REPEATABLE READ,在SELECT 的读取锁定主要分为两种方式: 这两种方式在事务(Transaction) 阅读全文
posted @ 2016-10-21 08:06 秋楓 阅读(728) 评论(0) 推荐(0) 编辑
摘要:redis主从复制 Redis Replication的特点和优势。 1). 同一个Master可以同步多个Slaves。 2). Slave同样可以接受其它Slaves的连接和同步请求,这样可以有效的分载Master的同步压力。因此我们可以将Redis的Replication架构视为图结构。 3) 阅读全文
posted @ 2016-10-12 13:36 秋楓 阅读(219) 评论(0) 推荐(0) 编辑
摘要:mysql 优化实例之索引创建 优化前: pt query degist分析结果: Query 23: 0.00 QPS, 0.00x concurrency, ID 0x78761E301CC7EE47 at byte 394687 This item is included in the rep 阅读全文
posted @ 2016-10-10 11:13 秋楓 阅读(423) 评论(0) 推荐(0) 编辑
摘要:mysql sql优化实例 优化前: pt query degist分析结果: Query 3: 0.00 QPS, 0.00x concurrency, ID 0xDC6E62FA021C85B5 at byte 628331 This item is included in the report 阅读全文
posted @ 2016-10-09 18:06 秋楓 阅读(2034) 评论(0) 推荐(0) 编辑
摘要:MySQL 慢查询日志分析及可视化结果 MySQL 慢查询日志分析 pt query digest分析慢查询日志 pt query digest report slow.log 报告最近半个小时的慢查询: pt query digest report since 1800s slow.log 报告一 阅读全文
posted @ 2016-10-08 17:07 秋楓 阅读(3122) 评论(0) 推荐(0) 编辑
摘要:OSSFS将OSS bucket 挂载到本地文件系统及注意事项 下载ossfs安装包 安装ossfs 将image这个bucket挂载到/mnt/ossfs目录下,AccessKeyId是faint, AccessKeySecret是123,oss endpoint是http://oss cn ha 阅读全文
posted @ 2016-10-08 14:44 秋楓 阅读(8382) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示