Skip to Content
监控运维实践:原则与策略
book

监控运维实践:原则与策略

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
76
|
第
7
章
客户端
负载均衡器
Web
框架
资源API
鉴权 计费 资源
图 7-4:一个跟踪的例子
1
正确地实现分布式跟踪显然是最具挑战性和最耗时的监控技术,更不用说它只适用于小部
分行业了。分布式跟踪并不是为那些意志薄弱的,或者人手不足并且过度劳累的工程团队
准备的。如果已经拥有了所有想要的指标和日志,但发现自己仍然在为了理解内部服务的
性能以及在一个分布式架构中排除故障而挣扎时,那么分布式跟踪可能适合你(对于那些
有着大规模
severless
基础设施的人来说同样适合),否则,高效地使用指标和日志来衡量
应用程序会得到更好的(并且更快的)结果。
2
7.7
 小结
总结一下本章中介绍的关于应用程序监控的知识。
•
使用指标和日志来衡量应用程序有助于提高理解应用程序性能并排除其故障的能力。
•
跟踪程序发布并将其与应用程序以及基础设施的性能关联起来。
• /health
端点模式非常简洁,尽管其只对特定的架构设计有用。
• Serverless
和微服务监控实际上与其他应用程序没有什么不同,如果你有相当大的部署
规模,那么分布式跟踪可能是接下来要投入时间和精力的地方。
当然,如果应用程序代码运行在某处的服务器上,那么该服务器的性能就会对应用程序的
性能产生很大的影响。下一章会介绍有关监控服务器基础设施的内容。
注
1
:
这是基于在
OpenTracing
框架的文档中找到的一个例子,版权归
OpenTracing
项目所有。
注
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

Java数据科学实战

Java数据科学实战

Michael R. Brzustowicz, PhD
可编程网络自动化

可编程网络自动化

Jason Edelman, Scott S. Lowe, Matt Oswalt
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115550750