-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Volume mount performance issue #262
Comments
Please clarify what is the baseline here, how Azure Files are used specifically for the WordPress content, if Azure Files and the Azure Container Apps resources are in the same region, and what is the difference in performance with and without Azure Files. |
Hello @dariagrigoriu, @howang-ms The difference is that without volumes, the site loads quickly as expected. |
From your setup it seems that you are running your entire WP install from Azure Files (your WP image will read lots of files for every request, as per how WP is built with all included files). I am wondering if you are incurring Azure Files limits with the traffic you are describing: https://docs.microsoft.com/en-us/azure/storage/files/storage-files-scale-targets One additional way you might want to try is to create a custom container WP image with everything (plugin, themes) packed in, and use Azure Storage only for uploads, maybe mounting the filesystem in the container (i.e. only in the wp-content/uploads folder). HTH |
Hello @olivomarco The 2nd approach is not suitable for us since we need to be able to install and change plugins from the admin panel. |
@erlotsman it's not a matter of storage limits: even if those could be upgraded, they cannot be upgraded to infinity, and there will always be a breaking point in your architecture. Containers scale as traffic comes in, while a fileshare cannot easily scale on any cloud. I think you should focus on building a scalable architecture for WP. In the solution I proposed you can always install&upgrade your plugins and themes in your git, build the container image and run it (and that is scalable to virtual infinity: containers can scale horizontally without issues) |
That's all well and good, but not using volumes to solve a performance problem is not a satisfactory solution. |
@erlotsman , the performance issue seem to be the Azure File Storage itself, it is not related how Container Apps integrate with it. More information can be found here: |
Hello @howang-ms I tried to use two types: premium and standard. In premium mode, uploading large files is faster, but reading a large number of small files is also slow. |
I have the same issue. Ive tried both container apps and app service and mounting a volume just makes the wordpress instance unusable... |
+1 Same issue. |
Hi @frnode! Unfortunately, this is an issue from Azure File Share, and we can't do much from ACA. |
+1 same issue |
@SophCarp You could implement other volume mount possibilities such as Azure NetApp Files, Azure disk storage or Azure Blob Storage |
Same here. Added a sleep into into init container . ugly hack |
@SophCarp Any update on this or do you know if there is a separate issue raised with the Azure Files team? |
Same issue here, looks like the IOPS of Azure File Storage is not performant enough. |
I have faced same issue using WordPress on Container Apps. So, I tried to avoid this issue and I got good performance using syncing mounted Azure File Share to local storage such as /var/html/www. I think we should copy or sync to local storage from mounted File Share for now. |
Issue description
When using the Azure Files integration with Azure Container Apps (as noted in the documentation), there are performance issues with the application and read/write operations inside the container.
Steps to reproduce
Expected behavior [What you expected to happen.]
I expect to get a fix for performance issues when using Azure Files integration.
Actual behavior [What actually happened.]
Now the site is loaded in 10-15 seconds.
The text was updated successfully, but these errors were encountered: