3.3 KiB
title |
---|
AWS EC2 AMIs |
:::note
For upgrade purposes, the terms Trains Server and ClearML Server are interchangeable.
:::
The sections below contain the steps to upgrade ClearML Server on the same AWS instance, and to upgrade and migrate to a new AWS instance.
Upgrading on the Same AWS Instance
This section contains the steps to upgrade ClearML Server on the same AWS instance.
:::warning Some legacy Trains Server AMIs provided an auto-upgrade on restart capability. This functionality is now deprecated. :::
To upgrade your ClearML Server AWS AMI:
-
Shutdown the ClearML Server executing the following command (which assumes the configuration file is in the environment path).
docker-compose -f /opt/clearml/docker-compose.yml down
If you are upgrading from Trains Server, use this command:
docker-compose -f /opt/trains/docker-compose.yml down
-
Backing up your data is recommended, and if your configuration folder is not empty, backing up your configuration.
-
If upgrading from ClearML Server version older than 1.2, you need to migrate your data before upgrading your server. See instructions here.
If upgrading from Trains Server version 0.15 or older, a data migration is required before continuing this upgrade. See instructions here. -
If upgrading from Trains Server to ClearML Server, rename
/opt/trains
to/opt/clearml
. -
Download the latest
docker-compose.yml
file. Execute the following command:sudo curl https://raw.githubusercontent.com/allegroai/clearml-server/master/docker/docker-compose.yml -o /opt/clearml/docker-compose.yml
-
Startup ClearML Server. This automatically pulls the latest ClearML Server build.
docker-compose -f /opt/clearml/docker-compose.yml pull docker-compose -f docker-compose.yml up -d
Upgrading and Migrating to a New AWS Instance
This section contains the steps to upgrade ClearML Server on the new AWS instance.
To migrate and to upgrade your ClearML Server AWS AMI:
-
Shutdown ClearML Server. Executing the following command (which assumes the configuration file is in the environment path).
docker-compose down
-
On the old AWS instance, backup your data and, if your configuration folder is not empty, backup your configuration.
-
If upgrading from ClearML Server version older than 1.2, you need to migrate your data before upgrading your server. See instructions here.
If upgrading from Trains Server version 0.15 or older, a data migration is required before continuing this upgrade. See instructions here. -
On the new AWS instance, restore your data and, if the configuration folder is not empty, restore the configuration.
-
Startup ClearML Server. This automatically pulls the latest ClearML Server build.
docker-compose -f docker-compose.yml pull docker-compose -f docker-compose.yml up -d