Got error in azure function durable when uploading to mounted file share

Yauheni Kisialiou 20 Reputation points
2024-08-17T18:25:20.0233333+00:00

Hi! I have Azure Function Durable which uses "copernicusmarine" API to upload three files (each around 2 GB) to mounted Azure file share. If it is done sequentially then everything goes fine. In parallel:

User's image

User's image

Is this the problem with max size?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,283 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,916 questions
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.
3,116 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nehruji R 7,556 Reputation points Microsoft Vendor
    2024-08-19T08:45:02.8966667+00:00

    Hello Yauheni Kisialiou,

    Greetings! Welcome to Microsoft Q&A Platform.

    I understand that you are encountering issues with parallel uploads in your Azure Durable Function. This could be related to several factors, including resource contention or limitations in handling large files concurrently.

    Durable Functions is an extension of Azure Functions that lets you build serverless orchestrations using ordinary code. For more information on Durable Functions, see the Durable Functions overview. Durable Function orchestrations are implemented in code and can use the programming language's built-in error-handling features. There really aren't any new concepts you need to learn to add error handling and compensation into your orchestrations. However, there are a few behaviors that you should be aware of to resolve the errors,

    • Ensure that your Durable Function is properly managing concurrency. You can use the Task.WhenAll method to handle parallel tasks but be mindful of the resource limits.
    • Implement robust error handling in your orchestrator function. This can help you catch and manage exceptions more effectively.
    • Check if your Azure File Share or the underlying storage account has any limits that might be causing the issue. Sometimes, increasing the storage tier or adjusting the performance settings can help.
    • Use Azure Monitor and Application Insights to track the performance and errors of your Durable Function. This can provide more insights into what’s going wrong.
    • Consider using the fan-out/fan-in pattern to manage parallel tasks more efficiently. This pattern allows you to distribute the workload across multiple functions and then aggregate the results.
    • Since the error mentions HDFS dimscales, ensure that your HDFS configuration is optimized for handling large files and concurrent access.

    reference docs- https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-troubleshooting-guide,

    https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-error-handling?tabs=csharp-inproc,

    https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-cloud-backup?tabs=csharp

    Hope the answer helps! please let us know if you have any further queries. I’m happy to assist you further.


    Please "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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.