[Erlang危机](5.0)运行时指标

原创文章,转载请注明出处:服务器非业余研究http://blog.csdn.net/erlib 作者Sunface
联系邮箱:cto@188.com



Chapter 5 Runtime Metrics

运行时指标(Runtime Metrics)

One of the best selling points of the Erlang VM for production use is how transparent it can be for all kinds of introspection, debugging, profiling, and analysis at run time.
 The advantage of having these runtime metrics accessible programmatically is that building tools relying on them is easy, and building automation for some tasks or watchdogs is equally simple 1
 Then, in times of need, it’s also possible to bypass the tools and go direct to the VM for information.

   Erlang VM透明的自省机制是Erlang最好的卖点之一:VM运行时的debug,性能测试和系统分析。
 这些可供运行时以程序方式访问的指标优点在于:用它们构建工具非常简单,而且使得某些任务构建自动化或监管机制(watchdogs)也非常简单1。甚至在需要时,直接向VM获取信息(无需使用工具)。

 A practical approach to growing a system and keeping it healthy in production is to make sure all angles are observable: in the large, and in the small. There’s no generic recipe to tell in advance what is going to be normal or not.
 You want to keep a lot of data and to look at it from time to time to form an idea about what your system looks like under normal circumstances. The day something goes awry, you will have all these angles you’ve grown to know, and it will be simpler to find what is off and needs fixing.

 当系统不断庞大时如果还要保证系统健康,那么一个很好的实践办法就是保证系统的各个方面都是可以被监测的,这里并没有预测系统行为的通用方法。
 你需要不断地保存查看系统的相关数据,了解你的系统在正常情况下是什么状态。等遇到问题时,你就能及时发现问题,然后轻松地找出错误并修复它。

 For this chapter (and most of those that follow), most of the concepts or features to be shown are accessible through code in the standard library, part of the regular OTP distribution.
 However, these features aren’t all in one place, and can make it too easy to shoot yourself in the foot within a production system. They also tend to be closer to building blocks than usable tools.

 这一章节(以及接下来的大部分章节),绝大部分的概念或特性都是可以通过标准库来访问的,还有一部分是常用的OTP分布(OTP distuibution)。
 但这些特性并不是都在同一个地方,并且在生产系统中非常容易让你搬石头砸自己的脚。相比那些可用工具(usable tools)来说,他们更倾向于构建块。

 Therefore, to make the text lighter and to be more usable, common operations have been regrouped in the recon  2 library, and are generally production-safe.

 因此,为了使文本更加轻,更有用,常用的操作都被放在了recon2库里,他们都是可以放心使用的。

[1] Making sure your automated processes don’t run away and go overboard with whatever corrective actions they take is more complex
[2]  http://ferd.github.io/recon/

[注1]:确保你的自动化过程不走极端,不跑偏。
[注2]:http://ferd.github.io/recon/。
1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值