Coder Social home page Coder Social logo

Advertised broker address about pulsar HOT 6 CLOSED

apache avatar apache commented on July 19, 2024 1
Advertised broker address

from pulsar.

Comments (6)

merlimat avatar merlimat commented on July 19, 2024 1

Yes, having both gives the most flexibility, and please go ahead in removing bindOnLocalhost.

from pulsar.

merlimat avatar merlimat commented on July 19, 2024

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

from pulsar.

radekg avatar radekg commented on July 19, 2024

This will not work on EC2, the public IP address is not available via ifconfig. Broker would always advertise private 10.x.x.x address. What about doing it similar to how Kafka does it?

# If set, broker will advertise to discovery using this address;
# if empty, broker will advertise using the hostname, unless bindOnLocalhost
advertiseBrokerAddress=<ip address or hostname>

Yet to figure out this will work if the broker binds on the hostname. It might be a good idea to allow people set the bind address / host. For example:

# to bind on all interfaces, set to 0.0.0.0
brokerBindAddress=<ip or hostname>

What do you think?

from pulsar.

merlimat avatar merlimat commented on July 19, 2024

Oh, I see. Then your proposal sounds good.

from pulsar.

radekg avatar radekg commented on July 19, 2024

Shall I target for brokerBindAddress and advertiseBrokerAddress? This might deprecate the bindOnLocalhost as the user could do brokerBindAddress=localhost # or 127.0.0.1.

from pulsar.

radekg avatar radekg commented on July 19, 2024

@merlimat Please see attached PR. I went for brokerAddress and advertisedAddress as these settings relate to broker.conf file.

from pulsar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.