You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#zookeeper.connect=139.198.189.37:10081/kafka1/t5 // wrong zk 无需被代理
#zookeeper.connect=172.23.5.12:2181/kfk/t5 #// right
# method 1 ---> deprecated
advertised.port=10011
advertised.host.name=139.198.189.37
# method 2
advertised.listeners=PLAINTEXT://139.198.189.37:10011
listeners=PLAINTEXT://172.23.5.11:9092
# all lb listener should use TCP rather http
# eg. 139.198.189.37:10011 --> 172.23.5.11:9092
内网访问流量流向:源主机 --> LB EIP ---> 目的主机
# method 3 associate_eip to kafka role
advertised.listeners=OUTSIDE://139.198.187.102:10011,INSIDE://172.23.5.11:9092 # notice the order, the first one will display in cmak
listeners=INSIDE://:9092,OUTSIDE://:10011
listener.security.protocol.map=INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
inter.broker.listener.name=INSIDE # Name of listener used for communication between brokers
# The flow is mainly route by ports rather than ip,
内网流量可以通过 9092 端口走内网IP,也可以通过 10011 端口走外网IP(需要改 dns)
The text was updated successfully, but these errors were encountered:
允许 Kafka 多节点集群在公网被使用。
优点:业务对接更方便
缺点:1,添加 ssl 验证或导致性能损耗。2,所有的流量都经过 LB 和 vpc router,包括内网访问,访问速率将受到多方面限制。
配置文件示例。
The text was updated successfully, but these errors were encountered: