Skip to content

Conversation

casuallc
Copy link

✅ Contribution Checklist

@@ -102,7 +102,7 @@ PulsarClient internalSecureClient = PulsarClient.builder()

// External client with SSL
PulsarClient externalClient = PulsarClient.builder()
.serviceUrl("pulsar+ssl://external-brokers.example.com:6651")
.serviceUrl("pulsar+ssl://external-brokers.example.com:16651")
Copy link
Member

@lhotari lhotari May 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't actually a mistake. Earlier there's a sentence "Add a load balancer that proxies to any healthy available broker on the external listener port.". The load balancer (or rather a gateway) should map external-brokers.example.com:6651 to the internal IP address of the broker to port 16651. This should be clarified in the docs. Would you like to revisit this PR to cover that instead?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more addition:
If the external-brokers.example.com DNS name maps directly to the IP of the broker that it's bound to, then it should be port 16651, so there are 2 cases to cover.

Copy link
Author

@casuallc casuallc Jun 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't actually a mistake. Earlier there's a sentence "Add a load balancer that proxies to any healthy available broker on the external listener port.". The load balancer (or rather a gateway) should map external-brokers.example.com:6651 to the internal IP address of the broker to port 16651. This should be clarified in the docs. Would you like to revisit this PR to cover that instead?

If 6651 is proxed to 16651, the broker should response external-brokers.example.com:16651, then client wolud connected to external-brokers.example.com:16651?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants