|
2 | 2 | import configparser
|
3 | 3 | import datetime
|
4 | 4 | import json
|
5 |
| -import math |
6 | 5 | import os
|
7 | 6 | import pickle
|
8 | 7 | import tempfile
|
@@ -177,9 +176,8 @@ def batch_submit(ctx, scenario_file, asserts_on, more_memory, keep_pool_alive, i
|
177 | 176 | vm_size = config["BATCH"]["POOL_VM_SIZE_MORE_MEMORY"]
|
178 | 177 | else:
|
179 | 178 | vm_size = config["BATCH"]["POOL_VM_SIZE"]
|
180 |
| - # TODO: cap the number of nodes in the pool? Take the number of nodes in |
181 |
| - # input from the user, but always at least 2? |
182 |
| - pool_node_count = max(2, math.ceil(scenario.number_of_draws * scenario.runs_per_draw)) |
| 179 | + |
| 180 | + pool_node_count = scenario.number_of_draws * scenario.runs_per_draw |
183 | 181 |
|
184 | 182 | # User identity in the Batch tasks
|
185 | 183 | auto_user = batch_models.AutoUserSpecification(
|
@@ -748,20 +746,20 @@ def create_job(
|
748 | 746 | print("Creating job.")
|
749 | 747 |
|
750 | 748 | # From https://docs.microsoft.com/en-us/azure/batch/batch-docker-container-workloads#linux-support
|
751 |
| - # We require Ubuntu image with container support (publisher microsoft-azure-batch; offer microsoft-azure-batch) |
| 749 | + # We require Ubuntu image with container support |
752 | 750 | # Get the latest SKU by inspecting output of `az batch pool supported-images list` for publisher+offer
|
753 | 751 | # Update node_agent_sku_id (below), if necessary
|
754 | 752 | image_reference = batch_models.ImageReference(
|
755 |
| - publisher="microsoft-azure-batch", |
756 |
| - offer="ubuntu-server-container", |
757 |
| - sku="20-04-lts", |
| 753 | + publisher="microsoft-dsvm", |
| 754 | + offer="ubuntu-hpc", |
| 755 | + sku="2204", |
758 | 756 | version="latest",
|
759 | 757 | )
|
760 | 758 |
|
761 | 759 | virtual_machine_configuration = batch_models.VirtualMachineConfiguration(
|
762 | 760 | image_reference=image_reference,
|
763 | 761 | container_configuration=container_conf,
|
764 |
| - node_agent_sku_id="batch.node.ubuntu 20.04", |
| 762 | + node_agent_sku_id="batch.node.ubuntu 22.04", |
765 | 763 | )
|
766 | 764 |
|
767 | 765 | auto_scale_formula = f"""
|
|
0 commit comments