clearml-server/docs/install_gcp.md
2020-05-04 17:31:11 +03:00

3.2 KiB

Deploying Trains Server on Google Cloud Platform

To easily deploy Trains Server on GCP, use one of our pre-built GCP Custom Images.
We provide Custom Images for each released version of Trains Server, see Released versions below.

Once your GCP instance is up and running using our Custom Image, configure the Trains client to use your trains-server.
The service port numbers on our Trains Server GCP Custom Image are:

  • Web application: 8080
  • API Server: 8008
  • File Server: 8081

The persistent storage configuration:

  • MongoDB: /opt/trains/data/mongo/
  • ElasticSearch: /opt/trains/data/elastic/
  • File Server: /mnt/fileserver/

For examples and use cases, check the Trains usage examples.

Importing the Custom Image to your GCP account

In order to launch an instance using the Trains Server GCP Custom Image, you'll need to import the image to your custom images list.

Note: there's no need to upload the image file to Google Cloud Storage - we already provide links to image files stored in Google Storage

To import the image to your custom images list:

  1. In the Cloud Console, go to the Images page.
  2. At the top of the page, click Create image.
  3. In the Name field, specify a unique name for the image.
  4. Optionally, specify an image family for your new image, or configure specific encryption settings for the image.
  5. Click the Source menu and select Cloud Storage file.
  6. Enter the Trains Server image bucket path (see Trains Server GCP Custom Image), for example: allegro-files/trains-server/trains-server.tar.gz
  7. Click the Create button to import the image. The process can take several minutes depending on the size of the boot disk image.

For more information see Import the image to your custom images list in the Compute Engine Documentation.

Launching an instance with a Custom Image

For instructions on launching an instance using a GCP Custom Image, see the Manually importing virtual disks in the Compute Engine Documentation. For more information on Custom Images, see Custom Images in the Compute Engine Documentation.

The minimum recommended requirements for Trains Server are:

  • 2 vCPUs
  • 7.5GB RAM

Upgrading

To upgrade trains-server on an existing GCP instance based on one of these Custom Images, SSH into the instance and follow the upgrade instructions for trains-server.

Released versions

The following sections contain lists of Custom Image URLs (exported in different formats) for each released trains-server version.

Latest version image (v0.14.1)