Google Cloud
You need a Google Cloud Platform (GCP) account with a valid subscription.
This type of compute environment is best suited to Studios and small to medium-sized pipelines. Because instance types are fixed, compute pricing is more predictable. It starts a standalone Google Compute Engine instance and runs a Nextflow pipeline or Studio session with a local executor on that instance. When the pipeline run or Studio session ends, the instance is terminated.
- Use it for: Studios and small to medium-sized pipelines
- Google Cloud resources: Seqera sets them up on your behalf
- Status: Public preview
To run pipelines that need more than one VM, use Google Cloud Batch. For all the options, see Google Cloud compute environments.
Single-VM limit
The Nextflow pipeline runs entirely on a single Google Compute Engine instance. If the instance does not have sufficient resources, the run fails. The number of cores of the selected instance type limits the number of tasks Nextflow can run in parallel. If you need more computing resources, create a new compute environment with a larger instance type. This makes the compute environment less suited to larger, more complex pipelines.
Checklist
In your Google Cloud project
- Region: A supported location.
- Work directory: A Cloud Storage bucket.
- Networking: A VPC network and subnet with outbound access, if you do not use the default network. See Networking.
- Service account: A service account with the IAM roles granted. See Google Cloud IAM roles.
- Authentication: Workload Identity Federation (recommended) or a service account key. See Google Cloud credentials.
In Seqera
- Credentials: The service account added to your workspace. See Google Cloud credentials.
- Compute environment: Created. See Create a Google Cloud compute environment.
- Status: The compute environment is
AVAILABLE. Pre-flight checks confirm that it is usable before you launch a pipeline. See Pre-flight checks.
What Seqera sets up
- A separate service account for each compute environment, with the permissions needed to launch pipelines and Studios. See Storage permissions for the roles that Seqera grants it.
- One Compute Engine instance for each pipeline run or Studio session.
Comparison with Google Cloud Batch
Many compute environments for cloud providers rely on batch services, such as AWS Batch, Azure Batch, and Google Cloud Batch, to run and manage pipeline jobs. Of these, only AWS Batch compute environments also run Studio sessions. On Google Cloud, Studios require a Google Cloud compute environment. Batch services suit large-scale workloads, but they add management complexity. Batch services have the following limitations:
- Long launch delay: When you launch a pipeline in a batch compute environment, the pipeline takes several minutes to reach a running state. The delay occurs because the batch service must provision the associated compute service to run a single job.
- Complex setup: Standard batch services require complex identity management policies and the configuration of multiple components, such as batch job definitions, task specifications, and resource policies.
The Google Cloud compute environment addresses these limitations with:
- Faster startup time: The compute environment removes the per-task overhead of VM provisioning, environment bootstrapping, and container image pulling that occurs with traditional batch. Nextflow pipelines reach a
Runningstatus and Studio sessions connect in under a minute (a 4x improvement compared to Google Cloud Batch compute environments). - Simplified configuration: Fewer configurable options, with opinionated defaults chosen for Nextflow pipeline and Studio session execution, and both Wave and Fusion enabled.
- Fewer GCP dependencies: The compute environment uses Compute Engine directly and does not rely on the Google Cloud Batch API. The required IAM permissions cover only core services (Compute Engine, Cloud Storage, and IAM). The result is a simpler architecture with fewer potential points of failure.