Configure Worker Parameters

Learn what is required for Worker parameters configuration

Stop Running Computations

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:

curl -v -X POST localhost:8300/cancel_computations

Wait until all computations complete by waiting until the following CloudWatch metric reaches 0: CloudWatch > Metrics > CodeOcean > AutoScalingGroupName > SlotsUtilization

Remove scale-in Protection from Code Ocean Worker EC2 Instances

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.

Configuring

Step 1 - Update the CloudFormation stack

Upgrading Code Ocean is done by updating the CloudFormation stack you've created upon deployment

Step 2 - Specify the template

  1. Choose Use current template in the Prerequisite - Prepare template window.

  2. Click Next.

Step 3 - Configuring Parameters

You can specify tags (key-value pairs) for resources in your stack and set advanced options.

see Deployment Parameters page

Click Next.

Last updated