All Stories

Linux磁盘监控-diskio_io_time

查看Linux系统的磁盘监控,常常需要关注磁盘的情况,例如:diskio_io_time,能够间接反应磁盘的繁忙情况

MySQL源码-Seconds_Behind_Master的计算

What the Seconds_Behind_Master means? And how to calculate it? MySQL源码-Seconds_Behind_Master的计算

linux-transparent_hugepage

What is transparent_hugepage in Linux and why we should disable it in database instance?

Linux swap 内存溢出

由于磁盘IO较弱的原因,不再在数据库的实例上进行swap的内存溢出,需要进行关闭。

MySQL源码-变量-innodb_flush_log_at_trx_commit

mysq source-code-variables-innodb_flush_log_at_trx_commit

MySQL写入重做日志(redo log files)的顺序

What's the order of writing redo logs in MySQL? 在redo logs中,如果有多个files,那么MySQL会怎么使用这些文件,访问的时间,第一个使用结束再使用第二个依次循环?还是不同的事务访问不同的file?

MySQL Flush Slow Log

慢查较多的时候,慢查日志需要进行定期切换,防止需要分析时,文件过大不便于排查。

MySQL Get Memory Status From Performance_Schema

当MySQL进程mysqld占用了太多内存时,需要定位对应的用户、线程、event等信息,可以使用performance_schema表信息进行查看

Redis Explained

Redis Architecture Notes

MySQL Partition Tables: Split New Partition From Maxvalue Partition

MysQL的分区表中,已经有maxvalue分区时,需要再添加分区,则需要重新进行分配

使用pt-online-schema-change添加唯一索引导致数据丢失

由于pt-osc(pt-online-schema-change)在进行ddl表更时候,步骤中insert的语法为insert ignore,所以会导致在对于表中加唯一索引时候,重复的数据会被丢弃.

Redis集群中slave漂移的问题

在shutdown集群中某一个master的时候,集群中其它master的slave,会自动迁移到新的主上。