Skip to Content
Kafka权威指南
book

Kafka权威指南

by Neha Narkhede, Gwen Shapira, Todd Palino
January 2018
Beginner to intermediate
234 pages
7h 8m
Chinese
Posts & Telecom Press
Content preview from Kafka权威指南
8
跨集群数据镜像
本书的大部分内容都是在讨论单个
Kafka
集群的配置、维护和使用。不过,在某些场景的
架构里,可能需要用到多个集群。
有时候,这些集群相互独立,属于不同的部门,或者有不同的用途,那么就没有必要在集
群间复制数据。有时候,因为对
SLA
有不同的要求,或者因为工作负载的不同,很难通过
调整单个集群来满足所有的需求。还有一些时候,对安全有各种不同的要求。这些问题其
实很容易解决,就是分别为它们创建不同的集群——管理多个集群本质上就是重复多次运
行单独的集群。
在某些情况下,不同的集群之间相互依赖,管理员需要不停地在集群间复制数据。大部分
数据库都支持
复制
replication
),也就是持续地在数据库服务器之间复制数据。不过,因
为前面已经使用过“复制”这个词来描述在同一个集群的节点间移动数据,所以我们把集
群间的数据复制叫作
镜像
mirroring
)。
Kafka
内置的跨集群复制工具叫作
MirrorMaker
在这一章,我们将讨论跨集群的数据镜像,它们既可以镜像所有数据,也可以镜像部分数
据。我们先从一些常见的跨集群镜像场景开始,然后介绍这些场景所使用的架构模式,以
及这些架构模式各自的优缺点。接下来我们会介绍
MirrorMaker
以及如何使用它,然后说
明在进行部署和性能调优时需要注意的一些事项。最后我们会对
MirrorMaker
的一些替代
方案进行比较。
8.1
 跨集群镜像的使用场景
下面列出了几个使用跨集群镜像的场景。
118
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

精通機器學習

精通機器學習

Aurélien Géron
精通特征工程

精通特征工程

Alice Zheng, Amanda Casari
高效能PYTHON程式設計

高效能PYTHON程式設計

Micha Gorelick, Ian Ozsvald

Publisher Resources

ISBN: 9787115473271