Description
Currently Kafka clients resolve a symbolic hostname using
new InetSocketAddress(String hostname, int port)
which only picks one IP address even if the DNS has multiple records for the hostname, as it calls
InetAddress.getAllByName(host)[0]
For some environments where the hostnames are mapped by the DNS to multiple IPs, e.g. in clouds where the IPs point to the external load balancers, it would be preferable that the client, on failing to connect to one of the IPs, would try the other ones before giving up the connection.
Attachments
Attachments
Issue Links
- causes
-
KAFKA-7755 Kubernetes - Kafka clients are resolving DNS entries only one time
- Resolved
- duplicates
-
KAFKA-2036 Consumer and broker have different networks
- Resolved
- links to