Skip to content

(Optional) scale back the DataRobot application services

You don't need to stop the DataRobot application to take periodic backups. However, you must start the application if you stopped DataRobot prior to backup.

Note

You must fulfill the prerequisites before proceeding.

Scale back the application

If stopped properly, every application service is annotated with a desired number of replicas. Scale the services back to this state:

for d in $(kubectl -n $NAMESPACE get deploy -o name -l release=dr); do
    r=$(kubectl -n $NAMESPACE get $d -o jsonpath='{.metadata.annotations.replicas}')
    kubectl -n $NAMESPACE scale $d --replicas=$r
done
kubectl -n $NAMESPACE scale deployments/pcs-pgpool --replicas=3

Remove the replica annotations

After application services are scaled back to their original state, remove the annotations:

for d in $(kubectl -n $NAMESPACE get deploy -o name -l release=dr); do
    kubectl -n $NAMESPACE annotate $d replicas-
done