Skip to main content
Version: 2.7

Scale Portworx Backup components

You can scale Portworx Backup components based on your requirements when needed. Portworx by PureStorage recommends scaling the deployments before scaling the stateful sets.

Commands in the below sections guide you to achieve the purpose. You can either run these commands one after the other in the order of your preference or execute the below commands in one go to scale up or scale down the Portworx Backup components. Ensure that you scale up/down deployments first and then the stateful sets.

Scale down Portworx Backup components

To scale down the Portworx Backup components:

kubectl -n central scale deployment px-backup --replicas=0
kubectl -n central scale deployment pxcentral-apiserver --replicas=0
kubectl -n central scale deployment pxcentral-backend --replicas=0
kubectl -n central scale deployment pxcentral-frontend --replicas=0
kubectl -n central scale deployment pxcentral-lh-middleware --replicas=0
kubectl -n central scale statefulset.apps/pxc-backup-mongodb --replicas=0
kubectl -n central scale statefulset.apps/pxcentral-keycloak --replicas=0
kubectl -n central scale statefulset.apps/pxcentral-keycloak-postgresql --replicas=0
kubectl -n central scale statefulset.apps/pxcentral-mysql --replicas=0

Scale up Portworx Backup components

To scale up the Portworx Backup components later:

kubectl -n central scale deployment px-backup --replicas=1
kubectl -n central scale deployment pxcentral-apiserver --replicas=1
kubectl -n central scale deployment pxcentral-backend --replicas=1
kubectl -n central scale deployment pxcentral-frontend --replicas=1
kubectl -n central scale deployment pxcentral-lh-middleware --replicas=1
kubectl -n central scale statefulset.apps/pxc-backup-mongodb --replicas=3
kubectl -n central scale statefulset.apps/pxcentral-keycloak --replicas=1
kubectl -n central scale statefulset.apps/pxcentral-keycloak-postgresql --replicas=1
kubectl -n central scale statefulset.apps/pxcentral-mysql --replicas=1