Restart a Pulsar cluster
You can restart all pods of the cluster. When an exception occurs in a database, you can try to restart it.
note
The pod role may change after the cluster restarts.
Steps
Configure the values of
components
andttlSecondsAfterSucceed
and run the command below to restart a specified cluster.kbcli cluster restart pulsar-cluster --components="pulsar" \
--ttlSecondsAfterSucceed=30components
describes the component name that needs to be restarted.ttlSecondsAfterSucceed
describes the time to live of an OpsRequest job after the restarting succeeds.
Validate the restarting.
Run the command below to check the cluster status to check the restarting status.
kbcli cluster list pulsar-cluster
>
NAME CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS AGE
pulsar-cluster pulsar pulsar-2.11 Delete Running 19m- STATUS=Updating: it means the cluster restart is in progress.
- STATUS=Running: it means the cluster has been restarted.