Attention: This version of Event Streams has reached End of Support. For more information about supported versions, see the support matrix.

Planning for geo-replication

Consider the following when planning for geo-replication:

  • If you want to use the CLI to set up geo-replication, ensure you have the Event Streams CLI installed.
  • Prepare your destination cluster by setting the number of geo-replication workers.
  • Identify the topics you want to create copies of. This depends on the data stored in the topics, its use, and how critical it is to your operations.
  • Decide whether you want to include message history in the geo-replication, or only copy messages from the time of setting up geo-replication. By default, the message history is included in geo-replication. The amount of history is determined by the message retention option set when the topics were created on the origin cluster.
  • Decide whether the replicated topics on the destination cluster should have the same name as their corresponding topics on the origin cluster, or if a prefix should be added to the topic name. The prefix is the release name of the origin cluster. By default, the replicated topics on the destination cluster have the same name.

Preparing destination clusters

Before you can set up geo-replication and start replicating topics, you must configure the number of geo-replication workers on the destination cluster.

The number of workers depend on the number of topics you want to replicate, and the throughput of the produced messages. You can use the same approach to determine the number as used when setting the number of brokers for your installation.

For example, you can create a small number of workers at the time of installation. You can then increase the number later if you find that your geo-replication performance is not able to keep up with making copies of all the selected topics as required. Alternatively, you can start with a high number of workers, and then decrease the number if you find that the workers underperform.

Important: For high availability reasons, ensure you have at least 2 workers on your destination cluster in case one of the workers encounters problems.

You can configure the number of workers at the time of installing Event Streams, or you can modify an existing installation, even if you already have geo-replication set up and running on that installation.

Configuring a new installation

If you are installing a new Event Streams instance for use as a destination cluster, you can specify the number of workers when configuring the installation.

To configure the number of workers at the time of installation, use the UI or the CLI as follows.

Using the UI

You have the option to specify the number of workers during the installation process on the Configure page. Go to the Geo-replication section and specify the number of workers in the Geo-replicator workers field.

Using the CLI

You have the option to specify the number of workers during the installation process by adding the --set replicator.replicas=<number-of-workers> to your helm install command.

Configuring an existing installation

If you decide to use an existing Event Streams instance as a destination cluster, or want to change the number of workers on an existing instance used as a destination cluster for scaling purposes, you can modify the number of workers by using the UI or CLI as follows.

Using the UI

To modify the number of workers by using the UI:

  1. Go to where your destination cluster is installed. Log in to your IBM Cloud Private cluster management console from a supported web browser by using the URL https://<Cluster Master Host>:<Cluster Master API Port>. The master host and port for your cluster are set during the installation of IBM Cloud Private. For more information, see the IBM Cloud Private documentation.
  2. From the navigation menu, click Workloads > Helm Releases.
  3. Locate the release name of your existing Event Streams cluster in the NAME column, and click More options icon More options > Upgrade in the corresponding row.
  4. Select the installed chart version from the Version drop-down list.
  5. Ensure you set Using previous configured values to Reuse Values.
  6. Click All parameters in order to access all the release-related parameters.
  7. Go to the Geo-replication settings section and modify the Geo-replicator workers field to the required number of workers.
    Important: For high availability reasons, ensure you have at least 2 workers on your destination cluster in case one of the workers encounters problems.
  8. Click Upgrade.

Using the CLI

To modify the number of workers by using the CLI:

  1. Log in to your cluster as an administrator by using the IBM Cloud Private CLI:
    cloudctl login -a https://<Cluster Master Host>:<Cluster Master API Port>
    The master host and port for your cluster are set during the installation of IBM Cloud Private.
  2. Use the following helm command to modify the number of workers:
    helm upgrade --reuse-values --set replicator.replicas=<number-of-workers> <release_name> <charts.tgz> --tls
    Note: Where <charts.tgz> is the name of the chart file you used to install Event Streams, including the full path to it if in a different directory. To run helm upgrade commands, ensure you have the original chart file available.

    For example, to set the number of geo-replication workers to 4, use the following command:
    helm upgrade --reuse-values --set replicator.replicas=4 destination ibm-eventstreams-prod-1.3.0.tgz --tls