Skip to content
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

[FEATURE] support : Multiple advertised listeners #97

Open
Robustshouhualee opened this issue May 30, 2024 · 5 comments
Open

[FEATURE] support : Multiple advertised listeners #97

Robustshouhualee opened this issue May 30, 2024 · 5 comments

Comments

@Robustshouhualee
Copy link

backgroup

This tool currently does not support the configuration of :multiple converted listeners for pulsar. When the client's network environment is a combination of internal and external IPs, some network environments do not support writing to pulsar。

expect

Expect community authors to support this feature,thx。

Reference

https://pulsar.apache.org/docs/next/concepts-multiple-advertised-listeners/

@Robustshouhualee
Copy link
Author

please look this issue。 @xuthus5 @tuteng @zhongxp1219

@thetumbled
Copy link

Could you help to support this? thanks. @tuteng @shoothzj

@xuthus5
Copy link
Contributor

xuthus5 commented May 30, 2024

Do you want to make the ClientOptions.ListenerName parameter support configurable?
https://github.com/apache/pulsar-client-go/blob/2d51323103a65ba522dc73f56f052cc81d663245/pulsar/client.go#L133
@Robustshouhualee

@thetumbled
Copy link

Do you want to make the ClientOptions.ListenerName parameter support configurable? https://github.com/apache/pulsar-client-go/blob/2d51323103a65ba522dc73f56f052cc81d663245/pulsar/client.go#L133 @Robustshouhualee

It seems that the pulsar go client has support for configuring ListenerName, what should we do in this project if we want to configure it?

@xuthus5
Copy link
Contributor

xuthus5 commented May 30, 2024

Change the struct pulsarConfig and add a field such as:

ListenerName string `config:"listener_name"`

type pulsarConfig struct {

change function initOptions add condition:

if config.ListenerName != "" {
    clientOptions.ListenerName = config.ListenerName
}

func initOptions(

then change xxx.yaml add listener_name = {listener_name } to test.

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

No branches or pull requests

3 participants