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 可观测性工程
106
|
11
延迟时间激增。从接入层开始;对服务节点进行分组;计算平均、
90%
99%
的延
迟。请注意,如果发现独立部署的写入服务节点突然变慢了,则按照数据库的服务
主机进行分组,会发现慢查询分布在个别数据库的主实例上。对于这些主实例,只
是在一些特定数据库实例或特定机房的实例中出现问题。所以可以断定,这不是代
码的问题,而是基础设施的问题。
11.4 微服务时代的调试
从这个角度来看,关于微服务的兴起和可观测性的兴起如此紧密地联系在一起的原
因,就变得显而易见了。过去,软件系统的组件较少,所以比较容易判断哪里出现了问
题。工程师可以通过只使用少数的几个指标就对所有可能出现的问题进行观察。然后,他
们可以简单地打开调试器或者
IDE
,搞清楚代码的逻辑。但是,一旦单体架构被分解成
许多分布式的微服务,调试器的方法就不是那么有效了,因为这种方法不能跨网络进行
调试。
作为历史的旁白,在“可观测性”这个词适配生产软件系统可以自观测之前,
“微服务链路追踪”这个说法是描述这种理解系统内幕新方式的一种尝试。
一旦服务请求开始跨网络的调用,各种额外的运维、架构、基础设施和其他各种复杂度
就会与各种业务上的逻辑问题交织在一起。
在单体架构中,如果在某个函数发布之后系统立刻变慢,那么可以用调试器来快速发
现。但现在,这种问题可能要采用多种方式才能发现。你可能会注意到某个特定的服务
越来越慢,或者一组互相依赖的服务越来越慢,或者在业务高峰期,你会发现有超时的
现象
或者唯一的表现可能是用户的抱怨。总之,防不胜防。
不管服务缓慢是如何表现出来的,根据你的监控工具 ...
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