-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advertised broker address #23
Comments
I'm not a big fan of setting the hostname to bind on the config file, since it would require to have a different config file on each host. What about a setting to advertise the broker address with just the IP ? Eg: something like : # Control whether the broker should advertise itself by using the hostname
# or its own IP address.
advertiseBrokerWithHostname=false |
This will not work on EC2, the public IP address is not available via
Yet to figure out this will work if the broker binds on the
What do you think? |
Oh, I see. Then your proposal sounds good. |
Shall I target for |
Yes, having both gives the most flexibility, and please go ahead in removing |
@merlimat Please see attached PR. I went for |
[Issue 2] Support Producer.flush()
Master Issue: #4 *Motivation* Support Kafka group coordinator protocols.
Expected behavior
Connecting through the discovery to the broker in the cluster setup should redirect to the public address of the broker. Preferably there should be an option to set an advertised
hostname
, this should come together with an option to set abind host
for the broker (however, this might not be necessary).Actual behavior
Broker advertises the
hostname
as the address for the client to connect to. On EC2, it results in the client trying to connect to something likeip-xx-xxx-xxx-xxx
which is not resolvable from outside of the same region. The error I see on my local machine while trying to publish messages to Pulsar is the following:I could set the hostname on the machine to a public IP address / public hostname but it is an ugly workaround. I do not have any DNS other than EC2 defaults available right now.
Steps to reproduce
Launch the cluster setup in EC2 (without any DNS other than EC2 defaults) and try producing messages.
System configuration
Pulsar version: 1.14
If the suggestions sound okay, I can prepare a PR.
The text was updated successfully, but these errors were encountered: