Azure Batch options
An Azure Batch compute environment needs a resource group, a Storage account, and a Batch account in your Azure subscription. It also has options beyond the required fields. For the required fields, see Create an Azure Batch compute environment.
You need the following:
- An Azure account with a valid Azure subscription. See Azure Free Account.
- Permissions to create resource groups, an Azure Storage account, and an Azure Batch account.
Azure concepts
Regions
An Azure region is a geographic location where Microsoft hosts its cloud services. Each region is a collection of data centers that provides high availability, fault tolerance, and low latency. Each region offers Azure services that you can choose to optimize performance, comply with data residency rules, and meet regulatory requirements. For redundancy and disaster recovery, you can replicate resources across regions.
Resource groups
An Azure resource group is a logical container that holds related Azure resources, such as virtual machines (VMs), storage accounts, and databases. A resource group is a management boundary. You organize, deploy, monitor, and manage the resources in it as a single entity. Resources in a resource group share the same lifecycle, and you can deploy, update, and delete them together. A resource group also makes access control, monitoring, and cost management easier.
Accounts
Azure uses accounts for each service. For example, an Azure Storage account holds a collection of blob containers, file shares, queues, and tables. An Azure subscription can have multiple Azure Storage and Azure Batch accounts, but a Seqera Platform compute environment can use only one of each. To use separate credentials, Azure Storage accounts, and Azure Batch accounts, create multiple Seqera Platform compute environments.
Service principals
An Azure service principal is an identity that applications, hosted services, or automated tools use to access Azure resources. It acts like a user identity with a defined set of permissions. Resources that authenticate through the service principal can perform actions within the Azure account. Seqera can use an Azure service principal to authenticate and access Azure Batch for job execution and Azure Storage for data management.
Azure resources
Resource group
Create a resource group to link your Azure Batch and Azure Storage accounts:
You can also create a resource group while you create an Azure Storage account or Azure Batch account.
- Sign in to your Azure account, go to the Create Resource group page, and select Create new resource group.
- Enter a name for the resource group, such as seqeracompute.
- Choose the preferred region.
- Select Review and Create.
- Select Create.
Storage account
After you create a resource group, set up an Azure Storage account:
- Sign in to your Azure account, go to the Create storage account page, and select Create a storage account.
note
If you have not created a resource group, you can create one now.
- Enter a name for the storage account, such as seqeracomputestorage.
- Choose the preferred region. This must be the same region as the Batch account.
- Select the performance and redundancy settings for your use case. Seqera Platform supports all of these settings.
- Select Next: Advanced.
- Enable storage account key access.
- Select Next: Networking.
- Enable public access from all networks. You can enable public access from selected virtual networks and IP addresses, but then you cannot use Batch Forge to create compute resources. Disabling public access is not supported.
- Select Data protection.
- Configure the settings you need. Seqera Platform supports all settings.
- Select Encryption.
- Only Microsoft-managed keys (MMK) are supported.
- In tags, add any required tags for the storage account.
- Select Review and Create.
- Select Create to create the Azure Storage account.
- You need at least one Blob Storage container to act as a working directory for Nextflow.
- Go to your new storage account and select + Container to create a new Blob Storage container. A new container dialog opens. Enter a name, such as seqeracomputestorage-container.
- Go to the Access Keys section of your new storage account (seqeracomputestorage in this example).
- Store the access keys for your Azure Storage account. You use them when you create a Seqera compute environment.
Blob container storage credentials are associated with the Batch pool configuration. Avoid changing these credentials in your Seqera instance after you create the compute environment.
Batch account
After you create a resource group and Storage account, create a Batch account:
- Sign in to your Azure account and select Create a batch account on the Batch account creation page.
- Select the existing resource group or create a new one.
- Enter a name for the Batch account, such as seqeracomputebatch.
- Choose the preferred region. This must be the same region as the Storage account.
- Select Advanced.
- For Pool allocation mode, select Batch service.
- For Authentication mode, select Shared Key.
- Select Networking. Make sure network access is sufficient for Seqera Platform and any other resources you require.
- Add any Tags to the Batch account, if needed.
- Select Review and Create.
- Select Create.
- Go to your new Batch account, then select Access Keys.
- Store the access keys for your Azure Batch account. You use them when you create a Seqera compute environment.
caution
A new Azure Batch account may not be entitled to create virtual machines unless you make a service request to Azure. See Azure Batch service quotas and limits for more information.
- Select the + Quotas tab of the Azure Batch account to check existing quotas and increase them if necessary.
- Select + Request quota increase and add the quantity of resources you require. Use the following guidelines:
- Active jobs and schedules: Each Nextflow process requires an active Azure Batch job per pipeline while it runs. Increase this number to a high level. To learn more, see jobs in Azure Batch.
- Pools: Each Seqera Platform compute environment requires at least one Azure Batch pool. Batch Forge creates two pools by default (one for the head job and one for compute tasks). Each pool is composed of multiple machines of one virtual machine size.
noteTo use separate pools for head and compute nodes, see Use separate Batch pools for head and compute nodes.
- Batch accounts per region per subscription: Set this to the number of Azure Batch accounts per region per subscription. Only one is required.
- Total Dedicated vCPUs per VM series: See the Azure documentation for virtual machine sizes to determine the machine size you need. The latest version of the ED series available in your region is recommended as a cost-effective and appropriately sized machine for running Nextflow. If you have additional requirements, such as GPUs or faster storage, select an alternative machine series. Increase the quota by the number of concurrent CPUs you require. Because Azure charges for machines per CPU minute, a higher number has no additional cost.
VM size considerations
Azure Batch requires you to select a VM size for your compute environment. See Sizes for virtual machines in Azure for more information. Consider the following when you select a VM size:
- Family: The first letter of the VM size name indicates the machine family. For example,
Standard_E16d_v5is a member of the E family.- A: Economical, low-power machines.
- B: Burstable machines that use credits for cost allocation.
- D: General-purpose machines suitable for most applications.
- DC: D machines with additional confidential compute capabilities.
- E: The same as D but with more memory. These are generally the best machines for bioinformatics workloads.
- EC: The same as E but with additional confidential compute capabilities.
- F: Compute-optimized machines with a faster CPU than D-series machines.
- M: Memory-optimized machines with extremely large and fast memory layers, typically more than bioinformatics workloads need.
- L: Storage-optimized machines with large, locally attached NVMe storage drives. You must configure these before you can use them with Azure Batch.
- N: Accelerated computing machines with FPGAs, GPUs, or custom ASICs.
- H: High-performance machines with the fastest processors and memory.
The E family of machines is recommended for bioinformatics workloads because these machines are cost-effective, widely available, and sufficiently fast.
-
vCPUs: The number of vCPUs of the machine. This is the main factor in the speed of the machine.
-
Features: Additional machine features. For example, some machines come with a local SSD.
- d: A local temp disk. Azure Batch uses this disk for task working directories, and Batch Forge pools can also use it for container data.
- s: The VM supports a premium storage account.
- a: AMD CPUs instead of Intel.
- p: ARM-based CPUs, such as Azure Cobalt.
- l: Reduced memory with a large cost reduction.
-
Version: The version of the VM size. This is the generation of the machine. Typically, a more recent version is better, but availability can vary between regions.
On the page for your Azure Batch account in the Azure Portal, request a quota for the VM size you want. See Azure Batch service quotas and limits for more information.
Some VM sizes have a local temp disk (/mnt) of at least 128 GB that is at least as large as the boot disk. On these sizes, Batch Forge pools store Docker and containerd data on the temp disk instead of the OS disk. The temp disk is faster than the default OS disk, which keeps container creation within the Batch node agent's 5-minute limit on busy nodes. Many d sizes from v4 and v5 qualify, such as Standard_E16d_v5. NVMe-only v6 sizes do not.
Container images share the temp disk with task working directories. Allow for both when you choose a VM size. Existing compute environments keep container data on the OS disk. To use the temp disk, create the compute environment again.
Advanced options
Batch Forge
Configure any advanced options you need:
-
Use Max wallclock time to set the maximum duration a job can run. The default is 7 days. The field accepts human-readable duration syntax, for example
7d,12h, or1d6h30m. Azure Batch allows a maximum of 180 days. Existing compute environments without this setting use the Nextflow default of 30 days. -
Job cleanup toggles control how Nextflow process jobs are managed on completion. Active jobs consume the quota of your Azure Batch account. Three independent toggles are available:
Toggle Default Description Delete jobs on completion Off Permanently deletes all jobs and their tasks from Azure Batch when the workflow finishes. Delete tasks on completion On Deletes individual tasks from jobs when they complete successfully. Failed tasks are preserved for debugging. Terminate jobs on completion On Sets jobs to terminate when all their tasks complete. Jobs remain in "completed" state but are no longer active. Existing compute environments retain their current cleanup behavior.
-
Use Token duration to control the duration of the shared access signature (SAS) token that Nextflow generates. The duration must be as long as the longest period that the pipeline runs.
Existing pool
Configure any advanced options you need:
- Use Jobs cleanup policy to control how Nextflow process jobs are deleted on completion. Active jobs consume the quota of the Azure Batch account. By default, Nextflow terminates jobs and removes them from the quota when all tasks complete successfully. If set to Always, Nextflow deletes all jobs after the pipeline completes. If set to Never, jobs are never deleted. If set to On success, successful tasks are removed but failed tasks are left for debugging.
- Use Token duration to control the duration of the SAS token that Nextflow generates. The duration must be as long as the longest period that the pipeline runs.