Human DX vs Agent DX

你的 CLI 该为 AI Agent 重写了

给人用的命令行和给 Agent 用的命令行,是两种东西。别慌——你不需要推翻重来,只需要加一张新脸。 ...

April 9, 2026 · 5 min · 909 words · fancive
AI 维护的个人百科架构

让 AI 帮你维护一个个人百科全书

你记过的笔记,最后真的翻过几次? ...

April 7, 2026 · 3 min · 532 words · fancive

如何量化 API 接口的 CPU 资源消耗:一种基于回归分析的方法

背景 在微服务架构中,一个服务通常包含数十甚至上百个 API 接口。当我们需要优化 CPU 资源消耗时,往往面临一个问题:哪些接口消耗了最多的 CPU? 传统方法是通过 profiling 工具(如 pprof)分析,但这种方法: 只能看到函数级别的消耗,难以直接关联到接口 需要在生产环境开启采样,有一定性能开销 难以持续监控和量化 本文介绍一种基于线性回归的方法,利用现有的监控数据(QPS 和 CPU 使用率),估算每个接口的 CPU 贡献。 ...

January 23, 2026 · 5 min · 960 words · fancivez

从代码评审到生产部署:自动化流水线实践

我们团队的后端部署原来是一套纯手动流程,跑一次至少 15 分钟,而且全程要盯着、容易出错。后来我写了个自动化工具把它压到 5 分钟、人工只剩一步。这篇记录一下当时的痛点和具体做法。 ...

January 30, 2025 · 1 min · 158 words · fancivez

Wheel of Life 2024

我让大模型读取了我的2024年每个月的月报(从周报和日记中总结),得到了以下的生命之轮得分 生命之轮 2024 基于对全年12个月的完整回顾分析,我现在重新为生命之轮的八个维度进行评分: ...

January 11, 2025 · 1 min · 95 words · fancive

Llm Driven Alert Diagnosis Engine Design(设计新一代LLM驱动的告警诊断引擎)

在当今复杂的IT环境中,快速准确地诊断和解决系统问题变得越来越具有挑战性。本文将探讨如何设计一个由大语言模型(LLM)驱动的诊断引擎,作为自动定位系统的核心组件,以智能化方式处理系统告警。 ...

August 31, 2024 · 2 min · 307 words · fancive

[Paper reading] A Survey On Log Research Of AIOps: Methods and Trends

first pass 5-10 mins title, abstract, and introduction section and sub-section headings conclusions references ...

March 25, 2023 · 3 min · 583 words · fancive

[paper reading]AIOps: Real-World Challenges and Research Innovations

first pass 5-10 mins title, abstract, and introduction section and sub-section headings conclusions references ...

March 18, 2023 · 2 min · 362 words · fancive

我从filebeat-harvester中学到什么

Filebeat 是 Elastic Stack 里的日志采集器,Harvester 模块负责逐行读文件。我读它的源码本来是想看采集逻辑,结果最大的收获是它怎么管理一组相互依赖的协程的生命周期。这篇就围绕四个问题来拆: 如何为主协程添加超时控制? 主协程结束时如何优雅关闭其他协程? 如何控制多个协程的关闭顺序? 如何从外部安全地关闭任务并等待清理完成? ...

November 28, 2022 · 3 min · 502 words · fancive

Filebeat 中使用的设计模式

Filebeat 是 Elastic Stack 里那个轻量级的日志采集器。最近读它的源码,发现几处设计模式用得很顺手,记一下:Registry + LazyInit、Observer、Strategy 和 Object Pool 这四个,正好对应插件化、解耦、可配置和性能优化几个常见诉求。 ...

September 16, 2020 · 2 min · 329 words · fancive