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

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

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
82
|
第
8
章
•
为了收集指标,它需要一个集中式的轮询器,这会给扩展和管理带来困难。这不是有关
成败的决定性条件,因为有成熟的方案可以解决这个问题(一些现代监控工具也使用集
中式的轮询器)。
•
还有更好的选择,它们的配置更简单,功能也更多。
与其使用
SNMP
,不如使用基于推送的工具,例如
collectd
、
Telegraf
或
Diamond
。
8.4
 
Web
服务器
如果是在企业环境中,那么你关于
Web
服务器性能的经验可能仅限于低流量、单节点的
Web
服务器。然而,如果是在
Web
应用程序环境中,
Web
服务器的性能就是一个应用程
序最重要的组成部分。在这两种用例下监控
Web
服务器是一样的,但是在
Web
应用程序
环境中,花费在观察指标上的时间会多出许多。
对于
Web
服务器,有一个评估性能和流量水平的黄金指标:
每秒请求数
(
req/sec
)。从根
本上说,
req/sec
是衡量吞吐量的。监控
HTTP
响应码对性能来说不那么重要,但对总体可
见性仍然很重要。如你所知,针对一个请求,
HTTP
协议有许多不同的可能响应。最常见
的是
200 OK
,但还有其他常见问题,比如
404 Not Found
、
500 Internal Server Error
和
503 Service Unavailable
(见表
8-1
)。
表8-1:HTTP响应码 (缩略版)
响应码组 组 含 义 常见响应码
1xx
信息性
100 Continue
2xx
成功
200 OK
,
204 No Content
3xx
重定向
301 Moved Permanently
,
302 ...
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