Scale up Pulsar clusters
It takes a few steps to add new nodes to a Pulsar cluster:- Define the configuration for each of the new nodes.
- Provision storage, networking, and compute resources to the nodes.
- Update the Pulsar cluster with the defined configurations and provisioned resources.
- Reassign traffic across the cluster so that the new brokers share the load. You should observe that the cluster’s overall performance improves.
By default, StreamNative Platform supports automatic load balancing.
-
Increase the number of nodes by setting the
replicaCount
option with a greater value in the Pulsar CRD file. -
Update the Pulsar cluster with the new settings.
Scale down Pulsar clusters
To scale down the Pulsar cluster, follow these steps.-
Decrease the number of nodes by setting the
replicaCount
option with a greater value in the Pulsar CRD file. -
Update the Pulsar cluster with the new settings.
- Wait an appropriate time for traffic to be replicated to other existing nodes. The time varies on the cluster size and the number of topics.