05 2021 档案
摘要:#慢查询日志查询 作为运维人员,磁盘空间也是监控中重要的一个环节,数据库服务器磁盘空间不足告警,有时候不是因为业务数据量大,而是因为开启了慢查询,如果my.cnf文件中log-queries-not-using-indexes = 1,那么慢查询记录的日志中就不完全是慢查询日志,它包含了查询中没有引
阅读全文
摘要:###查询数据库中的存储过程和函数 select name from mysql.proc where db = 'xx' and type = 'PROCEDURE' //存储过程 select name from mysql.proc where db = 'xx' and type = 'FU
阅读全文
摘要:###查看节点hdfs文件负载 查看各节点hdfs文件使用情况:hdfs dfsadmin -report hdfs dfsadmin -report > balance cat balance | grep "DFS Used%" cat balance | grep "Name" ###负载均衡
阅读全文