When: After platform changes
It may occasionally be necessary to stop and restart your SAS Viya deployment; for example, to reduce running costs when the deployment is not being used. Some configuration changes and updates may also require one or more resources to be restarted.
Ensure you scale your SAS Viya deployment to use minimal or zero resources when they are not needed, and that you can scale them back up when they are needed again. Also verify that SAS Viya pods can automatically be restarted when required.
Note that restarting or stopping your SAS Viya deployment causes a disruption, which may temporarily impact end-users' ability to use the SAS Viya platform.
-
A specific service can be restarted by deleting its pod [Doc]. A new pod will start in its place.
-
To stop a specific service without automatically restarting it, its deployment should be scaled to zero [Doc].
-
To start a stopped service, scale its deployment back to one replica (the default setting). If you wish to scale up to more than one replica, the recommended approach is to modify the default Horizontal Pod Autoscaler settings [Doc].
SAS provides Kubernetes CronJobs that can perform the scale up/down operations to gracefully start or stop the entire Viya deployment. Administrators can schedule these jobs [Blog] to run on at regular intervals (they are suspended by default) or they can be used to create new ad-hoc jobs to start and stop the deployment on demand.
The two jobs are named sas-stop-all
and sas-start-all
. For ad-hoc stopping or starting, create a new job [Doc] (with a unique job name) from the corresponding source cronjob. The job will run immediately to stop/start your SAS Viya deployment.
Refer to Check the Status of SAS Services to verify that your Viya software has been started or stopped.
See also: