Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/concepts-multiple-advertised-listeners.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ internalListenerName=internal
To make this work:

1. If you are using DNS names, register a unique name for each broker instance (for example, `external-broker-1.example.com`, `external-broker-2.example.com`, etc.).
2. Configure your network gateway or firewall to handle proxying or NAT for each broker instance so that the external IP and port are proxied to the internal IP and external listener port.
2. Configure your network gateway or firewall to handle proxying or NAT for each broker instance so that the external IP and port are proxied to the internal IP and external listener port. The port client connected must equal to external listener port.
3. Add a load balancer that proxies to any healthy available broker on the external listener port.

## Client configuration
Expand All @@ -100,7 +100,8 @@ PulsarClient internalSecureClient = PulsarClient.builder()
.serviceUrl("pulsar+ssl://private-brokers.internal:6651")
.build();

// External client with SSL
// External client with SSL.
// Client -> external-brokers.example.com:6651 -> private-brokers.internal:16651
PulsarClient externalClient = PulsarClient.builder()
.serviceUrl("pulsar+ssl://external-brokers.example.com:6651")
.build();
Expand Down