Very slow Azure File volume mount on Azure Container Instance

Matthias Denu 1 Reputation point
2021-11-08T13:36:58.163+00:00

We are using an ARM template to deploy a container instance that has a file share as a volume mount.

We have a process that runs on the container that makes many file operations to the mounted share. We have noticed that the performance of this process has decreased significantly since changing it to use the file share, rather than doing it locally, in volatile memory that will be deleted with the container instance. We want to use the Azure file share so that we have persistent storage, even after the container instance is deleted, but we would like to reduce the performance hit.

I've looked at https://learn.microsoft.com/en-us/azure/storage/files/storage-troubleshooting-files-performance#high-latencies-for-metadata-heavy-workloads-involving-extensive-openclose-operations but wasn't able to solve the problem.

It does not appear that we can change the options sent to the mount command for the container image through the ARM template https://learn.microsoft.com/en-us/azure/templates/microsoft.containerinstance/containergroups?tabs=json#volume.

Attached is a screen shot of some metrics.

147441-screen-shot-2021-11-08-at-82953-am.png

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
778 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
460 questions
No comments
{count} votes