wangjialing218 opened a new pull request, #15717:
URL: https://github.com/apache/pulsar/pull/15717

   ### Motivation
   
   Currently we have only Admin API  `Bookies.updateBookieRackInfo()` to config 
rack info. 
   If we want to setup up a pulsar cluster with some rack info config, we need 
to start brokers first,  wait for brokers start, then call Admin API.
   It's better to provide a way to do the config before start brokers to make 
the deployment more easier.
   
   ### Modifications
   
   Add rack info setting in cluster metadata setup like:
   ```
   bin/pulsar initialize-cluster-metadata \
                   --cluster clusterName \
                   --zookeeper 127.0.0.1:2181 \
                   --configuration-store 127.0.0.1:2181 \
                   --web-service-url http://127.0.0.1:8080 \
                   --broker-service-url pulsar://127.0.0.1:6650 \
                   --rack-info 
address:127.0.0.1:3181,rack:/rack1;address:127.0.0.2:3181,rack:/rack2
   ```
   
   ### Verifying this change
   This change added tests and can be verified as follows:
   ClusterMetadataSetupTest.testSetupWithBkRackInfo
   
   ### Documentation
   
   - [x] `doc-required` 
   (Your PR needs to update docs and you will update later)
     


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to