Azure Logic App - Slow Performance with Docker Containers/Python

%3CLINGO-SUB%20id%3D%22lingo-sub-1000258%22%20slang%3D%22en-US%22%3EAzure%20Logic%20App%20-%20Slow%20Performance%20with%20Docker%20Containers%2FPython%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1000258%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20582px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F156202iC1A7181DA516731F%2Fimage-dimensions%2F582x678%3Fv%3D1.0%22%20width%3D%22582%22%20height%3D%22678%22%20alt%3D%22logicappcontainer.png%22%20title%3D%22logicappcontainer.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20have%20a%20python%20script%20that%20uses%20an%20adobe%20api%20to%20fetch%20web%20traffic%20analytics%20reports%20and%20write%20them%20to%20an%20Azure%20SQL%20database.%20This%20script%20takes%20about%2010%20minutes%20to%20run%20and%20complete%20successfully%20when%20run%20on%20my%20local%20machine.%20I%20packaged%20this%20up%20in%20to%20a%20docker%20container%20and%20have%20the%20container%20configured%20to%20run%20in%20our%20Azure%20logic%20app%20as%20seen%20in%20the%20photo.%20I%20have%20the%20time%20limit%20for%20the%20container%20running%20set%20to%203%20hours%20(limit%20setting%20in%20the%20Until%20loop)%20and%20looking%20at%20the%20logs%20the%20script%20gets%20nowhere%20near%20completion.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhy%20do%20I%20see%20such%20poor%20performance%20when%20running%20the%20container%20in%20the%20logic%20app%20vs.%20my%20local%20machine%3F%20Are%20there%20ways%20to%20increase%20resources%20for%20logic%20apps%3F%20Any%20ideas%20would%20help%2C%20thanks.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1000258%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EContainer%20Instances%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EContainers%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocker%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELogic%20App%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELogic%20Apps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Epython%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Microsoft

logicappcontainer.png

I have a python script that uses an adobe api to fetch web traffic analytics reports and write them to an Azure SQL database. This script takes about 10 minutes to run and complete successfully when run on my local machine. I packaged this up in to a docker container and have the container configured to run in our Azure logic app as seen in the photo. I have the time limit for the container running set to 3 hours (limit setting in the Until loop) and looking at the logs the script gets nowhere near completion.

 

Why do I see such poor performance when running the container in the logic app vs. my local machine? Are there ways to increase resources for logic apps? Any ideas would help, thanks. 

0 Replies