跳到主内容
@wquguru
精选88Hacker News Best(web_list)技巧与观点

AI处理故障导致工程师脱离系统掌控,需引入模拟训练

AI处理故障导致工程师脱离系统掌控

原文
发到 X
推荐理由

深度反思AI自动化带来的工程能力退化风险,提出可落地的模拟训练方案,SRE与运维管理者必读。

Back to the blog

返回博客

When I was an SRE at LinkedIn, back in 2012, I designed a system that could heal itself and learn from previous incidents. AI capabilities were nowhere near what we have today, and that remained a prototype, but this is now a reality.

2012年,当我在LinkedIn担任SRE时,我设计了一个能够自我修复并从过往事故中学习的系统。当时的AI能力远不及今天,该系统仅停留在原型阶段,但如今这已成为现实。

These tools do it all: inspect alerts, form hypotheses, query telemetry, correlate recent deployments, and even implement the fix themselves. As much as I love to see it, I have a major concern: we are losing touch with our systems.

这些工具包揽了一切:检查告警、形成假设、查询遥测数据、关联最近的部署,甚至自行实施修复。尽管我很高兴看到这一进展,但我有一个主要担忧:我们正在与自己的系统失去联系。

The better these tools become at resolving routine incidents, the less practice human responders will get. And when an ambiguous, high-severity incident comes in that automation cannot solve, responding engineers will be in trouble.

这些工具在处理常规事故方面变得越出色,人工响应者获得的实践机会就越少。当出现自动化无法解决的模糊且高严重性的事故时,响应工程师将会陷入困境。

Automation leaves humans with the hardest incidents#

自动化将最棘手的事故留给了人类#

These AI-assisted incident response tools, more commonly called “AI SREs” – a term I don’t particularly like – are fantastic in many ways. They feel especially magical when they handle a routine incident at night and you don’t have to wake up for a capacity issue.

这些辅助AI的事故响应工具,更常被称为“AI SRE”——我并不特别喜欢这个术语——在许多方面都表现出色。当它们在夜间处理常规事故,而你无需因容量问题醒来时,它们显得尤为神奇。

The problem is that routine incidents are also how responders “safely” develop an intuition for how their systems behave and fail. When AI runs into a hard, never-seen-before incident it cannot solve, engineers will have to take over with less practice than they would have had before.

问题在于,常规事故也是响应者“安全地”培养对系统行为和故障模式直觉的途径。当AI遇到它无法解决的复杂且前所未见的事故时,工程师必须接手,但他们获得的实践经验会比以前更少。

Human-factors researcher Lisanne Bainbridge described this paradox in her famous 1983 paper, The Ironies of Automation. She explained that automation reduces operators’ opportunities to practice routine work while leaving them responsible for new and abnormal situations. She argues that, therefore, operators need to be more skilled and receive even more training than before automation.

人因研究员Lisanne Bainbridge在她著名的1983年论文《自动化的讽刺》中描述了这一悖论。她解释说,自动化减少了操作员练习常规工作的机会,却让他们负责新的和异常情况。因此,她认为操作员需要具备更高的技能,并接受比自动化之前更多的培训。

In the years to come, I predict that the average MTTR for most incidents will go down – thanks to AI-assisted incident response – but that the resolution time will shoot up for complex incidents because incident responders lost touch with their system and are struggling to investigate.

在未来几年,我预测大多数事故的平均MTTR(平均恢复时间)将会下降——得益于AI辅助的事故响应——但对于复杂事故,由于响应者与系统脱节并难以进行调查,解决时间将会飙升。

Aviation trains pilots for rare failures#

航空业为罕见故障训练飞行员#

We can look at the aviation industry for inspiration.

我们可以从航空业汲取灵感。

Plane automation handles much of the flying, but pilots remain responsible for situations that automation cannot manage: engine failures, unreliable instruments, rejected takeoffs, stalls, and other abnormal conditions.

飞机自动化处理了大部分飞行任务,但飞行员仍要对自动化无法管理的情况负责:如发动机故障、仪表不可靠、中断起飞、失速以及其他异常状况。

These events are extremely rare. Modern turbine engines, for example, experience fewer than one in-flight shutdown per 100,000 engine flight hours. In other words, that is rare enough that a commercial pilot may complete an entire career without experiencing one outside a simulator.

这些事件极其罕见。例如,现代涡轮发动机的空中停车率低于每10万飞行小时一次。换句话说,这种情况足够罕见,以至于一名商业飞行员可能在整个职业生涯中(模拟器除外)都未曾经历过一次。

But when a failure occurs, pilots must react quickly and correctly. For example, on TransAsia Airways Flight 235, the right engine’s propeller autofeathered shortly after takeoff. And while the aircraft was designed to continue flying on its left engine, the crew misidentified the problem. The aircraft stalled and crashed only 117 seconds after the first warning.

但当故障发生时,飞行员必须迅速且正确地做出反应。例如,在复兴航空235号班机事故中,右引擎的螺旋桨在起飞后不久自动顺桨。尽管该飞机设计为可在单侧引擎(左侧)运行下继续飞行,但机组人员误判了问题所在。飞机在首次发出警告后仅117秒便失速坠毁。

Airline pilots regularly return to simulators to rehearse rare emergencies. Under US FAA rules, captains must complete recurrent training or a proficiency check every six months, including scenarios such as an engine failure during takeoff.

航空公司飞行员定期返回模拟器以演练罕见的紧急情况。根据美国联邦航空管理局(FAA)的规定,机长必须每六个月完成一次复训或熟练度检查,其中包括起飞时引擎故障等场景。

While most software incidents do not threaten lives, that is no reason not to perfect our craft. Turns out the technology that created the issue can also help close it.

虽然大多数软件事故并不危及生命,但这并不是我们不精益求精的理由。事实证明,造成问题的技术也可以帮助解决问题。

The software industry needs incident simulators#

软件行业需要事故模拟器

At Rootly, an incident management company where I work, we partnered with Uptime Labs to apply this idea through realistic incident simulations. Engineers take the incident commander’s seat during a simulated e-commerce outage, using observability tools while coordinating with LLM-powered stakeholders in Slack.

在我工作的事故管理公司Rootly,我们与Uptime Labs合作,通过逼真的事故模拟来应用这一理念。工程师在模拟的电子商务中断事件中担任事故指挥官,在使用可观测性工具的同时,与Slack中由LLM驱动的干系人进行协调。

The result feels real. You have to investigate what’s going wrong while keeping the response organized and dealing with the CEO and customer support. You get to practice the skills that matter during an incident: making sense of incomplete information, communicating clearly, coordinating people, and actually running the response.

结果非常逼真。你必须调查出了什么问题,同时保持响应工作井然有序,并应对首席执行官和客户支持团队。你可以练习在事故期间至关重要的技能:解读不完整的信息、清晰沟通、协调人员以及实际执行应急响应。

AI can also help preserve these skills#

AI也有助于保留这些技能

But what about using AI as a trainer? Responders can ask an agent to explain the steps it took, the signals it examined, and the evidence behind its diagnosis.

那么,将AI用作培训师呢?响应人员可以要求代理解释其采取的步骤、检查的信号以及诊断背后的依据。

But explanation and observation are not substitutes for practice. You might pick up a few things from watching Serena Williams play, but you only learn tennis by getting on the court, and incident response is no different.

但解释和观察不能替代实践。你可能从观看塞雷娜·威廉姆斯(Serena Williams)打球中学到一些东西,但你只有通过上场才能真正学会打网球,事故响应也是如此。

I spent more than half a decade of my career building a software engineering school around progressive education: learning by doing. It was in-person, but we had no teachers; students worked on projects instead of listening to lectures. When Dropbox told me graduates it hired were still too inexperienced at troubleshooting, I created projects that gave students broken infrastructure and required them to diagnose and repair it. For most hands-on skills, I believe hands-on education beats passive instruction by a lot.

在我的职业生涯中,我花了五年多的时间围绕渐进式教育理念构建了一所软件工程学校:通过实践来学习。课程是线下的,但我们没有教师;学生通过项目工作,而不是听讲座。当 Dropbox 告诉我他们招聘的毕业生在故障排查方面仍然缺乏经验时,我设计了让学生面对损坏的基础设施并需要诊断和修复的项目。对于大多数动手技能,我认为动手教育远胜于被动教学。

Incident simulation should become part of on-call readiness#

事故模拟应成为值班准备的一部分#

As LLMs do more of our work, engineering teams risk accumulating comprehension debt: a growing gap between how their systems work and how well responders understand them.

随着大语言模型(LLMs)承担越来越多的工作,工程团队面临着积累理解债务的风险:即系统实际运作方式与响应人员对系统的理解程度之间日益扩大的差距。

Engineers should regularly interact with the system they watch over, handle unfamiliar failures, practice working under pressure, and rehearse the coordination and communication required during a SEV0. Tabletop exercises and chaos engineering are nothing new, but practice has become even more important in the LLM era.

工程师应定期与他们监控的系统进行交互,处理不熟悉的故障,练习在压力下工作,并演练 SEV0 级别事故期间所需的协调与沟通。桌面推演和混沌工程并非新鲜事物,但在大语言模型时代,实践变得尤为重要。

Researcher Bainbridge recommended giving operators regular hands-on control and using simulation to prevent their skills from decaying. That’s the irony of automation, the more successful it becomes, the less prepared humans may be for the moment it fails.

研究者 Bainbridge 建议让操作员定期获得手动控制权,并利用模拟来防止他们的技能退化。这就是自动化的讽刺之处:自动化越成功,人类在系统失效那一刻的准备可能就越不足。

Sylvain Kalache

Sylvain Kalache

AI Labs lead and DevRel at Rootly. Former LinkedIn SRE and co-founder of Holberton School.

Rootly 的 AI 实验室负责人及开发者关系专家。前 LinkedIn SRE,Holberton School 联合创始人。

Related writing

相关文章

articleLLMs Broke the SRE Runbook. Now What?articleIs AI-assisted coding an incident magnet?articleVibe Coding Is Here — But Are You Ready for Incident Vibing?

文章《大语言模型破坏了 SRE 运行手册。现在该怎么办?》文章《AI 辅助编码是事故磁铁吗?》文章《Vibe Coding 已到来——但你准备好应对事故氛围了吗?》

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近