Skip to Content
Graphite监控
book

Graphite监控

by Jason Dixon
October 2020
Intermediate to advanced
261 pages
5h 32m
Chinese
Publishing House of Electronics Industry
Content preview from Graphite监控
40
3
Graphite
组件
助你平息可能发生的混乱。特别是,我喜欢使用白名单保证根命名空间遵循良好的
命名策略。
提供指标沙箱
命名规则的一个例外是提供一个测试沙箱目录,每个人都可以向其中发送任何用于
测试的内容。我通常在根命名空间中创建一个测试目录,并明确指出,命名空间中
的所有指标将在预定的时间(对我来说,通常是两周)后删除。
你可以像示例
3-6
那样设置一个定时任务,但一定要小心,不要删除沙箱之外的生产数据。
示例3-6:清理指标沙箱
$ crontab -l
4 * * * find /data/whisper/test/ -name \*.wsp -ctime +14 | xargs sudo rm
性能考量
你可能还记得之前我强调为
Carbon/Whisper
节点使用
SSD
磁盘。如果不记得,请允许
我重申 :你应该在
Whisper
文件的写入场景使用
SSD
Whisper
是一种磁盘文件格式,
需要支持大量连续写入操作。你也可以使用一个大型快速
RAID
阵列,但是固态硬盘的
价格已经十分便宜,因此没有理由不使用它。
如果你不得不使用非
SSD
驱动器,最好将
Whisper
数据存储在专用文件系统上。从容量
隔离的角度来考虑,这也是一个明智的决定。即便因为没有监控
Carbon
的活动从而导
致磁盘被写满,也不会影响其他系统日志和操作。
最后,你需要关注正在创建的
Whisper
文件的数量,以及对
I/O
子系统的影响。创建新
Whisper
文件会阻塞
Whisper
数据库的更新和读取操作,这会对用户的体验产生很大 ...
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

写给系统管理员的Python脚本编程指南

写给系统管理员的Python脚本编程指南

Posts & Telecom Press, Ganesh Sanjiv Naik
弱监督学习实用指南

弱监督学习实用指南

Wee Hyong Tok, Amit Bahree, Senja Filipi
精通機器學習

精通機器學習

Aurélien Géron

Publisher Resources

ISBN: 9787121395154