I’m running tusd in a Docker container in Azure, and using Uppy to send files to it.
Small files work great.
But large files seem to cause tusd to use a large amount of memory, and then crash:
The behavior that the client sees is a very long lived request to upload the file, the % upload complete will stall out around 50-70% through, and the tusd service returns a 500.
The file is 221MB that I am attempting to upload. From what I can tell, it seems like tusd is building the file up in memory, instead of streaming it to Azure Storage.
This is what my Dockerfile looks like:
FROM tusproject/tusd:v2.0
ARG AZURE_STORAGE_ACCOUNT
ARG AZURE_STORAGE_KEY
ENV AZURE_STORAGE_ACCOUNT=${AZURE_STORAGE_ACCOUNT}
ENV AZURE_STORAGE_KEY=${AZURE_STORAGE_KEY}
I’m currently running it on an Azure App Service set to Standard S1 size, which means 1.75GB of memory.
My tusd options are:
--azure-storage uploads --azure-endpoint https://****.blob.core.windows.net --hooks-http https://***.azurewebsites.net/api/app/upload/webhook --hooks-http-forward-headers Authorization --hooks-enabled-events pre-create,pre-finish --cors-expose-headers X-Upload-Properties-Set,X-Upload-File-Path --behind-proxy
I’m having trouble figuring out how to view the tusd logs, so I do not have those yet, apologies.




