Long waiting time to deploy to iot modules to iot edge devices

Jeffrey K 171 Reputation points
2021-05-18T19:56:34.047+00:00

When testing deployments of modules to IoT edge devices, I noticed wait time of 3-5mins for modules to be deployed to the IoT edge devices. I created default and layered deployment for a IoT device and I see the lag in getting the modules deployed to the end device.

Is there any properties or setup I need to enable to perform better throughput?
Is there the sequence flow that I can refer during this process?
Where can I see the logs during this activity of deployments?

My IoT device is a VM created in Azure with following configuration
"hardwareProfile": {
"vmSize": "Standard_DS3_v2"
},
"storageProfile": {
"imageReference": {
"publisher": "MicrosoftWindowsDesktop",
"offer": "Windows-10",
"sku": "rs5-enterprise-standard-g2",
"version": "latest"
},
"osDisk": {
"osType": "Windows",
"managedDisk": {
"storageAccountType": "Premium_LRS",
"diskSizeGB": 127
},

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
598 questions
0 comments No comments
{count} votes

Accepted answer
  1. VenkatYalla-0009 836 Reputation points
    2021-06-25T18:09:07.313+00:00

    This behavior is dictated by the IoT Hub service not IoT Edge.

    IoT Hub evaluates ADM deployment updates roughly every 5 min unless an existing deployment name/priority is updated (as you found), so this is expected behavior. I'm not aware of any way to adjust this.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. dteteruk 6 Reputation points
    2021-06-23T11:25:30.9+00:00

    @Jeffrey K As far as I know time you need to download module depends on size of module. If module is several GB and connection is not stable it may take a lot of time.
    You can simply check #s of traffic passed by network adapter. Run below command in terminal and see if numbers are changing it means download process in progress.

    cat /proc/net/dev

    108558-image.png

    1 person found this answer helpful.

  2. António Sérgio Azevedo 7,671 Reputation points Microsoft Employee Moderator
    2021-05-19T15:20:25.39+00:00

    Hi @Jeffrey K ,
    Before trying to help you further please clarify the following:

    1. What version of IoT Edge are you using? 1.1 or 1.2?
    2. Are you using Windows or Linux Containers?
    3. Why 3-5 minutes is too long for your scenario?

    Where can I see the logs during this activity of deployments?

    Please start here: Troubleshoot your IoT Edge device

    I would try to see more information using the command iotedge logs edgeAgent


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.