5.3 KiB
title |
---|
AWS EC2 AMIs |
Deployment of ClearML Server on AWS is easily performed using AWS AMIs, which are available in the AWS community AMI catalog. The ClearML Server community AMIs are configured by default without authentication to allow quick access and onboarding.
After deploying the AMI, configure the ClearML Server instance to provide the authentication scheme that best matches the workflow.
For information about upgrading a ClearML Server in an AWS instance, see here.
:::important If ClearML Server is being reinstalled, clearing browser cookies for ClearML Server is recommended. For example, for Firefox, go to Developer Tools > Storage > Cookies, and for Chrome, go to Developer Tools > Application > Cookies, and delete all cookies under the ClearML Server URL. :::
Launching
:::warning By default, ClearML Server deploys as an open network. To restrict ClearML Server access, follow the instructions in the Security page. :::
The minimum recommended amount of RAM is 8 GB. For example, a t3.large or t3a.large EC2 instance type would accommodate the recommended RAM size.
To launch a ClearML Server AWS community AMI, use one of the ClearML Server AWS community AMIs and see:
- The AWS Knowledge Center page, How do I launch an EC2 instance from a custom Amazon Machine Image (AMI)?
- Detailed instructions in the AWS Documentation for Launching an Instance Using the Launch Instance Wizard.
Accessing ClearML Server
Once deployed, ClearML Server exposes the following services:
- Web server on
TCP port 8080
- API server on
TCP port 8008
- File Server on
TCP port 8081
To locate ClearML Server address:
- Go to AWS EC2 Console.
- In the Details tab, Public DNS (IPv4) shows the ClearML Server address.
To access ClearML Server Web-App (UI):
- Direct browser to its web server URL:
http://<Server Address>:8080
To SSH into ClearML Server:
- Log into the AWS AMI using the default username
ec2-user
. Control the SSH credentials from the AWS management console.
Logging in to the WebApp (UI)
Enter any name to log in to the ClearML WebApp (UI). If needed, modify the default login behavior to match workflow policy, see Configuring Web Login Authentication on the "Configuring Your Own ClearML Server" page.
Storage Configuration
The pre-built ClearML Server storage configuration is the following:
- MongoDB:
/opt/clearml/data/mongo_4/
- Elasticsearch:
/opt/clearml/data/elastic_7/
- File Server:
/mnt/fileserver/
Backing Up and Restoring Data and Configuration
:::note
If data is being moved between a Trains Server and a ClearML Server installation, make sure to use the correct paths
for backup and restore (/opt/trains
and /opt/clearml
respectively).
:::
The commands in this section are examples for backing up and restoring data and configuration.
If data and configuration folders are in /opt/clearml
, then archive all data into ~/clearml_backup_data.tgz
, and
configuration into ~/clearml_backup_config.tgz
:
sudo tar czvf ~/clearml_backup_data.tgz -C /opt/clearml/data .
sudo tar czvf ~/clearml_backup_config.tgz -C /opt/clearml/config .
If data and configuration need to be restored:
- Verify you have the backup files.
- Replace any existing data with the backup data:
sudo rm -fR /opt/clearml/data/* /opt/clearml/config/* sudo tar -xzf ~/clearml_backup_data.tgz -C /opt/clearml/data sudo tar -xzf ~/clearml_backup_config.tgz -C /opt/clearml/config
- Grant access to the data:
sudo chown -R 1000:1000 /opt/clearml
ClearML Server AWS Community AMIs
The following section contains a list of AMI Image IDs per-region for the latest ClearML Server version.
Latest Version
v1.9.1
- af-south-1 : ami-021539f5fc8f94f65
- ap-east-1 : ami-0516b793043df0085
- ap-northeast-1 : ami-0e00a0fe6d6afe749
- ap-northeast-2 : ami-0b0974059ee2e2a90
- ap-northeast-3 : ami-0d82430702001bb83
- ap-south-1 : ami-0ad45d6e3dfbc41f9
- ap-south-2 : ami-07ea3a5f2c313d49e
- ap-southeast-1 : ami-0ff02771ee1fa7c4d
- ap-southeast-2 : ami-016902f5f81fa4258
- ap-southeast-3 : ami-0e82ce3c647a40473
- ca-central-1 : ami-04ffbaf003ede08d7
- eu-central-1 : ami-03c42792758f73d96
- eu-central-2 : ami-0b7f8ffb4bd79bc21
- eu-north-1 : ami-071bc56a4c0b6ab54
- eu-south-1 : ami-0943b2d594e7b65da
- eu-south-2 : ami-0f983ee3b07ad255f
- eu-west-1 : ami-00bc04dbfcc0514a3
- eu-west-2 : ami-01357fee0019ad70a
- eu-west-3 : ami-072a69d99e2adb5e2
- me-central-1 : ami-0957aaee4fbdcf15d
- me-south-1 : ami-0e95901f43ad9f319
- sa-east-1 : ami-098108afe569918c4
- us-east-2 : ami-00e47ff4bac1d4c1a
- us-west-1 : ami-0e74c3c896a6fd9d7
- us-west-2 : ami-056db56d1423936e9
- us-east-1 : ami-042b84d4a4b5c4813