|
1 | 1 | ---
|
2 | 2 | title: Migrate from job and pool lifetime statistics to logs in Azure Batch
|
3 |
| -description: Learn how to migrate your Batch monitoring approach from using job and pool lifetime statistics APIs to using logs and plan for feature end of support. |
| 3 | +description: Learn how to migrate your Batch monitoring approach from using job and pool lifetime statistics API to using logs and plan for feature end of support. |
4 | 4 | author: harperche
|
5 | 5 | ms.author: harpercheng
|
6 | 6 | ms.service: batch
|
7 | 7 | ms.topic: how-to
|
8 | 8 | ms.date: 08/15/2022
|
9 | 9 | ---
|
10 | 10 |
|
11 |
| -# Migrate from job and pool lifetime statistics APIs to logs in Batch |
| 11 | +# Migrate from job and pool lifetime statistics API to logs in Batch |
12 | 12 |
|
13 |
| -The Azure Batch lifetime statistics APIs for jobs and pools will be retired on *April 30, 2023*. Learn how to migrate your Batch monitoring approach from using the lifetime statistics APIs to using logs. |
| 13 | +The Azure Batch lifetime statistics API for jobs and pools will be retired on *April 30, 2023*. Learn how to migrate your Batch monitoring approach from using the lifetime statistics API to using logs. |
14 | 14 |
|
15 | 15 | ## About the feature
|
16 | 16 |
|
17 |
| -Currently, you can use APIs to retrieve lifetime statistics for jobs and pools in Batch. You can use the APIs to get lifetime statistics for all the jobs and pools in a Batch account or for a specific job or pool. The APIs collect statistical data from when the Batch account was created until the last time the account was updated or from when a job or pool was created. A customer might use the job and pool lifetime statistics APIs to help them analyze and evaluate their Batch usage. |
| 17 | +Currently, you can use API to retrieve lifetime statistics for jobs and pools in Batch. You can use the API to get lifetime statistics for all the jobs and pools in a Batch account or for a specific job or pool. The API collects statistical data from when the Batch account was created until the last time the account was updated or from when a job or pool was created. A customer might use the job and pool lifetime statistics API to help them analyze and evaluate their Batch usage. |
18 | 18 |
|
19 | 19 | To make statistical data available to customers, the Batch service allocates batch pools and schedule jobs with an in-house MapReduce implementation to do a periodic, background rollup of statistics. The aggregation is performed for all Batch accounts, pools, and jobs in each region, regardless of whether a customer needs or queries the stats for their account, pool, or job. The operating cost includes 11 VMs allocated in each region to execute MapReduce aggregation jobs. For busy regions, we had to increase the pool size further to accommodate the extra aggregation load.
|
20 | 20 |
|
21 |
| -The MapReduce aggregation logic was implemented by using legacy code, and no new features are being added or improvised due to technical challenges with legacy code. Still, the legacy code and its hosting repository need to be updated frequently to accommodate increased loads in production and to meet security and compliance requirements. Also, because the APIs are featured to provide lifetime statistics, the data is growing and demands more storage and performance issues, even though most customers don't use the API. The Batch service currently uses all the compute and storage usage charges that are associated with MapReduce pools and jobs. |
| 21 | +The MapReduce aggregation logic was implemented by using legacy code, and no new features are being added or improvised due to technical challenges with legacy code. Still, the legacy code and its hosting repository need to be updated frequently to accommodate increased loads in production and to meet security and compliance requirements. Also, because the API is featured to provide lifetime statistics, the data is growing and demands more storage and performance issues, even though most customers don't use the API. The Batch service currently uses all the compute and storage usage charges that are associated with MapReduce pools and jobs. |
22 | 22 |
|
23 | 23 | ## Feature end of support
|
24 | 24 |
|
25 |
| -The lifetime statistics APIs are designed and maintained to help you troubleshoot your Batch services. However, not many customers actually use the APIs. The customers who use the APIs are interested in extracting details for not more than a month. More advanced ways of getting data about logs, pools, and jobs can be collected and used on a need basis by using Azure portal logs, alerts, log export, and other methods. |
| 25 | +The lifetime statistics API is designed and maintained to help you troubleshoot your Batch services. However, not many customers actually use the API. The customers who use the API are interested in extracting details for not more than a month. More advanced ways of getting data about logs, pools, and jobs can be collected and used on a need basis by using Azure portal logs, alerts, log export, and other methods. |
26 | 26 |
|
27 |
| -When the job and pool lifetime statistics APIs are retired on April 30, 2023, the APIs will no longer work, and they'll return an appropriate HTTP response error code to the client. |
| 27 | +When the job and pool lifetime statistics API is retired on April 30, 2023, the API will no longer work, and it will return an appropriate HTTP response error code to the client. |
28 | 28 |
|
29 | 29 | ## Alternative: Set up logs in the Azure portal
|
30 | 30 |
|
|
0 commit comments