Skip to content

When running standalone broker, force the proxy redirection flag - #1449

Merged
merlimat merged 1 commit into
apache:masterfrom
merlimat:standalone-advertised-host
Mar 28, 2018
Merged

merlimat merged 1 commit into
apache:masterfrom
merlimat:standalone-advertised-host

Conversation

@merlimat

@merlimat merlimat commented Mar 26, 2018 •

Copy link
Copy Markdown
Contributor

Motivation

Since standalone is running a "real" Pulsar service (along with ZK and BookKeeper) it uses the same discovery mechanism used in a full blown cluster.

One of the problematic aspect is that brokers need to advertise an IP/hostname that is routable by clients.

Since in standalone mode we have 1 single broker, we can get away with that additional configuration by forcing client to treat the standalone as a proxy.

Modifications

  • Added a configuration flag for standalone mode. When the flag is set it will force the clients to connect through the same service url they have been already connecting to.

Result

No need to specify advertisedAddress when running standalone service.

Fixes #1152
Closes #1318

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Mar 26, 2018
@merlimat merlimat added this to the 2.0.0-incubating milestone Mar 26, 2018
@merlimat merlimat self-assigned this Mar 26, 2018
@merlimat
merlimat requested review from jai1, rdhabalia and sijie March 26, 2018 23:46
@merlimat

Copy link
Copy Markdown
Contributor Author

retest this please

@jai1

jai1 commented Mar 27, 2018

Copy link
Copy Markdown
Contributor

In this approach - by default, we can't create a small test cluster of standalone brokers.

@merlimat
merlimat merged commit 8f6e33d into apache:master Mar 28, 2018
@merlimat
merlimat deleted the standalone-advertised-host branch March 28, 2018 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants