Skip to content

Backend

explanationoverview-backend

Learn what the Platforma Backend does and how you can run it.

The Backend and its connections The Backend is in the infrastructure of the company or in a cloud account. It keeps the projects of all users. Users work with the Backend through clients. A client can be the Desktop App, or pl-cli, the command-line client that manages users and projects. The clients send requests to the Backend. The Backend starts jobs that run bioinformatics tools. It reads and writes results and uploads in the primary storage. It only reads input data from the data libraries. Over the internet, the Backend gets tools from the software registries and checks its license with the license service of MiLaboratories. In a Kubernetes installation, the Backend also sends usage records to the monitoring service of MiLaboratories when the license allows them. An installation in Single Server mode does not send usage records. A company can use mirrors of the registries. Users Infrastructure of the company or cloud account Internet MiLaboratories services A company can use mirrors of the registries. requests starts reads gets tools license, usage records only in Kubernetes Clients Desktop App, pl-cli Backend projects of all users Jobs bioinformatics tools Primary storage results, uploads (read and write) Data libraries input data (read only) Software registries License and monitoring services Program Job Storage Registry Service request or action read only over the internet
The Backend is in the infrastructure of the company or in a cloud account. It keeps the projects of all users. Users work with the Backend through clients. A client can be the Desktop App, or pl-cli, the command-line client that manages users and projects. The clients send requests to the Backend. The Backend starts jobs that run bioinformatics tools. It reads and writes results and uploads in the primary storage. It only reads input data from the data libraries. Over the internet, the Backend gets tools from the software registries and checks its license with the license service of MiLaboratories. In a Kubernetes installation, the Backend also sends usage records to the monitoring service of MiLaboratories when the license allows them. An installation in Single Server mode does not send usage records. A company can use mirrors of the registries.

The BackendBackend — The server program of Platforma. It keeps the projects, runs the Blocks and starts jobs. Glossary is the server program of Platforma. Clients connect to it: the Desktop Apps of you and your colleagues, and pl-clipl-cli — The command-line client of Platforma. Administrators use it to manage users and projects on the Backend. Glossary, the command-line client that administrators use to manage users and projects. The Backend does the work for all of them:

  • It keeps the projects of all users in its database, and makes regular backups of it. The primary storage belongs to your company, and your company backs it up.
  • It runs the BlocksBlock — A small application for one step of an analysis, for example the import of reads or clustering. It can combine several tools. Glossary and starts their jobsjob — One run of a tool on data. The Backend starts jobs on the server where it runs, or in a Kubernetes cluster. Glossary.
  • It finds computations that already ran and reuses their results, so you do not wait for the same computation twice. Reuse does not give anyone access to the projects or results of other users.
  • It keeps the results in the primary storageprimary storage — The bucket (Amazon S3 or Google Cloud Storage) or folder where Platforma keeps all results and uploaded files. Glossary.
  • It reads input data from data librariesdata library — A folder or bucket with input data of the company. Users select files from it in the Desktop App. Platforma only reads it. Glossary.
  • It identifies the users and controls what each user can do.

License

The Backend needs a license from MiLaboratories. The license is issued for your company: the Backend uses it to start and to run computations. All users who connect to the Backend share the limits of this license. The terms and the limits of a license are agreed with MiLaboratories.

The Backend checks the license over the internet, so it needs a connection to the internet. Without a valid license, it does not run analyses.

If the corporate network has restricted access to the internet, your company can use mirrors of the registries, and the Backend can work through the proxy server of your company. The connection to the license service is still necessary.

Where it runs

Environments where the Backend runs The Backend can run in these environments: - in a Kubernetes cluster; - in Single Server mode; - in an Amazon Web Services (AWS) account; - in a Google Cloud project. Kubernetes Kubernetes Server in Single Server mode Server Amazon Web Services AWS Google Cloud Google Cloud
The Backend can run in these environments: - in a Kubernetes cluster; - in Single Server mode; - in an Amazon Web Services (AWS) account; - in a Google Cloud project.

You can install the Backend in a KubernetesKubernetes — A system that runs programs on a group of machines (a cluster). Platforma can run in a Kubernetes cluster. Glossary cluster, 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 AWS or in Google Cloud. Under these, there are two execution environments: a Kubernetes cluster and Single Server mode. In AWS and Google Cloud, the Backend runs in a Kubernetes cluster of that cloud. There are four installation paths: an installer, 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, the Helm chart and the Single Server installation pathinstallation 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. For what each way fits, see Installation paths.

The two environments differ in how many jobs can run in parallel. Single Server mode runs only as many jobs at the same time as its own 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. A Kubernetes cluster spreads the jobs over many machines, so it can run many more jobs in parallel.

The operatoroperator — The person who installs and runs Platforma in your company, for example an IT engineer or a bioinformatician. Glossary installs new versions of the Backend. In a Kubernetes cluster, the jobs that run continue during an upgrade.

Users

Sign-in providers of the Backend Sign-in providers of the Backend: - single sign-on (SSO) with the identity provider of the company; - the company directory (LDAP); - a static list of users. Single sign-on (SSO) SSO Company directory (LDAP) LDAP Static list of users User list
Sign-in providers of the Backend: - single sign-on (SSO) with the identity provider of the company; - the company directory (LDAP); - a static list of users.

You 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 to the Backend from 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, in one of these ways:

  • single sign-onsingle sign-on — Sign-in through the identity service of the company, with the same account as for other company systems. Glossary (SSO) with the identity provider of your company;
  • the company directory (LDAPLDAP — The directory of users of a company. The Backend can check logins and passwords in it. Glossary);
  • a static list of usersstatic list of users — A sign-in provider that is a file with the logins and the password hashes of the users, in the htpasswd format. The Backend reads it again when it changes. Glossary.

pl-cli signs in with the same providers: with SSO in the browser, or with a login and a password.

You see your own projects and the projects that colleagues share with you. Administrators manage the Backend and have access to all projects.

Data integrations

Kinds of storage of the Backend Kinds of storage that the Backend works with: - Amazon S3 and storage that is compatible with S3; - Google Cloud Storage (GCS); - file systems (FS). Amazon S3 and S3-compatible storage Amazon S3 Google Cloud Storage Google Cloud Storage File systems File systems
Kinds of storage that the Backend works with: - Amazon S3 and storage that is compatible with S3; - Google Cloud Storage (GCS); - file systems (FS). With single sign-on, the Backend can access shared storage on behalf of each user.

The Backend keeps your projects. It keeps the results and the uploaded files in the primary storage, and reads input data from data libraries without changing them.

The Backend works with these kinds of storage:

  • Amazon S3 and storage that is compatible with S3;
  • Google Cloud Storage (GCS);
  • file systems (FS).

When you sign in with single sign-on (SSO), your company can let the Backend access the data in shared storage on your behalf. Then the access rules of the storage itself control which data you can open, the same as in other systems of your company.

Next