Skip to content

Commit

Permalink
Bump Ubuntu 22.04 as default SKU for Azure Batch (#5804)
Browse files Browse the repository at this point in the history

Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Co-authored-by: Adam Talbot <12817534+adamrtalbot@users.noreply.github.com>
  • Loading branch information
pditommaso and adamrtalbot authored Feb 21, 2025
1 parent c3f67db commit e0ba536
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
10 changes: 5 additions & 5 deletions docs/azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,14 @@ When Nextflow creates a pool of compute nodes, it selects:

Together, these settings determine the Operating System and version installed on each node.

By default, Nextflow creates pool nodes based on Ubuntu 20.04, but this behavior can be customised in the pool configuration. Below are configurations for image reference/SKU combinations to select two popular systems.
By default, Nextflow creates pool nodes based on Ubuntu 22.04, but this behavior can be customised in the pool configuration. Below are configurations for image reference/SKU combinations to select two popular systems.

- Ubuntu 20.04 (default):
- Ubuntu 22.04 (default):

```groovy
azure.batch.pools.<name>.sku = "batch.node.ubuntu 20.04"
azure.batch.pools.<name>.offer = "ubuntu-server-container"
azure.batch.pools.<name>.publisher = "microsoft-azure-batch"
azure.batch.pools.<name>.sku = "batch.node.ubuntu 22.04"
azure.batch.pools.<name>.offer = "ubuntu-hpc"
azure.batch.pools.<name>.publisher = "microsoft-dsvm"
```

- CentOS 8:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ import nextflow.util.Duration
@CompileStatic
class AzPoolOpts implements CacheFunnel {

static public final String DEFAULT_PUBLISHER = "microsoft-azure-batch"
static public final String DEFAULT_OFFER = "ubuntu-server-container"
static public final String DEFAULT_SKU = "batch.node.ubuntu 20.04"
static public final String DEFAULT_VM_TYPE = "Standard_D4_v3"
static public final String DEFAULT_PUBLISHER = "microsoft-dsvm"
static public final String DEFAULT_OFFER = "ubuntu-hpc"
static public final String DEFAULT_SKU = "batch.node.ubuntu 22.04"
static public final String DEFAULT_VM_TYPE = "Standard_D4a_v4"
static public final OSType DEFAULT_OS_TYPE = OSType.LINUX
static public final String DEFAULT_SHARE_ROOT_PATH = "/mnt/batch/tasks/fsmounts"
static public final Duration DEFAULT_SCALE_INTERVAL = Duration.of('5 min')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ class AzBatchServiceTest extends Specification {
then:
1 * svc.guessBestVm(LOC, CPUS, MEM, null, TYPE) >> VM
and:
spec.poolId == 'nf-pool-289d374ac1622e709cf863bce2570cab-Standard_X1'
spec.poolId == 'nf-pool-e3331cce25aa1563d6046b3de9ec2d93-Standard_X1'
spec.metadata == [foo: 'bar']

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class AzureConfigTest extends Specification {
cfg.batch().location == null
cfg.batch().autoPoolMode == null
cfg.batch().allowPoolCreation == null
cfg.batch().autoPoolOpts().vmType == 'Standard_D4_v3'
cfg.batch().autoPoolOpts().vmType == 'Standard_D4a_v4'
cfg.batch().autoPoolOpts().vmCount == 1
cfg.batch().autoPoolOpts().maxVmCount == 3
cfg.batch().autoPoolOpts().scaleInterval == Duration.of('5 min')
Expand Down
1 change: 0 additions & 1 deletion validation/azure.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ azure {
pools {
'nextflow-ci' {
autoScale = true
vmType = 'Standard_D2_v3'
}
}
}
Expand Down

0 comments on commit e0ba536

Please sign in to comment.