Uploading files into Azure Blob Storage at multi Gbps speeds

posted in: Blogs | 0

Moving data into cloud storage can present a number of challenges for organizations across all industries. Some of these challenges include finding a tool that can simplify the process and a solution that can move the data to the cloud as fast as possible. This blog will examine two methods used to transfer files into Azure Blob storage: using Microsoft’s tool AzCopy and using FileCatalyst Direct.

For the tests, I used multiple moderately priced VMs inside Azure. I also chose regions that are geographically dispersed to create latency between the source machine and the storage location. Here is how I set it up:

The client/source machine was hosted in the West Europe region. The machine was a standard D4s v3 (4 vcpus, 16GB memory each) running Windows Server 2016 Datacenter. See the full specifications in the image below:



Because it was acting as the sending/uploading machine, to be sure the read speed was good enough for multi-Gbps speeds, I defined a high-speed storage and attached it to the VM:


I then configured an Azure Blob Storage container in the West US region:



I disabled the “Secure Transfer Required” feature for the Blob storage since using HTTPS consumes a lot more CPU power.  Obviously, this isn’t recommended if you require secure transfers.  Just know that the sending machines will use a lot more of your CPU’s resources if you use HTTPS.  Finally, I created a container called “testcontainer” that will receive the files.


To transfer files using FileCatalyst Direct, I required a VM that was hosted in the same region as the Blob storage container. So, I created a VM with twice the cores as the sending machine since it will be doing twice the work. The VM has to receive the FileCatalyst accelerated UDP stream and then send that data out to the Blob storage at the same rate.  I used a Standard DS4 v2 (8 vCPUs, 28 GB memory), full specs below:



Since FileCatalyst Direct writes data directly to the Bob storage, I didn’t need to define any fast storage for the West US VM.  The file data is streamed directly into the blob storage.

Note that for all of the involved VMs, I had to enable Accelerated Networking to get speeds higher than 1 Gbps.

Adding your Azure Blob storage account to a FileCatalyst server is an easy process; just go to the File Systems tab, and click New, select “Azure Blob” and enter your Account name, Account key, and the Endpoint.  See below:



Now that I have added Azure Blob storage account to a FileCatalyst server, I can define a user account that points to your container.  See below:



To upload the files, FileCatalyst HotFolder was installed on the West Europe machine. At this point, I was ready to test and compare AzCopy to FileCatalyst Direct.


I performed 3 tests:

  1. Transfer a single 5GB file from local storage in West Europe to remote Azure Blob container in West US
  2. Transfer ten 500MB files from local storage in West Europe to remote Azure Blob container in West US
  3. Transfer a thousand 500KB files from local storage in West Europe to remote Azure Blob container in West US

All of the tests, for both FileCatalyst and AzCopy, were run ten times. The results were averaged and compared.


Here is a screenshot of AzCopy uploading a single 5GB file from West Europe to Blob storage in West US. You can see that the transfer topped out at under 1 Gbps.



Here is a screenshot of FileCatalyst HotFolder uploading the same file from West Europe to Blob storage in West US. You can see that FileCatalyst Hotfolder sustained 2 Gbps during the  test.



Here is a complete breakdown of the test results:


AzCopy excels in startup time for these tests. However, the peak rate for FileCatalyst Hotfolder is almost doubled. In most cases, FileCatalyst Hotfolder also has a much lower CPU usage.


FileCatalyst may provide the following benefits for data migrations into Azure:

  • Faster transfer speeds for large files (>500MB) when the bandwidth exceeds 1.5 Gbps with > 80ms RTT or 1.0 Gbps with > 150ms RTT
  • Less CPU intensive on client machine – easier to scale to higher speeds
  • FileCatalyst uses a Single UDP stream per file instead of multiple TCP streams = friendlier to other traffic
  • Application level features including automation and a web uploader
  • Can be scaled beyond 2 Gbps when the infrastructure allows. It isn’t limited by RTT doesn’t require more streams to scale.
  • Very tolerant to packet loss (wifi and mobile networks) and jitter (bonded and multipath links)


Obviously, I chose to use Windows for my tests (Afterall, it is Windows Azure). These tests could easily be re-run using Linux since both AzCopy and FileCatalyst Direct both run on Linux.


How can you get these results

To get these results when transferring files from your own infrastructure into Azure Blob storage using AzCopy, you don’t need to use any tools or VMs other than AzCopy.

If you want achieve faster speeds using FileCatalyst, you should start up a VM within the same region as your Azure Blob storage container. If you require speeds above 3 Gbps, you should choose an F16 instance. You can scale down the size accordingly if you don’t require that much speed.

You will need to get a FileCatalyst license (request a free trial here) and install FileCatalyst Server on your VM running in the same region as your Blob storage. Once FileCatalyst Server is installed you can install FileCatalyst clients in your infrastructure (we used HotFolder in our tests).

And that’s pretty much it! Just follow the Getting Started Guide that came with your FileCatalyst software and you will be transferring to Azure Blob storage in no time!

Further results

A few weeks after I compiled all of these results, I was able to get speeds of up to 3 Gbps with FileCatalyst by increasing the instance sizes to F16. I also verified that our driver for Azure Blob can actually write from an instance in the same region as the storage (at about 7 Gbps) when transferring 5 files at a time. When bandwidth is available, there is no reason that FileCatalyst would be limited by anything other than by CPU bottlenecks. I suspect as you get closer to 6-7 Gbps, you will need to use Jumbo frames to go any faster. But the determining factor on the bandwidth when running VMs in Azure is the instance size. See the links below about expected bandwidth for each instance size.


I found it hard to find all the educational documents i used to to get the best speeds in the Azure infrastructure, so here are a few of the links I used to get started:

Instance sizes and expected bandwidth for each – https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes-compute

Optimizing the bandwidth on your instances – https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-optimize-network-bandwidth

Testing the speed between your instances, or between your local infrastructure and a Azure VM – https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-bandwidth-testing

How to enable Accelerated Networking on an Azure instance – https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-vm-accelerated-networking