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.

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

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