博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Open Sourcing Kafka Monitor
阅读量:5983 次
发布时间:2019-06-20

本文共 3906 字,大约阅读时间需要 13 分钟。

 

 

 

 

Design Overview

Kafka Monitor makes it easy to develop and execute long-running Kafka-specific system tests in real clusters and to monitor existing Kafka deployment's SLAs provided by users.

Developers can create new tests by composing reusable modules to emulate various scenarios (e.g. GC pauses, broker hard-kills, rolling bounces, disk failures, etc.) and collect metrics; users can run Kafka Monitor tests that execute these scenarios at a user-defined schedule on a test cluster or production cluster and validate that Kafka still functions as expected in these scenarios. Kafka Monitor is modeled as manager for a collection of tests and services in order to achieve these goals.

A given Kafka Monitor instance runs in a single Java process and can spawn multiple tests/services in the same process. The diagram below demonstrates the relations between service, test and Kafka Monitor instance, as well as how Kafka Monitor interacts with a Kafka cluster and user.

这个平台比较有意思在于,不光是监控那么简单,

还包含完整的test框架,可以定义任意test,test由各种service,即组件,组合而成

  • Produce service, which produces messages to Kafka and measures metrics such as produce rate and availability.
  • Consume service, which consumes messages from Kafka and measures metrics including message loss rate, message duplicate rate and end-to-end latency. This service depends on the produce service to provide messages that embed a message sequence number and timestamp.
  • Broker bounce service, which bounces a given broker at some pre-defined schedule.

用上面的3个services,就可以组合出一个测试broker bounce的test

 

或者上面的case,通过两个kafka monitor,可以测试多datacenter之间的同步

 

Kafka Monitor Usage at LinkedIn

Monitoring Kafka Cluster Deployments

In early 2016 we deployed Kafka Monitor to monitor availability and end-to-end latency of every Kafka cluster at LinkedIn. This project goes into the details of how these metrics are measured. These basic but critical metrics have been extremely useful to actively monitor the SLAs provided by our Kafka cluster deployment.

 

Validate Client Libraries Using End-to-End Workflows

As explains, we have a client library that wraps around the vanilla Apache Kafka producer and consumer to provide various features that are not available in Apache Kafka such as Avro encoding, auditing and . We also have a REST client that allows non-Java application to produce and consume from Kafka. It is important to validate the functionality of these client libraries with each new Kafka release. Kafka Monitor allows users to plug in custom client libraries to be used in its end-to-end workflow. We have deployed Kafka Monitor instances that use our wrapper client and REST client in tests, to validate that their performance and functionality meet the requirement for every new release of these client libraries and Apache Kafka.

 

Certify New Internal Releases of Apache Kafka

We generally run off Apache Kafka trunk and cut a new internal release every quarter or so to pick up new features from Apache Kafka. A significant benefit of running off trunk is that deploying Kafka in LinkedIn’s production cluster has often detected problems in Apache Kafka trunk that can be fixed before official Apache Kafka releases.

Given the risk of running off Apache Kafka trunk, we take extra care to certify every internal release in a test cluster—which accepts traffic mirrored from production cluster(s)—for a few weeks before deploying the new release in production. For example, we do rolling bounces or hard kill brokers, while checking JMX metrics to verify that there is exactly one controller and no offline partitions, in order to validate Kafka’s availability under failover scenarios. In the past, these steps were manual, which is very time-consuming and doesn’t scale well with the number of events and types of scenarios we want to test. We are switching to Kafka Monitor to automate this process and cover more failover scenarios on a continual basis.

转载地址:http://vfrox.baihongyu.com/

你可能感兴趣的文章
MATLAB求实数绝对值——abs
查看>>
关于yii验证和yii错误处理
查看>>
.NET P2P: Writing Peer-to-Peer Networked Apps with the Microsoft .NET Framework
查看>>
Java 编程下 HashSet 存入相同元素的原理
查看>>
重温C#基础
查看>>
找房 -- 爱合住, ihezhu.com
查看>>
c++ template(6)模板术语
查看>>
10套华丽的 Windows 8 Metro 风格图标【2000+免费图标】
查看>>
Win8:最好用的开始菜单 StartIsBack 2.0.2 Multilingual Crack
查看>>
【20130321】sql server 2005 之后 文件状态变为了7,DEFUNCT(僵死状态)
查看>>
IP address of device using phone as access point
查看>>
3、单机运行环境搭建之 --CentOS-6.5安装配置Tengine
查看>>
.NET平台下几种SOCKET模型的简要性能供参考(转)
查看>>
memcmp和strncmp函数
查看>>
linux下apache字符集问题
查看>>
Deep learning:二十六(Sparse coding简单理解)
查看>>
C#中使用cookies
查看>>
认证、证书-【2013Esri开发者大会精彩看点】ArcGIS 10.2 for Server支持新的验证方式—PKI-by小雨...
查看>>
AutoIt自动化编程(1)
查看>>
font-family中文字体示例
查看>>