Increase the performance of azure batch account

Bhaskar pathak 20 Reputation points

I am trying to run a python script using azure batch account but the custom activity associated with it its taking half an hour to run and the same script if I am running locally its taking only 9-10 minutes what would be the reason for that I have chosen the following configuration what should I change to make my batch account execute the same script faster User's image User's image

User's image

User's image

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
302 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anveshreddy Nimmala 2,150 Reputation points Microsoft Vendor

    Hello Bhaskar pathak,

    Welcome to microsoft Q&A, Thankyou for posting your query here.

    If your Python script runs slower on Azure Batch compared to your local computer, there could be several reasons for this difference.

    1.Think about using a VM on Azure that match or better than your computer.

    1. If your script needs to do a lot of work with storage, switch to a faster storage option.
    2. Make sure your Azure Batch account and any other Azure services it uses (like Azure Blob Storage) are located in the same area to reduce latency.
    3. Azure batch supports parallelism, break your task into smaller parts that can run at the same time on different nodes to speed things up.
    4. Use Azure Batch's application packager or container features to install dependencies to run your script's , just like on your computer.
    5. After checking the insights change your configuration in your Azure Batch job to improve speed.

    Hope this helps you, If an answer has been helpful, please consider accepting the answer to help increase visibility of this question for other members of the Microsoft Q&A community. If not, please let us know what is still needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!


    0 comments No comments

0 additional answers

Sort by: Most helpful