Configure Worker Parameters
Learn what is required for Worker parameters configuration
Last updated
Learn what is required for Worker parameters configuration
Last updated
To ensure a smooth upgrade, before you start to update your Code Ocean application stack, you need to make sure there are no computations running.
Using AWS Session Manager, connect to Code Ocean services instance:
Run the following command to stop computations:
Wait until all computations complete by waiting until the following CloudWatch metric reaches 0: CloudWatch > Metrics > CodeOcean > AutoScalingGroupName > SlotsUtilization
The upgrade waits for existing running workers to terminate before continuing. If you have verified that there are no running computations in the previous step, you can safely remove the scale in protection from the workers in the auto scaling group. This will complete the upgrade quicker.
In the AWS EC2 console go to EC2 > Auto Scaling Groups > workers-[id]-asg > Instance Management
, then select all instances and click Actions > Remove scale-in protection
In EC2 > Auto Scaling Groups > workers-[id]-asg > Details
reduce the Desired capacity to 0.
Upgrading Code Ocean is done by updating the CloudFormation stack you've created upon deployment
Choose Use current template in the Prerequisite - Prepare template window.
Click Next.
You can specify tags (key-value pairs) for resources in your stack and set advanced options.
see Deployment Parameters page
Click Next.