Skip to content

Commit f4169fe

Browse files
authored
Merge pull request #107214 from mscurrell/batchsupportcaselearnings
Batchsupportcaselearnings
2 parents 220fc9e + 3b5b4fa commit f4169fe

File tree

5 files changed

+22
-10
lines changed

5 files changed

+22
-10
lines changed

articles/batch/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
href: batch-api-basics.md
5252
- name: APIs and tools
5353
href: batch-apis-tools.md
54+
- name: Detecting and handling Batch service errors
55+
href: batch-retry-after-errors.md
5456
- name: Best practices
5557
href: best-practices.md
5658
- name: Quotas and limits
@@ -132,8 +134,6 @@
132134
href: batch-job-schedule.md
133135
- name: Check for job and task errors
134136
href: batch-job-task-error-checking.md
135-
- name: Detecting and handling Batch service errors
136-
href: batch-retry-after-errors.md
137137
- name: Persist job and task output
138138
href: batch-task-output.md
139139
items:

articles/batch/batch-application-packages.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,11 @@ The Batch service uses the associated Storage account to store your application
8686

8787
We recommend that you create a Storage account *specifically* for use with your Batch account, and select it here. After you've created a Storage account, you can then link it to your Batch account by using the **Storage Account** window.
8888

89-
> [!NOTE]
90-
> Currently you can't use application packages with an Azure Storage account that is configured with [firewall rules](../storage/common/storage-network-security.md).
91-
>
89+
> [!IMPORTANT]
90+
> - Currently you can't use application packages with an Azure Storage account that is configured with [firewall rules](../storage/common/storage-network-security.md).
91+
> - An Azure Storage account with **Hierarchical namespace** set to **Enabled** can't be used for application packages.
9292
9393
The Batch service uses Azure Storage to store your application packages as block blobs. You are [charged as normal][storage_pricing] for the block blob data, and the size of each package can't exceed the maximum block blob size. For more information, see [Azure Storage scalability and performance targets for storage accounts](../storage/blobs/scalability-targets.md). Be sure to consider the size and number of your application packages, and periodically remove deprecated packages to minimize costs.
94-
>
95-
>
9694

9795
### View current applications
9896
To view the applications in your Batch account, click the **Applications** menu item in the left menu while viewing your **Batch account**.

articles/batch/batch-automatic-scaling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ You can get the value of these service-defined variables to make adjustments tha
124124
| $NetworkInBytes |The number of inbound bytes. |
125125
| $NetworkOutBytes |The number of outbound bytes. |
126126
| $SampleNodeCount |The count of compute nodes. |
127-
| $ActiveTasks |The number of tasks that are ready to execute but are not yet executing. The $ActiveTasks count includes all tasks that are in the active state and whose dependencies have been satisfied. Any tasks that are in the active state but whose dependencies have not been satisfied are excluded from the $ActiveTasks count.|
127+
| $ActiveTasks |The number of tasks that are ready to execute but are not yet executing. The $ActiveTasks count includes all tasks that are in the active state and whose dependencies have been satisfied. Any tasks that are in the active state but whose dependencies have not been satisfied are excluded from the $ActiveTasks count. For a multi-instance task, $ActiveTasks will include the number of instances set on the task.|
128128
| $RunningTasks |The number of tasks in a running state. |
129129
| $PendingTasks |The sum of $ActiveTasks and $RunningTasks. |
130130
| $SucceededTasks |The number of tasks that finished successfully. |

articles/batch/batch-job-task-error-checking.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: mscurrell
66

77
ms.service: batch
88
ms.topic: article
9-
ms.date: 12/01/2019
9+
ms.date: 03/10/2019
1010
ms.author: markscu
1111
---
1212

@@ -69,6 +69,17 @@ The impact of task failures on the job and any task dependencies must be conside
6969
- For dependencies, [DependencyAction](https://docs.microsoft.com/rest/api/batchservice/task/add#dependencyaction) controls whether the tasks dependent on the failed task are blocked or are run.
7070
- For the job, [JobAction](https://docs.microsoft.com/rest/api/batchservice/task/add#jobaction) controls whether the failed task leads to the job being disabled, terminated, or left unchanged.
7171

72+
### Task command line failures
73+
74+
When the task command line is run, output is written to `stderr.txt` and `stdout.txt`. In addition, the application may write to application-specific log files.
75+
76+
If the pool node on which a task has run still exists, then the log files can be obtained and viewed. For example, the Azure portal lists and can view log files for a task or a pool node. Multiple APIs also allow task files to be listed and obtained, such as [Get From Task](https://docs.microsoft.com/rest/api/batchservice/file/getfromtask).
77+
78+
Due to pools and pool nodes frequently being ephemeral, with nodes being continuously added and deleted, then it is recommended that log files are persisted. [Task output files](https://docs.microsoft.com/azure/batch/batch-task-output-files) are a convenient way to save log files to Azure Storage.
79+
80+
### Output file failures
81+
On every file upload, Batch writes two log files to the compute node, `fileuploadout.txt` and `fileuploaderr.txt`. You can examine these log files to learn more about a specific failure. In cases where the file upload was never attempted, for example because the task itself couldn't run, then these log files will not exist.
82+
7283
## Next steps
7384

7485
Check that your application implements comprehensive error checking; it can be critical to promptly detect and diagnose issues.

includes/batch-virtual-network-ports.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ Additional VNet requirements differ, depending on whether the Batch pool is in t
4242

4343
**Permissions** - Check whether your security policies or locks on the VNet's subscription or resource group restrict a user's permissions to manage the VNet.
4444

45-
**Additional networking resources** - Batch automatically allocates additional networking resources in the resource group containing the VNet. For each 50 dedicated nodes (or each 20 low-priority nodes), Batch allocates: 1 network security group (NSG), 1 public IP address, and 1 load balancer. These resources are limited by the subscription's [resource quotas](../articles/azure-resource-manager/management/azure-subscription-service-limits.md). For large pools you may need to request a quota increase for one or more of these resources.
45+
**Additional networking resources** - Batch automatically allocates additional networking resources in the resource group containing the VNet.
46+
47+
> [!IMPORTANT]
48+
>For each 50 dedicated nodes (or each 20 low-priority nodes), Batch allocates: one network security group (NSG), one public IP address, and one load balancer. These resources are limited by the subscription's [resource quotas](../articles/azure-resource-manager/management/azure-subscription-service-limits.md). For large pools, you might need to request a quota increase for one or more of these resources.
4649
4750
#### Network security groups: Batch default
4851

0 commit comments

Comments
 (0)