-
Notifications
You must be signed in to change notification settings - Fork 3.7k
PIP-45: Allow to configure metadata store URL in broker.conf #13077
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
PIP-45: Allow to configure metadata store URL in broker.conf #13077
Conversation
| # Configuration Store connection string | ||
| configurationStoreServers= | ||
| # The metadata store URL for the configuration data. If empty, we fall back to use metadataStoreUrl | ||
| configurationMetadataStoreUrl= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's will be a breaking change when we use the docker image? If we don't have this configuration in the broker.conf, we need to add PULSAR_PREFIX I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have moved all the deprecated configs in a section at the end of the file, to be less visible (and less confusing) but without breaking the compatibility.
eolivelli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
| import org.apache.pulsar.metadata.bookkeeper.BKCluster; | ||
|
|
||
|
|
||
| public class EmbeddedPulsarCluster implements AutoCloseable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notes for the future:
It will be great to expose an official API for this.
It will help a lot downstream users.
PulsarStandalone Builder doesn't work well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I just started very simple as a way to use it as the base for unit tests, but with the idea of expanding it.
lhotari
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff!
nicoloboschi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
f6773e0 to
f7f3cde
Compare
|
For the doc side, I've discussed with @codelipenghui, the following changes will be made after 2.9.0 is released:
Hi @merlimat any thoughts? |
…13077) * PIP-45: Allow to configure metadata store URL in broker.conf * Removed unused imports * Register BK metadata-store scheme handler for BK client to accept config * Fixed default for loadBalancerOverrideBrokerNicSpeedGbps to Optional.empty() * Fixed registration of BK client driver handler * Fixed worker service bk client config * Fixed AdminTest * Fixed ledger id generator to handle badversion in graceful way * Fixed BookKeeperClientFactoryImplTest
|
@merlimat Should proxy also change zookeeperServers to metadataStoreUrl? |
Motivation As per apache#13077, `configurationStoreServers` need to be renamed to `configurationMetadataStoreUrl`. Modification * Add `configurationMetadataStoreUrl` setting to websocket * Deprecate `configurationStoreServers` in websocket Signed-off-by: Zike Yang <zkyang@streamnative.io>
… cluster metadata Motivation As per apache#13077, `configurationStoreServers` need to be renamed to `configurationMetadataStoreUrl`. Modification * Add `configurationMetadataStore` to PulsarClusterMetadataSetup. Signed-off-by: Zike Yang <zkyang@streamnative.io>
Master Issue: #13077 ### Motivation Allow to configure the metadata store endpoint in proxy.conf. ### Modifications Deprecated few config options: zookeeperServers --> metadataStoreUrl configurationStoreServers --> configurationMetadataStoreUrl Moved all deprecated settings at the end of broker.conf.
Master Issue: apache#13077 ### Motivation Allow to configure the metadata store endpoint in proxy.conf. ### Modifications Deprecated few config options: zookeeperServers --> metadataStoreUrl configurationStoreServers --> configurationMetadataStoreUrl Moved all deprecated settings at the end of broker.conf.


Motivation
Allow to configure the metadata store endpoint in
broker.conf.Modifications
Deprecated few config options:
zookeeperServers-->metadataStoreUrlconfigurationStoreServers-->configurationMetadataStoreUrlMoved all deprecated settings at the end of
broker.conf.Added
EndToEndMetadataTestwhich spin up a cluster with brokers, bookies against all the supported metadata stores (ZK, local memory and RocksDB) and does basic produce/consume.