Choose an installation path
Choose the installation path that fits your company, and know which pages to read next.
You install Platforma in the infrastructure of your company, and two choices decide how.
In a cloud or in the infrastructure of the company. MiLaboratories supports two clouds: AWS and Google Cloud. In these clouds, the Terraform modulesTerraform modules — The Terraform code that MiLaboratories provides to install Platforma. The cloud-specific Terraform modules make the cluster and its cloud parts in AWS or Google Cloud; the cloud-agnostic Terraform modules install Platforma into the cluster. Glossary make all the parts for you, or the company makes a custom setup that follows its rules. In another cloud or in the data center of the company, the BackendBackend — The server program of Platforma. It keeps the projects, runs the Blocks and starts jobs. Glossary runs in a KubernetesKubernetes — A system that runs programs on a group of machines (a cluster). Platforma can run in a Kubernetes cluster. Glossary cluster that the company makes, or in Single Server modeSingle Server mode — The mode in which the Backend and all its jobs run on one Linux machine, the server, with no Kubernetes cluster. Glossary.
In a Kubernetes cluster or in Single Server mode. A cluster spreads the jobsjob — One run of a tool on data. The Backend starts jobs on the server where it runs, or in a Kubernetes cluster. Glossary over many machines and adds machines when the load grows, so many users can run large analyses at the same time. Single Server mode runs the Backend and its jobs on one machine. It is the fastest way to start, for a test or for a small team. But the server runs only as many jobs at the same time as its CPUsCPUs — The compute units of a node or of the server, as Kubernetes and the operating system count them. A job asks for a number of CPUs. The cloud quotas call them vCPUs. Glossary and memory allow.
The Desktop AppDesktop App — The program that each user installs on their own computer to work with Platforma. It is a client of the Backend. Glossary works the same way in each environment, so users do not see any difference.
What MiLaboratories provides and what Platforma needs
MiLaboratories provides Terraform modules and Helm charts that install the Backend into a Kubernetes cluster. The cluster must give Platforma these parts, in short:
- Kubernetes 1.35 or later.
- The job queues KueueKueue — A Kubernetes add-on that holds jobs in a queue until the cluster has free CPU, memory and GPU for them. Glossary and AppWrapperAppWrapper — A Kubernetes add-on that wraps the pods of one job into a single unit, so that Kueue admits and starts them together. Glossary.
- A workspaceworkspace — The storage where the Backend and all jobs keep the working files of running jobs. The Backend and the jobs use it at the same time. In Kubernetes, it is a network file system; in Single Server mode, it is a folder on the server. Glossary: a file system that the Backend and all its jobs use at the same time.
- A bucket for the results.
The Kubernetes contract gives the full list and tells how the Backend is packaged. Give it to the team that runs the cluster first, because it tells them whether the cluster can run Platforma.
MiLaboratories provides the Backend as one binary file or as a Docker image. The server must be Linux on amd64 (x86-64). The free disk space and the CPUs and memory of the server are the limits of Single Server mode, and memory is the most important of them.
Installation paths
There are four installation pathsinstallation path — A set of tools and steps that installs Platforma. There are five installation paths: the AWS installer, the Google Cloud installer, the Terraform modules, the Helm chart and Single Server mode. Glossary. Two groups: a Kubernetes cluster, and one machine.
In a Kubernetes cluster. The three paths put the Backend into a cluster, in order of the work that you do to get a working Backend, from the least to the most:
- Installer: AWS and Google Cloud only.
- Terraform modules: any Kubernetes cluster, and a new cluster in AWS or Google Cloud.
- Helm chart: a fully custom setup.
On one machine. No cluster:
- Single Server mode: one machine, no cluster.
Installer or Terraform modules. In AWS and Google Cloud, both paths make all the parts for Platforma and install it, and MiLaboratories supports both. The choice depends on the skills of the operatoroperator — The person who installs and runs Platforma in your company, for example an IT engineer or a bioinformatician. Glossary, on how much work the operator is ready or expected to do, and on the infrastructure of the company. The installer makes the installation simpler: it fits an operator who is not a deep IT specialist. The Terraform modules fit an operator who knows Terraform and Kubernetes, and a company that deploys its infrastructure with Terraform: the modules become a part of the infrastructure code of the company.
Installer
The installer of MiLaboratories needs the fewest decisions and the least IT skill: a cloud account and a console are enough. You give it the settings, and it makes all the parts for Platforma in an AWS account or a Google Cloud project, and then installs Platforma. There is one installer for each cloud:
- In AWS, you start the installer from the AWS console. It installs into an existing account that already has other services, and it can use an existing network (VPC).
- In Google Cloud, you start the installer in Cloud Shell. It also works in an existing project, but MiLaboratories recommends a separate project for it. It always makes its own network.
The installers give a ready-made, self-contained setup. Their options to fit Platforma into the existing infrastructure of a company can change from one release to another. For an existing or private network, use the Terraform modules. In AWS, the cloud-specific Terraform modules can use a VPC that exists. In Google Cloud and in other infrastructure, the company makes the cluster in its network, and the modules install Platforma into the cluster (see Install in custom infrastructure).
See Install in cloud with installer. For when the installer fits and when the Terraform modules fit, see Installation paths.
Terraform modules
The Terraform modules install Platforma into any Kubernetes cluster that meets the Kubernetes contract, in a cloud or on bare metal. The modules set up all that Platforma needs in the cluster, the job queues too, so you only describe the cluster and apply them.
In AWS and Google Cloud, the cloud-specific Terraform modulescloud-specific Terraform modules — The Terraform modules platforma-tf-cloud-base and platforma-tf-cloud-cluster. There is one pair for each cloud, AWS and Google Cloud. The roots cloud and cluster apply them. They make the network, the Kubernetes cluster, the storage, the cloud identities and the registry caches. They give the hand-off file cluster_config to the cloud-agnostic Terraform modules. Glossary also make the cluster and its cloud parts first: the network, the storage and the entry pointentry point — The way in to the Backend from outside the cluster, a load balancer or an Ingress with a DNS name. It usually ends TLS and sends the traffic to the Backend pod. Glossary (see Install in cloud with Terraform). Your company can also make them with its own code, and then install Platforma into the cluster (see Install in custom infrastructure).
This path needs a person with Kubernetes and Terraform skills. For when the Terraform modules fit and when the installer fits, see Installation paths. One part of the installation needs cluster admin rights: see Permissions.
Helm chart
The Helm chart gives the most freedom: you install the Backend with helm, or with the deployment
tools of your company, and set each value of the chart yourself. It is also the path with the most
work. The chart installs only the Backend, so the team that runs the cluster installs and sets up
the job queues (Kueue and AppWrapper) and all other parts itself.
The Kubernetes contract also applies to this path. The shape of the Terraform inputs does not, but what Platforma expects from the cluster does: resource names, entry point, storage, identities and job queues.
Use the chart when your company cannot use Terraform, or when it manages all the components of the cluster with its own tools. For an existing cluster, MiLaboratories recommends the Terraform modules over the Helm chart alone: with the chart alone, you prepare the infrastructure by hand.
Single Server mode
In Single Server mode, you run the Backend as a service on one machine. You do not need any cluster or cloud account, so this is the simplest and fastest way to start with Platforma. The results are kept in a folder on the server or in a bucket. To move to a Kubernetes cluster later, see Migrate.
Questions to answer first
This page does not choose for you: the right path depends on your company. Find the answers to these three questions first, in this order. The text after each question says who in your company usually knows the answer.
- Load. Do you want to test Platforma, or is it for a small team? Or will many users or large data sets use it? Ask the head of the scientists. For a test or a small team, Single Server mode is sufficient. If you are not sure, you can start with Single Server mode and move to a cluster later.
- Place. Will Platforma run in a cloud (AWS or Google Cloud), or in the infrastructure of your company (its own data center, another cloud, or a Kubernetes cluster that the company already runs)? Ask the cloud team or the team that runs the clusters of your company. In a cloud, it is usually easier to make a cluster only for Platforma than to install Platforma into a cluster that exists: go to question 3. In the infrastructure of your company, Platforma goes into a Kubernetes cluster that meets the Kubernetes contract. If no such cluster exists, the team that runs the clusters makes one, or adds what is missing to a cluster that exists.
- Tools. Do you have in-house tools to set up the cloud, and do you want to use them? Ask the cloud team or the security team. If yes, build a cluster that meets the Kubernetes contract with your own tools. If no, use the installer or the Terraform modules: both make the cluster and all its parts for you. For which of the two fits, see Installation paths. These rules also apply to a virtual machine for Single Server mode.
To build a cluster that meets the contract, see the sections Terraform modules and Helm chart on this page, and the Kubernetes contract.
You do not need all the rights yourself. Each part of the installation needs its own rights, so the team that holds them can do that part: the Permissions page lists the rights of each part, for each path. Give that page to the teams that help you.
What to read next
Read the pages in this order, and skip the pages of the other paths. Most pages have tabs with one tab for each path: select your path once, and all pages then show it first.
| Step | Installer | Terraform modules | Helm chart | Single Server mode |
|---|---|---|---|---|
| 1. Plan | Size and cost, Permissions | Kubernetes contract, Size and cost, Permissions | Kubernetes contract, Size and cost, Permissions | Requirements of Single Server mode, with the size of the server |
| 2. Prepare | Prerequisites checklist | Prerequisites checklist; in a restricted network, a mirror of each registry: Registries mirroring | Prerequisites checklist; in a restricted network, a mirror of each registry: Registries mirroring | Prerequisites checklist |
| 3. Install | Install in cloud with installer | Install in cloud with Terraform (AWS, Google Cloud) or Install in custom infrastructure (a cluster that exists), with the Terraform modules reference | Install in custom infrastructure, with the Chart values reference | Install in Single Server mode |
| 4. Check and connect | Verify the installation, Connect clients | the same | the same | the same |
After the installation, read the Configuration pages only for what you change: for example Authentication for the sign-insign in — To show the Backend who you are, with a sign-in provider or a single-user token. The verb is "sign in"; the noun and the adjective are "sign-in". Glossary of users, or Data libraries.