当前位置:首页>python>AIOps算法引擎部署:基于Python/Go的异常检测与根因分析服务搭建

AIOps算法引擎部署:基于Python/Go的异常检测与根因分析服务搭建

  • 2026-08-18 23:11:14
AIOps算法引擎部署:基于Python/Go的异常检测与根因分析服务搭建

算法是AIOps的"大脑",部署是把大脑装进躯体的手术。手术成功了,运维才算真正有了智能。

一、算法引擎:从"规则"到"智能"的跨越

传统运维靠静态阈值——CPU超80%就告警。但业务有周期波动,白天正常的高峰到晚上就成了异常;大促期间的流量尖峰,放在平时可能就是故障前兆。AI算法引擎的价值,就是让系统自己学会"什么时候该报警、问题出在哪里"。


二、整体架构:算法引擎在AIOps中的位置

在动手部署之前,先看清算法引擎在整个AIOps平台中的定位——它处于数据层之上、执行层之下,是连接"感知"和"行动"的中枢。

算法引擎的核心职责就两件事:发现异常(异常检测)和定位原因(根因分析)。前者负责"报警",后者负责"说清楚为什么报警"。

三、混合异常检测工作流

异常检测不是"一个算法包打天下"。下面这个流程图展示了推荐的混合检测策略——先用轻量算法快速筛查,再用复杂模型深度确认,兼顾效率和准确率。

为什么用混合策略? IQR(四分位距)基于统计原理,计算复杂度O(n),毫秒级完成,适合对海量指标做第一道过滤。Isolation Forest基于随机森林,准确率更高但计算开销也更大,只对IQR筛出的"可疑点"做二次确认。这样既保证了检测精度,又控制了计算成本。


四、语言选型:Python还是Go?

4.1 Python:算法探索的首选

Python凭借丰富的AI/ML生态(scikit-learn、PyTorch、Prophet等),是AIOps算法开发的主力语言。适合模型训练、数据分析和POC验证,开发效率高。

4.2 Go:高并发服务的主力

Go语言在高并发、低延迟场景下优势明显。AIOps平台需要实时处理海量监控数据,Go的goroutine和channel模型非常适合构建高性能采集、分发和API服务。

推荐策略:Python做算法训练和离线分析,Go或Java做在线推理API和高并发处理。美团Horae系统的实践也表明,算法服务层需要兼顾模型复杂度和工程性能。


五、异常检测服务搭建(Python)

5.1 核心算法选型

异常检测是AIOps的基础能力。常见算法及适用场景:

算法
适用场景
优点
缺点
Isolation Forest
高维数据异常检测
鲁棒性强,适合大规模数据
不适用于时序趋势分析
3-Sigma / Z-Score
正态分布指标
简单高效,易解释
对数据分布假设敏感
IQR(四分位距)
非正态分布指标
不受极端值影响
无法检测平滑上升趋势
Prophet(时序分解)
有周期性规律的指标
自动识别周期趋势
计算开销较大

5.2 部署实战:Isolation Forest + IQR混合检测服务

# anomaly_detector.py - 基于FastAPI的异常检测服务from fastapi import FastAPI, HTTPExceptionfrom pydantic import BaseModelfrom sklearn.ensemble import IsolationForestimport numpy as npimport pandas as pdfrom datetime import datetime, timedeltaapp = FastAPI(title="AIOps异常检测服务")class MetricRequest(BaseModel):    service: str    metric_name: str    values: list[float]    timestamps: list[str]class DetectionResult(BaseModel):    is_anomaly: bool    confidence: float    algorithm: str    details: dict# 1. Isolation Forest检测器(适用于多维指标)class IsolationForestDetector:    def __init__(self, contamination=0.01):        self.model = IsolationForest(            contamination=contamination,            random_state=42        )    def fit(self, data: np.ndarray):        self.model.fit(data)    def predict(self, data: np.ndarray) -> tuple[list, float]:        pred = self.model.predict(data)        anomalies = [i for i, v in enumerate(pred) if v == -1]        scores = self.model.score_samples(data)        avg_score = float(np.mean(scores))return anomalies, avg_score# 2. IQR检测器(适用于时序单指标)class IQRDetector:    def __init__(self, window_size=24):        self.window_size = window_size    def detect(self, values: list[float]) -> tuple[bool, float]:if len(values) < self.window_size:return False, 0.0        baseline = values[-self.window_size:]        q1 = np.percentile(baseline, 25)        q3 = np.percentile(baseline, 75)        iqr = q3 - q1        current = values[-1]        upper_bound = q3 + 1.5 * iqr        lower_bound = q1 - 1.5 * iqr        is_anomaly = current > upper_bound or current < lower_bound        deviation = max(            (current - upper_bound) / iqr if current > upper_bound else 0,            (lower_bound - current) / iqr if current < lower_bound else 0        )return is_anomaly, float(deviation)iso_detector = IsolationForestDetector()iqr_detector = IQRDetector()@app.post("/detect", response_model=DetectionResult)async def detect_anomaly(request: MetricRequest):    values = np.array(request.values).reshape(-1, 1)# 阶段1:IQR快速筛查    iqr_result, deviation = iqr_detector.detect(request.values)if not iqr_result:return DetectionResult(            is_anomaly=False,            confidence=1.0,            algorithm="iqr",            details={"deviation": deviation}        )# 阶段2:Isolation Forest确认if len(values) >= 10:        iso_detector.fit(values[:-1])        anomalies, score = iso_detector.predict(values[-1:])        is_anomaly = len(anomalies) > 0        confidence = 1.0 - abs(score)else:        is_anomaly = True        confidence = min(0.9, 0.5 + deviation * 0.2)return DetectionResult(        is_anomaly=is_anomaly,        confidence=confidence,        algorithm="hybrid",        details={"iqr_deviation": deviation}    )# 启动: uvicorn anomaly_detector:app --host 0.0.0.0 --port 8000

5.3 部署配置(systemd)

# /etc/systemd/system/anomaly-detector.service[Unit]Description=AIOps Anomaly Detector ServiceAfter=network.target[Service]Type=simpleUser=aiopsWorkingDirectory=/opt/aiops/algorithmExecStart=/usr/bin/python3 -m uvicorn anomaly_detector:app --host 0.0.0.0 --port 8000Restart=alwaysRestartSec=10[Install]WantedBy=multi-user.target

六、多Agent协同根因分析流程

根因分析(RCA)需要整合多模态数据。当前主流方案采用多Agent协同架构,由多个专门Agent分工协作完成推理。某开源项目的实践表明,通过4个Agent协作(监控告警→根因分析→故障自愈→变更审批),MTTR可从40分钟降至5分钟以内。


七、根因分析服务搭建(Go)

7.1 核心设计思路

根因分析需要整合多模态数据:指标异常、日志错误、调用链依赖。核心流程:

  1. 异常触发:检测服务发现指标异常,生成告警事件
  2. 图谱查询:查询服务依赖关系,定位故障影响范围
  3. 多维度关联:结合日志错误、调用链耗时、基础设施状态
  4. 推理输出:生成根因排序列表及推理依据

7.2 核心代码实现

// rca_service.go - Go实现的根因分析服务核心框架package mainimport ("encoding/json""fmt""net/http""sort")type ServiceNode struct {    ID       string   `json:"id"`    Name     string   `json:"name"`    Depends  []string `json:"depends"`    DependedBy []string `json:"depended_by"`}type AnomalyEvent struct {    ServiceID   string  `json:"service_id"`    MetricName  string  `json:"metric_name"`    Value       float64 `json:"value"`    Timestamp   int64   `json:"timestamp"`}type RCAResult struct {    RootCause    string   `json:"root_cause"`    Confidence   float64  `json:"confidence"`    Evidence     []string `json:"evidence"`    AffectedPath []string `json:"affected_path"`}type RCAEngine struct {    serviceGraph map[string]ServiceNode}func NewRCAEngine() *RCAEngine {return &RCAEngine{        serviceGraph: make(map[string]ServiceNode),    }}func (e *RCAEngine) FindRootCause(event AnomalyEvent) RCAResult {    visited := make(map[string]bool)    queue := []string{event.ServiceID}    candidates := []string{}for len(queue) > 0 {        current := queue[0]        queue = queue[1:]if visited[current] {continue        }        visited[current] = true        node, exists := e.serviceGraph[current]if !exists {continue        }        candidates = append(candidates, current)for _, upstream := range node.DependedBy {if !visited[upstream] {                queue = append(queue, upstream)            }        }    }    sort.Slice(candidates, func(i, j int) bool {return len(e.serviceGraph[candidates[i]].DependedBy) >                len(e.serviceGraph[candidates[j]].DependedBy)    })if len(candidates) == 0 {return RCAResult{            RootCause:  "unknown",            Confidence: 0.0,            Evidence:   []string{"未找到候选根因节点"},        }    }    root := candidates[0]return RCAResult{        RootCause:  root,        Confidence: 0.72,        Evidence:   []string{fmt.Sprintf("服务 %s 处于依赖链最上游", root)},        AffectedPath: []string{root, event.ServiceID},    }}func (e *RCAEngine) HandleRCA(w http.ResponseWriter, r *http.Request) {    var event AnomalyEventif err := json.NewDecoder(r.Body).Decode(&event); err != nil {        http.Error(w, err.Error(), http.StatusBadRequest)return    }    result := e.FindRootCause(event)    w.Header().Set("Content-Type""application/json")    json.NewEncoder(w).Encode(result)}func main() {    engine := NewRCAEngine()    // 从CMDB或配置文件加载服务依赖图    // engine.serviceGraph = loadFromCMDB()    http.HandleFunc("/rca", engine.HandleRCA)    http.ListenAndServe(":8080", nil)}

八、验证与下一步

# 验证异常检测服务curl -X POST http://localhost:8000/detect \  -H "Content-Type: application/json" \  -d '{"service":"order-service","metric_name":"cpu_usage","values":[45,47,46,93,48,49]}'# 验证根因分析服务curl -X POST http://localhost:8080/rca \  -H "Content-Type: application/json" \  -d '{"service_id":"order-service","metric_name":"cpu_usage","value":95.3}'

快速检查清单:

  1. 异常检测服务是否部署并可通过API调用?
  2. Isolation Forest模型是否在历史数据上完成训练验证?
  3. 根因分析服务是否加载了服务依赖图谱?
  4. 是否配置了告警→分析→修复的完整流水线?
  5. 是否设置了自动化操作的熔断和回滚机制?

AIops 运维面试题目详解:AIOps & AI运维面试题详解(2026年大厂/国企版)

欢迎加w一起交流:19067272547

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-08-21 15:48:58 HTTP/2.0 GET : https://f.mffb.com.cn/a/506500.html
  2. 运行时间 : 0.222536s [ 吞吐率:4.49req/s ] 内存消耗:4,644.58kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=ebcf90d15c75d00cab9c296b1e723461
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000612s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000530s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000247s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.005348s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000509s ]
  6. SELECT * FROM `set` [ RunTime:0.008699s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000587s ]
  8. SELECT * FROM `article` WHERE `id` = 506500 LIMIT 1 [ RunTime:0.000448s ]
  9. UPDATE `article` SET `lasttime` = 1787298538 WHERE `id` = 506500 [ RunTime:0.003792s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000244s ]
  11. SELECT * FROM `article` WHERE `id` < 506500 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000688s ]
  12. SELECT * FROM `article` WHERE `id` > 506500 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.005794s ]
  13. SELECT * FROM `article` WHERE `id` < 506500 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.036073s ]
  14. SELECT * FROM `article` WHERE `id` < 506500 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.004988s ]
  15. SELECT * FROM `article` WHERE `id` < 506500 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001375s ]
0.224193s