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.
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.
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.
| import org.apache.pulsar.metadata.bookkeeper.BKCluster; | ||
|
|
||
|
|
||
| public class EmbeddedPulsarCluster implements AutoCloseable { |
There was a problem hiding this comment.
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.
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.
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.