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权威指南
128
8
步,这是一种合规性需求,可以应用在公司的任何一个数据存储上,包括
Kafka
本身。这
种架构的另一个好处是,数据中心及所有
broker
都发挥了作用,不存在像主备架构那样的
资源浪费。
这种架构的不足之处在于,它所能应对的灾难类型很有限,只能应对数据中心的故障,无
法应对应用程序或者
Kafka
故障。运维的复杂性是它的另一个不足之处,它所需要的物理
基础设施并不是所有公司都能够承担得起的。
如果能够在至少
3
个具有高带宽和低延迟的数据中心上安装
Kafka
(包括
Zookeeper
),
么就可以使用这种架构。如果你的公司有
3
栋大楼处于同一个街区,或者你的云供应商在
同一个地区有
3
个可用的区域,那么就可以考虑使用这种方案。
为什么是
3
个数据中心?主要是因为
Zookeeper
Zookeeper
要求集群里的节点个数是奇
数,而且只有当大多数节点可用时,整个集群才可用。如果只有两个数据中心和奇数个节
点,那么其中的一个数据中心将包含大多数节点,也就是说,如果这个数据中心不可用,
那么
Zookeeper
Kafka
也不可用。如果有
3
个数据中心,那么在分配节点时,可以做到
每个数据中心都不会包含大多数节点。如果其中的一个数据中心不可用,其他两个数据中
心包含了大多数节点,此时
Zookeeper
Kafka
仍然可用。
从理论上说,在两个数据中心运行
Zookeeper
Kafka
是可能的,只要将
Zookeeper
的群
组配置成允许手动进行失效备援。不过在实际应用当中,这种做法并不常见。
8.3
 
Kafka
MirrorMaker ...
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