I had a question regarding Kafka broker clusters on AWS. Right now there is an AWS ELB sitting in front of the cluster, but when I set the "bootstrap.servers" property of my producer or consumer to the "A" record (and correct port number) of my ELB, both the producer and consumer fail to produce and consume messages respectively. I have turned off all SSL on my broker and am connecting through the PLAINTEXT 9092 port, with which my ELB forwards port 1234 to 9092. So in my Producer Configs properties for example, I will have...
bootstrap.servers = ("A" record of ELB):1234
More info:
- My ELB's protocol is TCP/TCP
- My "advertised.listeners" property on brokers are PLAINTEXT://(ec2-private-ip):9092
Has anyone had any luck running Kafka behind an ELB? If so, please help me out!