✳simplemagic / data
Developers/Pulse
On this page

Back up, restore, and maintain Pulse

For an operator-managed cluster, submit supported configuration changes through the PulseCluster and wait for readiness. The direct Helm upgrade and uninstall commands on this page apply to standalone chart installations. Operator lifecycle and recovery

Before a production change, check all voters, verify the latest off-cluster backup, and keep the exact chart version and environment values. One unavailable voter leaves a three-voter group with its minimum majority.

Schedule and prove a backup

Set a bucket lifecycle policy that meets your retention target. Allow the server pods to upload to the bucket. On GKE, bind the release’s Kubernetes ServiceAccount to a Google service account with the required bucket permissions using Workload Identity. With auth.existingSecret, the install example provides the admin login in the node-auth key of pulse-access. Remote upload requires the backup_upload license feature. A free cluster can keep a local backup.

Merge this example with your values. Replace the Google identity and bucket placeholders. A backup stages on one voter before upload, so check free space on the voters as well as at the destination.

serviceAccount:
  annotations:
    iam.gke.io/gcp-service-account: [email protected]
backup:
  authSecret: pulse-access
  schedule: "0 3 * * *"
  upload: ["rclone", "copy", "{directory}", ":gcs,env_auth,bucket_policy_only:BUCKET/pulse/{name}"]

After applying the values, start a job from the installed CronJob. This exercises its identity and upload path immediately.

job="pulse-backup-check-$(date +%s)"
kubectl -n pulse create job --from=cronjob/pulse-backup "$job"
kubectl -n pulse wait --for=condition=complete "job/$job" --timeout=30m
kubectl -n pulse logs "job/$job"

Allow more time for large datasets. Check that the job completed, the result reports state: done and uploaded: true, and the named directory in the bucket contains backup.json. Alert on failed jobs and on the age of the last successful upload, including when a scheduled job never starts.

Rehearse a restore separately

Use a fresh namespace with the same release name, node count and shard settings as the backup. Recreate the owner, console, backup and applicable license Secrets and configure bucket read access for that namespace’s ServiceAccount. Give the new deployment fresh PVCs and an empty provisioning history. Leave the original cluster in service while testing.

restore:
  fetch: ["rclone", "copy", ":gcs,env_auth:BUCKET/pulse/BACKUP_NAME", "{directory}"]

Keep restore-only values in a separate file. Install the pinned chart into the recovery namespace with the original values and this overlay. Disable the backup schedule in the rehearsal so the restored environment cannot start the production schedule.

helm install pulse ./pulse-0.2.5.tgz \
  -n pulse-restore -f pulse-values.yaml -f restore.yaml \
  --set-string backup.schedule='' --wait --timeout 30m

Every voter must restore from the same backup. Allow space on each volume for the downloaded backup and restored files. Verify readiness and query a known count or aggregate recorded at the backup cut. Record the backup timestamp, restored count, and elapsed time before considering a traffic cutover. Writes acknowledged after the backup cut are outside its recovery point.

Roll a configuration change

For an operator-managed cluster, upgrade the operator Helm release. Operator upgrade procedure

For a directly managed database Helm release, use the procedure below.

Check that every target pod is Ready and that the cluster has a recent verified backup. For a configuration change on 0.2.5, update your complete pulse-values.yaml and run the following. For a version upgrade, first check format compatibility and the recovery procedure for the target release.

helm upgrade pulse ./pulse-0.2.5.tgz \
  -n pulse -f pulse-values.yaml --wait --timeout 15m
kubectl -n pulse rollout status statefulset/pulse --timeout=10m
kubectl -n pulse get pods -o wide

The chart’s pre-upgrade hook waits for all voters. The StatefulSet then rolls one pod at a time. A leader election may briefly interrupt writes to affected shards. If the hook times out, inspect the unready pod and the hook job before continuing. A direct rollout restart bypasses this guard. During machine maintenance, drain one worker and wait for full readiness before touching another.

Add capacity or recover a voter

  • Add workers. Check that the license includes membership. Verify capacity for one database pod per worker, then raise replicas in the values and upgrade. Watch authenticated GET /admin/placement until all new hosts have joined and replica movement has finished. Then raise persistence.sizedForNodes to the new replica count and upgrade again. Every shard keeps three copies. Node removal and StatefulSet scale-down are unsupported.
  • Grow volumes. Verify a restorable backup and storage-class expansion support. Increase the request on each data PVC and wait until every PVC reports the new capacity. The StatefulSet claim template is immutable. In a maintenance window, orphan the StatefulSet with kubectl -n pulse delete statefulset pulse --cascade=orphan, keeping its pods and PVCs, then immediately run the reviewed Helm upgrade with the new persistence.sizeGi. Verify that the recreated StatefulSet adopts the pods, rolls one at a time, and returns to full readiness. Coordinate this sequence with any GitOps reconciler.
  • Lost volume. A previously provisioned voter refuses to start on an empty disk. Preserve its pulse-state entry and the seed. Keep the two surviving voters available and contact your database operator for controlled voter replacement or a restore to fresh volumes. Clearing the provisioning record to start an empty voter risks acknowledged data.

Search documentation

Type to search across both databases.

↑ ↓ to navigate · Enter to openEsc to close