选择语言 :

 Core_Controller_RunTime::check_mysql

检查MySQL连接的可用性,包括读写速度

每隔5分钟检测一次即可

null Core_Controller_RunTime::check_mysql( )
File: ./core/controllers-shell/runtime.controller.php
protected function check_mysql()
{
    // 获取所有需要检测的服务器列表
    $servers = $this->mysql_get_servers();

    // 获取所有slave同步状态
    $status = $this->mysql_get_slave_status($servers);

    // 获取权重
    return $this->mysql_get_weight($status);
}