michaeljmarshall commented on a change in pull request #9857: URL: https://github.com/apache/pulsar/pull/9857#discussion_r592916312
########## File path: site2/docs/administration-geo.md ########## @@ -45,6 +45,44 @@ All messages produced in any of the three clusters are delivered to all subscrip As stated in [Geo-replication and Pulsar properties](#geo-replication-and-pulsar-properties) section, geo-replication in Pulsar is managed at the [tenant](reference-terminology.md#tenant) level. +The following example connects three clusters: **us-east**, **us-west**, and **us-cent**. + +### Connect replication clusters + +To replicate data among clusters, you need to configure each cluster to connect to the other. You can use the [`pulsar-admin`](http://pulsar.apache.org/tools/pulsar-admin/) tool to create a connection. + +**Example** + +Suppose that you have 3 replication clusters: `us-west`, `us-cent`, and `us-east`. + +1. Configure the connection from `us-west` to `us-east`. + + Run the following command on `us-west`. + +```shell +$ bin/pulsar-admin clusters create \ + --broker-url pulsar://<DNS-OF-US-EAST>:<PORT> \ + --url http://<DNS-OF-US-EAST>:<PORT> \ + us-east +``` + + > #### Tip + > + > If you want to use a secure connection for a cluster, you can use the flags `--broker-url-secure` and `--url-secure`. For more information, see [pulsar-admin clusters create](http://pulsar.apache.org/tools/pulsar-admin/). Review comment: @merlimat - is it possible to use either the insecure or the secure flags for this command? I took a quick look at the admin cli source code as well as the server side code, and I don't see anything that would through an exception on missing arguments. I could be wrong though, so I want to double check before this gets merged. Thanks. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
