kafka principles and operation

reference:

principle:

https://www.cnblogs.com/yinzhengjie/p/9780976.html

Common configuration parameters:

https://www.cnblogs.com/yinzhengjie/p/9652392.html

operating:

See notes

# Daily Orders

https://www.cnblogs.com/yinzhengjie/p/9210029.html

 

 

kafka - ZK
Broker:
It is a kafka example, a general kafka run one instance of the Server.
Topic:
body, classifying traffic
partition: the actual work of the
leader:
the respective client read / write
follower:
the client what also quit, copy Leader
replication: a copy of the
recommendation for the best 2
will not affect the moment when a data frame, the shelf next to a broker a station.
with kafka-server-stop.sh, production will be relatively slow, but You do not use kill -9 kafka

+ = The ISR the OSR the AR
the ISR:
Leader, follower (between the time the number of control)
the OSR:
follower (follower If the difference exceeds the set number of pieces to put OSR)
controlled by unclean.leader.election.enable, such as For true, the OSR are also allowed to become leader of the follower
is set to true advantages are:
fast recovery speed, high availability
drawback is:
there is a risk of data loss

Guess you like

Origin www.cnblogs.com/hongfeng2019/p/11875934.html