DevOPS
- 5. 今天 Qcon Hangzhou
PV x 2
- 6. 今天 Qcon Hangzhou
20亿/月
- 63. 如何保证网站稳定?
性能隐患
在线记录DB, Search慢查询
$slowLogger = new SlowLogger();
$slowLogger->start();
$this->result = mysql_query($this->sql, $this->connection);
$ms = $slowLogger->stop();
if ($ms > 499)
$slowLogger->log(
$slowLogger->log($this->sql);
$this->sql, debug_backtrace()
);
- 64. 如何保证网站稳定?
自动化统计
Count Max Time Backtrace Detail
Data::query
Select `id` ....
445 2433 Data::load
http://shanghai...
Ad_Ctl::index
Data::query
Select `id` ....
363 4224 Data::find
http://hangzhou...
Ad_Ctl::search