Very high transaction counts on Azure File Storage mounted to Container apps

Jack Ahern 20 Reputation points
2024-02-28T10:02:55.18+00:00

I have an Azure Container Apps environment with 4 apps running. Each has a storage mount in an Azure Storage account. I have noticed a high cost in Cost Analysis and it is caused by LRS Write Operations. When I check Azure Monitor I notice the transaction counts seem very high. over 1 million per hour. Unfortunately I cannot drill down to find which File Share is causing the high counts just an overview of the transactions for the Storage Account.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,874 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
327 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 44,996 Reputation points Microsoft Employee
    2024-02-28T14:25:03.0766667+00:00

    @Jack Ahern Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    This article provides detailed information on Azure Files billing

    I would recommened to contact, Billing and Subscription team would be the best to provide more insight and guidance on this scenario based on your region, subscription and data. it's free, and it's the best choice for you.
    https://azure.microsoft.com/en-us/support/options/

    SMB transactions against Azure Files vs Billing transaction count

    What are transactions in Azure Files, and how are they billed? Protocol transactions occur any time a user, application, script, or service interacts with Azure file shares (writing, reading, listing, deleting files, etc.). It's important to remember that some actions that you might perceive as a single operation might actually involve multiple transactions. For standard Azure file shares billed on a pay-as-you-go model, different types of transactions have different prices based on their impact on the file share. Transactions don't affect billing for premium file shares, which are billed using a provisioned model.

    Additional information:

    LRS write operations in your Azure Storage account, and you suspect that one of the file shares mounted by your Azure Container Apps environment is causing the issue. However, you're unable to drill down to find which file share is causing the high transaction counts.

    To troubleshoot this issue, you can try the following steps: Use the Azure Storage Explorer tool to view the transaction counts for each file share in your storage account. You can connect to your storage account using the tool and navigate to the File Shares section to view the transaction counts for each file share. This can help you identify which file share is causing the high transaction counts. If you're unable to identify the file share causing the issue using the Azure Storage Explorer tool, you can try using Azure Monitor to create a log query that shows the transaction counts for each file share. Here's an example query that you can use:

    AzureMetrics
    

    This query shows the transaction counts for each file share in your storage account, grouped by hour. You can modify the query to filter by a specific time range or to group the results differently. Once you've identified the file share causing the high transaction counts, you can investigate further to determine the root cause of the issue. Some possible causes of high transaction counts include frequent file uploads or deletions, high file access rates, or inefficient application code that generates excessive file I/O operations.User's image

    Please let us know if you have any further queries. I’m happy to assist you further.    

    ---Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


0 additional answers

Sort by: Most helpful