Search code examples
azure-service-fabric

Upload speed publish Service Fabric application from Azure VM to Azure cluster


I am trying to publish my Service Fabric application from a Azure VM as was suggested here: Operation timed out publishing Service Fabric application to Azure

The Azure VM is created in the same datacenter as my Service Fabric cluster. But for some reason I am only getting upload speeds from around 200 Kbps.

With the hard-coded 10 minutes timeout in the publish script in Visual Studio, this is not enough to get my application published.

Are there any suggestions on how I might increase my upload speed?


Solution

  • Since version 2.5.216 of the Service Fabric SDK, you have to ability to compress the package prior to sending.

    Add the following line to the PublishProfiles\Cloud.xml file to enable compression (and change the timeout from 10 minutes to 60 minutes if you want to):

    <CopyPackageParameters CopyPackageTimeoutSec="3600" CompressPackage="true" />
    

    See this lengthy disucssion