AWS Cloud
An AWS Cloud compute environment is best suited to Studios and small to medium-sized pipelines. The fixed instance types make compute pricing more predictable. The compute environment launches a standalone EC2 instance and runs a Nextflow pipeline or Studio session with a local executor on that instance. Seqera terminates the instance when the run or session ends.
- Use it for: Studios and small to medium-sized pipelines
- AWS resources: Seqera sets them up on your behalf
- Status: Generally available
The Nextflow pipeline runs entirely on a single EC2 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, you must create a new compute environment with a larger instance type. These limits make the compute environment less suited to larger, more complex pipelines.
To run pipelines that need more than one instance, use AWS Batch using Forge. Intelligent Compute, in private preview, is a compute mode of the AWS Cloud compute environment that distributes tasks across multiple instances. For all the options, see AWS compute environments.
Checklist
In your AWS account
- Region: A supported region.
- Work directory: An S3 bucket in the same region as the compute environment. Platform rejects the compute environment at creation time if the bucket region does not match.
- Networking: Outbound access to Amazon S3 and Seqera Platform from the subnets the instance launches into. If you select no subnets, the instance launches into a default subnet of the default VPC of the account. See Networking.
- IAM policy: The AWS Cloud policy. See AWS Cloud IAM policy.
- IAM role: A role with the policy attached. See AWS Cloud credentials.
In Seqera
- Credentials: The IAM role added to your workspace. See AWS Cloud credentials.
- Compute environment: Created with the Basic compute mode. See Create an AWS 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
- An IAM role and instance profile for the EC2 instances, unless you specify your own instance profile. See Custom instance profile.
- One EC2 instance for each pipeline run or Studio session. Seqera terminates the instance when the run or session ends.
- The instances use a public AMI maintained by Seqera, unless you provide your own. See Managed Amazon Machine Image (AMI).
- Temporary AWS Secrets Manager secrets, for runs that use pipeline secrets. Seqera creates each secret when a pipeline launches and deletes it on completion.
Comparison with AWS 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. 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 or Studio in a batch compute environment, the pipeline or Studio session environment 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 services, including compute environments, job queues, and job definitions.
- Allocation constraints: AWS Batch and other cloud batch services have strict resource quotas. For example, each AWS account has a hard limit of 50 job queues per region. When you reach this quota, you cannot create a new compute environment.
The AWS Cloud compute environment addresses these limitations with the following:
- Faster startup time: Nextflow pipelines reach a
Runningstatus and Studio sessions connect in under a minute (a 4x improvement compared to classic AWS 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 AWS dependencies: The compute environment requires only one IAM role in AWS. IAM roles are subject to a soft limit of 1000 per AWS account.
- Spot instances: You can launch Studios on a Spot instance.