笔记 - Twitter 分布式架构的可观察性

Twitter分布式架构的可观察性
本文探讨了Twitter从单一架构向分布式架构转型的过程,详细介绍了如何通过内部JVM统计库、Twitter Server框架等手段进行指标收集,并利用HDFS、Scalding、Pig等工具进行批量处理和非数值型数据的分析。同时,文章还涉及了多租户环境下应用位置定位带来的复杂性,以及自建时间序列数据库(基于Cassandra或HBase/OpenTSDB)用于存储和查询指标数据。此外,文章强调了Twitter在指标可视化方面的强大功能,支持图表切换、比例选择和时间间隔设置,帮助用户快速了解系统状态。

笔记 - Twitter 分布式架构的可观察性

Andy erpingwu@gmail.com
2013/09/20-2013/09/20


原文:Observability at Twitter Monday, September 9, 2013 | By Cory G Watson (@gphat) [19:11 UTC]

As Twitter has moved from a monolithic to a distributed architecture, our scalability has increased dramatically.

  • 目录
    • Architecture Architecture

    • Collection

      • these metrics are exported by in-JVM stats libraries open-source Twitter-Server framework which provide convenient functions for adding instrumentation.
      • Depending on the level of instrumentation and which internal libraries are used (such as Finagle, which exports rich datasets)
      • For batch-processing and non-numeric values, the data is routed to HDFS using Scribe.
      • Scalding and Pig jobs can be run to produce reports for situations that are not time-sensitive.
      • Determining the network location of applications running in a multi-tenant scheduled environment such as Mesos adds additional complexity to metric collection when compared to ones deployed on statically allocated hosts.
    • Storage

      • Twitter 开发了自己的时间序列数据库,从架构图来看是基于 Cassandra的。另外一个可以考虑的是基于HBase之上的 OpenTSDB,对于已经使用该集群的公司来说更加合适。
    • Query Language

      • 支持query与alert
    • Visualization

      • 支持多种视角的切换:They can toggle between chart types (stacked and/or filled), chart scales (linear or logarithmic), and intervals (per-minute, per-hour, per-day).
    • Monitoring

    • Related Systems

    • Future Work

      • 提到机器的开销 About 1.5% of the machines in a data center are used for collection, storage, query processing, visualization, and monitoring (0.3% if storage is excluded).

转载于:https://my.oschina.net/erpingwu/blog/162782

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值