Skip to Content
可观测性工程
book

可观测性工程

by Charity Majors, Liz Fong-Jones, George Miranda
July 2023
Beginner to intermediate
270 pages
4h 48m
Chinese
China Machine Press
Content preview from 可观测性工程
12
|
1
断出系统内部状态的好坏。
可观测性的这个定义将把可观测性和可控制性作为数学对偶来研究,通常关联着传感
器、线性代数方程组和形式化方法。当机械工程师研究现实世界的物理系统时,可观测
性的这种传统定义会很自然地出现在他们的脑海里。
如果你正在寻找数学和机械工程方面的教科书,那么这本书不适合你。这些书肯定是存
在的,并且任何机械工程师或控制系统工程师都会(通常是热情而详尽地)告诉你,在
传统的系统工程师术语中,可观测性有一个正式的含义。然而,当同样的概念适用于更
复杂的虚拟软件系统时,它开启了一种完全不同的理解你所编写的代码并与之交互的新
方式。
1.2 把可观测性应用到软件系统
卡尔曼的可观测性定义可以应用到现代软件系统中。不过,当我们将可观测性的概念应
用于软件系统时,还需要增加一些额外的思考来满足软件工程领域的需求。为了让一个
软件应用程序具有可观测性,你必须能做到以下几点:
了解应用程序的内部运行情况。
了解你的应用程序可能进入的所有系统状态,甚至是你以前从未见过和无法预测的
新状态。
仅通过观测和使用外部工具来了解内部运行情况和系统状态。
理解内部状态,而不是提供任何新的自定义代码来定义它(因为这意味着你需要事
先完全了解这些内部状态)
要判断你是否能做到这些,一种很好的方式就是问自己以下问题:
能否持续回答任何关于应用内部运行机制的开放式问题,以解释所有的异常并可以
做到完全无死角的覆盖(例如,发现某个问题可能与某些模糊的东西关联,但却无
法进一步分解从而真正定位这个问题)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

可观察性工程

可观察性工程

Charity Majors, Liz Fong-Jones, George Miranda
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9787111729099