JetBrains CodeCanvas 2024.1 Help

Instance Types

An instance type is a preset that defines resources (CPU, memory, etc.) and a computing platform (e.g., a Kubernetes cluster) for allocating dev environments. For example, you can create a small instance type with 4 CPUs and 16 GB of memory, a medium instance type with 6 CPUs and 32 GB of memory, and so on. Namespace administrators can choose one of the available instance types for their dev environment template.

The Administration | Instance Types page lets you create, edit, and delete instance types. Here, you can also find a specific instance type by its ID or name or filter instance types by the computing platform.

To create an instance type

  1. On the sidebar menu, select Administration, then Instance Types.

  2. Click New instance type.

  3. Specify the instance type Name and other settings:

    • Computing platform   – connection to a computing platform (e.g., a Kubernetes cluster) where dev environments should be started.

    • CPU, Memory, and Volume   – the resources allocated for a dev environment.

    • Volume storage class   – each dev environment has an associated K8s volume with dev environment data. Here you can specify your custom StorageClass that defines such volumes and CodeCanvas will use them instead of the default one. If you use AWS EBS volumes, we recommend io2-based volumes for the best possible performance.

    • Volume snapshot class   – during the warm-up, CodeCanvas creates a snapshot of a dev environment file system with project indexes, dependencies, etc. Here you can specify your custom VolumeSnapshotClass that defines such volumes, and CodeCanvas will use them instead of the default one.

    • Scope – specify in which namespaces this instance type should be available: in All namespaces or only in Specific namespaces.

  4. Click Save.

Last modified: 17 May 2024