Skip to content

Start datarobot


title: [Optional] Scale back the DataRobot Application services description: [Optional] Scale back the DataRobot Application services


# [Optional] Scale back the DataRobot Application services

Taking periodical backups does not require stopping the DataRobot application. However, application start is required if DataRobot was stopped prior to back up.

前提条件

  • Utility kubectl of version 1.23 is installed on the host where backup will be created
  • Utility kubectl is configured to access the Kubernetes cluster where DataRobot application is running, verify this with kubectl cluster-info command.

Export name of DataRobot application Kubernetes namespace in DR_CORE_NAMESPACE variable:

export DR_CORE_NAMESPACE=<namespace> 

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 $DR_CORE_NAMESPACE get deploy -o name -l release=dr); do
    r=$(kubectl -n $DR_CORE_NAMESPACE get $d -o jsonpath='{.metadata.annotations.replicas}')
    kubectl -n $DR_CORE_NAMESPACE scale $d --replicas=$r
done
kubectl -n $DR_CORE_NAMESPACE scale deployments/pcs-pgpool --replicas=3 

Once application services scaled back to its original state, please remove the annotations:

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