mysql 主从延迟 查看大事务

mysqlbinlog bin.005834 | grep "GTID$(printf '\t')last_committed" -B 1 \

| grep -E '^# at' | awk '{print $3}' \

| awk 'NR==1 {tmp=$1} NR>1 {print ($1-tmp);tmp=$1}' \

| sort -n -r | head -n 10

你可能感兴趣的:(mysql,数据库,mysql)