Skip to content

Commit 7ca02fd

Browse files
authored
KAFKA-16617 Add KRaft info for the advertised.listeners doc description (#17552)
Reviewers: Chia-Ping Tsai <[email protected]>
1 parent ae3c5de commit 7ca02fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

server/src/main/java/org/apache/kafka/network/SocketServerConfigs.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ public class SocketServerConfigs {
7878
" <code>PLAINTEXT://127.0.0.1:9092,SSL://[::1]:9092</code>%n";
7979

8080
public static final String ADVERTISED_LISTENERS_CONFIG = "advertised.listeners";
81-
public static final String ADVERTISED_LISTENERS_DOC = String.format(
82-
"Listeners to publish to ZooKeeper for clients to use, if different than the <code>%s</code> config property." +
81+
public static final String ADVERTISED_LISTENERS_DOC = String.format("Specifies the listener addresses that the Kafka brokers will advertise to clients and other brokers." +
82+
" The config is useful where the actual listener configuration <code>%s</code> does not represent the addresses that clients should" +
83+
" use to connect, such as in cloud environments. In environments using ZooKeeper, these addresses are published to ZooKeeper." +
84+
" In Kraft mode, the address would be published to and managed by kraft controller, the brokers would pull these data from controller as needed." +
8385
" In IaaS environments, this may need to be different from the interface to which the broker binds." +
8486
" If this is not set, the value for <code>%1$1s</code> will be used." +
8587
" Unlike <code>%1$1s</code>, it is not valid to advertise the 0.0.0.0 meta-address.%n" +

0 commit comments

Comments
 (0)